RE: Why isn't Cocoon making into the commerical world?
Rob, a GUI to help manage Cocoon is be hard to build... and, IMHO, of little use: remember that Apache HTTP Server has no GUI, and it is wildly successful. Maybe an automated installation procedure (like the Tomcat one) would be more useful, but, again, it will be hard to build. At the end of the day, a killer application could be a Content Management System (which is well on its way). The CMS will put a nice GUI on top on Cocoon and give you something to deliver quickly to your boss... showing that Cocoon does work :) Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 6:40 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Why isn't Cocoon making into the commerical world? Wow, these are completely excellent. And to think I could have found them myself if I had had half a brain and looked on the Cocoon links page! (http://xml.apache.org/cocoon/cocoon-links.html) OK, well, I must now revise my original opinion slightly. Cocoon is not lacking startup tutorials or projects as badly as I thought. What it is lacking, however, are: 1) Tools. A web-based management UI for Cocoon would be a Very Good Thing, and very helpful in getting wider adoption. 2) Marketing! If some large consulting companies (like, say, IBM Services?) got behind Cocoon in a big way, that would greatly expand its marketshare and mindshare. And then would come the O'Reilly book, and the New Riders book, and the Addison Wesley books... you know a product's made it when the bookwriters get interested :-) Thanks very much for the tutorial pointers and I wish I'd had enough of a clue to find them myself. Still, at least I haven't wasted *too* much time. Cheers! Rob At 11:38 PM 3/28/2002 -0500, Joseph Rajkumar wrote: Hi I would strongly recommend this for an excellent introduction. Joseph Rajkumar http://www.cocooncenter.de/cc/documents/resources/navigation/index.html Thor Heinrichs-Wolpert wrote: For your HelloWorld adventure, check out chello on sourceforge. Cheers, Thor HW - 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]
Re: Why isn't Cocoon making into the commercial world?
In my opinion Cocoon will hit the main stream when the Cocoon building blocks are ready. At the moment people who are new to XSLT need to digest a LOT of info just to make out the fundamentals of Cocoon. Giving people the ability to start out with a minimal application with just a Hello World sample to get them going will make things a lot easier (I'm not talking about a minimized Cocoon like Chello). The block approach will make it possible to add functionality without the need to know the insides of Cocoon. That's when we will hit the mainstream: when people can use Cocoon as a simple tool to get results and not as a programming framework where all the tweaking and fine tuning needs to be done before getting results. Bert At 18:28 28/03/2002 -0800, you wrote: Dear Cocoon User Group: First of all, I LOVE the Cocoon framework, I'm a total believer, and expecially love how Cocoon2 is turning out! Cocoon seems just awesomely powerfully, years ahead of the classical architectures proposed by Sun (i.e. JSP to ServletBeans to EJBs...). But how come there is NO (i.e. ABSOLUTELY NO) demand for Cocoon expertise in the US market? Type in key word java and retrieve 3500 hits on www.dice.com. Type in key word cocoon and get ZERO! Is it all just a dream? Steve PS: No need to reply if your commerical project is using it: congradulation. But the bigger picture is my question. __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ - 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]
Performace Tips in current CVS
Hi Cocooners, I booked in a loose collection of Cocoon Performance Tips into the CVS tree. It's in xdoc format and you find it on the same level as the FAQ's (Performance is the link). Ok I want you to read it and post your comments and suggestion. Because you as Users have more real world experience as some of us devs! Have fun! ~Gerhard +--+ My parents have been visiting me for a few days. I just dropped them off at the airport. They leave tomorrow. +--+ - 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: C2.0.2: ClassCastException
Roger that.. I was using the cocoon.xconf from 2.0.1 in my project (I forgat to replce it). Thanks right again, Christopher On Thu, Mar 28, 2002 at 08:44:18PM -0500, Vadim Gritsenko wrote: Check your cocoon.roles and cocoon.xconf files. Cocoon 2.0.2 uses XPathProcessor from the Excalibur instead of old Cocoon's XPathProcessor. It seems that somehow you are instantiating old processor instead of new, which is seen from the exception: java.lang.ClassCastException: org.apache.cocoon.components.xpath.XPathProcessorImpl You have got org.apache.cocoon.components.xpath.XPathProcessorImpl instead of org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl. Regards, Vadim From: Jozsa Kristof [mailto:[EMAIL PROTECTED]] Vadim, sorry for the delay, I was out of office. I'm running Cocoon 2.0.2 from JBoss3beta2 latest cvs snapshots (it uses Jetty as the bundled web container). I thought of the different xalan/xerces libs between JBoss and Cocoon as a possible problem source here - is that possible? Anyway, I'm posting a full trace about the problem: ERROR (2002-03-28) 09:27.19:740 [core.manager] (/index) SocketListener- 1/XMLResourceBundle: cannot obtain XPathProcessor java.lang.ClassCastException: org.apache.cocoon.components.xpath.XPathProcessorImpl at org.apache.cocoon.i18n.XMLResourceBundle.compose(XMLResourceBundle.java: 117) at org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB undleF actory.java:346) at org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl eFacto ry.java:308) at org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource Bundle Factory.java:238) at org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource Bundle Factory.java:224) at org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB undleF actory.java:343) at org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl eFacto ry.java:308) at org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource Bundle Factory.java:238) at org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource Bundle Factory.java:224) at org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB undleF actory.java:343) at org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl eFacto ry.java:308) at org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundle Factor y.java:196) at org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundle Factor y.java:181) at org.apache.cocoon.transformation.I18nTransformer.setup(I18nTransformer.j ava:77 3) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipelin e(Abst ractEventPipeline.java:215) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching EventP ipeline.java:279) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C aching EventPipeline.java:142) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach ingStr eamPipeline.java:320) at org.apache.cocoon.www.sitemap_xmap.matchN400231(sitemap_xmap.java:3510) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1192) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:681) 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:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:570) at org.mortbay.http.HttpContext.handle(HttpContext.java:1352) at org.mortbay.http.HttpContext.handle(HttpContext.java:1306) at org.mortbay.http.HttpServer.service(HttpServer.java:743) at org.jboss.jetty.Jetty.service(Jetty.java:540) at org.mortbay.http.HttpConnection.service(HttpConnection.java:748) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:763) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145 ) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at
[C 2.0.3] adding and removing namespaces
I tried to use exclude-result-prefix in Cocoon to remove a namespace. It doesn't work. Is there a way to add and remove namespaces in an xsl file? I'm using Cocoon the latest CVS HEAD. Bert - 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]
oradb esql no connection in pool error!
Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mekka/main exception org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. path-info mekka/main stacktrace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:359) at org.apache.cocoon.www.mekka.sitemap_xmap.wildcardMatchN40004F(sitemap_xmap.j ava:630) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:487) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:445) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400209(sitemap_xmap.java:31 22) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2509) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2462) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.Cocoon.process(Cocoon.java:514) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:484) java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.www.mekka.main_xml.generate(main_xml.java:366) at
RE: Encoding non-english characters in XSP (C2.0.2)
From: Andrey Demchenko [mailto:[EMAIL PROTECTED]] Hi, Vadim. - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] 2) How can I put -encoding KOI8-R to javac in servlet container e.g. Resin 2.0.5, Tomcat 4.0? You can change encoding for the whole JVM right now May be this is offtopic but I do not know how set encoding for the whole JVM. Give me an example for JDK 1.3, 1.4, please. One way: For Win: Start - Settings - Control Panel - Regional Options, For Unix: LOCALE=..., may be something else also. Another: Use java -D...=..., but you should search what the system property is. It is something about files and encodings. Vadim - 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: oradb esql no connection in pool error!
I have the same problem with JDK 1.4 With JDK 1.3.1 it works well. - Original Message - From: Jerzy Kut [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 3:12 PM Subject: oradb esql no connection in pool error! Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mekka/main exception org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. path-info mekka/main stacktrace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:359) at org.apache.cocoon.www.mekka.sitemap_xmap.wildcardMatchN40004F(sitemap_xmap.j ava:630) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:487) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:445) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400209(sitemap_xmap.java:31 22) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2509) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2462) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.Cocoon.process(Cocoon.java:514) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
Re: oradb esql no connection in pool error!
Sorry - I have java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) - Original Message - From: Andrey Demchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:31 PM Subject: Re: oradb esql no connection in pool error! I have the same problem with JDK 1.4 With JDK 1.3.1 it works well. - Original Message - From: Jerzy Kut [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 3:12 PM Subject: oradb esql no connection in pool error! Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mekka/main exception org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. path-info mekka/main stacktrace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:359) at org.apache.cocoon.www.mekka.sitemap_xmap.wildcardMatchN40004F(sitemap_xmap.j ava:630) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:487) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:445) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400209(sitemap_xmap.java:31 22) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2509) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2462) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.Cocoon.process(Cocoon.java:514) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at
RE: Redirect on sitemap with parameters
From: yuryx [mailto:[EMAIL PROTECTED]] Hello All! Can I have redirect in sitemap like: map:match= map:redirect-to uri=sample map:parameter name=style value=sample/ No, this does not work. /map:redirect-to /map:match map:match=sample map:generate src=docs/sample.xml/ map:transform src=stylesheets/{style}.xsl/ Where {style} came from? I do not see the place which defines it. Vadim map:serialize/ /map:match it possible? Thanx. Yury. - 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: Redirect on sitemap with parameters
I don't know if this works, give it a try! But what this works with me: map:match pattern= map:redirect-to uri=sample/myvalue /map:match map.match pattern=sample/* map:generate src=docs/sample.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize/ /map:match or map:redirect-to uri=sample?style=sample/ and the request-action. I don't know what you want to do with this, but maybe I helped Axel -Original Message- From: yuryx [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 11:26 AM To: [EMAIL PROTECTED] Subject: Redirect on sitemap with parameters Hello All! Can I have redirect in sitemap like: map:match= map:redirect-to uri=sample map:parameter name=style value=sample/ /map:redirect-to /map:match map:match=sample map:generate src=docs/sample.xml/ map:transform src=stylesheets/{style}.xsl/ map:serialize/ /map:match it possible? Thanx. Yury. - 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]
RE: oradb esql no connection in pool error!
I have oracle driver classes12.zip in CLASSPATH. It better be JAR!!! Rename to JAR or re-jar it. Vadim From: Jerzy Kut [mailto:[EMAIL PROTECTED]] Sorry - I have java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) - Original Message - From: Andrey Demchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:31 PM Subject: Re: oradb esql no connection in pool error! I have the same problem with JDK 1.4 With JDK 1.3.1 it works well. - Original Message - From: Jerzy Kut [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 3:12 PM Subject: oradb esql no connection in pool error! Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. ... - 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: oradb esql no connection in pool error!
Sorry, I meant classes12.jar not classes.jar :( - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: RE: oradb esql no connection in pool error! Jerzy, try renaming classes12.zip to classes.jar Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Jerzy Kut [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: oradb esql no connection in pool error! Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mekka/main exception org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. path-info mekka/main stacktrace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerP agesGenera tor.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process (CachingEv entPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:359) at org.apache.cocoon.www.mekka.sitemap_xmap.wildcardMatchN40004F(site map_xmap.j ava:630) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:487) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:445) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400209(sitemap_xm ap.java:31 22) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2509) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2462) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.Cocoon.process(Cocoon.java:514) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa lve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat cherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5
Re: Redirect on sitemap with parameters
Vadim Gritsenko wrote: From: yuryx [mailto:[EMAIL PROTECTED]] Hello All! Can I have redirect in sitemap like: map:match= map:redirect-to uri=sample map:parameter name=style value=sample/ No, this does not work. Yes, I'm know of this. This example was for example. But I'm need parametrized redirect like call template in XSLT :) If is not possible then problem is close :) Thanx all for reply. Yury. - 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: Redirect on sitemap with parameters
Axel Honfi wrote: I don't know if this works, give it a try! But what this works with me: map:match pattern= map:redirect-to uri=sample/myvalue /map:match map.match pattern=sample/* map:generate src=docs/sample.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize/ /map:match Yes, I'm use this method :)) Thanx for quick reply. Yury. - 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: oradb esql no connection in pool error!
I try classes.jar and classes12.jar and there is no matter. No change. I copy classes12.jar from oracle to $CATALINA_HOME/common/lib and to $CATALINA_HOME/webapps/cocoon/WEB-INF/lib - and this no metter too. - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:52 PM Subject: RE: oradb esql no connection in pool error! Sorry, I meant classes12.jar not classes.jar :( - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: RE: oradb esql no connection in pool error! Jerzy, try renaming classes12.zip to classes.jar Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Jerzy Kut [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: oradb esql no connection in pool error! Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mekka/main exception org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. path-info mekka/main stacktrace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerP agesGenera tor.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process (CachingEv entPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:359) at org.apache.cocoon.www.mekka.sitemap_xmap.wildcardMatchN40004F(site map_xmap.j ava:630) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:487) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:445) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400209(sitemap_xm ap.java:31 22) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2509) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2462) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.Cocoon.process(Cocoon.java:514) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa lve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at
[TEST] Just a test
Just ignore this message. -- KP [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]
RE: [C 2.0.3] adding and removing namespaces
I tried to use exclude-result-prefix in Cocoon to remove a ^^ namespace. It doesn't work. Note that the namespace will only be excluded in the output. It will still be available during the XSL transformation. This works fine with Cocoon 2.0.2. Is there a way to add and remove namespaces in an xsl file? Why would you like to do that ? Matthieu I'm using Cocoon the latest CVS HEAD. - 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: oradb esql no connection in pool error!
Hi - I have resolve of my trouble! In web.xml file I had got: init-param param-nameload-class/param-name param-value !-- For ORACLE database driver: -- oracle.jdbc.driver.OracleDriver /param-value /init-param init-param param-nameload-class/param-name param-value !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDriver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param And it WAS a trouble - sorry all for mistake. It MUST be in ONE init-param tag: init-param param-nameload-class/param-name param-value !-- For ORACLE database driver: -- oracle.jdbc.driver.OracleDriver !-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -- !-- For Database Driver: -- org.hsqldb.jdbcDriver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param and then all works good. Sorry again. And thank You. - Original Message - From: Jerzy Kut [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 29, 2002 3:00 PM Subject: Re: oradb esql no connection in pool error! I try classes.jar and classes12.jar and there is no matter. No change. I copy classes12.jar from oracle to $CATALINA_HOME/common/lib and to $CATALINA_HOME/webapps/cocoon/WEB-INF/lib - and this no metter too. - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:52 PM Subject: RE: oradb esql no connection in pool error! Sorry, I meant classes12.jar not classes.jar :( - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: RE: oradb esql no connection in pool error! Jerzy, try renaming classes12.zip to classes.jar Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Jerzy Kut [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: oradb esql no connection in pool error! Hi cocooners! I have got win2k, tomcat4.0.2, cocoon2.0.1. I have oracle driver classes12.zip in CLASSPATH. When I run this snippet I got exception: Cocoon 2 - Internal server error type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/mekka/main exception org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. path-info mekka/main stacktrace org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource java.sql.SQLException: There are no connections in the pool, check your settings. at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerP agesGenera tor.java:212) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process (CachingEv entPipeline.java:210) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:359) at org.apache.cocoon.www.mekka.sitemap_xmap.wildcardMatchN40004F(site map_xmap.j ava:630) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:487) at org.apache.cocoon.www.mekka.sitemap_xmap.process(sitemap_xmap.java:445) at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114) at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400209(sitemap_xm ap.java:31 22) at
[TEST] Final test
Title: [TEST] Final test I'm very sorry for this spam. -- Konstantin Piroumian kpiroumian@protek.com
Could not configure Cocoon environment with user roles file
Hello, I am running Coccon 2.0.2 with Tomcat 4.0.3 and not able to start Cocoon as a nullpointer is thrown when it is trying to load my my.roles file. I am attaching the error.log, my WEB-INF/cocoon.xconf (standard xconf only added attribute to load user-roles) and WEB-INF/my.roles files. Any help would be greatly appreciated! Thanks, Rasik Pandey error.log Description: Binary data cocoon.xconf Description: Binary data my.roles Description: Binary data - 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: newbie help in classpath
Title: RE: newbie help in classpath Hi, This is my error message when I use cocoon-2.0.2-src and try to biuld c:\cocoon-2.0.2.\build.bat all Thanks. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 8:29 PM To: [EMAIL PROTECTED] Subject: RE: newbie help in classpath USE PLAIN TEXT EMAIL! And do not use system classpath variables. It told me that I need to recompile with -deprecation and build failed. What's the error? Vadim -Original Message- From: Peng, Meimin [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:16 PM To: '[EMAIL PROTECTED]' Subject: newbie help in classpath Hi, I am newbie for cocoon. got stuck somewhere and couldn't make cocoon work. Please help. I download both cocoon-2.0.2-src.zip and cocoon-2.0-bin.zip. follow the http://xml.apache.org/cocoon/installing/index.html try to make cocoon work. The sys env I have is: jdk1.3.1; tomcat3.2 First, I try to use cocoon-2.0.2-src to install concoon. But, I couldn't find the cocoon.war file under cocoon/build/cocoon/ directory. The solution I have is I copy the cocoon.war from binary code and deploy it in the tomcat directory. This is error message I got when I run http://localhost:8080/cocoon/ (the currently app I have in tomcat are still running correctly) Cocoon 2 - Internal server error type fatal message SAX2 driver class org.apache.xerces.parsers.SAXParser not found description java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser sender org.apache.cocoon.servlet.CocoonServlet It seems like I didn't set the correct classpth. Here is the setting: java_home is c:\jdk1.3.1; tomcat_home is c:\jakarta-tomcat System variable is: .;C:\jdk1.3.1\lib\tools.jar;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\ru ntime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin Second, I try to use binary code to build cocoon.war file I use this command \build.bat -Dinclude.webapp.libs=yes webapp It told me that I need to recompile with -deprecation and build failed. The API is too old. What can I do to create a new war file in cocoon?? any ideas?? Thank a million. --Zoe CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - 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] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. error.log Description: Binary data - 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: Editing, compiling, running Cocoon under debugger?
On Thursday 28 March 2002 08:42 pm, Rob Jellinghaus wrote: I am a large fan of IDEA (http://www.intellij.com/idea) and I am well on the way to having a Cocoon project running under IDEA. IDEA rules!! :) When you rebuild classes, where do you set your Ant ${build.dir}? Do you have your build system output the classes directly to %CATALINA_HOME%/webapps/cocoon/WEB-INF/classes? Or do you rebuild the entire war and have Tomcat re-extract it each time you make a change? (surely not!) I have the build go to WEB-INF/classes, and thus tomcat doesn't need to be restarted as it notices that the class files have changed and reloads the webapp. -pete -- peter royal - [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]
XSLT - processing XML from a database field problem
Hello, I already passed 2 days trying to solve my problem by myself, but I did not succeed... The situation: I use the SQL Transformer to get data from database. inside this data, there are fields containing XHTML (e.g. bthis is bold text/b). What I want to do with all the data is to produce a PDF document using FO. To accomplish such a thing, I use 2 XSL pages: one for unescaping the lt;bgt;, lt;igt; and other XHTML tags into some valid XML-like tags (b, i, ...) with xsl:value-of disable-output-escaping=yes. And the other xsl page does the big job by transforming all the document into a FO document (including the XHTML tags, of course). The problem: Even if the unescaping works fine (I checked it by watching the output of the XSLT transformation of the unescaping XSL page), it seems that when I want to process the b, i others with a standard xsl:apply-templates/, they automatically come back to a non-escaped form. What I already tried: I tried to replace xsl:apply-templates/ by a xsl:copy-of .../. And I saw that my XHTML tags were still unescaped, as expected. So I really wonder why they come back to escaped when applied with apply-templates... I tried to split the global process into 2 steps: with one pipeline, I get the unescaped intermediate result, that I store manually into an xml file, and then with another pipeline I read the intermediate file and push it into the big job XSLT page... And it works! So, I really would like to know what's wrong with this unescaping and chained-XSLT stuff... I know that this problems of integrating XML fragments into Cocoon's pipelines have always been sensitive, although the documentation have absolutely no care with this. If anyone can help, thank you in advance. Florent, Soulière Stagiaire e-Technologies Lyon T-Systems Soleri Groupe Deutsche Telekom Notre métier: la convergence informatique et télécoms Convergence is our Business tél.: +33 4 37 65 24 26 fax: +33 4 37 65 22 31 mail: [EMAIL PROTECTED] www.t-systems.fr
RE: newbie help in classpath
USE PLAIN TEXT EMAIL! And make sure you do not have any other Xerces/Xalan/XML api versions in the classpath and in the JRE ext directory. Vadim -Original Message- From: Peng, Meimin [mailto:[EMAIL PROTECTED]] Hi, This is my error message when I use cocoon-2.0.2-src and try to biuld c:\cocoon-2.0.2.\build.bat all Thanks. -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 8:29 PM To: [EMAIL PROTECTED] Subject: RE: newbie help in classpath USE PLAIN TEXT EMAIL! And do not use system classpath variables. It told me that I need to recompile with -deprecation and build failed. What's the error? Vadim -Original Message- From: Peng, Meimin [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 6:16 PM To: '[EMAIL PROTECTED]' Subject: newbie help in classpath Hi, I am newbie for cocoon. got stuck somewhere and couldn't make cocoon work. Please help. I download both cocoon-2.0.2-src.zip and cocoon-2.0-bin.zip. follow the http://xml.apache.org/cocoon/installing/index.html try to make cocoon work. The sys env I have is: jdk1.3.1; tomcat3.2 First, I try to use cocoon-2.0.2-src to install concoon. But, I couldn't find the cocoon.war file under cocoon/build/cocoon/ directory. The solution I have is I copy the cocoon.war from binary code and deploy it in the tomcat directory. This is error message I got when I run http://localhost:8080/cocoon/ (the currently app I have in tomcat are still running correctly) Cocoon 2 - Internal server error type fatal message SAX2 driver class org.apache.xerces.parsers.SAXParser not found description java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser sender org.apache.cocoon.servlet.CocoonServlet It seems like I didn't set the correct classpth. Here is the setting: java_home is c:\jdk1.3.1; tomcat_home is c:\jakarta-tomcat System variable is: .;C:\jdk1.3.1\lib\tools.jar;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\ru ntime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin Second, I try to use binary code to build cocoon.war file I use this command \build.bat -Dinclude.webapp.libs=yes webapp It told me that I need to recompile with -deprecation and build failed. The API is too old. What can I do to create a new war file in cocoon?? any ideas?? Thank a million. --Zoe CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - 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] CONFIDENTIALITY NOTICE: The information in this e-mail is privileged and confidential. Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized. If you have received this e-mail in error, please reply to sender and delete it from your system immediately. - 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: Editing, compiling, running Cocoon under debugger?
From: Peter Royal [mailto:[EMAIL PROTECTED]] On Thursday 28 March 2002 08:42 pm, Rob Jellinghaus wrote: I am a large fan of IDEA (http://www.intellij.com/idea) and I am well on the way to having a Cocoon project running under IDEA. IDEA rules!! :) When you rebuild classes, where do you set your Ant ${build.dir}? Do you have your build system output the classes directly to %CATALINA_HOME%/webapps/cocoon/WEB-INF/classes? Or do you rebuild the entire war and have Tomcat re-extract it each time you make a change? (surely not!) I have the build go to WEB-INF/classes, and thus tomcat doesn't need to be restarted as it notices that the class files have changed and reloads the webapp. Same holds true for WEB-INF/lib. Vadim -pete -- peter royal - [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]
Using sunRise authentication ................
Hello All, Has anybody used sunrise authentication for pipelines. I have tried playing around with it for quite a while now. These are my observations SunRise authentication works good only for Login If used for pipelines (urls with request parameters) with request parameters. The following happens If not authenticated, the requested is redirectetd a new page for login and then gets authenticated and when returned back to the original resource , all your original request parameters are lost. Questions: 1. In the tutorial, the html form action of the login screen has the resource parameter filled with the resource name accessed first a. How can I access the resource parameter in the map:act type=sunrise-login to redirect to the original resource. i. To make this happen should the source code of LoginAction be changed to store the resource request parameter as a sitemap-parameter. Or what is the alternative Regds, Chiths
Urgent: Forward requests from one sub-sitemap to another
How do I forward requests from one sub-sitemap to another?
I have 2 submaps under coicoon
Sub1
Sub2
Whenerver I get a pattern
Sub1/resource1/**
I need to forward it to say
Sub2/resource2/**
I do not want to do a map:redirect
because this will cause any of the request parameters to vanish (as
map:redirect, I guess creates a new request)..
Is map:mount the thing to do as if
yes can be do a mount from sub-sitemap to another for eg
In
Sitemap for Sub1
map:pipeline
map:match
pattern=resource1/
map:mount uri-prefix=../Sub2/resource2 src="../Sub2/ check-reload=yes/
/map:match
/map:pipeline
Has anybody have faced this problem ?
otherwise I have to duplicate sitemap entries
The reason to do this is
I am creating sub-sitemaps for different functionalites. And
in some cases there are overlaps and hence the requirement. This helps me to
have different level of permissions and
Also have good degree of separation for developers..
Thnks in Advance,
Chiths
RE: XSLT - processing XML from a database field problem
I have no clue why this happens, but have you tried putting the escaped stuff into CDATA-braces with the first stylesheet? I think this should keep the second one from unescaping Maybe an idea Axel -Original Message- From: Florent Soulière [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 6:03 PM To: [EMAIL PROTECTED] Subject: XSLT - processing XML from a database field problem Hello, I already passed 2 days trying to solve my problem by myself, but I did not succeed... The situation: I use the SQL Transformer to get data from database. inside this data, there are fields containing XHTML (e.g. bthis is bold text/b). What I want to do with all the data is to produce a PDF document using FO. To accomplish such a thing, I use 2 XSL pages: one for unescaping the lt;bgt;, lt;igt; and other XHTML tags into some valid XML-like tags (b, i, ...) with xsl:value-of disable-output-escaping=yes. And the other xsl page does the big job by transforming all the document into a FO document (including the XHTML tags, of course). The problem: Even if the unescaping works fine (I checked it by watching the output of the XSLT transformation of the unescaping XSL page), it seems that when I want to process the b, i others with a standard xsl:apply-templates/, they automatically come back to a non-escaped form. What I already tried: I tried to replace xsl:apply-templates/ by a xsl:copy-of .../. And I saw that my XHTML tags were still unescaped, as expected. So I really wonder why they come back to escaped when applied with apply-templates... I tried to split the global process into 2 steps: with one pipeline, I get the unescaped intermediate result, that I store manually into an xml file, and then with another pipeline I read the intermediate file and push it into the big job XSLT page... And it works! So, I really would like to know what's wrong with this unescaping and chained-XSLT stuff... I know that this problems of integrating XML fragments into Cocoon's pipelines have always been sensitive, although the documentation have absolutely no care with this. If anyone can help, thank you in advance. Florent, Soulière Stagiaire e-Technologies Lyon T-Systems Soleri Groupe Deutsche Telekom Notre métier: la convergence informatique et télécoms Convergence is our Business tél.:+33 4 37 65 24 26 fax:+33 4 37 65 22 31 mail: [EMAIL PROTECTED] www.t-systems.fr - 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: Redirect on sitemap with parameters
-Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: RE: Redirect on sitemap with parameters From: yuryx [mailto:[EMAIL PROTECTED]] Hello All! Can I have redirect in sitemap like: map:match= map:redirect-to uri=sample map:parameter name=style value=sample/ No, this does not work. But it's a good idea! Konstantin P.S. Vadim, please tell me if you get this message? I don't see my message neither in cocoon-users nor cocoon-dev. /map:redirect-to /map:match ... Vadim map:serialize/ /map:match it possible? Thanx. Yury. - 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]
2.0.2 protected area - no longer works out of the box
Could someone confirm, and even better explain why Tomcat 4.0.1 jdk1.3 (I gave up on jdk1.4) Cocoon 2.0.2 The 'protected area' example does NOT log in using Donald Ball :-( Anyone know why not? What has changed? (the sunspot authentication works just fine, and there is an employee named Donald Ball in the personnel datasource) I've just checked that the 'protected area' does work with 2.0.1 with 4.0.1 and jdk1.3 - 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]
Help: xml from a class with XSP
I am trying to do this: === ?xml version="1.0"?xsp:page xmlns:xsp="http://apache.org/xsp"page xsp:exprcom.plumcreek.junk.XSPTest.testMethod()/xsp:expr/page/xsp:page=== Here's the code for the class: === package com.plumcreek.junk;public class XSPTest {public static String testMethod(){ return "pThis space for rent./p";}}=== I am expecting this string: "pThis space for rent./p", but instead, what I get on my page is "lt;pgt;This space for rent.lt;/pgt;". Is there a way to tell XSP to not tweak the returned string to make it "xml-safe"? Environment: Win2K, jdk1.3.1, cocoon 2.0 Larry
RE: Help: xml from a class with XSP
If u use just xsp:expr, it will treat the o/p as parsed string , if you require the contents to be treated as a XML fragment, you need to do as listed below Include util logic sheet and use the util:* tags === ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsp xmlns:util=http://apache.org/xsp/util/2.0page util:include-exprutil:exprxsp:expr com.plumcreek.junk.XSPTest.testMethod()/xsp:expr/util:expr/util:include-expr /page/xsp:page === accordia, inc 34347 Maybird Circle Fremont, CA 94555 650 279 1137 [EMAIL PROTECTED] The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Accordia Inc. is neither liable for the proper and incomplete transmission of the information contained in this communication nor for any delay in its receipt -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:39 PM To: [EMAIL PROTECTED] Subject: Help: xml from a class with XSP I am trying to do this: === ?xml version=1.0? xsp:page xmlns:xsp=http://apache.org/xsppage xsp:exprcom.plumcreek.junk.XSPTest.testMethod()/xsp:expr /page/xsp:page === Here's the code for the class: === package com.plumcreek.junk; public class XSPTest { public static String testMethod(){ return pThis space for rent./p; } } === I am expecting this string: pThis space for rent./p, but instead, what I get on my page is lt;pgt;This space for rent.lt;/pgt;. Is there a way to tell XSP to not tweak the returned string to make it xml-safe? Environment: Win2K, jdk1.3.1, cocoon 2.0 Larry
Cocoon 2 and Dynamic SVG
Why is that even when cache objects are turned down to a minimum cocoon still takes up some file space in the work dir. I found 660 PCK extractor files in there this afternoon. I use the extractor quite extensively but I thought if Cocoon is told to cache only 5 objects it shouldn't go above this? Does anyone have any idea what settings I need to implement to stop cocoon taking up so much space. Thanks for your time. Bobby Koya - 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]
Most likely I'm being lazy...
Hi, You guys are experts. I've made this little cocoon app to display selected records from an xml data repository. The search criteria show up nicely in the url. But now how do i get the search terms *into* the url. In a web form, using the GET method, they automatically show up in the url encoded get string. But in cocoon, well, i don't know how to go from the web form to the url string. As an example, ...cocoon/jco/location/all/SEATTLE/CHICAGO/TAMPA~ROAD~RD searches for all records with location fields matching strings SEATTLE or CHACAGO or TAMPA but not ROAD or RD. Do i need to write javascript to put form field values into the url when the user clicks submit, or is there a better way of doing it server side. Most likely I'm just being lazy and should really read the examples again and study how they work. -- Best, Stephen Clarke - 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]
Does Bonebreaker sample still work with Cocoon 2.0.2?
[Vadim: I am trying to make it so Mozilla sends plain text email; I apologize from the bottom of my heart if I fail :-) ] I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02. I have been able to run the esql samples against both the built-in hsql DB and against my own mysql DB, so I know that I have *something* working :-) I have just downloaded bonebreaker.zip and unzipped it into %CATALINA_HOME%/webapps/cocoon/bonebreaker. I have made the changes to my main sitemap.xmap as specified on http://www.cocooncenter.de/cc/documents/resources/navigation/installation.html : map:pipeline !-- match the Bonebreaker homepage -- map:match pattern=bonebreaker map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match !-- match all other Bonebreaker pages -- map:match pattern=bonebreaker/** map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match /map:pipeline The problem is that when I go to http://localhost:8080/cocoon/bonebreaker/ I get a simple directory listing, not a Cocoon-rendered HTML page. Here is the access.log (slightly cleaned up): DEBUG (2002-03-29) 16:31.30:470 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' DEBUG (2002-03-29) 16:31.30:540 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap' Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/ New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Resolving 'stylesheets/system/directory2html.xsl' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/stylesheets/system/directory2html.xsl' Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/' Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ 'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds. So I tried going to http://localhost:8080/cocoon/bonebreaker/home/home.section but that gives me a 404. The access.log says: Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/home/home.section New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ WARN(2002-03-29) 16:31.46:663 [access](/cocoon/bonebreaker/home/home.section) HttpProcessor[8080][0]/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: /bonebreaker/home/home.section at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3175) at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489) 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:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
FW: Issues with sunRise authentication....
My original mail bounced back and hence I am resending it -Original Message- From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:49 PM To: '[EMAIL PROTECTED]' Subject: Issues with sunRise authentication Hello, I am running cocoon 2.0.1 on my machine locally My m/c name is chiths I 've a pipeline entry by name login, which is protected by LoginAction . If I address my m/c with localhost:8080, when it displays the resource , the URL gets changed to chiths:8080. When I access non protected resource, the URL server name remains Localhost. What I think is happening is the sunrise code is creating the URL the using inet address using java. Instead it should be using request,getServerName(). This is a Major Bug, because the internal server name and the Internet address of the production machines will be different and the internal server name will not be resolvable.. I have 1 more question, is Sunrise being supported at All, I have posted 3 - 4 messages and have not received any messages .back.. Has this been scrapped Logout issue: LogoutAction does not work. I am using the same handle foo-handler for logout also.Always get a Null Pointer exception .. ava.lang.NullPointerException at org.apache.cocoon.sunshine.sunrise.SunRise.logout(SunRise.java:1087) at org.apache.cocoon.sunshine.sunrise.acting.LogoutAction.act(LogoutAction. java:112) at org.apache.cocoon.www.sitemap_xmap.matchN10A1D(sitemap_xmap.java:12480) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:4060) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3114) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:184) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:159 ) at org.apache.cocoon.Cocoon.process(Cocoon.java:581) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:959) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 4) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1106) at java.lang.Thread.run(Thread.java:484) Thanks in advance,
Re: Does Bonebreaker sample still work with Cocoon 2.0.2?
...and following myself up... it turns out that if I just put the bonebreaker dir under %CATALINA_HOME%/webapps/cocoon/mount and edit bonebreaker/sitemap.xmap to have /cocoon/mount/bonebreaker as the base-url, then it works! (without editing the toplevel sitemap.xmap, even!) So the question now is, why does the recommended top-level sitemap.xmap information below *not* work? And why not make this the standard way to install bonebreaker? But in any case I'm happy now :-) Cheers! Rob At 04:36 PM 3/29/2002 -0800, Rob Jellinghaus wrote: [Vadim: I am trying to make it so Mozilla sends plain text email; I apologize from the bottom of my heart if I fail :-) ] I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02. I have been able to run the esql samples against both the built-in hsql DB and against my own mysql DB, so I know that I have *something* working :-) I have just downloaded bonebreaker.zip and unzipped it into %CATALINA_HOME%/webapps/cocoon/bonebreaker. I have made the changes to my main sitemap.xmap as specified on http://www.cocooncenter.de/cc/documents/resources/navigation/installation.html : map:pipeline !-- match the Bonebreaker homepage -- map:match pattern=bonebreaker map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match !-- match all other Bonebreaker pages -- map:match pattern=bonebreaker/** map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match /map:pipeline The problem is that when I go to http://localhost:8080/cocoon/bonebreaker/ I get a simple directory listing, not a Cocoon-rendered HTML page. Here is the access.log (slightly cleaned up): DEBUG (2002-03-29) 16:31.30:470 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' DEBUG (2002-03-29) 16:31.30:540 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap' Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/ New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Resolving 'stylesheets/system/directory2html.xsl' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/stylesheets/system/directory2html.xsl' Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/' Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ 'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds. So I tried going to http://localhost:8080/cocoon/bonebreaker/home/home.section but that gives me a 404. The access.log says: Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/home/home.section New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ WARN(2002-03-29) 16:31.46:663 [access](/cocoon/bonebreaker/home/home.section) HttpProcessor[8080][0]/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: /bonebreaker/home/home.section at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3175) at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489) 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:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Cocoon 2 and Dynamic SVG
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Why is that even when cache objects are turned down to a minimum cocoon still takes up some file space in the work dir. I found 660 PCK extractor files in there this afternoon. I use the extractor quite extensively but I thought if Cocoon is told to cache only 5 objects it in memory shouldn't go above this? Does anyone have any idea what settings I need to implement to stop cocoon taking up so much space. Turn off filesystem cache. *Read* cocoon.xconf Vadim Thanks for your time. Bobby Koya - 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: Does Bonebreaker sample still work with Cocoon 2.0.2?
From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]] ...and following myself up... it turns out that if I just put the bonebreaker dir under %CATALINA_HOME%/webapps/cocoon/mount and edit bonebreaker/sitemap.xmap to have /cocoon/mount/bonebreaker as the base-url, then it works! (without editing the toplevel sitemap.xmap, even!) So the question now is, why does the recommended top-level sitemap.xmap information below *not* work? May be you added this snippet in the wrong place. May be you added it after the last pipeline element. This last pipeline element has **/ match which shows directory listing. [Vadim: I am trying to make it so Mozilla sends plain text email; I apologize from the bottom of my heart if I fail :-) ] [Congrats, you have got it!] Vadim And why not make this the standard way to install bonebreaker? But in any case I'm happy now :-) Cheers! Rob At 04:36 PM 3/29/2002 -0800, Rob Jellinghaus wrote: [Vadim: I am trying to make it so Mozilla sends plain text email; I apologize from the bottom of my heart if I fail :-) ] I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02. I have been able to run the esql samples against both the built-in hsql DB and against my own mysql DB, so I know that I have *something* working :-) I have just downloaded bonebreaker.zip and unzipped it into %CATALINA_HOME%/webapps/cocoon/bonebreaker. I have made the changes to my main sitemap.xmap as specified on http://www.cocooncenter.de/cc/documents/resources/navigation/installati on.htm l : map:pipeline !-- match the Bonebreaker homepage -- map:match pattern=bonebreaker map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match !-- match all other Bonebreaker pages -- map:match pattern=bonebreaker/** map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match /map:pipeline The problem is that when I go to http://localhost:8080/cocoon/bonebreaker/ I get a simple directory listing, not a Cocoon-rendered HTML page. Here is the access.log (slightly cleaned up): DEBUG (2002-03-29) 16:31.30:470 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' DEBUG (2002-03-29) 16:31.30:540 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap' Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/ New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Resolving 'stylesheets/system/directory2html.xsl' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/stylesheets/system/directory2html.xsl' Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/' Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ 'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds. So I tried going to http://localhost:8080/cocoon/bonebreaker/home/home.section but that gives me a 404. The access.log says: Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/home/home.section New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ WARN(2002-03-29) 16:31.46:663 [access](/cocoon/bonebreaker/home/home.section) HttpProcessor[8080][0]/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: /bonebreaker/home/home.section at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:3175) at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:2489) 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:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFi lterChain.java:247) at
Re: Why isn't Cocoon making into the commerical world?
What is its direct competition? A variety of other content management systems, foremost of which is probably Zope (an open-source Python CMS with a good web UI but no XSL underpinnings). This is an evolving sector. If you look on Google for content management system or Java XSLT you will probably turn up rather more hits IMHO the main difficulty with Cocoon right now is how hard it is to learn. I am spending most of this week just coming to grips with the basics. It is *not* easy to dive right into the system and understand (say) exactly how the esql sample page gets converted into html (i.e. what exactly are all the steps of the pipeline, and where are they defined in the various sitemaps / logicsheets / stylesheets). Nor is it easy to know where to start when creating a new site, with a new CSS foundation and all new templates. I would love (and may work on developing) a starter web application under Cocoon, with its own local sitemap and its own templates... sort of a hello world webapp totally contained in one directory. Right now Cocoon is really best suited for programmers with lots of time to learn a new (albeit powerful) tool. In order to get wider adoption, Cocoon will need *even more* attention paid to making it easy for newbies to start working with it -- not only more tutorials along the lines of CTwiG, but also more (and more functional!) sample applications, and probably even more web-based management tools (since doing *all* Cocoon administration by editing XML files is not exactly easy -- try out Zope for an example of a different, simpler, approach). I do still like Cocoon, in theory, but the learning curve is daunting and it's still not clear I will be able to spend enough time on it to start getting good results. Cheers, Rob Rob, There's another product that I just stumbled upon called 4Suite/Server (www.fourthought.com) that's built with python. A project developer claimed that 4Suite is much easier to come to grips with than Cocoon. I, personally, don't have any experience with it, however, I'm going to give it a whirl later next week. Anthony - 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: Why isn't Cocoon making into the commerical world?
What is its direct competition? Someone in my local java users group recently advocated Struts - another apache project - over cocoon. Anyone have any comments? - 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: Cocoon 1.8.2
I use C1.8.2 with tomcat 3.2 - i've never been able to get C1.8.2 to work with tomcat 4 - marty - Original Message - From: Matus Krisztián To: [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 10:51 AM Subject: Cocoon 1.8.2 ***Sender : Matus Krisztián [EMAIL PROTECTED] *** Hello,I'm in need of your help. My problem with Cocoon is that I can't breath itto life. I've made a build with version 1.8.2 and put the JARs undertomcat4.0.1/lib.I've copied cocoon-1.8.2/samples to tomcat4.0.1/webapps/samples. After I've copied cocoon.properties to tomcat4.0.1/webapps/samples and made modifications to tomcat4.0.1/webapps/samples/web.xml:servlet servlet-nameorg.apache.cocoon.Cocoon/servlet-name servlet-classorg.apache.cocoon.Cocoon/servlet-class init-param param-nameproperties/param-name param-value/cocoon.properties/param-value /init-param/servletservlet-mapping servlet-nameorg.apache.cocoon.Cocoon/servlet-name url-pattern*.xml/url-pattern/servlet-mappingI'm receiving the following message with URLhttp://localhost.8080/samples/index.xml Publishing Engine could not be initialized. java.lang.RuntimeException: Error loading logicsheet at resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to java.lang.Exception: Resource not found or retrieving error. at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302) at org.apache.cocoon.framework.Manager.create(Manager.java:109) at org.apache.cocoon.framework.Router.init(Router.java:80) at org.apache.cocoon.framework.Manager.create(Manager.java:109) at org.apache.cocoon.Engine.init(Engine.java:179) at org.apache.cocoon.Engine.getInstance(Engine.java:232) at org.apache.cocoon.Cocoon.init(Cocoon.java:157) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484)<[EMAIL PROTECTED]>
Attn : SunRise developers: Identified 1 bug and fixed it , please clarify and do the same in the CVS
Hello, In Handler .java in the method Configure, there is a section of code, which is trying to build a fully referenced URI for the redirect URI. This Should not be done, the redirector takes care of this. I have commented out the section and this has the label /** Commented by Chiths And also I have added some System.out.println statements for debug because Handler does not implement Loggable. Could the owner try and implement Loggable interface for handler as it contains some juicy stuff, required for debugging.. I am attaching the modified Handler.java (CVS Head version). Please view it and comment if this is a mistake. Thanks in advance, Regds, Chiths Handler.java Description: java/ - 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: HTML Output Issues
Sorry for the long turn around, took an unexpected vacation. :) Unfortunately I've already tried the no-indent-strip-space-all-elements solution without success. I tried it again just to be sure and it still didn't work. Following are snippets from relevant files. I've truncated the attributes of the tags so line wrapping doesn't distract from the problem. All comments are also added. In case it matters I'm using a completely stock cocoon 2.0.1 under Tomcat 4.0.1 on RedHat 7.1. My content looks like this: document title!-- This is the Title --/title content !-- Some XHTML content -- /content /document My XSL looks like this: ?xml version=1.0 encoding=utf-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xml:space=preserve xsl:output indent=no / xsl:strip-space elements=* / xsl:template match=document html xmlns=http://www.w3.org/1999/xhtml; head titlexsl:value-of select=title//title !-- layout tables which are also improperly spacing -- xsl:value-of select=content/ !-- Then some popup menus, also improperly spacing -- div id=aboutnav class=where table border=0 cellpadding=0 cellspacing=0 width=116 tr tda href=...img name=mission src=...//a/td /tr tr tda href=...img name=mission src=...//a/td /tr ... /table /div /body /html /xsl:template /xsl:stylesheet The output like this: div class=where id=aboutnav table width=116 cellspacing=0 cellpadding=0 border=0 tr td a href=with attribs reordered img src=also with attribs reordered/ /a /td /tr ... Finally if it is relevant I'm using a nested sitemap: ?xml version=1.0? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; !-- === Components == -- map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:selectors default=browser/ map:matchers default=wildcard/ /map:components !-- === Pipelines === -- map:pipelines map:pipeline map:match pattern=**/*.jcp type=wildcard map:generate type=file src={1}/{2}.jcp/ map:transform type=xslt src={1}/template.jtp/ map:serialize/ /map:match /map:pipeline !-- There's another pipeline for unparsed content (images, etc), and another for unavailable content right here. -- /map:pipelines /map:sitemap Basically if the spacing in the stylesheet could be maintained into the output then it would work fine, but instead extra line returns are being placed at the end of every tag. Any way to stop this short of modifying the code in cocoon? Thanks, Corey On Tue, 2002-03-26 at 02:52, Bert Van Kets wrote: I had the same problem. Adding xsl:output indent=no / xsl:strip-space elements=* / right under the root node solved the problem. Every image sticks correctly to the previous one in the browser. All the tags follow one another. It's also a very good way to compress the HTML output. There's one drawback though: all the leading spaces are stripped too. So if you are relying on a space to separate text from an image you have to add a space using the xsl:text element. Make sure you don't have any JavaScript in your page or the lines from your code will be placed on 1 line too. Use external javascript files and everything is solved. Bert At 01:49 26/03/2002 -0800, you wrote: Rookie cocoon user. Asked this question about a week ago and got no answer, trying to rephrase it. I have very simple XML documents. I'm using a simple XSL to insert content (from the XML) into an XHTML skin. Works well except the resulting HTML is modified which breaks browser display compatibility (menu layout spacing is drastically, and incorrectly, changed). Example: Input: trtda href=somwhere.htmimg src=image.gif/a/td/tr Output: tr td a href=somwhere.htm img src=image.gif/ /a /td /tr Is there some way to keep the XHTML that is embedded in my XSL from being reformatted this way. I've tried messing with a variety of XML and XSL whitespace control techniques, but none with the desired result. Any help would be appreciated. Corey - 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
RE: Does Bonebreaker sample still work with Cocoon 2.0.2?
No, this was the *first* pipeline element. (Don't tell me that was wrong too! Thank goodness for /mount!) Cheers, Rob At 09:27 PM 3/29/2002 -0500, Vadim Gritsenko wrote: From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]] ...and following myself up... it turns out that if I just put the bonebreaker dir under %CATALINA_HOME%/webapps/cocoon/mount and edit bonebreaker/sitemap.xmap to have /cocoon/mount/bonebreaker as the base-url, then it works! (without editing the toplevel sitemap.xmap, even!) So the question now is, why does the recommended top-level sitemap.xmap information below *not* work? May be you added this snippet in the wrong place. May be you added it after the last pipeline element. This last pipeline element has **/ match which shows directory listing. [Vadim: I am trying to make it so Mozilla sends plain text email; I apologize from the bottom of my heart if I fail :-) ] [Congrats, you have got it!] Vadim And why not make this the standard way to install bonebreaker? But in any case I'm happy now :-) Cheers! Rob At 04:36 PM 3/29/2002 -0800, Rob Jellinghaus wrote: [Vadim: I am trying to make it so Mozilla sends plain text email; I apologize from the bottom of my heart if I fail :-) ] I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02. I have been able to run the esql samples against both the built-in hsql DB and against my own mysql DB, so I know that I have *something* working :-) I have just downloaded bonebreaker.zip and unzipped it into %CATALINA_HOME%/webapps/cocoon/bonebreaker. I have made the changes to my main sitemap.xmap as specified on http://www.cocooncenter.de/cc/documents/resources/navigation/installati on.htm l : map:pipeline !-- match the Bonebreaker homepage -- map:match pattern=bonebreaker map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match !-- match all other Bonebreaker pages -- map:match pattern=bonebreaker/** map:mount uri-prefix=bonebreaker check-reload=yes reload-method=synchron src=bonebreaker// /map:match /map:pipeline The problem is that when I go to http://localhost:8080/cocoon/bonebreaker/ I get a simple directory listing, not a Cocoon-rendered HTML page. Here is the access.log (slightly cleaned up): DEBUG (2002-03-29) 16:31.30:470 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' DEBUG (2002-03-29) 16:31.30:540 [access](/cocoon/bonebreaker/) HttpProcessor[8080][0]/AbstractEnvironment: Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap' Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/ New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Resolving 'stylesheets/system/directory2html.xsl' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/stylesheets/system/directory2html.xsl' Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/' Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/' Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ 'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds. So I tried going to http://localhost:8080/cocoon/bonebreaker/home/home.section but that gives me a 404. The access.log says: Changing Cocoon context from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix() to context(sitemap.xmap) and prefix() at URI bonebreaker/home/home.section New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/ Set the URI Prefix (OLD=, NEW=) Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/ WARN(2002-03-29) 16:31.46:663 [access](/cocoon/bonebreaker/home/home.section) HttpProcessor[8080][0]/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: /bonebreaker/home/home.section at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:3175) at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 4.0\work\localhost\cocoon\cocoon- files\org/apache/cocoon/www\sitemap_xmap.java:2489) 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