With Cocoon 2.1 it looks like they've intentionally separated themselves from Tomcat and have Jetty "under the hood". I didn't even see a way to run Cocoon inside of Tomcat as before.
Jay -----Original Message----- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 4:39 PM To: [EMAIL PROTECTED] Subject: Re: Session Lost between Tomcat and Cocoon So you don't have your servlet connected to Cocooon, but you do an independent request from the client. Then it's obvious that the session is lost. I'm not the servlet expert, but the sessions are managed by the container, aren't they? This means you can have the same session in two servlets. And so you only have to add the sessionid to the your link when you call Cocoon: http://192.1.1.1:8888/proj/ReportT01.pdf;jsessionid=12345?clientId=10 Joerg On 14.01.2004 15:58, Jay wrote: > To call Cocoon we simply do a: > > window.open(loc,'repWindow',config='height=400,width=800,location=no,s > ta > tus=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes,directories=no > ') > where loc is something like > http://192.1.1.1:8888/proj/ReportT01.pdf?clientId=10 > > The sitemap then looks like: > <map:match pattern="ReportT01.xml"> > <map:parameter name="contextPath" value="{request:contextPath}"/> > <map:generate src="reports/ReportT01.jsp" type="jsp" /> > <map:serialize type="xml"/> > </map:match> > > <map:match pattern="ReportT01.pdf"> > <map:parameter name="contextPath" value="{request:contextPath}"/> > <map:generate src="reports/ReportT01.jsp" type="jsp"/> > <map:transform src="reports/ReportT01-page2fo.xsl"/> > <map:serialize type="fo2pdf"/> > </map:match> > > > -----Original Message----- > From: Joerg Heinicke [mailto:[EMAIL PROTECTED] > > Can you give some information in which way you "call" Cocoon and how > your sitemap look like? It seems you simply get a completely new > session. > > Joerg > > On 13.01.2004 23:33, Jay wrote: > > >>Versions being used: Tomcat 4.0.6, Cocoon 2.1.3, Sun JDK 1.4.2_02, >>Linux Gentoo 1.4 >> >>Our basic problem is that our application, which is run on Tomcat >>(just a collection of .jsp files mostly) calls Cocoon (via a call to >>http://ipaddress:8888/reportx.pdf) to generate .pdf reports. But once >>that happens, the session information is lost. Specifically, you still > > >>have a session, but with a different session id than before (and all >>of the previously saved information is gone). >> >>So it appears the the session is now overridden by Cocoon. So is there > > >>a way to configure Cocoon to not do so? >> >>We also tried running Cocoon under a separate JVM but got the same >>results. You must refresh the app at this point because it no lost all > > >>information stored about itself. >> >>Thanks, >> >>Jay --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
