Re: Vadim : Very Important: Deploy Servlets in the Cocoon Context
Vadim, If I use the html generator on this, I still get: Cocoon 2 - Internal server error type fatal message Exception in HTMLGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in HTMLGenerator.generate(): java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Exception in HTMLGenerator.generate(): java.lang.NullPointerException at org.apache.cocoon.generation.HTMLGenerator.generate(HTMLGenerator.java:249) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:399) at org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.matchN1002D(/Library/Jon as/Tomcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/meb catalog/sitemap_xmap.java:506) at org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata log/sitemap_xmap.java:381) at org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata log/sitemap_xmap.java:321) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN105AF(/Library/Jonas/Tomcat33/work/ DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:6670) at org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3341) at org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3085) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I nterceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:496) java.lang.NullPointerException at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:373) at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:183) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId entityImpl.java:325) at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:143) at org.apache.cocoon.generation.HTMLGenerator.generate(HTMLGenerator.java:236) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:399) at org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.matchN1002D(/Library/Jon as/Tomcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/meb catalog/sitemap_xmap.java:506) at org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata log/sitemap_xmap.java:381) at org.apache.cocoon.www.mount.mebcatalog.sitemap_xmap.process(/Library/Jonas/T omcat33/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/mount/mebcata log/sitemap_xmap.java:321) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN105AF(/Library/Jonas/Tomcat33/work/ DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:6670) at org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA ULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3341) at org.apache.cocoon.www.sitemap_xmap.process(/Library/Jonas/Tomcat33/work/DEFA
RE: Vadim : Very Important: Deploy Servlets in the Cocoon Context
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] Thanks for your reply There was a thread abt 3 -4 months where there was discussion abt invoking Servlets. There was a sitemap entry associated with that as well. map:generate src=http://localhost:8080/cocoon/myservlet/ I guess it was Vadim or someone else who were answering this... IIRC, there was no need to register the Servlet also, Never heard about this. In the end, Cocoon is *not* servlet engine and does not tries to replace one. it was addressed by servlet class (or something). I think there was a special generator for that.. The only alternative to the snippet above is CocoonFilterGeneratorImpl.java in scratchpad of 2.1 Vadim Regds, Chiths -Original Message- From: Peter Schwenke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: RE: Very Important: Deploy Servlets in the Cocoon Context If you want to run the servlets in your cocoon webapp but not be handled by cocoon just set them up in your web.xml and call them in the usual way. That is just a normal servlet container issue. They are just additional servlets to the cocoon servlet that way. In the system I've been developing on I use an MVC architecture where servlets forward to JSPs which are processed by cocoon. If you want to process the servlets from cocoon the thread you are thinking of could have been Servlets to XSL and Servlet to XSL possible. ...Peter Chitharanjan Das writes: IIRC, There was an email thread depicting the issue of invoking servlets in Cocoon 2.0. I tried in the mailing lists and could not get my hands on them. There are a lot of utilities which are developed in servlet framework out there. It would be a shame if we cannot use them inside Cocoon. . -Original Message- From: William Brogden [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: RE: Very Important: Deploy Servlets in the Cocoon Context -Original Message- From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: RE: Very Important: Deploy Servlets in the Cocoon Context I am posting it again .. Is there a way to invoke a servlet in the same context of cocoon. i.e if the servlet were to be called from an XSP (say..) they should share the same session... regds, Chiths Since Cocoon runs in the servlet container environment you theoretically could do a RequestDispatcher.include( request, response ) if you can get the ServletContext. WBB - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Vadim : Very Important: Deploy Servlets in the Cocoon Context
Thanks for your reply There was a thread abt 3 -4 months where there was discussion abt invoking Servlets. There was a sitemap entry associated with that as well. I guess it was Vadim or someone else who were answering this... IIRC, there was no need to register the Servlet also, it was addressed by servlet class (or something). I think there was a special generator for that.. Regds, Chiths -Original Message- From: Peter Schwenke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: RE: Very Important: Deploy Servlets in the Cocoon Context If you want to run the servlets in your cocoon webapp but not be handled by cocoon just set them up in your web.xml and call them in the usual way. That is just a normal servlet container issue. They are just additional servlets to the cocoon servlet that way. In the system I've been developing on I use an MVC architecture where servlets forward to JSPs which are processed by cocoon. If you want to process the servlets from cocoon the thread you are thinking of could have been Servlets to XSL and Servlet to XSL possible. ...Peter Chitharanjan Das writes: IIRC, There was an email thread depicting the issue of invoking servlets in Cocoon 2.0. I tried in the mailing lists and could not get my hands on them. There are a lot of utilities which are developed in servlet framework out there. It would be a shame if we cannot use them inside Cocoon. . -Original Message- From: William Brogden [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: RE: Very Important: Deploy Servlets in the Cocoon Context -Original Message- From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: RE: Very Important: Deploy Servlets in the Cocoon Context I am posting it again .. Is there a way to invoke a servlet in the same context of cocoon. i.e if the servlet were to be called from an XSP (say..) they should share the same session... regds, Chiths Since Cocoon runs in the servlet container environment you theoretically could do a RequestDispatcher.include( request, response ) if you can get the ServletContext. WBB - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]