AccessControlException when requesting cocoon.war
Hello, I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE ref. server. I deploy the cocoon.war on my J2EE server and it seems OK. But when I request cocoon from my browser ( http://localhost:8000/cocoon) there is an exception: javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) 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.valves.CertificatesValve.invoke(CertificatesValve.java:246) 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.StandardContext.invoke(StandardContext.java:2343) 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.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) 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:174) 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:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:479) root cause: java.security.AccessControlException: access denied (java.io.FilePermission C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:267) at java.security.AccessController.checkPermission(AccessController.java:394) at java.lang.SecurityManager.checkPermission(SecurityManager.java:540) at java.lang.SecurityManager.checkRead(SecurityManager.java:885) at java.io.File.exists(File.java:541) at java.io.File.mkdirs(File.java:973) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:238) 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.valves.CertificatesValve.invoke(CertificatesValve.java:246) 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.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at
RE: AccessControlException when requesting cocoon.war
Thank you for the answer but the error permission seems to be in C:\j2sdkee1.3.1\repository\u68111\web\cocoon but there are no files in this directory!?! Sorry but I am a bit desoriented. I use the deploytool tool from Sun and normaly you just add the .war in an application (.ear) and you deploy it. There was never permissions problem. I work on Windows NT. It seems it's not a web access problem but a file access problem. Thank you Sylvain -Message d'origine- De: Paul Gilligan [mailto:[EMAIL PROTECTED]] Date: lundi, 10. juin 2002 15:45 À: [EMAIL PROTECTED] Objet: Re: AccessControlException when requesting cocoon.war check the permissions on the files that you installed, what user sis you install it as ? and what user are you running it as? on my systems I am installing as root and running under a nobody user group [EMAIL PROTECTED] wrote: Hello, I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE ref. server. I deploy the cocoon.war on my J2EE server and it seems OK. But when I request cocoon from my browser ( http://localhost:8000/cocoon) there is an exception: javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) 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.valves.CertificatesValve.invoke(CertificatesValve.java:246) 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.StandardContext.invoke(StandardContext.java:2343) 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.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) 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:174) 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:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:479) root cause: java.security.AccessControlException: access denied (java.io.FilePermission C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:267) at java.security.AccessController.checkPermission(AccessController.java:394) at java.lang.SecurityManager.checkPermission(SecurityManager.java:540) at java.lang.SecurityManager.checkRead(SecurityManager.java:885) at java.io.File.exists(File.java:541) at java.io.File.mkdirs(File.java:973) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:238) 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)
RE: AccessControlException when requesting cocoon.war
C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files doesn't exist. There is only C:\j2sdkee1.3.1\repository\u68111\web\cocoon. These directories have no restrictions but they belong to the administrator. Thank you -Message d'origine- De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Date: lundi, 10. juin 2002 17:12 À: [EMAIL PROTECTED] Objet: RE: AccessControlException when requesting cocoon.war From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Thank you for the answer but the error permission seems to be in C:\j2sdkee1.3.1\repository\u68111\web\cocoon C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files but there are no files in this directory!?! There are no any files because Cocoon can't put any. Give all permissions for this directory. Sorry but I am a bit desoriented. I use the deploytool tool from Sun and normaly you just add the .war in an application (.ear) and you deploy it. There was never permissions problem. Cocoon needs temp (work) directory. I work on Windows NT. It seems it's not a web access problem but a file access problem. Yep. Vadim Thank you Sylvain -Message d'origine- De: Paul Gilligan [mailto:[EMAIL PROTECTED]] Date: lundi, 10. juin 2002 15:45 À: [EMAIL PROTECTED] Objet: Re: AccessControlException when requesting cocoon.war check the permissions on the files that you installed, what user sis you install it as ? and what user are you running it as? on my systems I am installing as root and running under a nobody user group [EMAIL PROTECTED] wrote: Hello, I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE ref. server. I deploy the cocoon.war on my J2EE server and it seems OK. But when I request cocoon from my browser ( http://localhost:8000/cocoon) there is an exception: javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6 15) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java :214) 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 3) 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.ja va: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.authenticator.SingleSignOn.invoke(SingleSignOn.java: 368) 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:1 74) 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:10 12) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1107) at java.lang.Thread.run(Thread.java:479) root cause: java.security.AccessControlException: access denied (java.io.FilePermission C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files read) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:2 67) at java.security.AccessController.checkPermission(AccessController.java:394 ) at
Cocoon and J2EE
Hello, How to use Cocoon in a J2EE project?? I have created an app.cocoon_war.ear Enterprise ARchive which contains the cocoon.war (with web context = cocoon). It seems to work because I can see the Cocoon welcome page when I request http://localhost/cocoon. Now I want to test a simple Hello World program. I have these files: sitemap.xmap hello.xsl helloworld.xml Do I put these files in a Web ARchive (.war)? Do I put these files or the Web ARchive in the app.cocoon_war.ear Enterprise ARchive or in another Enterprise ARchive? Is it necessary to have the cocoon.war in a Enterprise ARchive to work with Cocoon? Thank you very much Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and J2EE
My cocoon.war comes with the binary distribution. I thought that this cocoon.war was necessary to work with Cocoon!?! My question is: What is necessary to work with Coccon and do you have to include it in each Enterprise ARchive you create?? Thank you Sylvain -Message d'origine- De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Date: mercredi, 12. juin 2002 15:57 À: [EMAIL PROTECTED] Objet: RE: Cocoon and J2EE From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Hello, How to use Cocoon in a J2EE project?? I have created an app.cocoon_war.ear Enterprise ARchive which contains the cocoon.war (with web context = cocoon). It seems to work because I can see the Cocoon welcome page when I request http://localhost/cocoon. Now I want to test a simple Hello World program. I have these files: sitemap.xmap hello.xsl helloworld.xml Do I put these files in a Web ARchive (.war)? Yes. Do I put these files or the Web ARchive in the app.cocoon_war.ear Enterprise ARchive or in another Enterprise ARchive? Do you want to create new enterprise app or modify one you already have? Is it necessary to have the cocoon.war in a Enterprise ARchive to work with Cocoon? What is cocoon.war? One which comes with distribution, with samples and lots of optional components? You can create own war with customized set of components and no samples and name it as you want. Vadim Thank you very much Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and J2EE
OK, I see. Thank you Olivier. Finally if I want the basic stuff I need cocoon.jar (and others? Do you exist a description list of the additionnal libraries?) in my something.war (or cocoon.war). But do you have to include this cocoon.war in each Enterprise ARchive?? Thank you Sylvain -Message d'origine- De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Date: mercredi, 12. juin 2002 16:29 À: '[EMAIL PROTECTED]' Objet: RE: Cocoon and J2EE My cocoon.war comes with the binary distribution. I thought that this cocoon.war was necessary to work with Cocoon!?! My question is: What is necessary to work with Coccon and do you have to include it in each Enterprise ARchive you create?? Thank you Sylvain Vadim will tell if I am wrong, but Cocoon is a servlet, ie a Java class. It needs several Java dependencies for XML parsing and other fundamental things to work properly. Additionnal Java libraries can be added to extend its functionnalities (fop for PDF rendering, batik for SVG and graphics management). They are not mandatory. If they are needed in your application, you have to list them in cocoon.xconf and/or sitemap.xmap. For example, for wikiLand, I needed the basic Cocoon stuff and the chaperon parser. So I removed all the .jar uneeded that are usually shipped with Cocoon (big) archive, and added chaperon.jar. If you want, you can take the .war available at the homepahe of wikiLand, and study it. In fact, to remove the dependencies of Chaperon, simply have a look at the beginning the sitemap.xmap and comment everything that talks about chaperon or wiki-parser. Then you will have the skeleton for any Cocoon application. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and J2EE
Where can I find the WikiLand? Thank you Sylvain -Message d'origine- De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Date: mercredi, 12. juin 2002 16:57 À: '[EMAIL PROTECTED]' Objet: RE: Cocoon and J2EE OK, I see. Thank you Olivier. Finally if I want the basic stuff I need cocoon.jar (and others? Do you exist a description list of the additionnal libraries?) in my something.war (or cocoon.war). But do you have to include this cocoon.war in each Enterprise ARchive?? Thank you Sylvain I think that the jars in wikiland.war (minus chaperon.jar) are the basic stuff. I do not know what a Entreprise Archive is, but in any .war you make you need all the .jars of Cocoon. A .war is a hermetic context, with its own classes. If a .ear is (simply) an enhanced .war, then in any .ear that will embed Cocoon, you need to put all the .jar. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon and Struts model 2x
Hello, Anyone has implemented a web application with Struts model 2x and Cocoon?? I thought to start a project with this architecture: Middleware: J2EE EJB server (JBoss) with Tomcat Servlet container. EJB classes to access to the data and more. Web front-end: Struts model 2x and Cocoon. Struts model 2x to have a MVC framework which generate XML pages and Cocoon to process the XML pages to any format (HTML, WML, PDF, etc...). Has anyone an experience of it?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1 deployment error
Hello, I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page (http://localhost:8000/cocoon) there is an error: type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) 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.valves.CertificatesValve.invoke(CertificatesValve.java:246) 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.StandardContext.invoke(StandardContext.java:2343) 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.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) 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:174) 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:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:479) root cause java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure signature: (Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407) 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.valves.CertificatesValve.invoke(CertificatesValve.java:246) 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.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at
RE: Cocoon 2.1 deployment error
I think you use the wrong version of avalon-framework lib. = Where is this lib in Cocoon sources? = What is the right version? = Where can I find it? Thank you Sylvain -Message d'origine- De: Stephan Michels [mailto:[EMAIL PROTECTED]] Date: mardi, 2. juillet 2002 15:51 À: [EMAIL PROTECTED] Objet: Re: Cocoon 2.1 deployment error On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote: Hello, I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page (http://localhost:8000/cocoon) there is an error: type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. root cause java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure signature: (Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) [...] at java.lang.Thread.run(Thread.java:479) I think you use the wrong version of avalon-framework lib. Stephan Michels. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error deploying cocoon
Hello, Maybe a java security problem. Cocoon can't write something on your disk. I had the same think. Check the java policy files. Sylvain -Message d'origine- De: icewind [mailto:[EMAIL PROTECTED]] Date: mardi, 2. juillet 2002 20:53 À: [EMAIL PROTECTED] Objet: error deploying cocoon Hello, Im using Debian with the tomcat4 package. The tomcat samples work. I got the lastest binary version of cocoon from the web site and put the cocoon.war file in the $TOMCAT_HOME/webapps directory. When I restart tomcat, I watch the tomcat log file and I get what is below. How can I fix this and get cocoon to deploy correctly? Thanks. --begin--- 2002-07-02 14:32:15 Cocoon2: init 2002-07-02 14:32:15 StandardContext[/cocoon]: Servlet /cocoon threw load() exception javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.security.AccessControlException: access denied (java.util.PropertyPermission javax.xml.parsers.SAXParserFactory read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278) at java.lang.System.getProperty(System.java:560) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:214) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at
RE: Cocoon 2.1 deployment error
I have checked the Avalon version and it is the right one (20020627)! Is this component really essential? What is its task? Have you a solution? Thank you very much Sylvain -Message d'origine- De: Stephan Michels [mailto:[EMAIL PROTECTED]] Date: mardi, 2. juillet 2002 17:13 À: [EMAIL PROTECTED] Objet: RE: Cocoon 2.1 deployment error On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote: I think you use the wrong version of avalon-framework lib. = Where is this lib in Cocoon sources? xml-cocoon2/lib/core/avalon-framework-20020627.jar = What is the right version? 20020627 = Where can I find it? xml-cocoon2/lib/core/ Remember 2.1 is not yet released, Stephan Michels. -Message d'origine- De: Stephan Michels [mailto:[EMAIL PROTECTED]] On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote: Hello, I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page (http://localhost:8000/cocoon) there is an error: type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. root cause java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure signature: (Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) [...] at java.lang.Thread.run(Thread.java:479) I think you use the wrong version of avalon-framework lib. Stephan Michels. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cant find avalon conponents
Hello, I have the same problem and all jar files are in the lib directory. Any idea? Thank you Sylvain -Message d'origine- De: Themba Mbatha [mailto:[EMAIL PROTECTED]] Date: mercredi, 3. juillet 2002 08:33 À: '[EMAIL PROTECTED]' Objet: RE: cant find avalon conponents Make sure that all the jar files that came with Cocoon are in the lib directory ($TOMCAT_HOME/webapps/cocoon/WEB-INF/lib). -Original Message- From: icewind [ mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 10:49 To: [EMAIL PROTECTED] Subject: cant find avalon conponents Hello, I installed the cocoon war file in the webapps dir of tomcat (tomcat works) and when I tried to access cocoon, I got a really big error message starting with the following: description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 22, column 49: cannot access class Component; file org/apache/avalon/framework/component/Component.class not found Line 23, column 53: cannot access class Configurable; file this goes on and on with all the components in avalon not being found... When I took a look in tomcat's work directory, i did find the avalon jars in localhost/cocoon/WEB-INF. Im not sure how to fix this problem.. anyone know how to get cocoon (or tomcat) to see the avalon jars it cant seem to see now? Thanks. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Redirect Apache Requests to Tomcat
I have checked the mod_webapp but it seems to work only with Apache 1.x and not for Apache 2.0! Try the mod_jk. These modules and the connection problems between Apache and Tomcat are not well documented. Many users have this problem. Try the Apache or Tomcat mailing lists. Sylvain -Message d'origine- De: yuryx [mailto:[EMAIL PROTECTED]] Date: jeudi, 4. juillet 2002 11:33 À: [EMAIL PROTECTED] Objet: Re: Redirect Apache Requests to Tomcat Thomas Garger wrote: Hi! I have Cocoon 2.0.2 running under Tomcat on port 8080. My Homepage is called with the following URL (http://MyServer-IP:8080/cocoon/myhomepage). I also have a domain-name (http://www.MyDomainName.at )where i put the DNS to the IP of my Server. But every time someone want to call my homepage, he has to insert the following (http://www.MyDomainName.at:8080/cocoon/myhomepage). That is bad. And thats my intension: --- I want to run Apache Web-Server, which is listening on port 80. So my question ist - can i configure Apache Web-Server and Tomcat in this way, that every request, that comes to the Apache Web-Server is redirectedt to Tomcat (for example - someone calls http://www.MyDomainName.at he calls the Apache Web-Server - this Server gets the sites from Tomcat and displays the content). if someone needs further information, please tell me. thanks greetings, chris - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Try to install mod_webapp module and configure the warp connection on Tomcat and Apache sides See also http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html Regards. Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon and CLASSPATH
Hello, How to check my classpath in my Cocoon project? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon status page ??
Hello, If you deploy an Enterprise ARchive (.ear, containing the cocoon.war) you have to add a web context in the deploy conf. file application.xml called cocoon. Sylvain -Message d'origine- De: Artur Bialecki [mailto:[EMAIL PROTECTED]] Date: mardi, 9. juillet 2002 17:46 À: [EMAIL PROTECTED] Objet: Cocoon status page ?? [ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ] I deploy the cocoon servlet as part of a j2ee application which uses other servlets as well. So, I don't have the / mapped to cocoon (just *.xsp and *.xml). How can I access Cocoons status page normally accessed with /cocoon/status Thanks, Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pipeline error
Hello, I have a pipeline error when I try to access to the Cocoon samples: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Failed to execute pipeline. More precisely: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException Anyone has an idea? How can I debug the sitemap? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File generator problem (fetch from an URI)
Hello, As seen in the Cocoon book from Carsten and Matthew I want to fetch some information from the URI http://linuxtoday.com/backend/biglt.rss; with the File Generator. The sitemap (simplified) looks like: map:match pattern=linuxtoday map:generate src=http://linuxtoday.com/backend/biglt.rss/ map:transform src=portal/styles/rss091.xsl/ map:serialize type=html/ /map:match When I execute the pipeline, the browser returns an error after 1 minute: type: internal-server-error message: Exception during processing of http://p.moreover.com/cgi-local/page?index_health+rss description: org.apache.cocoon.ProcessingException: Exception during processing of http://p.moreover.com/cgi-local/page?index_health+rss: java.net.ConnectException: Operation timed out: connect sender: org.apache.cocoon.servlet.CocoonServlet source: Cocoon servlet I run Cocoon in my machine and it is behind a firewall. I use a proxy server to connect to internet. Is it a connection problem? Anyone had the same problem? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
I have add this line: set -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 to the startup script, just before the tomcat start. But it doesn't work. Are there anything else to configure? Thank you Sylvain -Message d'origine- De: Steven Noels [mailto:[EMAIL PROTECTED]] Date: mardi, 8. octobre 2002 16:24 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: I run Cocoon in my machine and it is behind a firewall. I use a proxy server to connect to internet. Is it a connection problem? Yup - you should set -Dhttp.proxyHost and http.proxyPort in your Tomcat startup script http://java.sun.com/docs/books/tutorial/networking/urls/_setProxy.html see Firewall problems on http://jakarta.apache.org/jetspeed/site/faq.html /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
what do you mean about the java command in the tomcat startup script? Sylvain -Message d'origine- De: Steven Noels [mailto:[EMAIL PROTECTED]] Date: mardi, 8. octobre 2002 17:13 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: I have add this line: set -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 to the startup script, just before the tomcat start. But it doesn't work. Are there anything else to configure? you should add those as arguments to the java command in your tomcat startup script, or as a CATALINA_OPTS/TOMCAT_OPTS environment variable set CATALINA_OPTS=-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
Thank you Steve, and sorry for my beginner's question. But by me: Here the line that start Tomcat in my startup.bat script: call %_TC_BIN_DIR%\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9 which launch the tomcat.bat script with the parameter start. You speak about a java command but it seems it is in the tomcat.bat script. Should I modify the tomcat.bat? I would prefer to modify the startup.bat! But what is the command in this case? I have also tried to add a CATALINA_OPTS environment variable with the value -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't work. Maybe a proxy access problem?!? Thank you very much Sylvain -Message d'origine- De: Steven Noels [mailto:[EMAIL PROTECTED]] Date: mardi, 8. octobre 2002 20:28 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: what do you mean about the java command in the tomcat startup script? I assume you run Tomcat using some startup script (batch file), %CATALINA_HOME%\bin\startup.bat comes with the distribution. That script starts a Java application, where you can set an HTTP proxy using commandline parameters (-Dhttp.proxyPort etc...) They made it easy to add those parameters since you can also store them in an environment variable called CATALINA_OPTS, which is added to the line in the %CATALINA_HOME%\bin\startup.bat that starts Tomcat: %_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap %2 %3 %4 %5 %6 %7 %8 %9 start OK now? /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File generator problem (fetch from an URI)
OK, now it works! I use Tomcat 3.3 and I have to use TOMCAT_OPTS!! I have added an environment variable like: TOMCAT_OPTS = -DproxySet=true -DproxyHost=proxy.swissptt.ch -DproxyPort=8080 and it works. Thank you all of you Sylvain -Message d'origine- De: Ilya A. Kriveshko [mailto:[EMAIL PROTECTED]] Date: mercredi, 9. octobre 2002 14:41 À: [EMAIL PROTECTED] Objet: Re: File generator problem (fetch from an URI) [EMAIL PROTECTED] wrote: Should I modify the tomcat.bat? I would prefer to modify the startup.bat! But what is the command in this case? I have also tried to add a CATALINA_OPTS environment variable with the value -Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't work. Maybe a proxy access problem?!? I missed the beginning of this post, but let me give it a try: 1) I don't believe you should specify the protocol when specifying the proxy host. The protocol is implied by the property that you are setting: http.proxyHost. So, try using -Dhttp.proxyHost=proxy.blabla.com (drop the 'http://' part). 2) If you are using Tomcat 4, use CATALINA_OPTS environment variable, if you are using Tomcat 3.x, use TOMCAT_OPTS. One of them should work for you. Sorry if that was obvious. -- Ilya - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
example in the Cocoon book
Hello, I'm reading the Cocoon book written by Matthew and Carsten and one example in it doesn't work. The pipeline fragment is: 1. map:pipeline 2. map:match pattern=download 3. map:act type=request 4. map:parameter name=parameters value=true/ 6. map:act type=resource-exists 7. map:parameter name=url value=download/{file}/ 8. map:read src=download/{file}/ 9. /map:act 10.map:generate src=filenotfound.xml/ 11.map:transform src=filenotfound2html.xsl/ 12.map:serialize/ 13./map:act 14./map:match 15./map:pipeline All seem to work except the line 8. Cocoon detect that the {file} exists (line 7) but it can't read it (line 8). It returns a HTTP error 404 (file not found). Anyone has an idea? How to check (debug) the value {file}? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: example in the Cocoon book
So, it works if I replace {file} by the name of the file. We can say that is a value substitution problem!? Sylvain -Message d'origine- De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] Date: jeudi, 10. octobre 2002 10:46 À: Thévoz Sylvain, IT-DCS-CPS-CLI-DAR Cc: [EMAIL PROTECTED] Objet: Re: example in the Cocoon book On Thursday 10 October 2002 10:35, [EMAIL PROTECTED] wrote: Here you have the root.log: org.apache.cocoon.ResourceNotFoundException: Resource not found file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/download at org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:152) at org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:134) at . . . Looks like the ResourceReader is trying to read file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/download instead of your cox.bmp file? To isolate the problem, I'd try replacing map:read src=download/{file}/ with map:read src=download/cox.bmp/ To find out whether the problem lies in ResourceReader or in the sitemap variable substition. -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: example in the Cocoon book
Thank you Matthew, but could you explain why!? Is the line 7. map:parameter name=url value=download/{file}/ is correct? Thank you Sylvain -Message d'origine- De: Matthew Langham [mailto:[EMAIL PROTECTED]] Date: jeudi, 10. octobre 2002 11:17 À: [EMAIL PROTECTED] Objet: RE: example in the Cocoon book Hi, guess what - this is a bug in the book :). 8. map:read src=download/{file}/ That line should read: map:read src=download/{../file}/ Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 10:05 AM To: [EMAIL PROTECTED] Subject: example in the Cocoon book Hello, I'm reading the Cocoon book written by Matthew and Carsten and one example in it doesn't work. The pipeline fragment is: 1. map:pipeline 2. map:match pattern=download 3. map:act type=request 4. map:parameter name=parameters value=true/ 6. map:act type=resource-exists 7. map:parameter name=url value=download/{file}/ 8. map:read src=download/{file}/ 9. /map:act 10.map:generate src=filenotfound.xml/ 11.map:transform src=filenotfound2html.xsl/ 12.map:serialize/ 13./map:act 14./map:match 15./map:pipeline All seem to work except the line 8. Cocoon detect that the {file} exists (line 7) but it can't read it (line 8). It returns a HTTP error 404 (file not found). Anyone has an idea? How to check (debug) the value {file}? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: example in the Cocoon book
Thank you Matthew for your explanation, it works fine. And your book is really the best reference for Cocoon I have seen. Sylvain -Message d'origine- De: Matthew Langham [mailto:[EMAIL PROTECTED]] Date: jeudi, 10. octobre 2002 11:33 À: [EMAIL PROTECTED] Objet: RE: example in the Cocoon book Thank you Matthew, but could you explain why!? Sure :-) 1. map:pipeline 2. map:match pattern=download 3. map:act type=request 4. map:parameter name=parameters value=true/ 6. map:act type=resource-exists 7. map:parameter name=url value=download/{file}/ 8. map:read src=download/{../file}/ 9. /map:act 10.map:generate src=filenotfound.xml/ 11.map:transform src=filenotfound2html.xsl/ 12.map:serialize/ 13./map:act 14./map:match 15./map:pipeline This has to do with the nesting of components. Each time a component is nested inside another one we need to go up the tree. Notice how the resource-exists action is nested inside the request action. Also notice that the Reader is inside the resource-exists action. Ok, now - the map:parameter attribute of the resource-exists action belongs to it - so it is at the same level and we can use {file} to access the parameter that the request action provides to the sitemap. The Reader is however underneath or inside the resource-exists action, so it needs to go up one step to access the same file parameter. This was the non-programmer explanation. Carsten or others can provide a perhaps more exact explanation. Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: RE: example in the Cocoon book Thank you Matthew, but could you explain why!? Is the line 7. map:parameter name=url value=download/{file}/ is correct? Thank you Sylvain -Message d'origine- De: Matthew Langham [mailto:[EMAIL PROTECTED]] Date: jeudi, 10. octobre 2002 11:17 À: [EMAIL PROTECTED] Objet: RE: example in the Cocoon book Hi, guess what - this is a bug in the book :). 8. map:read src=download/{file}/ That line should read: map:read src=download/{../file}/ Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 10:05 AM To: [EMAIL PROTECTED] Subject: example in the Cocoon book Hello, I'm reading the Cocoon book written by Matthew and Carsten and one example in it doesn't work. The pipeline fragment is: 1. map:pipeline 2. map:match pattern=download 3. map:act type=request 4. map:parameter name=parameters value=true/ 6. map:act type=resource-exists 7. map:parameter name=url value=download/{file}/ 8. map:read src=download/{file}/ 9. /map:act 10.map:generate src=filenotfound.xml/ 11.map:transform src=filenotfound2html.xsl/ 12.map:serialize/ 13./map:act 14./map:match 15./map:pipeline All seem to work except the line 8. Cocoon detect that the {file} exists (line 7) but it can't read it (line 8). It returns a HTTP error 404 (file not found). Anyone has an idea? How to check (debug) the value {file}? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: example in the Cocoon book
Not so important but in page 155, figure 6.5, are these two notations correct: 1. map:action-setname=myactionset 2. map:act set=,,myactionset Sylvain -Message d'origine- De: Matthew Langham [mailto:[EMAIL PROTECTED]] Date: vendredi, 11. octobre 2002 13:20 À: [EMAIL PROTECTED] Objet: RE: example in the Cocoon book Thanks, there is now an errata page online at: http://radio.weblogs.com/0103021/categories/bookErrata/ If you have anything to add -let us know. Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: RE: example in the Cocoon book Thank you Matthew for your explanation, it works fine. And your book is really the best reference for Cocoon I have seen. Sylvain -Message d'origine- De: Matthew Langham [mailto:[EMAIL PROTECTED]] Date: jeudi, 10. octobre 2002 11:33 À: [EMAIL PROTECTED] Objet: RE: example in the Cocoon book Thank you Matthew, but could you explain why!? Sure :-) 1. map:pipeline 2. map:match pattern=download 3. map:act type=request 4. map:parameter name=parameters value=true/ 6. map:act type=resource-exists 7. map:parameter name=url value=download/{file}/ 8. map:read src=download/{../file}/ 9. /map:act 10.map:generate src=filenotfound.xml/ 11.map:transform src=filenotfound2html.xsl/ 12.map:serialize/ 13./map:act 14./map:match 15./map:pipeline This has to do with the nesting of components. Each time a component is nested inside another one we need to go up the tree. Notice how the resource-exists action is nested inside the request action. Also notice that the Reader is inside the resource-exists action. Ok, now - the map:parameter attribute of the resource-exists action belongs to it - so it is at the same level and we can use {file} to access the parameter that the request action provides to the sitemap. The Reader is however underneath or inside the resource-exists action, so it needs to go up one step to access the same file parameter. This was the non-programmer explanation. Carsten or others can provide a perhaps more exact explanation. Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: RE: example in the Cocoon book Thank you Matthew, but could you explain why!? Is the line 7. map:parameter name=url value=download/{file}/ is correct? Thank you Sylvain -Message d'origine- De: Matthew Langham [mailto:[EMAIL PROTECTED]] Date: jeudi, 10. octobre 2002 11:17 À: [EMAIL PROTECTED] Objet: RE: example in the Cocoon book Hi, guess what - this is a bug in the book :). 8. map:read src=download/{file}/ That line should read: map:read src=download/{../file}/ Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 10:05 AM To: [EMAIL PROTECTED] Subject: example in the Cocoon book Hello, I'm reading the Cocoon book written by Matthew and Carsten and one example in it doesn't work. The pipeline fragment is: 1. map:pipeline 2. map:match pattern=download 3. map:act type=request 4. map:parameter name=parameters value=true/ 6. map:act type=resource-exists 7. map:parameter name=url value=download/{file}/ 8. map:read src=download/{file}/ 9. /map:act 10.map:generate src=filenotfound.xml/ 11.map:transform src=filenotfound2html.xsl/ 12.map:serialize/ 13./map:act 14./map:match 15./map:pipeline All seem to work except the line 8. Cocoon detect that the {file} exists (line 7) but it can't read it (line 8). It returns a HTTP error 404 (file not found). Anyone has an idea? How to check (debug) the value {file}? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [newbie] wml serializer
Are you sure you run Cocoon with the sitemap you have changed (and not the old one). For the development phase, change the sitemap reloading method to synchron in the cocoon.xconf file. Sylvain -Message d'origine- De: Zein Dowe [mailto:[EMAIL PROTECTED]] Date: vendredi, 11. octobre 2002 11:58 À: [EMAIL PROTECTED] Objet: [newbie] wml serializer Hi! I wrote some files in xml and some xsl files to transform them into html or wml, whichever device did the request. So everything works fine with jakarta-tomcat 4.0.1 cocoon 2.0.1. Now I took the files in an environment that uses jakarta-tomcat 4.1.10 cocoon 2.0.3. I made the same sitemap entries. Html output works fine, but when I use a Wap device the requested document is empty. If I change the serializer from wml to html in the sitemap I receive the correct wml code in my document. So did anybody has a suggestion what I could have done wrong, that cause the wml serialization to fail? Regards, Zein -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon and hsqldb
Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
Thank you Konstantin, I have this message: Server 1.6 is running. Is there a console where I can execute queries? Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 10:50 À: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon and hsqldb
I have found a script file that creates tables and entries in the default Cocoon example database, you can find this file here: \WEB-INF\db\cocoondb.script Now all work with HSQLDB! Has someone tried to connect Cocoon to a Microsoft SQL Server database? I'm looking for a database URL connection example. Thank you Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 11:02 á: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb From: [EMAIL PROTECTED] Thank you Konstantin, I have this message: Server 1.6 is running. Yes, it's the HSQLDB. Is there a console where I can execute queries? Have no idea here. Try to search for some tools for HSQLDB. I don't know if there is anything like that is bundled with Cocoon. KP Sylvain -Message d'origine- De: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 10:50 á: '[EMAIL PROTECTED]' Objet: RE: Cocoon and hsqldb It is started automatically when Cocoon is loaded. Usually, you can see a message like: Server started. Press Ctrl+C to shutdown in console window - it is the HSQLDB message. If don't get a similar message then check logs to see what's wrong. -- Konstantin Piroumian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: Cocoon and hsqldb Hello everybody, I try to run a Cocoon example with the sql transformer and I use the hsqldb database included in Cocoon distribution for this. But how can I start this db? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TR: Cocoon and hsqldb
Thank you for all your replies! At the moment for the development phase, I use the JDBC driver provided by Microsoft. It is not very fast but it works. For information the driver is: Microsoft SQL Server 2000 Driver for JDBC. I use the URL: jdbc:microsoft:sqlserver:your_server:1433:DatabaseName=your_database;SelectMethod=cursor;User=username;Password=password You don't need to specify the JDBC driver (com.microsoft. ...); 1433 is the default port number. This URL works fine. Sylvain -Message d'origine- De: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]] Date: lundi, 14. octobre 2002 11:26 á: [EMAIL PROTECTED]; ThÊvoz Sylvain, IT-DCS-CPS-CLI-DAR Objet: Re: Cocoon and hsqldb On Monday 14 October 2002 11:18, [EMAIL PROTECTED] wrote: . . . Has someone tried to connect Cocoon to a Microsoft SQL Server database? I'm looking for a database URL connection example. . . . If you're courageous you can use the JDBC-ODBC bridge for this, but last time I checked it was fairly limited and funky (or do they have native JDBC now?). I don't have an URL handy but you should find it in the JDBC-ODBC samples. I've also used www.inetsoftware.de's excellent (commercial) drivers for MS SQL, you'd then use a JDBC URL like: jdbc:inetdae:your_server:1433?database=your_db A nice utility to test these URLs and JDBC drivers is DBVisualizer, http://www.minq.se/products/dbvis/info.html Hope this helps. -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSP error
Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp=http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP error
Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP error
This problem looks very strange. When this problem appended, I tried to test a simple helloworld application (without XSP): map:pipeline map:match pattern=helloworld map:generate src=helloworld.xml/ map:transform src=helloworld2html.xsl/ map:serialize/ /map:match /map:pipeline and the result was a HTML page which looks like: -html -body h1Hello World/h1 /body /html The HTML tags wasn't interpreted! It's very strange. I have reloaded Tomcat three or four times and now the helloworld example above AND the XSP helloworld example (with the xml serializer) work very well. Now I have another XSP problem: Error: 500 Location: /cocoon/logicsheettest Internal Servlet Error: java.lang.IllegalAccessError: try to access method org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(Lorg/apache/cocoon/components/language/markup/AbstractMarkupLanguage$LanguageDescriptor;Ljava/lang/String;Lorg/apache/cocoon/environment/SourceResolver;)V from class org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter.processingInstruction(XSPMarkupLanguage.java:352) at org.xml.sax.helpers.XMLFilterImpl.processingInstruction(XMLFilterImpl.java:651) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFilter.processingInstruction(XSPMarkupLanguage.java:222) at org.apache.xerces.parsers.SAXParser.processingInstruction(SAXParser.java:1537) at org.apache.xerces.validators.common.XMLValidator.callProcessingInstruction(XMLValidator.java:1696) etc... No idea what it is! Thank you Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:42 À: [EMAIL PROTECTED] Objet: RE: XSP error Hi, with IE 6.0 should work.. no idea Ruben |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 02:26 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: RE: XSP error | --| Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml
Cocoon components list
Hello, I have just finished to read the Carsten and Matthew Cocoon book. I recommend this book to all of the persons who want to start in Cocoon. In the book there is a part that is very useful for Cocoon users (I think): the Cocoon components list (Appendix A). But the book lists the components that we are most likely using but there are not all components! Are there somewhere a complete list of all the components (with the Cocoon version which include the component)?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2.1-dev authentication sample doesn't work
I have do that two times but there is still the same error. Any ideas would be greatly appreciated. Thanks in advance Sylvain -Message d'origine- De: Antonio Gallardo Rivera [mailto:agallardo;agsoftware.dnsalias.com] Date: jeudi, 17. octobre 2002 17:21 À: [EMAIL PROTECTED] Objet: Re: 2.1-dev authentication sample doesn't work Build with this command two times: ./build.sh -Dinclude.webapp.libs=true -Dinclude.scratchpad.libs=true installwar the installwar is optional, you can also use webapp, etc. Antonio Gallardo El Jueves, 17 de Octubre de 2002 09:05, [EMAIL PROTECTED] escribió: Hello, I have deleted the cocoon directory in Tomcat, build the source for the second times and re-deploy the cocoon.war. There is the same error! Did I do something wrong? Thank you Sylvain -Message d'origine- De: Antonio Gallardo Rivera [mailto:agallardo;agsoftware.dnsalias.com] Date: jeudi, 17. octobre 2002 16:38 À: [EMAIL PROTECTED] Objet: Re: 2.1-dev authentication sample doesn't work Sorry, I misspelled it. :) Compile the sources two times. The the CVS 2.1 version will work fine. Antonio Gallardo El Jueves, 17 de Octubre de 2002 08:28, Antonio Gallardo Rivera escribió: There is a bug in the build process, compiled it two times. Then it will work. Antonio Gallardo El Jueves, 17 de Octubre de 2002 08:16, [EMAIL PROTECTED] escribió: Hello, I have just installed the last dev snapshot of Cocoon and try to run the samples. All work fine except the authentication sample. This error appears: Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error --- -- -- - type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java: 24 3) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic at io nFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil te rC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve .j ava:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve .j ava:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 47 ) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a: 18 0) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV al ve .java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a: 17 0) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 8) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .j av a:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j av a: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor. ja va :1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java :1 12 5) at java.lang.Thread.run(Thread.java:479) I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0. Is there something to install before working with the Cocoon authentication mechanism? Thank you Sylvain - Please check that your question has not already been
2.1-dev authentication sample doesn't work
Hello, I have just installed the last dev snapshot of Cocoon and try to run the samples. All work fine except the authentication sample. This error appears: Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106) 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:190) 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:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 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:468) 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:174) 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:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0. Is there something to install before working with the Cocoon authentication mechanism? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2.1-dev authentication sample doesn't work
Hello, I have deleted the cocoon directory in Tomcat, build the source for the second times and re-deploy the cocoon.war. There is the same error! Did I do something wrong? Thank you Sylvain -Message d'origine- De: Antonio Gallardo Rivera [mailto:agallardo;agsoftware.dnsalias.com] Date: jeudi, 17. octobre 2002 16:38 À: [EMAIL PROTECTED] Objet: Re: 2.1-dev authentication sample doesn't work Sorry, I misspelled it. :) Compile the sources two times. The the CVS 2.1 version will work fine. Antonio Gallardo El Jueves, 17 de Octubre de 2002 08:28, Antonio Gallardo Rivera escribió: There is a bug in the build process, compiled it two times. Then it will work. Antonio Gallardo El Jueves, 17 de Octubre de 2002 08:16, [EMAIL PROTECTED] escribió: Hello, I have just installed the last dev snapshot of Cocoon and try to run the samples. All work fine except the authentication sample. This error appears: Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error - -- - type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:24 3) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat io nFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte rC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve .j ava:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve .j ava:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347 ) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 18 0) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal ve .java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 17 0) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j av a:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav a: 566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47 2) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.ja va :1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1 12 5) at java.lang.Thread.run(Thread.java:479) I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0. Is there something to install before working with the Cocoon authentication mechanism? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail:
RE: German article on Cocoon Portal and Authentication
The last Cocoon snapshot the current dev version is 2.0.44. Is this version the 2.1-dev? Sylvain -Message d'origine- De: Matthew Langham [mailto:mlangham;s-und-n.de] Date: jeudi, 17. octobre 2002 13:26 À: [EMAIL PROTECTED] Objet: RE: German article on Cocoon Portal and Authentication Why are you going to use 2.0.3? Much of the portal stuff has been moved and renamed in 2.1-dev. I recommend using 2.1-dev if you are starting on your project now. The documentation in Cocoon is also more complete for the current version. Also - in 2.1-dev the portal/authentication components have been moved to the main branch. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Richard Reyes [mailto:richard;voxsant.com] Sent: Friday, October 18, 2002 5:17 AM To: [EMAIL PROTECTED] Subject: Re: German article on Cocoon Portal and Authentication Hi Matthew, I have just found this link looking at your weblog. by now i'll be working on the cocoon portal sample shipped with the binary release ( v 2.0.3 ) . Question: will it be alright to use the sunspot components shipped with this binary release or should I prefer to download a daily snapshot and build --installwar? Thanks again. Richard - Original Message - From: Matthew Langham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 7:16 PM Subject: RE: German article on Cocoon Portal and Authentication It will be impossible for you to have an english version right? I don't think we will be translating it anytime soon :). However most of it already is in the Cocoon documentation. In addition we wrote a short article on the same subject for xml.com. http://www.xml.com/pub/a/2002/07/24/xmlportal.html Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = It will be impossible for you to have an english version right? - Original Message - From: Matthew Langham [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Cocoon-Dev@Xml. Apache. Org [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 6:37 PM Subject: RE: German article on Cocoon Portal and Authentication you would not have a URL for those of us not being able to pick this up at a newsstand ? As soon as it goes up online (_if_ it goes up online) then I will post a link in my weblog. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ = -Original Message- From: Werner Guttmann [mailto:Werner.Guttmann;morganstanley.com] Sent: Thursday, October 17, 2002 12:29 PM To: [EMAIL PROTECTED] Cc: Cocoon-Dev@Xml. Apache. Org Subject: Re: German article on Cocoon Portal and Authentication Matthew, you would not have a URL for those of us not being able to pick this up at a newsstand ? Thanks Werner Matthew Langham wrote: The new issue of the German magazine XML Web Services Magazin contains a Cocoon special. In 2 articles (a total of 11 pages) Carsten and I detail the authentication and portal framework in Cocoon. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 Weblog: http://radio.weblogs.com/0103021/ =
RE: 2.1-dev authentication sample doesn't work
Thank you Rob, it's the same for me. That works with Tomcat 4.1.12. Sylvain -Message d'origine- De: Rob Johnston [mailto:rjohnst;juniper.net] Date: lundi, 21. octobre 2002 21:55 À: [EMAIL PROTECTED] Objet: Re: 2.1-dev authentication sample doesn't work I got the same error when using 2.1-dev with Tomcat 4.0.4. The problem disappeared when I upgraded Tomcat to 4.1.12. Some patch applied between Sept 24 and Sept 25th that causes this IllegalStateException. (0924 works with 4.0.4, 0925 doesn't...) Hope this is your problem and it helps, thanks, rob On Thu, 17 Oct 2002, [EMAIL PROTECTED] wrote: Hello, I have just installed the last dev snapshot of Cocoon and try to run the samples. All work fine except the authentication sample. This error appears: Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106) 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:190) 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:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 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:468) 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:174) 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:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0. Is there something to install before working with the Cocoon authentication mechanism? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2.1-dev authentication sample doesn't work
Hello everybody, Last thursday I downloaded the last Dev snapshot and try to install it. All work fine except the authentication sample. The error listed below appears. I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0. Any idea? Any suggestions would be greatly appreciated because I would like to start a project with the authentication component. Is there something to install before working with the Cocoon authentication mechanism? Thank you Sylvain Error: Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error type: Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception: java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106) 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:190) 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:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 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:468) 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:174) 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:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon task scheduler
Hello everybody, I'm writing application with Cocoon which include Cocoon portal, authentication, etc.. All you need when you use an application server. But I think about a functionnality which would be very useful on a app server: a scheduler (like the Cron in Unix). So my question is: what the solution with Cocoon if I want to automate and execute tasks without a HTTP request (for example to execute a task every sunday at 12 o'clock)?? Could I use an independant software in my server or is there a concept in Cocoon? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon task scheduler
Hello Bert, Sorry but what is a wget? Sylvain -Message d'origine- De: Bert Van Kets [mailto:bert;vankets.com] Date: lundi, 28. octobre 2002 14:21 À: [EMAIL PROTECTED] Objet: Re: Cocoon task scheduler There has been a similar thread before. dig up that one first. Cocoon, being a servlet, only reacts to http requests. So the only way to activate things on a timely basis is to use another program that calls a URL, and thus a pipeline, that activates whatever you want to get done. A wget in a cron job can do the trick. Bert At 14:02 28/10/2002 +0100, you wrote: Hello everybody, I'm writing application with Cocoon which include Cocoon portal, authentication, etc.. All you need when you use an application server. But I think about a functionnality which would be very useful on a app server: a scheduler (like the Cron in Unix). So my question is: what the solution with Cocoon if I want to automate and execute tasks without a HTTP request (for example to execute a task every sunday at 12 o'clock)?? Could I use an independant software in my server or is there a concept in Cocoon? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon task scheduler
I completely agree with you and Bertrand: Cocoon have already so much stuffs and it wouldn't be a good solution to add this type of feature. So I need a scheduler app writing in Java because I want to keep independance with OS (my server runs on Windows but I could change this). This scheduler have to provide a way to call an URL. Any suggestions or experiences? Thank you Sylvain -Message d'origine- De: Robert Ellis Parrott [mailto:parrott;fas.harvard.edu] Date: lundi, 28. octobre 2002 14:34 À: [EMAIL PROTECTED] Objet: Re: Cocoon task scheduler How about cron and a python script, which executes a localhost HTTP query? Python has very good support for HTTP. I'm not convinced that Cocoon needs such a beast, when so much mature functionality is available at the OS level. On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote: Hello everybody, I'm writing application with Cocoon which include Cocoon portal, authentication, etc.. All you need when you use an application server. But I think about a functionnality which would be very useful on a app server: a scheduler (like the Cron in Unix). So my question is: what the solution with Cocoon if I want to automate and execute tasks without a HTTP request (for example to execute a task every sunday at 12 o'clock)?? Could I use an independant software in my server or is there a concept in Cocoon? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xmlform and build
hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xmlform and build
Yes it will help me, thank you Mohamed. Do you know how to extend this sample to write data you entered in persistence storage (database)? Sylvain -Message d'origine- De: Mohamed El-Refaey [mailto:m.refaey;imkenberg.de] Date: mardi, 29. octobre 2002 22:13 À: [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish this will help Mohamed [EMAIL PROTECTED] wrote: hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xmlform and build
Thank you Mohamed. I don't use EJB but I use an RDBMS-object mapping tool named OJB. I haven't enough know-how in XMLForm to apply easily what you said. Have you a short example to demonstrate it? Thank you Sylvain -Message d'origine- De: Mohamed El-Refaey [mailto:m.refaey;imkenberg.de] Date: mercredi, 30. octobre 2002 00:51 À: [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain nice, that this help u :) . ofCourse it is easy to extend this sample to write data entered in the XMLForms into persistance storage[DB] for e.g : if u use EJB as a persistance layer in ur project , u can easily in the Perform() method in ur Action after u get ur model Bean: DataBean jBean = (DataBean) getForm().getModel(); u can extract the entered data from this bean, and sned it in any way[Collection data type or whatever u accept the user data] along with a VO(value-object) to be entered into DB by the aid of EJB Class that take this VO and perform the Insert query or whatever the command u need to do with DB I think this is a breif answer but I wish it give u the way Thanx Mohamed [EMAIL PROTECTED] wrote: Yes it will help me, thank you Mohamed. Do you know how to extend this sample to write data you entered in persistence storage (database)? Sylvain -Message d'origine- De: Mohamed El-Refaey [ mailto:m.refaey;imkenberg.de] Date: mardi, 29. octobre 2002 22:13 À: [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish this will help Mohamed [EMAIL PROTECTED] wrote: hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:cocoon-users-unsubscribe;xml.apache.org [EMAIL PROTECTED] For additional commands, e-mail: mailto:cocoon-users-help;xml.apache.org [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:cocoon-users-unsubscribe;xml.apache.org [EMAIL PROTECTED] For additional commands, e-mail: mailto:cocoon-users-help;xml.apache.org [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:cocoon-users-unsubscribe;xml.apache.org [EMAIL PROTECTED] For additional commands, e-mail: mailto:cocoon-users-help;xml.apache.org [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm and pop-up menu
Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm and pop-up menu
The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm and pop-up menu
yes, in the same way but instead of using a radio type where your choices are on the screen (and you put the point on your choice), I would like to use a pop-up list where the choices are hidden in a list (maybe the word menu is not very appropriate). This stuff is in all web forms. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 15:43 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Do you mean a selection field: Here an xml snippet from Ivelin's example: xf:selectOne ref=os selectUIType=radio xf:captionOS/xf:caption xf:item id=unix xf:captionUnix/Linux/xf:caption xf:valueUnix/xf:value /xf:item xf:item id=mac xf:captionMac OS/X/xf:caption xf:valueMac OS/X/xf:value /xf:item xf:item id=win xf:captionWindows 95/98/NT/2000/XP/xf:caption xf:valueWindows/xf:value /xf:item xf:item id=other xf:captionOther/xf:caption xf:valueOther/xf:value /xf:item /xf:selectOne Hope this helps. Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: RE: XMLForm and pop-up menu The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm and textbox: how to protect
Hello, In XMLForm, is it possible to protect the default value in a textbox against the user changes. I want to display the field in the form (with the default value) but it shouldn't be possible to change the value of it. Any idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm and pop-up menu
I used: xf:selectOne selectUIType='listbox' It works! Sylvain -Message d'origine- De: Ivelin Ivanov [mailto:ivelin;apache.org] Date: mardi, 5. novembre 2002 05:08 À: [EMAIL PROTECTED] Objet: Re: XMLForm and pop-up menu For drop down list use: xf:selectOne For radio buttons, use xf:selectOne selectUIType='radio' - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 04, 2002 8:11 AM Subject: RE: XMLForm and pop-up menu The content should be simply a list of word. The user should choose a word in the pop-up menu (and only these words) instead of enter a word. Sylvain -Message d'origine- De: Reinhard Poetz [mailto:reinhard_poetz;gmx.net] Date: lundi, 4. novembre 2002 14:49 À: [EMAIL PROTECTED] Objet: RE: XMLForm and pop-up menu Sylvain, As far as I know - no. What should be the content of the pop-up menu? Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:Sylvain.Thevoz;swisscom.com] Sent: Monday, November 04, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: XMLForm and pop-up menu Hello, I use XMLForm and I want to implement pop-up menu in a form. Is there a solution? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to develop a web application with Cocoon
Hello, I want to implement a web application and I have chosen Cocoon because I think it is a very good solution (separate content from logic, etc...) for building web stuffs. But I'm asking me a question: can I do all I want in my web application with Cocoon And what is the best method for each type of function (Cocoon provides so much mechanisms!)??? So I have extracted 4 types of functions from my future web application (some are very common is web applications): 1) Add data: form to enter data = insert data in database 2) Search data: form to enter the query = select data in database = display result 3) Edit data: choose the data to edit (from a result or a form) = select data in database = display the result = maybe modify the data = update data in database 4) Generate file: choose the file to generate (from a result or a form) = select data in database = generate the file I think XMLForm extended to write data entered in a persistence storage could be a good solution for the point 1) (I'm testing this solution now). But what for the others?? What is the best solution for each one? I know that Cocoon is first a PUBLICATION framework. Is it really a good solution for this kind of application? Is actions THE solution? What do you think? Any suggestions or experiences would be greatly appreciated. Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TR: How to develop a web application with Cocoon
Thank you Bertrand for your help. I think that a cleanly separation between different layers is great. This was my first idea and Cocoon should be the user interface layer. But HOW doing that?? HOW separate layers in Cocoon?? I have not enough experience in Cocoon to see the solution of the separation. Anyone of you can help me? Thank you Sylvain -Message d'origine- De: Bertrand Delacretaz [mailto:bdelacretaz;codeconsult.ch] Date: vendredi, 8. novembre 2002 08:30 À: [EMAIL PROTECTED] Cc: Thévoz Sylvain, IT-DCS-CPS-CLI-DAR Objet: Re: How to develop a web application with Cocoon Hi Sylvain, ...can I do all I want in my web application with Cocoon Looks like there's not a rush to reply to this one... Quite frankly I don't know the precise status of the current implementations of forms handling and flow. These would help you a lot in filling the blanks in your concept, so you might want to ask more specific questions about them here. Let me reply on what I know... 2) Search data: form to enter the query = select data in database = display result If you're reading directly from the database (but read below about this), ESQL seems to be the most flexible option here, followed by XSLT transforms for HTML or PDF generation. I don't think you need a form handling module for this, you can start with a (static or XSLT-generated) HTML form and use the request parameters to build the SQL query. 4) Generate file: choose the file to generate (from a result or a form) = select data in database = generate the file What kind of file? XML? HTML? PDF? RTF? In any case I think XSLT transforms followed by the appropriate serializers will do the job. This is something that is definitely mature in Cocoon today (with some limitations in PDF output and some more in RTF output). The forms handling module might also be overkill here IMO if you're just selecting 2-3 options on a form to trigger file generation. *** OK,BUT - do you want a monolithic system? *** So I don't have all the answers, but even if Cocoon allows you to build your complete app today, I would by all means avoid creating a big monolithic thing. Cleanly separated application layers are a must in my book, with at least a (stable and testable) backend to handle database transactions and a (more subject to change and harder to test) frontend for the user interface. It's great that Cocoon offers (or will soon offer) all components required to build a complete webapp, but this might cause a tendency of using too much of it at the same time. IMHO the WebServicesProxyGenerator [1] is a great step towards cleanly modularized applications, by allowing a clean separation of application layers. It doesn't mean you won't use Cocoon for the backend as well, but if you do you might be better off using *another instance* of Cocoon for the backend, separate process, maybe separate server. Of course modularizing usually means some loss of performance compared to more tightly integrated systems. For most applications this is irrelevant I think, or more precisely the benefits far outweigh the disadvantages. Hope this helps! -Bertrand [1] http://xml.apache.org/cocoon/userdocs/generators/wsproxy-generator.html - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TR: How to develop a web application with Cocoon
Yes, the concept is very interesting. It appears very clean and simple but the difficulty is now to translate it in pipelines and Cocoon concepts. So imagine that I would use Cocoon as front-end (FE) and java classes with database mapping tool as backend (BE) instead of Cocoon If I have understood (and from the Cocoon point of view): 1. user submits an HTML form (newCustomer.html) to FE with request parameters firstname, lastname and operation. This HTML form is produced by a Cocoon pipeline when the user request it. When the submit is done... 2. ...a second Cocoon pipeline is called to collect the data and to relays it to BE (using WebServiceProxyGenerator or another): a java class that store the data in database is called. 3. this java class carry out some operations to store data or other things and returns some feedback. 4. the second pipeline (FE) receives the feedback (using WebServiceProxyGenerator or another) and finally convert it to HTML to display the result of the action. Is this scenario completely crazy and out of reality or not?? Are there another solutions? What do you think about? Thank you Sylvain -Message d'origine- De: Bertrand Delacretaz [mailto:bdelacretaz;codeconsult.ch] Date: vendredi, 8. novembre 2002 14:21 À: [EMAIL PROTECTED]; Thévoz Sylvain, IT-DCS-CPS-CLI-DAR Objet: Re: TR: How to develop a web application with Cocoon (note: please use reply-to instead of creating new messages when replying, to avoid breaking the message threads if possible) . . . HOW separate layers in Cocoon?? I have not enough experience in Cocoon to see the solution of the separation. . . . Let me try to give a simple scenario where you want to insert data in your database, as an example. FE is the front-end (Cocoon for sure), BE is the backend (Cocoon maybe): 1. user submits an HTML form to FE:/newCustomer.html, with request parameters firstname=Joe, lastname=Kool, operation=insert 2. FE, probably using WebServiceProxyGenerator, relays the request in HTTP to BE:/insert/customer.xml, probably unmodified in such a simple case 3. BE process the request, inserts data in the database and returns an XML representation of the inserted data (or error message if it didn't work out). This BE HTTP/XML interface is fully testable, will most probably not change often, even if the backend itself changes. 4. FE converts the XML data (received through WebServiceProxyGenerator) to the desired (probably HTML) format, adds navigation features and returns the generated HTML page to the user. Does this help? -Bertrand - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm and dates
Hello, I use XMLForm and I want to put the today date in a form. The problem is that the today date has to be a String because the XMLForm simply display the value of the Bean class attribute. If this value is not a String, the date can't be read! But I want to store the today date in a Date format (because I have a timestamp format in my database). How to store the date in a Date type and display it like a String? How to do this?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm and dates
I'm using MS SQL Server 2000. It means that you don't insert the date with the form but your database insert it automatically!? Sylvain -Message d'origine- De: Antonio Gallardo Rivera [mailto:agallardo;agsoftware.dnsalias.com] Date: mardi, 12. novembre 2002 15:14 À: [EMAIL PROTECTED] Objet: Re: XMLForm and dates hat database are you using? I am using PostgreSQL 7.2. I resolve this problem setting the requiered field in the database with default value today. Antonio Gallardo El Martes, 12 de Noviembre de 2002 08:00, [EMAIL PROTECTED] escribió: Hello, I use XMLForm and I want to put the today date in a form. The problem is that the today date has to be a String because the XMLForm simply display the value of the Bean class attribute. If this value is not a String, the date can't be read! But I want to store the today date in a Date format (because I have a timestamp format in my database). How to store the date in a Date type and display it like a String? How to do this?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm and dates
Hello Jan, Thank you for your reply. Yes, your understanding is right. The problem appears because I want to display the date in the form. But the date in the form isn't really useful and I could cancel the idea to display it. I'm trying to insert/update database with an DatabaseAccess layer written in Java. This layer includes one Java class for each database table and each class has getter, setter and query method to access to the database. But I'm really interested how you do that with XMLForm and modular database actions. Could you provide me some information? Thank you Sylvain -Message d'origine- De: Jan [mailto:juyttenh;pandora.be] Date: mercredi, 13. novembre 2002 20:04 À: [EMAIL PROTECTED] Objet: Re: XMLForm and dates Hi, I'm currently using a combination of XMLForms and modular database actions to insert and update db data. I don't understand what exactly is your problem. Some of my beans contain Date or TimeStamp attributes, containing the current date. I don't need a String representation of the dates, as I don't display the dates, I just need them to be available for update or insert. But if I'm not mistaken, calling a Date using jxpath should invoke toString()... ? The only problem I had was inserting the date or timestamp in the database (datetime column). I'm using the modular database actions, and an InputModule to access the bean in the session. If this is what you're trying to do, you should modify the JDBCTypeConversions, because the most simple mapping (in my case TimeStamp to Types.TIMESTAMP is not provided). But besides that, it works very well. So if you want to display the data, jxpath should take care of the toString() I think. Or am I missing something here? And for the actual database actions: how are you trying to insert/update the database? ESQL, modular database actions? Hope this helps you any further. Feel free to ask more information, perhaps I should write a howto or tutorial about the integration of XMLForms and modular database actions, if anyone is interested and if I find the time for it :-) In the meantime: is anyone working on the (input)modules right now? I think I read something on the mailinglist a while ago, but I don't know what the current status is. To use XMLForms with modular database actions, an XMLFormInputModule is a nice and easy way to work... Jan Ivelin Ivanov wrote: Try the following: Use a Date property with its own getter and setter for the database access. Implement an extra property named dateString. Then write the getter of the property to convert the Date object into String when invoked. Also write a setter to convert a string to a date. The Java DateFormat class can help. http://java.sun.com/j2se/1.3/docs/api/java/text/DateFormat.html In your XMLForm documents refer to the dateString property, instead of the date property. In your Java code, use the date property. Hope this helps. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 8:00 AM Subject: XMLForm and dates Hello, I use XMLForm and I want to put the today date in a form. The problem is that the today date has to be a String because the XMLForm simply display the value of the Bean class attribute. If this value is not a String, the date can't be read! But I want to store the today date in a Date format (because I have a timestamp format in my database). How to store the date in a Date type and display it like a String? How to do this?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to make an automatic refresh
Hello everybody, I'm using Cocoon and Cocoon portal to build a web application. One of my coplets should work as a workflow manager. This application will work like that: A dispatcher could add an action to do to one of the executors. Each executor will see the portal with the workflow manager in his browser. Each executor should see which actions he has to do in his browser. My question is: when the dispatcher add an action to an executor, the browser of this executor should do a refresh to see the new action. How could do that?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm: dynamic content listbox
Hello, I'm using listbox in XMLForm (with tag xf:selectOne selectUIType=listbox). The content of the listbox (the items listed) is hard-coded in the xml document (view) like that: xf:selectOne selectUIType=listbox xf:item id=unix xf:captionUnix/xf:caption xf:valueUnix/xf:value /xf:item xf:item id=windows xf:captionWindows/xf:caption xf:valueWindows/xf:value /xf:item /xf:selectOne Is there a possibility to retrieve dynamically these items from a database instead of using the hard-coded items in xml document?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm: dynamic content listbox
Thanks Alonso. I have read userIdentity.xml and UserBean.java files from Cocoon Wizard sample. In UserBean.java, I have found a method called initHobbies(). This method simply init all hobbies. If I have well understood, I could replace the hard-coded values of allHobbies by a query to a database. isn't it? What would be the solution if I want to retrieve the allHobbies values from an external xml file? Is there an example? Thank you Sylvain -Message d'origine- De: Josema Alonso [mailto:[EMAIL PROTECTED]] Date: mercredi, 20. novembre 2002 19:50 À: Cocoon-Users Objet: Re: XMLForm: dynamic content listbox Hello. I had a very similar problem a few days ago. The way to go is the itemset tag as used in the wizard demo. Take a look at the 'userIdentity.xml' file where the Hobbies get listed: xf:selectMany ref=/hobby selectUIType=checkbox xf:captionHobbies/xf:caption xf:itemset nodeset=allHobbies xf:caption ref=value/ xf:value ref=key/ /xf:itemset /xf:selectMany All you have to do is to change the UIType to the one desired and fill the items with values taken from the DB, for example from the action. Hope it helps, Josema. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 3:56 PM Subject: XMLForm: dynamic content listbox Hello, I'm using listbox in XMLForm (with tag xf:selectOne selectUIType=listbox). The content of the listbox (the items listed) is hard-coded in the xml document (view) like that: xf:selectOne selectUIType=listbox xf:item id=unix xf:captionUnix/xf:caption xf:valueUnix/xf:value /xf:item xf:item id=windows xf:captionWindows/xf:caption xf:valueWindows/xf:value /xf:item /xf:selectOne Is there a possibility to retrieve dynamically these items from a database instead of using the hard-coded items in xml document?? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDOM
Hello, Does Cocoon use JDOM? Tank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDOM
OK, thank you Reinhard. I don't plan to use JDOM in a custom transformer but your remark is very interesting. What do you think about? Have you an example of use? Regards Sylvain -Message d'origine- De: Reinhard Poetz [mailto:[EMAIL PROTECTED]] Date: mardi, 3. décembre 2002 15:38 À: [EMAIL PROTECTED] Objet: RE: JDOM Sylvain, According to the lib/core and lib/optional directories JDOM is currently not used. But if you need it (e.g. in a custom transformer) it's very easy to use it. Regards, Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: JDOM Hello, Does Cocoon use JDOM? Tank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm: content listbox problem
Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I have a listbox. The content (the different choices) of this listbox comes from an XML file. The code is: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=select/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne This code seems to be OK. The XPath code is also OK I think. Here is the XML file: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document I load the XML file in a DOM Node property (called select). This property is located in the Bean file (with getter and setter methods for this property). I load the XML file in this Node property also in the Bean file, in the constructor. Here the Bean file: public class AddWorkstationBean { private String workstationName; private String workstationType; private String workstationOwner; private String workstationUser; private Node select; //values from the XML file public AddWorkstationBean() { initSelect(); } public Node initSelect() { //initialize a property named select of DOM Node class DOMImplementation impl; try { // Find the implementation DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(false); factory.setValidating(false); DocumentBuilder builder = factory.newDocumentBuilder(); impl = builder.getDOMImplementation(); //Create the node for the root select Document document = impl.createDocument(null, select, null); Node selectName = document.getDocumentElement(); //Loading from XML File String fileName = C:\\jakarta-tomcat-4.1.12\\webapps\\cocoon\\woc\\iniForm.xml; FileInputStream inXML = new FileInputStream(fileName); BufferedReader in = new BufferedReader(new InputStreamReader(inXML)); Element element = XMLLoader.loadFromStream(in); //Import the node Element importedElement = (Element) document.importNode(element, true); selectName.appendChild(importedElement); //initialize the porperty select = selectName; } .. getter an setter methods.. .. } My problem is when I start the app (with the Start view) and then display the Form1 there is NOTHING in the listbox (the list isn't empty but it's like the caption and value properties are null)!! Then I go to the next view (Form2). Then if I press the Preview button and go back to the Form1, the listbox is OK!! It's crazy and I really don't understand why! Someone could help me? Any suggestions will be greatly appreciated! Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm: please help
Hello, I'm trying to have an XMLForm app with dynamic listbox. The values of the listbox come from an XML file. The navigation app is like this: Start-Form1-Form2-Confirm-End In the Form1 view I have a listbox. The content (the different choices) of this listbox comes from an XML file. The code is: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=select/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne This code seems to be OK. The XPath code is also OK. I load the XML file in a DOM Node property (called select). This property is located in the Bean file (with getter and setter methods for this property). I load the XML file in this Node property also in the Bean file, in the constructor. Here the Bean file: public class AddWorkstationBean { private String workstationName; private String workstationType; ... private Node select; //values from the XML file public AddWorkstationBean() { initSelect(); } public Node initSelect() { ... //Here I load values into select property form XML file ... } .. getter an setter methods.. .. } My problem is when I start the app (with the Start view) and then display the Form1 there is NOTHING in the listbox (the list isn't empty but it's like the caption and value properties are null)!! Then I go to the next view (Form2). Then if I press the Preview button and go back to the Form1, the listbox is OK!! It's crazy and I really don't understand why! Someone could help me? Any suggestions will be greatly appreciated! Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm and DOM node initialization
Hello everybody, I'm using XMLForm and its possibility to access to DOM nodes. Here is the code in the view (form.xml): xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne The problem is when I load the web app page (containing the node field) for the first time (after a Tomcat or Browser restart), the value and caption fields are empty although the number of option are right. Here is the HTML source when the fields are empty (first load): td align=leftselect name=/workstationTypeoption value=/optionoption value=/optionoption value=/option/select/td Here is the HTML source when the fields are OK (not first load): td align=leftselect name=/workstationTypeoption value=desktopDesktop/optionoption value=laptopLaptop/optionoption value=otherOther configuration/option/select/td The node is initialized in the Bean (model) conctructor. Is anybody could help me to understand what's happen?!? I'm really desparate because I really don't know what could be the problem! When a web page is loaded, which methods or actions are called? Any suggestions will be greatly appreciated. Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm: content listbox problem
Hello Lars, I call the getModel() method in the perform function, like the Wizard example: code public Map perform() { AddWorkstationBean jBean = (AddWorkstationBean) getForm().getModel(); if (getCommand().equals(CMD_NEXT) getForm().getViolations() != null) { return page(getFormView()); } else { getForm().clearViolations(); String command = getCommand(); String formView = getFormView(); if (formView.equals(VIEW_FORM1)) { if (command.equals(CMD_NEXT)) { return page(VIEW_FORM2); } } else if (formView.equals(VIEW_FORM .. etc .. code I don't understand what mean the result_trans and result_cust properties. Are they Bean properties? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:32 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem Hello Sylvian, I always initialize the data for the appropriate form. This means I put the initialize data actions in different functions and call them if I reach the stage. Here is an example: - code if ( formView.equals ( VIEW_START ) ) { if ( command.equals( CMD_COMMIT ) ) { int result_trans= jBean.getTransactionData(); int result_cust = jBean.getUserData(); if ( result_cust == 0 ) { return page( VIEW_ERROR ); } else if ( result_trans == 0 ) { return page( VIEW_ERROR ); } else if ( result_cust 1 ) { return page( VIEW_CUSTOMER ); } else { return page( VIEW_INVOICE ); } } } - /code this allows me also to react on different results from these functions. When did you call the getModel() method from the bean? Are you doing that in the prepare or perform function? ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 6. Dezember 2002 00:01 An: [EMAIL PROTECTED] Betreff: XMLForm: content listbox problem Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I have a listbox. The content (the different choices) of this listbox comes from an XML file. The code is: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=select/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne This code seems to be OK. The XPath code is also OK I think. Here is the XML file: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document I load the XML file in a DOM Node property (called select). This property is located in the Bean file (with getter and setter methods for this property). I load the XML file in this Node property also in the Bean file, in the constructor. Here the Bean file: public class AddWorkstationBean { private String workstationName; private String workstationType; private String workstationOwner; private String workstationUser; private Node select; //values from the XML file public AddWorkstationBean() { initSelect(); } public Node initSelect() { //initialize a property named select of DOM Node class DOMImplementation impl; try { // Find the implementation DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(false); factory.setValidating(false); DocumentBuilder builder = factory.newDocumentBuilder(); impl = builder.getDOMImplementation(); //Create the node for the root select Document document = impl.createDocument(null, select, null); Node selectName = document.getDocumentElement(); //Loading from XML File String fileName = C:\\jakarta-tomcat-4.1.12\\webapps\\cocoon\\woc\\iniForm.xml; FileInputStream inXML = new FileInputStream(fileName);
RE: XMLForm and DOM node initialization
Hi Lars, No, it doesn't work!! I'm going to be completely crazy! I think the problem is not on the XPath expression, because there is the exact number of items in the list. But the caption and value fields are empty! And I don't understand why! Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:41 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization Hello Sylvian, I'm sorry for the last mail, was send to early... outlook is driving me crazy.. try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=/select/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne if your dom is still loaded into selected and is looking like this: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 7. Dezember 2002 00:53 An: [EMAIL PROTECTED] Betreff: XMLForm and DOM node initialization Hello everybody, I'm using XMLForm and its possibility to access to DOM nodes. Here is the code in the view (form.xml): xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne The problem is when I load the web app page (containing the node field) for the first time (after a Tomcat or Browser restart), the value and caption fields are empty although the number of option are right. Here is the HTML source when the fields are empty (first load): td align=leftselect name=/workstationTypeoption value=/optionoption value=/optionoption value=/option/select/td Here is the HTML source when the fields are OK (not first load): td align=leftselect name=/workstationTypeoption value=desktopDesktop/optionoption value=laptopLaptop/optionoption value=otherOther configuration/option/select/td The node is initialized in the Bean (model) conctructor. Is anybody could help me to understand what's happen?!? I'm really desparate because I really don't know what could be the problem! When a web page is loaded, which methods or actions are called? Any suggestions will be greatly appreciated. Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm: content listbox problem
I tried to initialize the bean in the prepare method but it's still the same! Nothing happen! I posted 2 different messages(content list box problem and DOM initialization problem) but the problem is the same. Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:38 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem I'm sorry confusing you with this. This are just integer values which returns me how the function was executed. That means getTransactionData returns an integer value with the number of elements. So that I can decide on this what should be done next. (I'm new to cocoon and java as well and am not sure if this is a correct or good way to do, but it works for me now, if anybody has a clearer or better aproach I would be very pleased to know about it) public int getTransactionData() { ... return numberOfTransactions; } so try to initialize the bean in the prepare method as well and see whats happening. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:28 An: [EMAIL PROTECTED] Betreff: RE: XMLForm: content listbox problem Hello Lars, I call the getModel() method in the perform function, like the Wizard example: code public Map perform() { AddWorkstationBean jBean = (AddWorkstationBean) getForm().getModel(); if (getCommand().equals(CMD_NEXT) getForm().getViolations() != null) { return page(getFormView()); } else { getForm().clearViolations(); String command = getCommand(); String formView = getFormView(); if (formView.equals(VIEW_FORM1)) { if (command.equals(CMD_NEXT)) { return page(VIEW_FORM2); } } else if (formView.equals(VIEW_FORM .. etc .. code I don't understand what mean the result_trans and result_cust properties. Are they Bean properties? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:32 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem Hello Sylvian, I always initialize the data for the appropriate form. This means I put the initialize data actions in different functions and call them if I reach the stage. Here is an example: - code if ( formView.equals ( VIEW_START ) ) { if ( command.equals( CMD_COMMIT ) ) { int result_trans= jBean.getTransactionData(); int result_cust = jBean.getUserData(); if ( result_cust == 0 ) { return page( VIEW_ERROR ); } else if ( result_trans == 0 ) { return page( VIEW_ERROR ); } else if ( result_cust 1 ) { return page( VIEW_CUSTOMER ); } else { return page( VIEW_INVOICE ); } } } - /code this allows me also to react on different results from these functions. When did you call the getModel() method from the bean? Are you doing that in the prepare or perform function? ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 6. Dezember 2002 00:01 An: [EMAIL PROTECTED] Betreff: XMLForm: content listbox problem Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I have a listbox. The content (the different choices) of this listbox comes from an XML file. The code is: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=select/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne This code seems to be OK. The XPath code is also OK I think. Here is the XML file: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document I load the XML file in a DOM Node property (called select). This property is located in the Bean file (with getter and setter methods for this property). I load the XML file in this Node property also in the Bean file, in the constructor. Here the Bean file: public class
RE: XMLForm and DOM node initialization
Yes, I think you have the same problem as me!! I don't use the xf:output statement. What does it mean? If I'm right, for testing you create a form.xml file (view) with only a repeat statement like this: code items xf:repeat nodeset=select/document/typeOfWorkstation/item item descxf:output ref=description//desc idxf:output ref=@id//id /item /xf:repeat /items code Is it the right way? Do you know why this kind of problem happen? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:54 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization I just went through the same problem an hour before. My problem was that not all dom nodes weren't initialized or respectivly some of the data before the repeat statement wasn't initialized. sample: - code - ... cityxf:output ref=/users/user/city //city statexf:output ref=/users/user/state //state poboxxf:output ref=/users/user/pobox //pobox pocodexf:output ref=/users/user/pocode //pocode items xf:repeat nodeset=/transaction/item item noxf:output ref=@number //no descxf:output ref=descr //desc unit_pricexf:output ref=price //unit_price qtyxf:output ref=qty //qty extamtxf:output ref=extamt //extamt /item /xf:repeat /items ... - /code this wasn't working for me, because I forget to set up the pobox and pocode node. I experienced the same behaviour like yours, the repeat statement was executed and created the correct number of items, but non of the values(no,desc,unit,..) where set. Try a blank xml file with just the repeat statement. If this works try to find out what's maybe missing. hope that helps. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:38 An: [EMAIL PROTECTED] Betreff: RE: XMLForm and DOM node initialization Hi Lars, No, it doesn't work!! I'm going to be completely crazy! I think the problem is not on the XPath expression, because there is the exact number of items in the list. But the caption and value fields are empty! And I don't understand why! Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:41 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization Hello Sylvian, I'm sorry for the last mail, was send to early... outlook is driving me crazy.. try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=/select/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne if your dom is still loaded into selected and is looking like this: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 7. Dezember 2002 00:53 An: [EMAIL PROTECTED] Betreff: XMLForm and DOM node initialization Hello everybody, I'm using XMLForm and its possibility to access to DOM nodes. Here is the code in the view (form.xml): xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne The problem is when I load the web app page (containing the node field) for the first time (after a Tomcat or Browser restart), the value and caption fields are empty although the number of option are right. Here is the HTML source when the fields are empty (first load): td align=leftselect name=/workstationTypeoption value=/optionoption value=/optionoption value=/option/select/td Here is the HTML source when the fields are OK (not first load): td align=leftselect name=/workstationTypeoption value=desktopDesktop/optionoption value=laptopLaptop/optionoption value=otherOther configuration/option/select/td The node is initialized in the Bean (model) conctructor. Is anybody could help me to understand what's happen?!? I'm really desparate because I really don't know what could be
RE: XMLForm and DOM node initialization
I tried to load this form: code ?xml version=1.0 ? document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; xf:form id=form-feedback view=test action=addworkstation.html xf:captionTest/xf:caption xf:repeat nodeset=select/document/typeOfWorkstation/item xf:output def=description/ xf:ouput def=@id/ /xf:repeat /xf:form /document code It's still the same: there is the correct number of items in the page but there are empty (the values aren't set). The values are not set. Why?? If I don't insert ../document/.. in the path, the correct number of items are not displayed. Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 10:34 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization The output statement print just the value of either the bean property or a dom node. You can look at the example of the xmlform-Howto-Wizard. The confirm.xml is using it to show all entered values. The code seemes to be ok, but I think you don't need the document... Place this without anything in the apropriate xml file and turn of all xsl stylesheets in the sitemap to see what is happening. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 17:23 An: [EMAIL PROTECTED] Betreff: RE: XMLForm and DOM node initialization Yes, I think you have the same problem as me!! I don't use the xf:output statement. What does it mean? If I'm right, for testing you create a form.xml file (view) with only a repeat statement like this: code items xf:repeat nodeset=select/document/typeOfWorkstation/item item descxf:output ref=description//desc idxf:output ref=@id//id /item /xf:repeat /items code Is it the right way? Do you know why this kind of problem happen? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:54 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization I just went through the same problem an hour before. My problem was that not all dom nodes weren't initialized or respectivly some of the data before the repeat statement wasn't initialized. sample: - code - ... cityxf:output ref=/users/user/city //city statexf:output ref=/users/user/state //state poboxxf:output ref=/users/user/pobox //pobox pocodexf:output ref=/users/user/pocode //pocode items xf:repeat nodeset=/transaction/item item noxf:output ref=@number //no descxf:output ref=descr //desc unit_pricexf:output ref=price //unit_price qtyxf:output ref=qty //qty extamtxf:output ref=extamt //extamt /item /xf:repeat /items ... - /code this wasn't working for me, because I forget to set up the pobox and pocode node. I experienced the same behaviour like yours, the repeat statement was executed and created the correct number of items, but non of the values(no,desc,unit,..) where set. Try a blank xml file with just the repeat statement. If this works try to find out what's maybe missing. hope that helps. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:38 An: [EMAIL PROTECTED] Betreff: RE: XMLForm and DOM node initialization Hi Lars, No, it doesn't work!! I'm going to be completely crazy! I think the problem is not on the XPath expression, because there is the exact number of items in the list. But the caption and value fields are empty! And I don't understand why! Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:41 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization Hello Sylvian, I'm sorry for the last mail, was send to early... outlook is driving me crazy.. try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=/select/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne if your dom is still loaded into selected and is looking like this: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other
RE: XMLForm and DOM node initialization
Hi Ivelin, No, thank you. But it doesn't make any differences!! Is it right that in the XMLForm Wizard example the initialization of the Bean occurs only when you press the Next button from the first form to the following? I try to understand because I have certainly an initialization problem. Thank you Sylvain -Message d'origine- De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 15:55 À: [EMAIL PROTECTED] Objet: Re: XMLForm and DOM node initialization Have you noticed that you have a typo in the file. Rename the def attributes to ref. Ivelin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 09, 2002 4:14 AM Subject: RE: XMLForm and DOM node initialization I tried to load this form: code ?xml version=1.0 ? document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; xf:form id=form-feedback view=test action=addworkstation.html xf:captionTest/xf:caption xf:repeat nodeset=select/document/typeOfWorkstation/item xf:output def=description/ xf:ouput def=@id/ /xf:repeat /xf:form /document code It's still the same: there is the correct number of items in the page but there are empty (the values aren't set). The values are not set. Why?? If I don't insert ../document/.. in the path, the correct number of items are not displayed. Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 10:34 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization The output statement print just the value of either the bean property or a dom node. You can look at the example of the xmlform-Howto-Wizard. The confirm.xml is using it to show all entered values. The code seemes to be ok, but I think you don't need the document... Place this without anything in the apropriate xml file and turn of all xsl stylesheets in the sitemap to see what is happening. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 17:23 An: [EMAIL PROTECTED] Betreff: RE: XMLForm and DOM node initialization Yes, I think you have the same problem as me!! I don't use the xf:output statement. What does it mean? If I'm right, for testing you create a form.xml file (view) with only a repeat statement like this: code items xf:repeat nodeset=select/document/typeOfWorkstation/item item descxf:output ref=description//desc idxf:output ref=@id//id /item /xf:repeat /items code Is it the right way? Do you know why this kind of problem happen? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:54 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization I just went through the same problem an hour before. My problem was that not all dom nodes weren't initialized or respectivly some of the data before the repeat statement wasn't initialized. sample: - code - ... cityxf:output ref=/users/user/city //city statexf:output ref=/users/user/state //state poboxxf:output ref=/users/user/pobox //pobox pocodexf:output ref=/users/user/pocode //pocode items xf:repeat nodeset=/transaction/item item noxf:output ref=@number //no descxf:output ref=descr //desc unit_pricexf:output ref=price //unit_price qtyxf:output ref=qty //qty extamtxf:output ref=extamt //extamt /item /xf:repeat /items ... - /code this wasn't working for me, because I forget to set up the pobox and pocode node. I experienced the same behaviour like yours, the repeat statement was executed and created the correct number of items, but non of the values(no,desc,unit,..) where set. Try a blank xml file with just the repeat statement. If this works try to find out what's maybe missing. hope that helps. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:38 An: [EMAIL PROTECTED] Betreff: RE: XMLForm and DOM node initialization Hi Lars, No, it doesn't work!! I'm going to be completely crazy! I think the problem is not on the XPath expression, because there is the exact number of items in the list. But the caption and value fields are empty! And I don't understand why! Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:41 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm and DOM node initialization Hello Sylvian, I'm sorry for the last mail, was send to early... outlook is driving me crazy.. try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=/select/typeOfWorkstation/item
RE: XMLForm: content listbox problem
Hi Lars, You said that I should initialize the bean in the prepare method. What do you do exactly? For my Bean I started from the Wizard example code. The initialization is in the perform method. regards Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:38 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem I'm sorry confusing you with this. This are just integer values which returns me how the function was executed. That means getTransactionData returns an integer value with the number of elements. So that I can decide on this what should be done next. (I'm new to cocoon and java as well and am not sure if this is a correct or good way to do, but it works for me now, if anybody has a clearer or better aproach I would be very pleased to know about it) public int getTransactionData() { ... return numberOfTransactions; } so try to initialize the bean in the prepare method as well and see whats happening. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:28 An: [EMAIL PROTECTED] Betreff: RE: XMLForm: content listbox problem Hello Lars, I call the getModel() method in the perform function, like the Wizard example: code public Map perform() { AddWorkstationBean jBean = (AddWorkstationBean) getForm().getModel(); if (getCommand().equals(CMD_NEXT) getForm().getViolations() != null) { return page(getFormView()); } else { getForm().clearViolations(); String command = getCommand(); String formView = getFormView(); if (formView.equals(VIEW_FORM1)) { if (command.equals(CMD_NEXT)) { return page(VIEW_FORM2); } } else if (formView.equals(VIEW_FORM .. etc .. code I don't understand what mean the result_trans and result_cust properties. Are they Bean properties? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:32 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem Hello Sylvian, I always initialize the data for the appropriate form. This means I put the initialize data actions in different functions and call them if I reach the stage. Here is an example: - code if ( formView.equals ( VIEW_START ) ) { if ( command.equals( CMD_COMMIT ) ) { int result_trans= jBean.getTransactionData(); int result_cust = jBean.getUserData(); if ( result_cust == 0 ) { return page( VIEW_ERROR ); } else if ( result_trans == 0 ) { return page( VIEW_ERROR ); } else if ( result_cust 1 ) { return page( VIEW_CUSTOMER ); } else { return page( VIEW_INVOICE ); } } } - /code this allows me also to react on different results from these functions. When did you call the getModel() method from the bean? Are you doing that in the prepare or perform function? ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 6. Dezember 2002 00:01 An: [EMAIL PROTECTED] Betreff: XMLForm: content listbox problem Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I have a listbox. The content (the different choices) of this listbox comes from an XML file. The code is: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=select/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne This code seems to be OK. The XPath code is also OK I think. Here is the XML file: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document I load the XML file in a DOM Node property (called select). This property is located in the Bean file (with getter and setter methods for this property). I load the XML file in this Node property also in the Bean file, in the constructor. Here the Bean file: public class
RE: XMLForm: content listbox problem
Hi Ivelin, Thanks for your suggestions. Do you create this method in the Bean file or Action file? What does the method should return? The dom document? Thank you Regards Sylvain -Message d'origine- De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 20:49 À: [EMAIL PROTECTED] Objet: Re: XMLForm: content listbox problem The best place to do a one-time initialization of the data model is the getFormModel() method. This is the orginial in the AbstractXMLFormAction: /** * Extract xmlform-model * action parameter and * instantiate a new form model it. * * * Subclasses may override this method * to use custom model instantiation technique * */ protected Object getFormModel() { try { String modelClassName = getParameters().getParameter(xmlform-model, null); Class modelClass = Class.forName ( modelClassName ); Object o = modelClass.newInstance (); return o; } catch ( Exception e) { throw new CascadingRuntimeException( Failed instantiating form model , e ); } } You can override this method and do the following: protected Object getFormModel() { // create a dom document and initialize it // preferably use the JXPath DocumentContainer } This way, the first XMLForm page will use the initialized version. Let me know if this works for you. Ivelin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 09, 2002 10:13 AM Subject: RE: XMLForm: content listbox problem Hi Lars, You said that I should initialize the bean in the prepare method. What do you do exactly? For my Bean I started from the Wizard example code. The initialization is in the perform method. regards Thank you Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 09:38 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem I'm sorry confusing you with this. This are just integer values which returns me how the function was executed. That means getTransactionData returns an integer value with the number of elements. So that I can decide on this what should be done next. (I'm new to cocoon and java as well and am not sure if this is a correct or good way to do, but it works for me now, if anybody has a clearer or better aproach I would be very pleased to know about it) public int getTransactionData() { ... return numberOfTransactions; } so try to initialize the bean in the prepare method as well and see whats happening. ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. Dezember 2002 16:28 An: [EMAIL PROTECTED] Betreff: RE: XMLForm: content listbox problem Hello Lars, I call the getModel() method in the perform function, like the Wizard example: code public Map perform() { AddWorkstationBean jBean = (AddWorkstationBean) getForm().getModel(); if (getCommand().equals(CMD_NEXT) getForm().getViolations() != null) { return page(getFormView()); } else { getForm().clearViolations(); String command = getCommand(); String formView = getFormView(); if (formView.equals(VIEW_FORM1)) { if (command.equals(CMD_NEXT)) { return page(VIEW_FORM2); } } else if (formView.equals(VIEW_FORM .. etc .. code I don't understand what mean the result_trans and result_cust properties. Are they Bean properties? Thank you Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: lundi, 9. décembre 2002 03:32 À: '[EMAIL PROTECTED]' Objet: AW: XMLForm: content listbox problem Hello Sylvian, I always initialize the data for the appropriate form. This means I put the initialize data actions in different functions and call them if I reach the stage. Here is an example: - code if ( formView.equals ( VIEW_START ) ) { if ( command.equals( CMD_COMMIT ) ) { int result_trans = jBean.getTransactionData(); int result_cust = jBean.getUserData(); if ( result_cust == 0 ) { return page( VIEW_ERROR ); } else if ( result_trans == 0 ) { return page( VIEW_ERROR ); } else if ( result_cust 1 ) { return page( VIEW_CUSTOMER ); } else { return page( VIEW_INVOICE ); } } } - /code this allows me also to react on different results from these functions. When did you call the getModel() method from the bean? Are you doing that in the prepare or perform function? ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 6. Dezember 2002 00:01 An: [EMAIL PROTECTED] Betreff: XMLForm: content listbox problem Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I
RE: Xml form How To-Please help me out
Hello, Your sitemap have to be with the xml files in src\webapp\samples\xmlform. Check all your paths in the sitemap. Regards Sylvain -Message d'origine- De: poornima ponnuswamy [mailto:[EMAIL PROTECTED]] Date: vendredi, 20. décembre 2002 07:19 À: [EMAIL PROTECTED] Objet: Xml form How To-Please help me out I am able to get the http://localhost:8080/cocoon/samples/xmlform/wizard Now I tried to run the XML form wizard but I couldnt succeed. I am really trying hard to get it done but I couldnt. Can one spend few min in helping me out...please These are the following steps I followed. I created howto in src\webapp\samples\xmlform folder and put all the xml files in it. And then I created howto folder in \src\java\org\apache\cocoon\samples\xmlform\ and put 2 java files in it (Is this right) and then I put the sitemap in \src\java\org\apache\cocoon\samples\xmlform (Is this right) and then I build it using the command build.bat -Dinclude.webapp.libs=true webapp. Are all these steps right?. Also I want to know how howto-wizard.html page is created. Can you please help me in figuring out the problem Note :I am using all the files from the http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html website Thanks poornima __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get back XMLForm data to Cocoon
Hello, I'm using XMLForm to collect information. With these information I retrieve a result from a database (with Java code in the Action file). Now I want to take this result to display it on the screen. And I want to use the Cocoon publication features. My question is: how to get back this result to display it with Cocoon? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLform JavaBean and Database Connection Pool
Hi Lars, I have implemented an object-relationnal mapping tool called OJB (it's open source) to connect to my databases. It works very well. You don't need special code or new methods within javabean. You don't need queries and you don't need to manage connections. You simply instantiate a new database object within the javabean and after that you work with your classes that represent your database. I could send you an example if you are interested. Regards Sylvain -Message d'origine- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: jeudi, 9. janvier 2003 02:47 À: Cocoon-Users (E-Mail) Objet: XMLform JavaBean and Database Connection Pool Hello, hello I have a question related to xmlform and database connections. I would like to know which would be the best way to implement database connections and querys. So far I tried to put all database connection into methods within the javabean. therefore I didn't used the cocoon database connection pool. I run into several problems as I tried this. I also tried to get a connection from the cocoon connection pool in the action class of the xmlform. after I got this I passed the connection to the bean. this seemes to work, but causes sometimes system hangs and its in my opinion not a good solution. My question is now what would be a good way to feed the databean with data from a database? Should be all database actions take place in the action class? ciao Lars - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
file generator error
Hello, My sitemap is: map:match pattern=virus_info.xml map:generate src=http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings/ map:transform src=styles/info.xsl/ map:serialize type=xml/ /map:match The problem is that I can't compile the sitemap. Error is: org.xml.sax.SAXParseException: The reference to entity c must end with the ';' delimiter. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) etc... Anybody has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file generator error
Thank you all for your response. If I substitute '' by 'amp;', the sitemap compilation is OK. But the link doesn't work anymore! Anybody has a solution? Regards Sylvain -Message d'origine- De: Ed Yavno [mailto:[EMAIL PROTECTED]] Date: jeudi, 9. janvier 2003 17:54 À: Thévoz Sylvain, IT-DTS-ENG-SDM; [EMAIL PROTECTED] Objet: RE: file generator error can't use '' if it's not part of an entity reference, substitute your '' for its entity reference: map:generate src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20warnings/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: file generator error Hello, My sitemap is: map:match pattern=virus_info.xml map:generate src=http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings/ map:transform src=styles/info.xsl/ map:serialize type=xml/ /map:match The problem is that I can't compile the sitemap. Error is: org.xml.sax.SAXParseException: The reference to entity c must end with the ';' delimiter. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) etc... Anybody has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file generator error
Hi, It means that if I replace the '' by 'amp;', the link isn't correct anymore. The problem seems to be that the Tomcat web server doesn't convert 'amp;' to '' and use 'amp;' to retrieve the web page. Any idea? Is it a Tomcat bug? Thank you Sylvain -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Date: vendredi, 10. janvier 2003 19:29 À: [EMAIL PROTECTED] Objet: Re: file generator error I checked the link and Mozilla recognized the content as XML, so I guess that's not the problem. But doesn't work anymore is not really a helpful error message. Joerg J.Pietschmann wrote: [EMAIL PROTECTED] wrote: If I substitute '' by 'amp;', the sitemap compilation is OK. But the link doesn't work anymore! Did it ever work? I guess the source is HTML rather than XML, I think you have to tell the sitemap to use a HTML generator. Look up details in the Cocoon doc, in particular in the section about generators - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm view: what is the id
Hi all, Here the beginning of an XMLForm view called form1.xml: ?xml version=1.0 ? document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; xf:form id=form-feedback view=form1 action=delete.html In the third line there is a id=form-feedback. What does this id means? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file generator error
Hi Geoff, How do you debug this and how do you find your result? Thank you Regards Sylvain -Message d'origine- De: Geoff Howard [mailto:[EMAIL PROTECTED]] Date: lundi, 13. janvier 2003 15:46 À: [EMAIL PROTECTED] Objet: RE: file generator error -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:25 AM To: [EMAIL PROTECTED] Subject: RE: file generator error Hi, It means that if I replace the '' by 'amp;', the link isn't correct anymore. The problem seems to be that the Tomcat web server doesn't convert 'amp;' to '' and use 'amp;' to retrieve the web page. Any idea? Is it a Tomcat bug? Thank you Sylvain I think I have confirmed some problem - try http://localhost:8080/cocoon/samples/system/request.html?foo=baramp;fee=fi it gives: ... requestParameters parameter name=amp;fee valuefi/value /parameter parameter name=foo valuefee/value /parameter /requestParameters ... Don't have time to do more than that now. Geoff Howard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file generator error
Hi Joerg, I'm using Cocoon 2.1 dev but an old version (17.10.2002). It could be the problem, no? Geoff: which version do you use? Regards Sylvain -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Date: lundi, 13. janvier 2003 16:56 À: [EMAIL PROTECTED] Objet: Re: file generator error Hello Geoff and Sylvain, I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07). Using this sitemap snippet map:match pattern=test map:generate src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20warnings/ map:serialize type=xml/ /map:match I have this in my core.log, where you can see that the link is resolved correctly. Furthermore I get the same result requesting the virus warnings from Cocoon and directly from www.moreover.com. Regards, Joerg DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings DEBUG (2003-01-13) 16:48.59:984 [core.store.transient] (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings_S-xml-1 DEBUG (2003-01-13) 16:48.59:984 [core.store.persistent] (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings_S-xml-1 DEBUG (2003-01-13) 16:48.59:984 [core.store.transient] (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings DEBUG (2003-01-13) 16:48.59:984 [core.store.persistent] (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings DEBUG (2003-01-13) 16:49.00:234 [core.manager] (/cocoon/joerg/test) Thread-9/XMLizerImpl: No mime-type for xmlizing http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings, guessing text/xml Geoff Howard wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:25 AM To: [EMAIL PROTECTED] Subject: RE: file generator error Hi, It means that if I replace the '' by 'amp;', the link isn't correct anymore. The problem seems to be that the Tomcat web server doesn't convert 'amp;' to '' and use 'amp;' to retrieve the web page. Any idea? Is it a Tomcat bug? Thank you Sylvain I think I have confirmed some problem - try http://localhost:8080/cocoon/samples/system/request.html?foo=baramp;fee=fi it gives: ... requestParameters parameter name=amp;fee valuefi/value /parameter parameter name=foo valuefee/value /parameter /requestParameters ... Don't have time to do more than that now. Geoff Howard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file generator error
Hi Geoff, I haven't exactly the same as you but I confirm there is a problem here. For me your link gives: requestParameters parameter name=amp;fee valuefi/value /parameter parameter name=foo valuebar/value /parameter /requestParameters Regards Sylvain -Message d'origine- De: Geoff Howard [mailto:[EMAIL PROTECTED]] Date: lundi, 13. janvier 2003 21:35 À: [EMAIL PROTECTED] Objet: RE: file generator error don't remember seeing a bug fix related to this, but that could be it - I use a cvs version of 2.1 from early december (12/7 I think). Joerg, do you get the result I do on the request generator example (Sylvain too)? Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: RE: file generator error Hi Joerg, I'm using Cocoon 2.1 dev but an old version (17.10.2002). It could be the problem, no? Geoff: which version do you use? Regards Sylvain -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Date: lundi, 13. janvier 2003 16:56 À: [EMAIL PROTECTED] Objet: Re: file generator error Hello Geoff and Sylvain, I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07). Using this sitemap snippet map:match pattern=test map:generate src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20wa rnings/ map:serialize type=xml/ /map:match I have this in my core.log, where you can see that the link is resolved correctly. Furthermore I get the same result requesting the virus warnings from Cocoon and directly from www.moreover.com. Regards, Joerg DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings DEBUG (2003-01-13) 16:48.59:984 [core.store.transient] (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20w arnings_S-xml-1 DEBUG (2003-01-13) 16:48.59:984 [core.store.persistent] (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20w arnings_S-xml-1 DEBUG (2003-01-13) 16:48.59:984 [core.store.transient] (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings DEBUG (2003-01-13) 16:48.59:984 [core.store.persistent] (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: PK_G-file-http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings DEBUG (2003-01-13) 16:49.00:234 [core.manager] (/cocoon/joerg/test) Thread-9/XMLizerImpl: No mime-type for xmlizing http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings, guessing text/xml Geoff Howard wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:25 AM To: [EMAIL PROTECTED] Subject: RE: file generator error Hi, It means that if I replace the '' by 'amp;', the link isn't correct anymore. The problem seems to be that the Tomcat web server doesn't convert 'amp;' to '' and use 'amp;' to retrieve the web page. Any idea? Is it a Tomcat bug? Thank you Sylvain I think I have confirmed some problem - try http://localhost:8080/cocoon/samples/system/request.html?foo=bara mp;fee=fi it gives: ... requestParameters parameter name=amp;fee valuefi/value /parameter parameter name=foo valuefee/value /parameter /requestParameters ... Don't have time to do more than that now. Geoff Howard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html
[XMLForm] how to dynamically initialize a bean property?
Hello, In my XMLForm application I want to initialize a bean property each time I load the application because the initialization value changes all the time (to find the initialization value I retrieve a value, which is also dynamic, from a database and I increment it). If I initialize the property in the bean constructor, I have seen that the property is initialized only the first time I load the application. How to do that if I want to initialize the property each time? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: amp; in url [WAS: file generator error]
Joerg, I found the same as you if I type the URL in my browser. But in my case the problem is that the URL will be parsed through an XML parser. If I type the XML parser returns me this error: An error occurred The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: The reference to entity c must end with the ';' delimiter. More precisely: org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap: file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException: The reference to entity c must end with the ';' delimiter. And If I type amp; the XML parser doesn't return an error but the link isn't correct anymore because it uses amp; instead of . Sylvain -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Date: mardi, 14. janvier 2003 21:14 À: [EMAIL PROTECTED] Objet: Re: file generator error Hello Geoff, If I type http://127.0.0.1:8080/cocoon/joerg/test?test=testtest2=test2 in Mozilla URL textbox I get expected requestParameters parameter name=test2 valuetest2/value /parameter parameter name=test valuetest/value /parameter /requestParameters If I type http://127.0.0.1:8080/cocoon/joerg/test?test=testamp;test2=test2 I get (IMO also) expected requestParameters parameter name=amp;test2 valuetest2/value /parameter parameter name=test valuetest/value /parameter /requestParameters because as delimiter for the parameters (not amp;), so amp; must be the beginning of the next parameter name. But I think, that's not the problem. The only one is the replacing of the character reference amp; with the character done by the XML parser. And as I only can point out it works for me as shown below. Why, Sylvain, aren't you simply trying the same? Afterwards a simple look in the core.log shows the correct resolving of amp; or not. Regards, Joerg Geoff Howard wrote: don't remember seeing a bug fix related to this, but that could be it - I use a cvs version of 2.1 from early december (12/7 I think). Joerg, do you get the result I do on the request generator example (Sylvain too)? Geoff -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Hello Geoff and Sylvain, I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07). Using this sitemap snippet map:match pattern=test map:generate src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20wa rnings/ map:serialize type=xml/ /map:match DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: amp; in url [WAS: file generator error]
Hi Joerg, Your snippet works well for me (with amp;)! So, if I'm right this means that it isn't a bug but a problem in my code!? = I have found that it was a matcher problem in my sitemap! Now it works! Thank you all for you help Sylvain -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Date: mercredi, 15. janvier 2003 10:47 À: [EMAIL PROTECTED] Objet: Re: amp; in url [WAS: file generator error] Hi Sylvain, yes, we lost the original posting a bit ;-) [EMAIL PROTECTED] wrote: Joerg, I found the same as you if I type the URL in my browser. Nice to hear. But in my case the problem is that the URL will be parsed through an XML parser. If I type the XML parser returns me this error: An error occurred The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: The reference to entity c must end with the ';' delimiter. More precisely: org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap: file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException: The reference to entity c must end with the ';' delimiter. That's clear, it must be so. means here starts an entity. And in contrast to most HTML browsers an XML parser doesn't try to add the obviously missing ';'. And If I type amp; the XML parser doesn't return an error but the link isn't correct anymore because it uses amp; instead of . And here you are wrong. The link *is* correct then. Similar to HTML (e.g. a href=/) you *must* escape to amp; (HTML browsers only try to solve the problem themselves, if they find an without ;). And as you can see below in the quoted message I had it working (amp; is resolved to ). Try to add this little snippet into the sitemap (only map:generate + map:serialize), test it, have a look into the core.log and tell me, what's wrong with your Cocoon version. Maybe you test a newer one, if there was really a bug in the resolving, but I don't assume so. Regards, Joerg -Message d'origine- De: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Hello Geoff and Sylvain, I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07). Using this sitemap snippet map:match pattern=test map:generate src=http://www.moreover.com/cgi-local/page?o=xmlamp;c=Virus%20wa rnings/ map:serialize type=xml/ /map:match DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 'http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings' DEBUG (2003-01-13) 16:48.59:984 [core.manager] (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from http://www.moreover.com/cgi-local/page?o=xmlc=Virus%20warnings - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XMLForm] xmlform-scope parameter
Hello, What is the difference between request and session for the value of xmlform-scope parameter? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [XMLForm] terminology question
Hi, Thank you but my question was about the meaning of the word in the context of XMLForm rather than the definition of the word itself. To say in another way: what do you fill with values? Where do you come from these values? Regards Sylvain -Message d'origine- De: Sylvain Wallez [mailto:[EMAIL PROTECTED]] Date: jeudi, 16. janvier 2003 13:55 À: [EMAIL PROTECTED] Objet: Re: [XMLForm] terminology question [EMAIL PROTECTED] wrote: Hello, I'm looking through the XMLForm source code and API and there are many comments that speak about population. What does it mean exactly? It comes from the verb populate, which, in this context, means something as fill with values. Check also http://dictionary.reference.com/search?q=populate Sylvain (another one) -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [XMLForm] terminology question
Thank you! Sorry for my ignorance but does it mean that in XMLForm a population is proceeded each time you invoke the action? Thank you Sylvain -Message d'origine- De: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Date: jeudi, 16. janvier 2003 14:11 À: [EMAIL PROTECTED] Objet: Re: [XMLForm] terminology question The population term comes from JavaBeans, Struts, etc. and basicaly it means filling (populating) java bean properties with values from some other sources, e.g. XML, map, another bean properties, servlet request, etc. Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 15:51 Subject: [XMLForm] terminology question Hello, I'm looking through the XMLForm source code and API and there are many comments that speak about population. What does it mean exactly? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [XMLForm] terminology question
OK, thank you very much. I think it could be very useful to have something like your description in the XMLForm documentation for the newbie users like me. It just to start with a minimal knowledge. Hope this helps. Of course, the best way to learn how the things happen is to look at the source and try to implement something simple and so on. You're right. This is what I'm trying to do. Regards Sylvain -Message d'origine- De: Konstantin Piroumian [mailto:[EMAIL PROTECTED]] Date: jeudi, 16. janvier 2003 15:09 À: [EMAIL PROTECTED] Objet: Re: [XMLForm] terminology question Ok, I'll try to answer again. what do you fill with values? The Form object which is a wrapper for the underlying data model object. It can be either a JavaBean or a DOM object. And that Form is filled by values using XPath expressions which are processed by JXPath (http://jakarta.apache.org/commons/jxpath). The Form object is filled by values when a request is received and processed by the XMLForms action (don't remember the exact name, sorry). Where do you come from these values? So, the values come from the request (Http servlet request) parameters, which should have XPath name, e.g.: '/customer/firstname=John', etc. As the XMLForm framework was inspired by Struts then you'll find more detailed description of concepts at Struts' page: http://jakarta.apache.org/struts Hope this helps. Of course, the best way to learn how the things happen is to look at the source and try to implement something simple and so on. Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 16:07 Subject: RE: [XMLForm] terminology question Hi, Thank you but my question was about the meaning of the word in the context of XMLForm rather than the definition of the word itself. To say in another way: what do you fill with values? Where do you come from these values? Regards Sylvain -Message d'origine- De: Sylvain Wallez [mailto:[EMAIL PROTECTED]] Date: jeudi, 16. janvier 2003 13:55 À: [EMAIL PROTECTED] Objet: Re: [XMLForm] terminology question [EMAIL PROTECTED] wrote: Hello, I'm looking through the XMLForm source code and API and there are many comments that speak about population. What does it mean exactly? It comes from the verb populate, which, in this context, means something as fill with values. Check also http://dictionary.reference.com/search?q=populate Sylvain (another one) -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XMLForm] initialization of the model
Hi all, I'm trying to initialize the model of a XMLForm app each time I call this app. This app is launching from the Cocoon portal, in an authenticated environment. I have followed the solution coming from the posts in this list (thank you for that). The solution was to override the getFormModel() method in the Action class to initialize the model inside. I've done this but I still have a problem: the initialization is proceeded only the first time I call the app (the action) and not each time. What should I do for doing this? Is there maybe a session problem? Any help would be greatly appreciated. Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Portal - NullPointerException Error
Hello, What have you modified? Regards Sylvain -Message d'origine- De: Richard Reyes [mailto:[EMAIL PROTECTED]] Date: lundi, 20. janvier 2003 06:39 À: cocoon-users Objet: Portal - NullPointerException Error Hi Guys, I've been trying to modify the cocoon portal configurations to suit my needs, when i accidentally stumbled into this nullpointerexception error... Original exception : java.lang.NullPointerException at org.apache.cocoon.webapps.portal.components.PortalManager.showPortal(PortalManager.java:740) at org.apache.cocoon.webapps.portal.generation.PortalGenerator.generate(PortalGenerator.java:82) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:537) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:213) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299) at org.apache.cocoon.Cocoon.process(Cocoon.java:600) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104) 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:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: Portal - NullPointerException Error
Hi Richard, You have to modify: -sitemap -views (in resources\ directory) -stylessheets (in styles\ directory) -coplets configuration (Portal Management in the portal) Search for the word in each one. Regards Sylvain -Message d'origine- De: Richard Reyes [mailto:[EMAIL PROTECTED]] Date: lundi, 20. janvier 2003 10:36 À: [EMAIL PROTECTED] Objet: Re: Portal - NullPointerException Error mainly naming conventions, ( yet ). i would like to just remove the sunspotdemo word. anything you need to help you help me?? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 4:38 PM Subject: RE: Portal - NullPointerException Error Hello, What have you modified? Regards Sylvain -Message d'origine- De: Richard Reyes [mailto:[EMAIL PROTECTED]] Date: lundi, 20. janvier 2003 06:39 À: cocoon-users Objet: Portal - NullPointerException Error Hi Guys, I've been trying to modify the cocoon portal configurations to suit my needs, when i accidentally stumbled into this nullpointerexception error... Original exception : java.lang.NullPointerException at org.apache.cocoon.webapps.portal.components.PortalManager.showPortal(PortalM anager.java:740) at org.apache.cocoon.webapps.portal.generation.PortalGenerator.generate(PortalG enerator.java:82) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP ipeline(AbstractProcessingPipeline.java:537) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline .processXMLPipeline(AbstractCachingProcessingPipeline.java:213) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs tractProcessingPipeline.java:481) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:148) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:317) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:299) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:134) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:143) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:317) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:299) at org.apache.cocoon.Cocoon.process(Cocoon.java:600) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104) 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:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
RE: [XMLForm] initialization of the model
Hi Ivelin, I have tried to put these lines in the prepare() method and it works: code Form.remove(getObjectModel(), getFormId()); getForm().addFormListener(this); code But to understand this thing could you tell me: - the getFormModel() method is called the first time you call the app, right? - is the getFormModel() method called before or after the prepare() method? - the prepare() method is called each time you call the app, right? Thank you Regards Sylvain -Message d'origine- De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Date: lundi, 20. janvier 2003 15:18 À: [EMAIL PROTECTED] Objet: Re: [XMLForm] initialization of the model Try the overriding reset() - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 2:53 AM Subject: [XMLForm] initialization of the model Hi all, I'm trying to initialize the model of a XMLForm app each time I call this app. This app is launching from the Cocoon portal, in an authenticated environment. I have followed the solution coming from the posts in this list (thank you for that). The solution was to override the getFormModel() method in the Action class to initialize the model inside. I've done this but I still have a problem: the initialization is proceeded only the first time I call the app (the action) and not each time. What should I do for doing this? Is there maybe a session problem? Any help would be greatly appreciated. Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .Net port of Cocoon
Hi Luca, Hmm I never restart the Servlet container (not the VM) for debugging. Could you explain how you debug your Cocoon app? Regards Sylvain -Message d'origine- De: Luca Morandini [mailto:[EMAIL PROTECTED]] Date: jeudi, 23. janvier 2003 15:41 À: [EMAIL PROTECTED] Objet: RE: .Net port of Cocoon Andreas, wait a second: I mean no memory leaks in the VM Memory leaks ? I've got applications in operation for months without having a single hiccup... aren't you confusing the Servlet container (say, a buggy verisone of Tomcat) with Cocoon ? no complicated superlong configration files That's the con side of flexibility: I hate those GUI-based administration tools that don't allow you to do much. no VM restarting for debugging Hmm I never restart the Servlet container (not the VM) for debugging: could you please explain ? Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Andreas Bednarz [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 3:30 PM To: [EMAIL PROTECTED] Subject: Re: .Net port of Cocoon Hi Derek, thank you very much for your comment. Yes, it is all true and I am not a friend of MS closed sources in any way. We know Java very well but you hardly get peoply who can do the real thinks with Cocoon and can develop a real application ... not just some test cases and handler forms. In thins case a .NET application would not be easier to handle too, but maybe there is some company who can provide a Cocoon Clone which is as easy to use as PHP. I mean no memory leaks in the VM, no complicated superlong configration files, no VM restarting for debugging etc Andreas Bednarz, Germany - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .Net port of Cocoon
Hi Vadim, ... and shoud not be: all IDEs as well as JDK has debuggers. Use them remotely or start your servlet engine from under it - in either case you can put breakpoints and debug your Java. Do you include Eclipse? Sylvain -Message d'origine- De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Date: jeudi, 23. janvier 2003 17:05 À: [EMAIL PROTECTED] Objet: Re: .Net port of Cocoon Luca Morandini wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 3:55 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: .Net port of Cocoon Hi Luca, Hmm I never restart the Servlet container (not the VM) for debugging. Could you explain how you debug your Cocoon app? By looking at the log files (you can easily configure them via logkit.xconf) and by using views (meaning: looking at the output of intermediate steps in the pipeline). Granted, there is no debugger in Cocoon, ... and shoud not be: all IDEs as well as JDK has debuggers. Use them remotely or start your servlet engine from under it - in either case you can put breakpoints and debug your Java. /me goes back to lurking Vadim but no need to re-start the container either. Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XMLForm] Bean initialization
Hello everybody, Few weeks ago I talked about a problem when I tried to initialize the Bean in my XMLForm app. The Bean initialization should load an XML file and save it into a Node variable declared in the Bean. This Node is used to list possible values in a listbox for the property workstationType. The problem was that the list of the listbox was empty on the first page of the form and the Bean didn't seem to be initialized. When you went to the next page and went back to the first, the list was suddenly full and all was OK. It seemed that the Bean was initialized only at the second page. It's very strange because the Bean seemed to be initialized but the list for the listbox was empty. But there was the right number of spaces to display the list (you had 5 lines in the view if there was 5 entries in the list). I have new information about this problem: 1) I tried to override the getFormModel() method in the Action and put the Bean initialization into this method. The problem was still exactly the same! 2) I conclude that it's not a Node initialization problem. The problem is when you want to display the list at the first page. Now there is a strange thing: if you assign something in the property workstationType within the getFormModel(), the initialization works well and you have the full list at the first page (but you don't see the value you have assigned in the getFormModel() method!). WHAT HAPPEN!!! If someone has an idea? Thank you very much Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[XMLForm] Bean initialization
Hello everybody, I repost my question: Few weeks ago I talked about a problem when I tried to initialize the Bean in my XMLForm app. The Bean initialization should load an XML file and save it into a Node variable declared in the Bean. This Node is used to list possible values in a listbox for the property workstationType. The problem was that the list of the listbox was empty on the first page of the form and the Bean didn't seem to be initialized. When you went to the next page and went back to the first, the list was suddenly full and all was OK. It seemed that the Bean was initialized only at the second page. It's very strange because the Bean seemed to be initialized but the list for the listbox was empty. But there was the right number of spaces to display the list (you had 5 lines in the view if there was 5 entries in the list). I have new information about this problem: 1) I tried to override the getFormModel() method in the Action and put the Bean initialization into this method. The problem was still exactly the same! 2) I conclude that it's not a Node initialization problem. The problem is when you want to display the list at the first page. Now there is a strange thing: if you assign something in the property workstationType within the getFormModel(), the initialization works well and you have the full list at the first page (but you don't see the value you have assigned in the getFormModel() method!). WHAT HAPPEN!!! If someone has an idea? Thank you very much Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]