Re: Samples not working for me!
I'm using iPlanet Web Server 6.0. I'm using the latest release of Cocoon2. I've built a war file using build installwar and have deployed that with iPlanet. Whenever I click on Refactored Samples, or the Search link I get the following error : Refactoring of samples is still in progress, so don't expect that it will work without problems for a while. org.apache.avalon.framework.configuration.ConfigurationException: Type 'xml' is not defined for 'serialize' at file:/C:/Development/webapps/cocoon/samples/sitemap.xmap:27:31 I'll take a look at it. Whenever I click on the Samples link, I get a directory listing of the Welcome directory. Try 'http://your-host:port/cocoon/samples/welcome', it works for me on Tomcat 4.0.1 Konstantin Have I missed a step somewhere? Thanks David - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n transformer problem
Hi Hello, Can someone help me to understand why i18n transformer divides key? This is the behavior of SAX parser. But I thought that I've fixed that. Are you using the latest version (either from 2.0.3 branch or HEAD)? This happens because SAX parser sometimes divides text into smaller chunks. I18nTransformer was changed to buffer the text to prevent incomplete keys. I'll check it, though, I've never seen this even with very long keys. Please tell me what is your configuration? What is your parser? -- Konstantin Input XML contains the following line: i18n:textLNG_LUB_Consultation_Fournisseurs/i18n:text In messages files appropriate translation is present: message key=LNG_LUB_Consultation_FournisseursConsultation Fournisseurs/message However in a browser I get untranslated-text and in sitemap.log I see that the transformer divides the key (other keys are translated though): DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: Starting i18n element: text DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: Start i18n element: text DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: i18n message text = 'LNG_LUB_Cons' DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:260 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:260 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: i18n message text = 'ultation_Fournisseurs' DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: End i18n element: text DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: End text element, translated_text: untranslated-text Thank you for your response. Roman - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Cocoon use
People, I would like to know why you use Cocoon? Thank you, Edgar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n transformer problem
Hello Konstantin, Thank you for your reply. My configuration is Tomcat 4.0.1, Cocoon 2.0.1 with its default parsers. Roman Konstantin Piroumian wrote: Hi Hello, Can someone help me to understand why i18n transformer divides key? This is the behavior of SAX parser. But I thought that I've fixed that. Are you using the latest version (either from 2.0.3 branch or HEAD)? This happens because SAX parser sometimes divides text into smaller chunks. I18nTransformer was changed to buffer the text to prevent incomplete keys. I'll check it, though, I've never seen this even with very long keys. Please tell me what is your configuration? What is your parser? -- Konstantin Input XML contains the following line: i18n:textLNG_LUB_Consultation_Fournisseurs/i18n:text In messages files appropriate translation is present: message key=LNG_LUB_Consultation_FournisseursConsultation Fournisseurs/message However in a browser I get untranslated-text and in sitemap.log I see that the transformer divides the key (other keys are translated though): DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: Starting i18n element: text DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: Start i18n element: text DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: i18n message text = 'LNG_LUB_Cons' DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:250 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:260 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:260 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='LNG_LUB_Cons'] DEBUG (2002-04-26) 11:08.38:280 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: i18n message text = 'ultation_Fournisseurs' DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: returning from cache: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:290 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: cache_not_found contains: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/XMLResourceBundle: messages: caching not_found: /catalogue/message[@key='ultation_Fournisseurs'] DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: End i18n element: text DEBUG (2002-04-26) 11:08.38:300 [sitemap.transformer.i18n] (/bdl/providers) HttpProcessor[8080][1]/I18nTransformer: I18nTransformer: End text element, translated_text: untranslated-text Thank you for your response. Roman - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Cocoon use
One does for damn sure. WebObjects 5.1.x -Marc Jörn Heid wrote: 1. Open Standards 2. Output independency 3. True MVC 4. Open Source 5. Java (plattform independency) 6. Fast (regarding the points above) The question is if there's an alternative product on the market? I think not. Cocoon uses as much open standards as it can. No other product I know has those advantages. -Ursprüngliche Nachricht- Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 26. April 2002 09:45 An: '[EMAIL PROTECTED]' Betreff: Cocoon use People, I would like to know why you use Cocoon? Thank you, Edgar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :(
Not sure if WL 6.0 is different, but on previous versions of WL there is a lot of confusion surrounding where jars are kept. It basically has 2 separate classpaths - 1 for WL itself, and 1 for the webapps. If the jars are in the wrong classpath you can get the kind of messages you see below - even worse, if the jar - or any of it's classes - appear in both classpaths, you also get the kind of error you specify. I had exactly that problem with xerces in WL 5.x - and had to remove some of the classes from the WL System jars - quite a pain. I know they said this wold be sorted in v.6.x - but I've heard that before. If you like I can forward you the analysis we did at the time - if I can find it. Tony [EMAIL PROTECTED] on 04/26/2002 11:54:31 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :( Hi I've been trying to get cocoon to deploy under Weblogic for some time now, and it isn't working The system is a Solaris machine, Java 1.3.1, Weblogic 6.0 sp2. I have followed the instructions concisely from the cocoon site, and used the cocoon.war file that came with the binary distribution of Cocoon 2.0.2, but if I try to get it running, I get the following message on startup: BEGIN Apr 26, 2002 12:48:25 PM CEST Error Management Error initializing module cocoon of application vodafone:Name=Cocoon,Type=Application from path ./config/vodafone/applicatio ns: weblogic.management.MBeanCreationException: cannot find referenced module cocoon Apr 26, 2002 12:48:25 PM CEST Error Management Error preparing application compone nt cocoon of application vodafone:Name=Cocoon,Type=Application: java.io.FileNotFoundExcep tion: ./config/vodafone/applications/cocoon (No such file or directory) ((localPath: java .io.FileNotFoundException: ./config/vodafone/applications/cocoon (No such file or directo ry)) Apr 26, 2002 12:48:25 PM CEST Error J2EE Error deploying application cocoon: error retrieving component [Caching Stub]Proxy for vodafone:Name=cocoon,Location=eservices,Typ e=WebAppComponentConfig,ApplicationConfig=Cocoon Apr 26, 2002 12:48:32 PM CEST Error HTTP [WebAppServletContext(661879,cocoon)] Error loadi ng servlet: 'Cocoon2' java.lang.NoSuchMethodError at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init (DefaultCo nfigurationBuilder.java:88) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init (DefaultCo nfigurationBuilder.java:64) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:772) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:241) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java :638) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja va:581) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav a:526) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC ontext.jav a:1078) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet Context.ja va:1022) at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:468) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:133) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :327) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :143) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java: 76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl .java:562) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5 48) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea nImpl.java :285) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180) at $Proxy29.addWebDeployment(Unknown Source) at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen t(WebServe rMBean_CachingStub.java:1012) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :313) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :143) at
problem with subsitemap
Hi, i'm trying to serve my application-content from subsitemaps. Here is a example from my sitemap. the Base-Sitemap: base-sitemap !-- mounted subapplication -- map:match pattern=sub/** map:mount check-reload=yes src=sub/sitemap.xmap uri-prefix=sub/ /map:match map:match pattern=test map:generate src=cocoon:/sub// map:serialize type=xml/ /map:match /base-sitemap the SubSitemap : sub-sitemap map:match pattern= map:redirect-to uri=entry/ /map:match map:match pattern=/ map:redirect-to uri=entry/ /map:match map:match pattern=entry map:generate src=content.xsp type=serverpages/ map:serialize type=xml/ /map:match /subsitemap When requesting /test i expect the content from /sub/entry. But i'm getting the following error message in sitemap.log: org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: sub//entry is this a bug or did i something misunderstand? Thanks lot -Frank - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with get non-english characters from CLOB (esql:get-asciiusage)
Hello all! I have following problem: In Oracle database I store some CLOB object. This clob contain XML with KOI8-R coding. After set in clob next data:h4ÜÔÏ ÔÅÓÔ/h4 I use esql:get-ascii method for get my data. And I have wrong results :( like: h4-B B5AB/h4 What I'm wrong? Can anyone help me?? Thanx. Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with subsitemap
Frank Taffelt wrote: Hi, i'm trying to serve my application-content from subsitemaps. Here is a example from my sitemap. the Base-Sitemap: base-sitemap !-- mounted subapplication -- map:match pattern=sub/** map:mount check-reload=yes src=sub/sitemap.xmap uri-prefix=sub/ /map:match Try map:mount check-reload=yes src=sub/ uri-prefix=sub/ Yury map:match pattern=test map:generate src=cocoon:/sub// map:serialize type=xml/ /map:match /base-sitemap the SubSitemap : sub-sitemap map:match pattern= map:redirect-to uri=entry/ /map:match map:match pattern=/ map:redirect-to uri=entry/ /map:match map:match pattern=entry map:generate src=content.xsp type=serverpages/ map:serialize type=xml/ /map:match /subsitemap When requesting /test i expect the content from /sub/entry. But i'm getting the following error message in sitemap.log: org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: sub//entry is this a bug or did i something misunderstand? Thanks lot -Frank - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :(
Thanks for the reply. I had exactly that problem with xerces in WL 5.x - and had to remove some of the classes from the WL System jars - quite a pain. P that sucks. It would be nicer if the output displayed a bit more information other than java.lang.NoSuchMethodError at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init though - maybe telling me what object and method couldn't be found? Seems I might have to download the Avalon source to find out what's exactly going on... but then, I'm not too sure which version of the Avalon framework is being used in Cocoon 2.0.2 If you like I can forward you the analysis we did at the time - if I can find it. If it's not too much trouble, I would appreciate that analysis - thanks a lot. Chris. -Original Message- From: Anthony Aldridge [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 1:19 PM To: [EMAIL PROTECTED] Subject: Re: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :( Not sure if WL 6.0 is different, but on previous versions of WL there is a lot of confusion surrounding where jars are kept. It basically has 2 separate classpaths - 1 for WL itself, and 1 for the webapps. If the jars are in the wrong classpath you can get the kind of messages you see below - even worse, if the jar - or any of it's classes - appear in both classpaths, you also get the kind of error you specify. I had exactly that problem with xerces in WL 5.x - and had to remove some of the classes from the WL System jars - quite a pain. I know they said this wold be sorted in v.6.x - but I've heard that before. If you like I can forward you the analysis we did at the time - if I can find it. Tony [EMAIL PROTECTED] on 04/26/2002 11:54:31 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :( Hi I've been trying to get cocoon to deploy under Weblogic for some time now, and it isn't working The system is a Solaris machine, Java 1.3.1, Weblogic 6.0 sp2. I have followed the instructions concisely from the cocoon site, and used the cocoon.war file that came with the binary distribution of Cocoon 2.0.2, but if I try to get it running, I get the following message on startup: BEGIN Apr 26, 2002 12:48:25 PM CEST Error Management Error initializing module cocoon of application vodafone:Name=Cocoon,Type=Application from path ./config/vodafone/applicatio ns: weblogic.management.MBeanCreationException: cannot find referenced module cocoon Apr 26, 2002 12:48:25 PM CEST Error Management Error preparing application compone nt cocoon of application vodafone:Name=Cocoon,Type=Application: java.io.FileNotFoundExcep tion: ./config/vodafone/applications/cocoon (No such file or directory) ((localPath: java .io.FileNotFoundException: ./config/vodafone/applications/cocoon (No such file or directo ry)) Apr 26, 2002 12:48:25 PM CEST Error J2EE Error deploying application cocoon: error retrieving component [Caching Stub]Proxy for vodafone:Name=cocoon,Location=eservices,Typ e=WebAppComponentConfig,ApplicationConfig=Cocoon Apr 26, 2002 12:48:32 PM CEST Error HTTP [WebAppServletContext(661879,cocoon)] Error loadi ng servlet: 'Cocoon2' java.lang.NoSuchMethodError at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init (DefaultCo nfigurationBuilder.java:88) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init (DefaultCo nfigurationBuilder.java:64) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:772) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:241) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java :638) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja va:581) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav a:526) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC ontext.jav a:1078) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet Context.ja va:1022) at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:468) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:133) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :327) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :143) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java: 76) at java.lang.reflect.Method.invoke(Native Method) at
Re: problem with subsitemap
Try map:mount check-reload=yes src=sub/ uri-prefix=sub/ no this works when requesting url directly /sub/ OR /sub/entry. the subsitemap is found and compiled. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: send parameter to generator type serverpages
At 12:06 26/04/2002 +0200, you wrote: i want send parameter to the generator type serverpages. My site map is : map:pipeline map:match pattern=etatdb-* map:generate type=serverpages src=etatdb.xsp parameter name=client value={1}/ /map:generate map:transform src=etatdb.xsl/ map:serialize/ map:handle-errors map:transform src=../stylesheets/system/error2html.xsl/ /map:handle-errors /map:match /map:pipeline on my xsp file, i add this line : xsp:exprparameters.getParameter(client)/xsp:expr Use this: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; data xsp:logic String myParam = ; !-- get the parameter from sitemap -- try{ myParam = parameters.getParameter(client); } catch (Exception e) {} /xsp:logic ... your content goes here ... /data /xsp:page Make sure you place the code below the first tag (not directly below the xsp:page tag). This question has been answered before on this list by Vadim. Do check the archives. Bert - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :(
Chris, here are a few tips that may help: 1) you cannot deploy a cocoon.war file in WL6.0 SP2 (at least we were not able to. You will need to unpack it first and then deploy in the directory structure. 2) WebLogic chokes on JARs that contain ., -, _ etc. You may need to change some names. 3) You will need to remove the Manifest.mf files from: xt, xalan, fop, cocon, ant und antoptional 4) You will need to add the following line to cocoon.xconf: xslt-processor parameter name=transformer-factory value =org.apache.xalan.processor.TransformerFactoryImpl/ All this being said - this is how we got Cocoon to run on a Windows system with Weblogic 2.0SP2. By the way I would be interested in hearing what you are doing with Cocoon at Vodafone by way of a mail. Hope this helps Matthew Langham Technical Director Open Source Group -- Open Source Group sunShine - Lighting up e:Business = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 12:55 PM To: [EMAIL PROTECTED] Subject: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :( Hi I've been trying to get cocoon to deploy under Weblogic for some time now, and it isn't working The system is a Solaris machine, Java 1.3.1, Weblogic 6.0 sp2. I have followed the instructions concisely from the cocoon site, and used the cocoon.war file that came with the binary distribution of Cocoon 2.0.2, but if I try to get it running, I get the following message on startup: BEGIN Apr 26, 2002 12:48:25 PM CEST Error Management Error initializing module cocoon of application vodafone:Name=Cocoon,Type=Application from path ./config/vodafone/applicatio ns: weblogic.management.MBeanCreationException: cannot find referenced module cocoon Apr 26, 2002 12:48:25 PM CEST Error Management Error preparing application compone nt cocoon of application vodafone:Name=Cocoon,Type=Application: java.io.FileNotFoundExcep tion: ./config/vodafone/applications/cocoon (No such file or directory) ((localPath: java .io.FileNotFoundException: ./config/vodafone/applications/cocoon (No such file or directo ry)) Apr 26, 2002 12:48:25 PM CEST Error J2EE Error deploying application cocoon: error retrieving component [Caching Stub]Proxy for vodafone:Name=cocoon,Location=eservices,Typ e=WebAppComponentConfig,ApplicationConfig=Cocoon Apr 26, 2002 12:48:32 PM CEST Error HTTP [WebAppServletContext(661879,cocoon)] Error loadi ng servlet: 'Cocoon2' java.lang.NoSuchMethodError at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init (DefaultCo nfigurationBuilder.java:88) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init (DefaultCo nfigurationBuilder.java:64) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:772) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:241) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java :638) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja va:581) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav a:526) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC ontext.jav a:1078) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet Context.ja va:1022) at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:468) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:133) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :327) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT arget.java :143) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java: 76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl .java:562) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5 48) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea nImpl.java :285) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at
RE: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :(
Matthew Langham wrote: snip/ All this being said - this is how we got Cocoon to run on a Windows system with Weblogic 2.0SP2. Yes! Weblogic 2.0 was really great with running Cocoon! Seriously, of course Matthew meant 6.0SP2. Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with subsitemap
Frank Taffelt wrote: Try map:mount check-reload=yes src=sub/ uri-prefix=sub/ no this works when requesting url directly /sub/ OR /sub/entry. the subsitemap is found and compiled. try this: map:match pattern=test map:redirect-to uri=sub/entry/ /map:match Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PERSONAL JAVA CLASSES
mmm, I tryed to put my sources and classes in WEB-INF/classes/, it did not work. I tryed to put my classes in WEB-INF/classes/, it did not work. I finaly tryed to put classes in a .jar in WEB-INF/classes/, it did work... But i really dont like to re-jar my classes at each compilation, can I avoid this ? fabien. -Message d'origine- De: yuryx [mailto:[EMAIL PROTECTED]] Date: jeudi 7 mars 2002 12:55 À: [EMAIL PROTECTED] Objet: Re: PERSONAL JAVA CLASSES Istvan Beszteri wrote: .../cocoon/WEB-INF/classes/ works for me, but you can check the WEB-INF/web.xml, how to define extra calsspaths. Br, Istvan On Thursday 07 March 2002 13:41, you wrote: Hi, Where must I put my personal Java classes in Cocoon 2? (which directory?) Thanks --- Outgoing mail is certified Virus Free. (CopyRight FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/02 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Or .../cocoon/WEB-INF/lib (for compiled classes) and don't check WEB-INF/web.xml :) Regards. Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PERSONAL JAVA CLASSES
Hello Fabien, Jar's should be in WEB-INF/lib folder. Sources are not necessary at runtime. Classes should be put like WEB-INF/classes/path_to_package/class_name.class It seems that it works for me. Roman TREGAN Fabien wrote: mmm, I tryed to put my sources and classes in WEB-INF/classes/, it did not work. I tryed to put my classes in WEB-INF/classes/, it did not work. I finaly tryed to put classes in a .jar in WEB-INF/classes/, it did work... But i really dont like to re-jar my classes at each compilation, can I avoid this ? fabien. -Message d'origine- De: yuryx [mailto:[EMAIL PROTECTED]] Date: jeudi 7 mars 2002 12:55 À: [EMAIL PROTECTED] Objet: Re: PERSONAL JAVA CLASSES Istvan Beszteri wrote: .../cocoon/WEB-INF/classes/ works for me, but you can check the WEB-INF/web.xml, how to define extra calsspaths. Br, Istvan On Thursday 07 March 2002 13:41, you wrote: Hi, Where must I put my personal Java classes in Cocoon 2? (which directory?) Thanks --- Outgoing mail is certified Virus Free. (CopyRight FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/02 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Or .../cocoon/WEB-INF/lib (for compiled classes) and don't check WEB-INF/web.xml :) Regards. Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [HELP]SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader
From: sheshadri [mailto:[EMAIL PROTECTED]] Hi Vadim, Thanx for ur reply. Well this is what happened when i reinstalled every thing. WHEN I COPY BACK THE OLD XERCES.JAR FILE BACK TO TOCMAT\COMMON\LIB FOLDER COCOON WORKS FINE WITH NO EXCEPTION. BUT IF I REMOVE THE XERCES.JAR AND REPLACE IT WITH THE NEW JAR FILE, THE DYNAMIC XSP SAMPLES DOES NOT WORK. But In the first step it is given that we should remove tomcat\common\lib\xerces.jar file. As I am using the old xerces.jar file which comes with tomcat, would it give me any problem somewhere else please let me know. Have you done this step: Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and xml-apis.jar from the cocoon.war archive. ? Vadim Thanx Again, Sheshadri FOLLOWING ARE THE STEPS GIVEN IN THE INSTALLATION MANUAL If you have to use Tomcat 4.0.3, you have to replace its XML parser with the one shipped with Cocoon. - 1.. Remove tomcat/common/lib/xerces.jar file. 2.. --- 3.. Copy following libraries from the cocoon/lib/core directory to the tomcat/common/lib directory: a.. xalan-XXX.jar b.. xercesImpl-XXX.jar c.. xml-apis.jar 4.. Copy cocoon/lib/core/batik-libs-XXX.jar to the tomcat/common/lib directory. 5.. Edit extra-classpath parameter in the cocoon/src/webapp/WEB-INF/web.xml file: init-param param-nameextra-classpath/param-name param-valueC:\jakarta-tomcat-4.0.3\common\lib\xalan-2.3.1.jar;C:\jakar ta-t omcat-4.0.3\common\lib\xercesImpl- 2.0.0.jar;C:\jakarta-tomcat-4.0.3\common\lib\xml-apis.jar;C:\jakarta-tom cat- 4.0.3\common\lib\batik-all-1.5b1.jar/param-value /init-param From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 8:51 PM Subject: RE: [HELP]SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader You must have missed several steps. Try again. http://xml.apache.org/cocoon/installing/index.html Vadim -Original Message- From: sheshadri [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 10:04 AM To: [EMAIL PROTECTED] Subject: [HELP]SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader Importance: High Hi, I have recently migrated to cocoon 2.1 and tomcat 4.03 I have followed exactly all the steps specified in the installation guidlines. Yet i am facing this problem, --- URI EXECUTED http://localhost:8080/cocoon/search/welcome --- EXCEPTION Description:org.apache.cocoon.ProcessingException: SAX2 driver class org.apache.xerces.parsers. SAXParser does not implement XMLReader: java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration --- Config: Window 2000; JDK 1.3 Tomcat 4.0.3 Cocoon version 2.1-dev Thanx in Advance, Sheshadri - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XSP
On Fri, 26 Apr 2002, Vadim Gritsenko wrote: From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Great... when I code XSP and when I make some error in the logic I get (of course) an error. An error contains a line number. Now I have to go to the work directory and look at the generated java file to find the error. Isn't it possible to display the line number of the error in the XSP? Suggest how it is possible. I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. It should also be even possible to display that line's sourcecode (preferable with some surrounding lines). But I wasn't sure if this is really worth the work... ...is there a need for it? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Alternative to FOP?
Hi all, does anybody know if there is an alternative to FOP? I have been using FOP for about a half year now, and recently started experimenting with images in my pdf, but the images always come out wrong (i.e. stretched to the width of the page), no matter what I try. So, I want to know if anybody knows an alternative to FOP? It would be nice if there are (free) alternatives that could be (it is not a requirement) integrated with Cocoon 2. Tnx in advance. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory leaks(?)
From: Rogier Peters [mailto:[EMAIL PROTECTED]] Hi all, thanks for the quick reply.. We've been running cocoon for some time now, and we really like it, but we keep having problems with memory usage. The problem is that with each page, looking at the Windows Task Manager, memory use increases by about 25M and although in the processes window java.exe will reduce memory now and again, system memory use stays high. Memory leak occurs when memory is allocated from the heap and never returned. Situation you describe is different and (except may be increase in 25M) normal. OK, maybe I wasn't too clear on this;) I know this is probably too general OS and JVM to ask, but my real question is if java.exe shows 20Mb in use, no other applications are running and my system shows 600Mb in use and slows down to a crawl, where did all the memory go? Is the size of java.exe the real size of the JVM? Except mem usage column, Windoze task manager features VM size column. Also, I do experience OutOfMemporyExceptions ... In the set components I use there is no memory leaks. You should provide more information on what do you use, what your sitemap looks like, what is the size of XML docs. I assume that you have OutOfMemoryErrors when testing with just one concurrent user. PS Consider using memory debugging tools Vadim Unless you are experiencing OutOfMemporyExceptions I would consider that system behaves normally. The only thing you may want to investigate is 25Mb per request - but this is observed only in your setup, so you should pick a tool and do memory debug. Vadim I played around with the jvm -Xmx option, and with cocoon.xconf heapsize and cached objects, but that didn't help. I was wondering whether anyone had the same problems with cocoon, and I am of course very interested in solutions, tweaks, or configuration options that I may have overlooked. Regards, Rogier Peters - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 Rogier(at)hippo(dot)nl / www.hippo.nl - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with subsitemap
try this: map:match pattern=test map:redirect-to uri=sub/entry/ /map:match yes this should work. But the idea is: The delegating sitemap has no knowledge about the the structure (matches and internal redirects) of the mounted subsitmap's (suppose the mounted subsitmap also only delegates into deeper subsitemaps ...) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with subsitemap
So good ,but what this?: map:generate src=cocoon:/sub// this line -is knoledge about the mounted subsitemap. yes and no. It's a minimal knowledge ... no knowledge means nothing ;-) You can use map:redirect-to uri=sub// also instead of map:generate src=cocoon:/sub//. ok, lets discuss this snippet: map:match pattern=test map:generate src=cocoon:/sub// map:transform/ map:transform/ map:serialize type=xml/ /map:match the question is: is it bug or a feature ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Example protected
Hi, i got a cvs snapshoot of cocoon from today (2002-04-26). The i wanted to test the protected example, but i get this errormessage: Type 'wildcard' is not defined for 'match' at file:/home/stsdc/Jakarta/jakarta-tomcat-4.0.1/webapps/cocoon/protected/ sitemap.xmap:43:29 If i replace in the subsitemap map:matchers default=wildcard/ with: map:matchers default=wildcard map:matcher logger=sitemap.matcher.wildcard name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcher/ /map:matchers i get the next error: Type 'file' is not defined for 'generate' at file:/home/stsdc/Jakarta/jakarta-tomcat-4.0.1/webapps/cocoon/protected/ sitemap.xmap:51:45 Well i think that the subsitemap do not inharit the defenitions of its parentsitemap...also if i try to access any other subsite (eg sub/) it also wount work. What do i have to do to change this...beside to add all map:components to every subsitemap...? Cu, Christian -- Schröter, Christian Siemens Business Services GmbH Co. OHG SBS D BS ECS 3 Tel.: +49 911 654 2355 Fax: +49 911 654 2108 Mobil: +49 160 97843762 eMail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory leaks(?)
would this be a case for cactus? http://jakarta.apache.org/cactus :) What is this? I use OptimizeIt. Downloading it now Vadim Rogier - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :(
Vadim, Chris, Yes you are correct Vadim, my mistake. We are using 6.1. Sorry. But perhaps something in the list will help Chris. Matthew -- Open Source Group sunShine - Lighting up e:Business = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352 = -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: RE: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :( From: Matthew Langham [mailto:[EMAIL PROTECTED]] Chris, here are a few tips that may help: 1) you cannot deploy a cocoon.war file in WL6.0 SP2 (at least we were not able to. You will need to unpack it first and then deploy in the directory structure. 2) WebLogic chokes on JARs that contain ., -, _ etc. You may need to change some names. If my memory serves me well this is true only for 6.1+ versions. 3) You will need to remove the Manifest.mf files from: xt, xalan, fop, cocon, ant und antoptional IIRC, this is for 6.1+. 4) You will need to add the following line to cocoon.xconf: xslt-processor parameter name=transformer-factory value =org.apache.xalan.processor.TransformerFactoryImpl/ 5) Turn off Xalan incremental processing because of unsafe cast of the current thread in weblogic's code All this being said - this is how we got Cocoon to run on a Windows system with Weblogic 2.0SP2. After all this, I found that every generated SVG causes some exceptions. Vadim By the way I would be interested in hearing what you are doing with Cocoon at Vodafone by way of a mail. Hope this helps Matthew Langham Technical Director Open Source Group -- Open Source Group sunShine - Lighting up e:Business = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de Weblogging at: http://www.need-a-cake.com Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 12:55 PM To: [EMAIL PROTECTED] Subject: I cannae dae it (the woes of Weblogic 6.0sp2 and Cocoon) :( Hi I've been trying to get cocoon to deploy under Weblogic for some time now, and it isn't working The system is a Solaris machine, Java 1.3.1, Weblogic 6.0 sp2. I have followed the instructions concisely from the cocoon site, and used the cocoon.war file that came with the binary distribution of Cocoon 2.0.2, but if I try to get it running, I get the following message on startup: BEGIN Apr 26, 2002 12:48:25 PM CEST Error Management Error initializing module cocoon of application vodafone:Name=Cocoon,Type=Application from path ./config/vodafone/applicatio ns: weblogic.management.MBeanCreationException: cannot find referenced module cocoon Apr 26, 2002 12:48:25 PM CEST Error Management Error preparing application compone nt cocoon of application vodafone:Name=Cocoon,Type=Application: java.io.FileNotFoundExcep tion: ./config/vodafone/applications/cocoon (No such file or directory) ((localPath: java .io.FileNotFoundException: ./config/vodafone/applications/cocoon (No such file or directo ry)) Apr 26, 2002 12:48:25 PM CEST Error J2EE Error deploying application cocoon: error retrieving component [Caching Stub]Proxy for vodafone:Name=cocoon,Location=eservices,Typ e=WebAppComponentConfig,ApplicationConfig=Cocoon Apr 26, 2002 12:48:32 PM CEST Error HTTP [WebAppServletContext(661879,cocoon)] Error loadi ng servlet: 'Cocoon2' java.lang.NoSuchMethodError at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.i nit (DefaultCo nfigurationBuilder.java:88) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.i nit (DefaultCo nfigurationBuilder.java:64) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:77 2) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:241) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl. java :638) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp l.ja va:581) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl .jav a:526) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ letC ontext.jav a:1078) at
whitespace (carriage-returns) stripped from SVG-path element
Dear All, I am trying to implement a SVG-based traffic-data system. I have an example site at http://130.161.12.237:8080/cocoon/traffic/traf-docs You should see my problems under the heading 'Cocoon Questions' The first of these examples takes a XML file and adds - SVG basemap elements via the document() function - events (using an events file and a XY coordinate lookup table) My problem is that the document function strips carriage-returns from path elements in my basemap-SVG. As a result in some cases the lines are too long and the SVG doesn't load fully. How do i retain the carriage-returns in the basemap SVG? -Thanks, -Kieran Kieran Kirwan Researcher, Transportation and Traffic Engineering Section, Civiele Techniek, TU Delft, Stevinweg 1, 2600GA Delft, Netherlands phone: +31152785061 mobile: +31618913752 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory leaks(?)
Hello, I have the same problem for Tomcat 4.0.1 + Cocoon 2.0.1 + Xindice 1.0rc2 on NT for one client. To avoid it I have to set CATALINA_OPTS to ' -Xms64M -Xmx256M '. For the moment it works without problems. Roman Vadim Gritsenko wrote: From: Rogier Peters [mailto:[EMAIL PROTECTED]] Hi all, thanks for the quick reply.. We've been running cocoon for some time now, and we really like it, but we keep having problems with memory usage. The problem is that with each page, looking at the Windows Task Manager, memory use increases by about 25M and although in the processes window java.exe will reduce memory now and again, system memory use stays high. Memory leak occurs when memory is allocated from the heap and never returned. Situation you describe is different and (except may be increase in 25M) normal. OK, maybe I wasn't too clear on this;) I know this is probably too general OS and JVM to ask, but my real question is if java.exe shows 20Mb in use, no other applications are running and my system shows 600Mb in use and slows down to a crawl, where did all the memory go? Is the size of java.exe the real size of the JVM? Except mem usage column, Windoze task manager features VM size column. Also, I do experience OutOfMemporyExceptions ... In the set components I use there is no memory leaks. You should provide more information on what do you use, what your sitemap looks like, what is the size of XML docs. I assume that you have OutOfMemoryErrors when testing with just one concurrent user. PS Consider using memory debugging tools Vadim Unless you are experiencing OutOfMemporyExceptions I would consider that system behaves normally. The only thing you may want to investigate is 25Mb per request - but this is observed only in your setup, so you should pick a tool and do memory debug. Vadim I played around with the jvm -Xmx option, and with cocoon.xconf heapsize and cached objects, but that didn't help. I was wondering whether anyone had the same problems with cocoon, and I am of course very interested in solutions, tweaks, or configuration options that I may have overlooked. Regards, Rogier Peters - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 Rogier(at)hippo(dot)nl / www.hippo.nl - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last :)
Hi there good news and bad news - I have found the reason why the NoSuchMethodException is being thrown - I first dug out the source of the Avalon class that was throwing the exception, to find out what method was being expected. Here is the 'offending' method, which is found in the class org.apache.avalon.framework.configuration.DefaultConfigurationBuilder (inside Avalon version 4.1.2, which is used in Cocoon 2.0.2): public DefaultConfigurationBuilder( final boolean enableNamespaces ) { //yaya the bugs with some compilers and final variables .. try { final SAXParserFactory saxParserFactory = SAXParserFactory.newInstance(); if ( enableNamespaces ) { saxParserFactory.setNamespaceAware(true); } final SAXParser saxParser = saxParserFactory.newSAXParser(); this.setParser(saxParser.getXMLReader()); --- THE PROBLEM } catch( final Exception se ) { throw new Error( Unable to setup SAX parser + se ); } } Note that the class expects there to be a method 'getXMLReader' available in the SAXParser object (javax.xml.parsers.SAXParser) - this is logical, because in the version of Xerces Cocoon was built against, this method exists. I then looked at the structure of the SAXParser class that Weblogic 6.0 SP2 uses, and found out that there is no 'getXMLReader' method!!! So who is to blame? Well, the offender is BEA - their JAXP API is broken, because it does not comply with the defacto standard, the one in the Java 1.4.0 API - whereas Avalon itself is completely justified in expecting the getXMLReader method, because it *should* be there according to Sun's API docs. Oh well, I'll have to work out how to bypass BEA's XML crud until a new service pack comes out for 6.0, I guess p Thanks to all the folks who tried to help me with my problem :) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbies - Collaboration
Dear All, I've just started using Cocoon to implement a SVG-based traffic-data system. I have an example site at http://130.161.12.237:8080/cocoon/traffic/traf-docs The site includes examples of XML transformations to HTML, PDF and SVG. Most of the tricks have been painfully-earned (many by trial and error). Anyways my point is that if there are any other beginners out there trying to learn Cocoon/XSL etc..maybe you would be interested in a collaboration of sorts. e.g. If there's anything on my site that you find of interest then i'd be willing to provide the source XSL/sitemaps etc (and explain how it works) Likewise if you have a working site that's got stuff might suit my work then you'd return the favour - a sort of swap-shop for ideas and code if you get my drift. Thanks, Kieran Kieran Kirwan Researcher, Transportation and Traffic Engineering Section, Civiele Techniek, TU Delft, Stevinweg 1, 2600GA Delft, Netherlands phone: +31152785061 mobile: +31618913752 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with subsitemap
i play arround and forced the strange behaviour in annother way: i tested the follwing scenario: the Base-Sitemap: base-sitemap !-- mounted subapplication -- map:match pattern=sub/** map:mount check-reload=yes src=sub/sitemap.xmap uri-prefix=sub/ /map:match map:match pattern=test map:generate src=cocoon:/sub/content/ map:transform/ ... map:transform/ map:serialize type=xml/ /map:match /base-sitemap the SubSitemap : sub-sitemap map:match pattern=*.xml map:generate src=xsp/{1}.xml type=serverpages/ map:serialize type=xml/ /map:match map:match pattern=content map:aggregate element=subpage map:part src=cocoon:/header.xml element=header/ map:part src=cocoon:/footer.xml element=footer/ /map:aggregate map:serialize type=xml/ /map:match /subsitemap this gives an error. it seems that cocoon tries to find the correspondig matches for header.xml and footer.xml in the base-sitemap and not in the sub-sitemap. -- Frank - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last :)
Hi good news and bad news - ... Note that the class expects there to be a method 'getXMLReader' available in the SAXParser object (javax.xml.parsers.SAXParser) - this is logical, because in the version of Xerces Cocoon was built against, this method exists. I then looked at the structure of the SAXParser class that Weblogic 6.0 SP2 uses, and found out that there is no 'getXMLReader' method!!! So who is to blame? Well, the offender is BEA - their JAXP API is broken, because it does not comply with the defacto standard, the one in the Java 1.4.0 API - whereas Avalon itself is completely justified in expecting the getXMLReader method, because it *should* be there according to Sun's API docs. Oh well, I'll have to work out how to bypass BEA's XML crud until a new service pack comes out for 6.0, I guess p You can try to place Xerces and Xalan in weblogic6.1/lib and rename them to something like a_xerces.jar and a_xalan.jar. Also you can try to remove certain packages (org.apache.**) from weblogic.jar and xmlx.jar archives. -- Konstantin Thanks to all the folks who tried to help me with my problem :) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last :)
v6.1 is out now - and BEA are not the quickest. You could always remove WLs version of avalon and replace it, or remove it form the system classpath and leave only in the webapp classpath (if that's still how WL 6.0 works - see my previous email). Good luck, Tony PS What's wrong with tomcat? [EMAIL PROTECTED] on 04/26/2002 02:33:10 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at las t :) Hi there good news and bad news - I have found the reason why the NoSuchMethodException is being thrown - I first dug out the source of the Avalon class that was throwing the exception, to find out what method was being expected. Here is the 'offending' method, which is found in the class org.apache.avalon.framework.configuration.DefaultConfigurationBuilder (inside Avalon version 4.1.2, which is used in Cocoon 2.0.2): public DefaultConfigurationBuilder( final boolean enableNamespaces ) { //yaya the bugs with some compilers and final variables .. try { final SAXParserFactory saxParserFactory = SAXParserFactory.newInstance(); if ( enableNamespaces ) { saxParserFactory.setNamespaceAware(true); } final SAXParser saxParser = saxParserFactory.newSAXParser(); this.setParser(saxParser.getXMLReader()); --- THE PROBLEM } catch( final Exception se ) { throw new Error( Unable to setup SAX parser + se ); } } Note that the class expects there to be a method 'getXMLReader' available in the SAXParser object (javax.xml.parsers.SAXParser) - this is logical, because in the version of Xerces Cocoon was built against, this method exists. I then looked at the structure of the SAXParser class that Weblogic 6.0 SP2 uses, and found out that there is no 'getXMLReader' method!!! So who is to blame? Well, the offender is BEA - their JAXP API is broken, because it does not comply with the defacto standard, the one in the Java 1.4.0 API - whereas Avalon itself is completely justified in expecting the getXMLReader method, because it *should* be there according to Sun's API docs. Oh well, I'll have to work out how to bypass BEA's XML crud until a new service pack comes out for 6.0, I guess p Thanks to all the folks who tried to help me with my problem :) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XSP
I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. Line number in Java source is already shown, correctly. The question is how to map this to XSP source line numbers. well, addtionally we need the full classpath of the failed class itself from the stacktrace. then we need to lookup the java source code filename from the ProgrammGenerator. unfortunately that's not yet possible AFAICS. but as a workaround we might translate back the class into a path and use the workdir of the ProgrammGenerator as root, add the path and we should have the generated file path from the repository... What do you think? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: whitespace (carriage-returns) stripped from SVG-path element
You have to use an entity as a carriage return. I think it's #13; HTH, Manos -Original Message- From: Kirwan, K. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 4:31 PM To: '[EMAIL PROTECTED]' Subject: whitespace (carriage-returns) stripped from SVG-path element Dear All, I am trying to implement a SVG-based traffic-data system. I have an example site at http://130.161.12.237:8080/cocoon/traffic/traf-docs You should see my problems under the heading 'Cocoon Questions' The first of these examples takes a XML file and adds - SVG basemap elements via the document() function - events (using an events file and a XY coordinate lookup table) My problem is that the document function strips carriage-returns from path elements in my basemap-SVG. As a result in some cases the lines are too long and the SVG doesn't load fully. -- -- How do i retain the carriage-returns in the basemap SVG? -Thanks, -Kieran Kieran Kirwan Researcher, Transportation and Traffic Engineering Section, Civiele Techniek, TU Delft, Stevinweg 1, 2600GA Delft, Netherlands phone: +31152785061 mobile: +31618913752 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon use
People, I would like to know why you use Cocoon? Thank you, Edgar Hi, I heard about Cocoon when I was searching a solution to a very precise problem. The client for whom I'm working uses lots of XML files to define the characteristics of numerous parameters representing an engine. It looks like a database, but unfortunately it's not a database. Just a big set of XML files using a little set of DTDs. The problem was : to allow someone, who doesn't know XML at all, to edit and modify the content of these files in an easy way. We could have developed a specific editor in C++, but the DTDs are still evolving a lot, and there was also a big need to generate other formats of documents, such as HTML and XLS. I first wrote a few XSL stylesheets in order to visualize the content of the XML files in a nice way, in a web browser (I used IE6). Then I heard about Cocoon and realised that it could feed my needs, with a little help from JavaScript. I now have a nice Cocoon-based editor working in my web browser : I can display the content of the XML files in HTML pages, edit and modify them dynamically thanks to HTML forms, and make lots of specific search requests. It works like a web site, with several sub-sections and lots of automatically generated hyperlinks. And it's easy to use. When a DTD is modified, I do not need to recompile anything : I just modify the corresponding XSL stylesheets and JavaScript scripts. Indeed, it's really efficient and easily maintainable. And my client is happy ! :) Matthieu - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last:)
Removing the packages fron the jars was how I got round my WL issues - a bit of a pain - but it did the trick. Tony Konstantin Piroumian [EMAIL PROTECTED] on 04/26/2002 02:49:06 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last :) Hi good news and bad news - ... Note that the class expects there to be a method 'getXMLReader' available in the SAXParser object (javax.xml.parsers.SAXParser) - this is logical, because in the version of Xerces Cocoon was built against, this method exists. I then looked at the structure of the SAXParser class that Weblogic 6.0 SP2 uses, and found out that there is no 'getXMLReader' method!!! So who is to blame? Well, the offender is BEA - their JAXP API is broken, because it does not comply with the defacto standard, the one in the Java 1.4.0 API - whereas Avalon itself is completely justified in expecting the getXMLReader method, because it *should* be there according to Sun's API docs. Oh well, I'll have to work out how to bypass BEA's XML crud until a new service pack comes out for 6.0, I guess p You can try to place Xerces and Xalan in weblogic6.1/lib and rename them to something like a_xerces.jar and a_xalan.jar. Also you can try to remove certain packages (org.apache.**) from weblogic.jar and xmlx.jar archives. -- Konstantin Thanks to all the folks who tried to help me with my problem :) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Observations from a newbie
Hi all, I am currently learning Cocoon2 for use on an intranet server. We would like to deploy a role-based portal for our users to give access to various datasources and as a front-end to a set of other webapps. In the learning process I have a couple observations. These may be in the process of resolution and planned, I don't really know. 1. The tight integration between the cocoon framework, samples and documentation makes it difficult to understand the basic requirements for applications. I think chello tried to do that but it is now out of date. A 60k sitemap.xmap is quite overwelming! I believe cocoon blocks will help this drastically but can't the samples, documentation, and portal be moved to sub-sitemaps and somewhat separated from the framework directory hierarchy now? It would be fine to leave a large sampling of core generators and transformers, etc. in the main sitemap along with a basic home page to point to the sub-sitemaps. This page could easily be replaced for an actual deployment. 2. In reading the documentation on session contexts (from CVS) and under the section on Context-Tags it lists names which cannot be used (request, response, session, context, temp, portal or authentication) because they are built-in. These seem fine except portal which is an application and shouldn't be a core context. At this point I am working on understanding the framework and I think it will be great for my application. The examples are pretty nice as well but figuring out how to strip things down to just what is necessary and not having to build the samples and other optional parts on an ongoing basis would be very helpful. A best practices for laying out an application would be great as well. It seems every example I have found uses a very different directory layout and agreeing on a base structure would make comparing and reviewing various uses much easier. Please be patient with me as I get started and please point me on my way! (now if I can just get the cocoon portal working...) dave - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise)
Hello, I get the following when I try to lauch my webapp (Tomcat 4.0.1; embedded into JB6). What does this mean regarding Cocoon ? What is wrong in my Tomcat config.? Thank you very much. Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception reportmessage 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.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) snip root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j ava:202) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266) 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.ja va:214) snip __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory leaks(?)
Roman: I have the same problem for Tomcat 4.0.1 + Cocoon 2.0.1 + Xindice 1.0rc2 on NT for one client. To avoid it I have to set CATALINA_OPTS to ' -Xms64M -Xmx256M '. For the moment it works without problems. Do you have *any* sense how much your increased RAM requirements are due to your use of Xindice? Thanks. Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Observations from a newbie
Hi! Hi all, I am currently learning Cocoon2 for use on an intranet server. We would like to deploy a role-based portal for our users to give access to various datasources and as a front-end to a set of other webapps. In the learning process I have a couple observations. These may be in the process of resolution and planned, I don't really know. There are a lot of things planned and in process. See cocoon-dev mail list archives. 1. The tight integration between the cocoon framework, samples and documentation makes it difficult to understand the basic requirements for applications. I think chello tried to do that but it is now out of date. A 60k sitemap.xmap is quite overwelming! I believe cocoon blocks will help this drastically but can't the samples, documentation, and portal be moved to sub-sitemaps and somewhat separated from the framework directory hierarchy now? This work on samples is in progress. Just look at the /src/webapp/samples/ directory. Work on the documentation is also in progress: both on the content and structure (both at Apache Forrest and Cocoon Dev). It would be fine to leave a large sampling of core generators and transformers, etc. in the main sitemap along with a basic home page to point to the sub-sitemaps. This page could easily be replaced for an actual deployment. Yes, we are moving in that direction, though a little slow. 2. In reading the documentation on session contexts (from CVS) and under the section on Context-Tags it lists names which cannot be used (request, response, session, context, temp, portal or authentication) because they are built-in. These seem fine except portal which is an application and shouldn't be a core context. Agree. Could you point me to that document? At this point I am working on understanding the framework and I think it will be great for my application. The examples are pretty nice as well but figuring out how to strip things down to just what is necessary and not having to build the samples and other optional parts on an ongoing basis would be very helpful. A best practices for laying out an application would be great as well. It seems every example I have found uses a very different directory layout and agreeing on a base structure would make comparing and reviewing various uses much easier. In progress. Please be patient with me as I get started and please point me on my way! You're welcome. -- Konstantin (now if I can just get the cocoon portal working...) dave - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbies - Collaboration
Kieran, I have an example site at http://130.161.12.237:8080/cocoon/traffic/traf-docs Thanks for providing that resource to the Cocoon community! The site includes examples of XML transformations to HTML, PDF and SVG. Most of the tricks have been painfully-earned (many by trial and error). Anyways my point is that if there are any other beginners out there trying to learn Cocoon/XSL etc..maybe you would be interested in a collaboration of sorts. There's a determined effort under way to improve and expand Cocoon's documentation as well as provide new channels for users like yourself to contribute talent and resources to the process. I hope it will provide you the kind of swap-shop you are seeking. Please stay tuned. We'll need contributions (code snippets, examples, case studies, critical review) from users like you to make it succeed! Thanks. Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Yeah!!!! Got it working!!!! :-)))
Removing the packages fron the jars was how I got round my WL issues - a bit of a pain - but it did the trick. Oh? I just changed the classpath in the startWeblogic.sh script so that the xml-apis.jar and xerces-?.jar where in the classpath before the weblogic.jar file, and that stopped the NoSuchMethod thingy. I am rather against messing with BEA JAR files (I think it breaches the contract doing so, and therefore no support). I read the FAQ, and that PJA library is a godsend - because I got the error with X11, and after installing PJA according to the FAQ, cocoon started without any problems at all, and now I can get going on the fun stuff! :) Thanks for all your help folks. Chris. -Original Message- From: Anthony Aldridge [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: Re: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last :) Removing the packages fron the jars was how I got round my WL issues - a bit of a pain - but it did the trick. Tony Konstantin Piroumian [EMAIL PROTECTED] on 04/26/2002 02:49:06 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: The woes of Weblogic 6.0sp2 and Cocoon - found the problem at last :) Hi good news and bad news - ... Note that the class expects there to be a method 'getXMLReader' available in the SAXParser object (javax.xml.parsers.SAXParser) - this is logical, because in the version of Xerces Cocoon was built against, this method exists. I then looked at the structure of the SAXParser class that Weblogic 6.0 SP2 uses, and found out that there is no 'getXMLReader' method!!! So who is to blame? Well, the offender is BEA - their JAXP API is broken, because it does not comply with the defacto standard, the one in the Java 1.4.0 API - whereas Avalon itself is completely justified in expecting the getXMLReader method, because it *should* be there according to Sun's API docs. Oh well, I'll have to work out how to bypass BEA's XML crud until a new service pack comes out for 6.0, I guess p You can try to place Xerces and Xalan in weblogic6.1/lib and rename them to something like a_xerces.jar and a_xalan.jar. Also you can try to remove certain packages (org.apache.**) from weblogic.jar and xmlx.jar archives. -- Konstantin Thanks to all the folks who tried to help me with my problem :) - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with XSP
On 26.Apr.2002 -- 03:59 PM, Torsten Curdt wrote: I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. Line number in Java source is already shown, correctly. The question is how to map this to XSP source line numbers. well, addtionally we need the full classpath of the failed class itself from the stacktrace. then we need to lookup the java source code filename from the ProgrammGenerator. unfortunately that's not yet possible AFAICS. but as a workaround we might translate back the class into a path and use the workdir of the ProgrammGenerator as root, add the path and we should have the generated file path from the repository... OK, that would make it easier to see the source (if I understand correctly, that is). But I believe the original problem is infeasible since we don't know what transformations happened on the way to the final XSP (all taglibs but XSP done). One could, of course, first run the XSP through a transformer that adds line number comments that are kept 'til the java file is generated, find the enclosing line number comments (well, one would suffice) output the XSP with the line highlighted that translates to the faulty java code Would be kind of overhead outside development but then, a deployed application wouldn't compile XSPs too often. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Observations from a newbie
Konstantin, Thanks for the response. I'm excited and just a little impatient - I want everything now! :) I'll keep watching and maybe a bit of good learning would be in taking a look at the refactored samples and see what else needs to be done to complete that... 2. In reading the documentation on session contexts (from CVS) and under the section on Context-Tags it lists names which cannot be used (request, response, session, context, temp, portal or authentication) because they are built-in. These seem fine except portal which is an application and shouldn't be a core context. Agree. Could you point me to that document? /xml-cocoon2/src/documentation/xdocs/developing or http://localhost:8080/cocoon/documents/developing/session.html. See the Context-Tags section. dave - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with XSP
On 26.Apr.2002 -- 05:24 PM, Christian Haul wrote: On 26.Apr.2002 -- 03:59 PM, Torsten Curdt wrote: I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. Line number in Java source is already shown, correctly. The question is how to map this to XSP source line numbers. well, addtionally we need the full classpath of the failed class itself from the stacktrace. then we need to lookup the java source code filename from the ProgrammGenerator. unfortunately that's not yet possible AFAICS. but as a workaround we might translate back the class into a path and use the workdir of the ProgrammGenerator as root, add the path and we should have the generated file path from the repository... OK, that would make it easier to see the source (if I understand correctly, that is). But I believe the original problem is infeasible since we don't know what transformations happened on the way to the final XSP (all taglibs but XSP done). One could, of course, first run the XSP through a transformer that adds line number comments that are kept 'til the java file is generated, Mmmh, probably won't work as it presumes that logicsheets behave well which might not be true. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. I'd like to use Deli, if I can. If not, there is a use-browser-capabilities-db tag in my sitemap.xmap. Where can I find more info on how to work with that? I've read most of the pages at http://xml.apache.org/xalan-j/ but it's not mentioned there. Ed --- Johannes Koch [EMAIL PROTECTED] wrote: andexor schrieb: I need to call an XSL template with different values for a parameter based on which browser a user is using. I have read the Deli Quick Start Guide and the Introduction to Deli. I followed the instructions at http://xml.apache.org/cocoon/developing/deli.html carefully, but there is no useful output. Here's what I get: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; htmlheadtitleTest Page for DELI in Cocoon/title/headbody //html It looks like the deli-capabilities parameter is not getting set. What can I do to fix this? Maybe you use a browser which a) references no UAProf profile and b) is not caught by the legacy mechanism, because there is no profile configured for that browser. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon use
Okay, but in what kind of a project is it used. I have to explain why other people in my company should use it and I have some ideas but I could use some help answering the following question: In what kind of a project is it used? In particular in what kind of a project do you people use it... For example a weather providing site where customers can get the information from the web and via other devices... Thanks already, Edgar -Oorspronkelijk bericht- Van: Jörn Heid [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 26 april 2002 11:56 Aan: [EMAIL PROTECTED] Onderwerp: AW: Cocoon use 1. Open Standards 2. Output independency 3. True MVC 4. Open Source 5. Java (plattform independency) 6. Fast (regarding the points above) The question is if there's an alternative product on the market? I think not. Cocoon uses as much open standards as it can. No other product I know has those advantages. -Ursprüngliche Nachricht- Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 26. April 2002 09:45 An: '[EMAIL PROTECTED]' Betreff: Cocoon use People, I would like to know why you use Cocoon? Thank you, Edgar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
andexor schrieb: I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. I'd like to use Deli, if I can. In cocoon.xconf you disabled !--sitemap check-reload=yes file=sitemap.xmap logger=sitemap reload-method=asynchron/-- and enabled sitemap class=org.apache.cocoon.components.treeprocessor.TreeProcessor logger=sitemap/ and deli class=org.apache.cocoon.components.deli.DeliImpl parameter name=deli-config-file value=resources/deli/config/deliConfig.xml/ /deli ? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon use
I have a additional related question for the experienced users of the framework. - Are there any commercial products that support similar functionality. - How is the performance of a public site, using the cocoon framework Thanks, Yogi. -Original Message- From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 11:34 AM To: '[EMAIL PROTECTED]' Subject: RE: Cocoon use Okay, but in what kind of a project is it used. I have to explain why other people in my company should use it and I have some ideas but I could use some help answering the following question: In what kind of a project is it used? In particular in what kind of a project do you people use it... For example a weather providing site where customers can get the information from the web and via other devices... Thanks already, Edgar -Oorspronkelijk bericht- Van: Jörn Heid [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 26 april 2002 11:56 Aan: [EMAIL PROTECTED] Onderwerp: AW: Cocoon use 1. Open Standards 2. Output independency 3. True MVC 4. Open Source 5. Java (plattform independency) 6. Fast (regarding the points above) The question is if there's an alternative product on the market? I think not. Cocoon uses as much open standards as it can. No other product I know has those advantages. -Ursprüngliche Nachricht- Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 26. April 2002 09:45 An: '[EMAIL PROTECTED]' Betreff: Cocoon use People, I would like to know why you use Cocoon? Thank you, Edgar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. I'd like to use Deli, if I can. If not, there is a use-browser-capabilities-db tag in my sitemap.xmap. Where can I find more info on how to work with that? I've read most of the pages at http://xml.apache.org/xalan-j/ but it's not mentioned there. Ed --- Johannes Koch [EMAIL PROTECTED] wrote: andexor schrieb: I need to call an XSL template with different values for a parameter based on which browser a user is using. I have read the Deli Quick Start Guide and the Introduction to Deli. I followed the instructions at http://xml.apache.org/cocoon/developing/deli.html carefully, but there is no useful output. Here's what I get: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; htmlheadtitleTest Page for DELI in Cocoon/title/headbody //html It looks like the deli-capabilities parameter is not getting set. What can I do to fix this? Maybe you use a browser which a) references no UAProf profile and b) is not caught by the legacy mechanism, because there is no profile configured for that browser. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
Yes. Ed --- Johannes Koch [EMAIL PROTECTED] wrote: andexor schrieb: I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. I'd like to use Deli, if I can. In cocoon.xconf you disabled !--sitemap check-reload=yes file=sitemap.xmap logger=sitemap reload-method=asynchron/-- and enabled sitemap class=org.apache.cocoon.components.treeprocessor.TreeProcessor logger=sitemap/ and deli class=org.apache.cocoon.components.deli.DeliImpl parameter name=deli-config-file value=resources/deli/config/deliConfig.xml/ /deli ? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
Sorry if this is not the right place, but : what is Deli ?? Regards, Cédric - Original Message - From: Johannes Koch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002 5:38 PM Subject: Re: deli andexor schrieb: I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. I'd like to use Deli, if I can. In cocoon.xconf you disabled !--sitemap check-reload=yes file=sitemap.xmap logger=sitemap reload-method=asynchron/-- and enabled sitemap class=org.apache.cocoon.components.treeprocessor.TreeProcessor logger=sitemap/ and deli class=org.apache.cocoon.components.deli.DeliImpl parameter name=deli-config-file value=resources/deli/config/deliConfig.xml/ /deli ? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recursive gadgets using cocoon
Hi All, We are in the process of designing a Java Publication framework, and we are evaluating if Cocoon can support our needs. This is how we are looking to architect the website: - Map the website into multiple pages - Each page has a XML file associated with it, and its corresponding XSL file. - A XML file can be composed of both text (for content) and other complex tags( I would refer to this as a gadget, which embeds a functinonality in itself). - A gadget inturn has a XML and XSL associate with it, and can have both static data and other gadgets. (Thus a page is composed of a recursive set of gadgets or tags which have their own XML/XSL) An example of a page: Lets assume that a Web page(MainPage) has a left sidebar, top bar, main navigation and right side bar.The right sidebar inturn has a search box, related links section, and personalized data. The XML for MainPage as follows: Root Gadget name=rightsidebar handler=.. Gadget name=topbar handler=.. Gadget name=leftsidebar handler=.. Gadget name=maincontent handler=.. /Root The XML for leftsidebar as follows: Gadget name=search handler=.. Gadget name=relatedlinks handler=.. Gadget name=MyOptions handler=.. The XML for search as follows: Root Search Option=section1 /Root . So what we want to do here is have the xsp call the main XML page, which will call the xsp for the gadget, and this will happen in a recursive manner till all gadgets are resolved, and the final page is displayed with content. - Can Cocoon support such functionality. - Can we have more than 1 xsp that handle the final output of a page, ie a xsp for a gadget, so that the page is composed of a hierachy of XML gadgets. - Breaking the site into managable gadgets can help us in using them as plug-and-play objects and using them in different areas. - Additionally we can provide admin, features for content generators to change the content of the individual areas only. - Workflow can become easier. Please advice, Thanks in advance, - Yogi. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
It's something that comes with Cocoon. It's supposed to provide information about your client's browser to XSLT. Then you could write conditional logic in you XSLT based on what browser you are serving to. Ed --- Cédric_Viaud [EMAIL PROTECTED] wrote: Sorry if this is not the right place, but : what is Deli ?? Regards, Cédric - Original Message - From: Johannes Koch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002 5:38 PM Subject: Re: deli andexor schrieb: I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. I'd like to use Deli, if I can. In cocoon.xconf you disabled !--sitemap check-reload=yes file=sitemap.xmap logger=sitemap reload-method=asynchron/-- and enabled sitemap class=org.apache.cocoon.components.treeprocessor.TreeProcessor logger=sitemap/ and deli class=org.apache.cocoon.components.deli.DeliImpl parameter name=deli-config-file value=resources/deli/config/deliConfig.xml/ /deli ? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MySQL
Hi All, Is there somewhere any detailed decription about how to get Cocoon work with MySQL? I have found many complaining mails and answers about particular problems, but non of them contains a reference to a complete doq. Br, Istvan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Observations from a newbie
From: [EMAIL PROTECTED] Konstantin, Thanks for the response. I'm excited and just a little impatient - I want everything now! :) Everything's in your hands - start helping us and you'll get it sooner ;) I'll keep watching and maybe a bit of good learning would be in taking a look at the refactored samples and see what else needs to be done to complete that... In a few minutes I'll commit i18n samples to the HEAD branch (2.1-dev), so you'll be able to see them using: http://localhost:8080/cocoon/samples/i18n/ I would also recommend to look at the scratchpad samples. To do it build cocoon with 'installscratchpadwar' target, then use this URL: http://localhost:8080/cocoon/mount/ F.e., a fine example of form handling wizard you'll find in: http://localhost:8080/cocoon/mount/xmlform 2. In reading the documentation on session contexts (from CVS) and under the section on Context-Tags it lists names which cannot be used (request, response, session, context, temp, portal or authentication) because they are built-in. These seem fine except portal which is an application and shouldn't be a core context. Agree. Could you point me to that document? /xml-cocoon2/src/documentation/xdocs/developing or http://localhost:8080/cocoon/documents/developing/session.html. See the Context-Tags section. Thanks. Thought, it's a quite complicated document, now I am sure that we definitely need a better documentation structure and design. -- Konstantin dave - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MySQL or Postgres hosting
Hi, Does anyone here know about a plece that hosts MySQL || Postgres databases? thanks. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deli
andexor schrieb: Yes. Hmm, I tried it with User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 2000) Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* and it worked. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory leaks(?)
Diana, For the moment I'm not sure, but it seems that the problem is due to a big amount of data processed in a pipeline. It's because Xindice supports only ASCII for xpath queries and I have to filter some big amount of data got from a generator (file generator with dbxml protocol) by means of XSL transformers. Roman Diana Shannon wrote: Roman: I have the same problem for Tomcat 4.0.1 + Cocoon 2.0.1 + Xindice 1.0rc2 on NT for one client. To avoid it I have to set CATALINA_OPTS to ' -Xms64M -Xmx256M '. For the moment it works without problems. Do you have *any* sense how much your increased RAM requirements are due to your use of Xindice? Thanks. Diana - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon use
In my company cocoon is used as the only user interface to enerprise/network management/fulfillment (OSS,BSS) system that includes order entry/management (workflow), inventory, activation, etc. Since we use XML at the core of our J2EE application and we need the ability to brand our interfaces Cocoon is perfect for the job. Ability to output to multiple devices and i18n allows for future expansion. I've written logicsheets (tag libraries) to communicate with our j2ee beans, so now even our gui developers can create/modify our XSPs. Also because of MVC separation, I can hand-craft XML page and give it to gui developer so he/she can start on the XSLT while I create and test XSPs, java, tags, whatever to generate that XML. Artur... -Original Message- From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 11:34 AM To: '[EMAIL PROTECTED]' Subject: RE: Cocoon use Okay, but in what kind of a project is it used. I have to explain why other people in my company should use it and I have some ideas but I could use some help answering the following question: In what kind of a project is it used? In particular in what kind of a project do you people use it... For example a weather providing site where customers can get the information from the web and via other devices... Thanks already, Edgar -Oorspronkelijk bericht- Van: Jörn Heid [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 26 april 2002 11:56 Aan: [EMAIL PROTECTED] Onderwerp: AW: Cocoon use 1. Open Standards 2. Output independency 3. True MVC 4. Open Source 5. Java (plattform independency) 6. Fast (regarding the points above) The question is if there's an alternative product on the market? I think not. Cocoon uses as much open standards as it can. No other product I know has those advantages. -Ursprüngliche Nachricht- Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 26. April 2002 09:45 An: '[EMAIL PROTECTED]' Betreff: Cocoon use People, I would like to know why you use Cocoon? Thank you, Edgar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Announcement] Updates to i18n
Good i18n:time-of-day /! Summary I18n samples are refactored and redesigned. I18nTransformer changed in an incompatible way. LocaleAction has been fixed to support 'locale-attribute' overrides. Details below. I18nTransformer = * I18nTransformer was modified to get sitemap parameter for locale selection. (WARN!) The old behavior is not supported any more, so now the usage will be like this: map:act type=locale ... map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act where locale parameter is obtained using the LocaleAction. Now URL part, request params, session attributes are also can be used, e.g.: for request like '/en/docs', the pipeline can look like this: map:match pattern=*/* map:generate src={2}.xml/ map:transform type=i18n map:parameter name=locale value={1}/ /map:transform map:transform src=style.xsl / map:serialize/ /map:match * Dependency on LocaleAction were removed from transformer. * i18n:param / impementation has changed: 'sub-type' attribute is now replaced with 'type'. Allowed values for 'type' attribute now are: 'number' (buggy yet), 'currency', 'percent'. Thanks to Michael Enke ([EMAIL PROTECTED]). (See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7726 for the patch. Michael, please, send the diff for 'number' formatting fix.). LocaleAction === LocaleAction was fixed to allow to change the locale attribute name. (There was a bug that forced 'locale' name only). Also, now DEBUG information in logs is formatted in a more readable way. Samples i18n samples are refactored and redesigned using new look feel developed at Apache Forrest. To see them get the latest source from CVS (HEAD branch), build Cocoon, deploy, then enter this URL (for Tomcat): http://localhost:8080/cocoon/samples/i18n/ Special thanks to Horst Rutter ([EMAIL PROTECTED]), Hahn Kurt ([EMAIL PROTECTED]), Olivier Lange ([EMAIL PROTECTED]) for additional translations. To Do = - Fix minor bug with number formatting - Apply major contribution from Matthieu Sozeau ([EMAIL PROTECTED]) for inline translations and markup inside of text and param elements - Optimize dictionary lifecycle handling Finally = That's all. Comments and suggestions are welcome. Enjoy! -- Konstantin _ Konstantin Piroumian Lead Developer ICQ#: 2297575 ( Work Tel#: +7 095 795 0520 * 1288 + More ways to contact me i See more about me _ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with XSP
Well now I have to go to the work directory and search the XSP. It would be easy if I just can jump to the right line number... Regards -Oorspronkelijk bericht- Van: Torsten Curdt [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 26 april 2002 14:26 Aan: [EMAIL PROTECTED] Onderwerp: RE: Problems with XSP On Fri, 26 Apr 2002, Vadim Gritsenko wrote: From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Great... when I code XSP and when I make some error in the logic I get (of course) an error. An error contains a line number. Now I have to go to the work directory and look at the generated java file to find the error. Isn't it possible to display the line number of the error in the XSP? Suggest how it is possible. I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. It should also be even possible to display that line's sourcecode (preferable with some surrounding lines). But I wasn't sure if this is really worth the work... ...is there a need for it? -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with XSP
I have thought about this a while ago, too. We should be able to extract that from the exception stacktrace. Line number in Java source is already shown, correctly. The question is how to map this to XSP source line numbers. well, addtionally we need the full classpath of the failed class itself from the stacktrace. then we need to lookup the java source code filename from the ProgrammGenerator. unfortunately that's not yet possible AFAICS. but as a workaround we might translate back the class into a path and use the workdir of the ProgrammGenerator as root, add the path and we should have the generated file path from the repository... OK, that would make it easier to see the source (if I understand correctly, that is). But I believe the original problem is infeasible since we don't know what transformations happened on the way to the final XSP (all taglibs but XSP done). true... that's why I am not sure if it is really worth the work. fact is: it will only really be useful if the error does not come from a logicsheet. otherwise you would present code to the user/developer he has probably never seen before. it might be easier to track things though... I am really torn apart :-/ Some comments from XSP *users* would be fine... One could, of course, first run the XSP through a transformer that adds line number comments that are kept 'til the java file is generated, find the enclosing line number comments (well, one would suffice) output the XSP with the line highlighted that translates to the faulty java code Would be kind of overhead outside development but then, a deployed application wouldn't compile XSPs too often. hm.. you mean this way? ... xsp:logic int a = 5; /xsp:logic my:logicsheet-tag/ xsp:logic b = a; c = x; /xsp:logic ... transform it once to add the line numbers. (it would be cool if the XSP logicsheet could already provide this. but I fear that's not possible with XSLT) ... xsp:logic /* line:4 */ int a = 5; /xsp:logic my:logicsheet-tag/ xsp:logic /* line:8 */ b = a; /* line:9 */ c = x; /xsp:logic Then apply the logicsheets which might insert or remove lines from the original code: ... /* line:4 */ int a = 5; . /* line:8 */ b = a; /* line:9 */ c = x; Now the exception provides information about the final class line numbers. We still would need to obtaint the information as described. but we could then also parse the comment to get the original line number an present that one in a nice exception. the malicious line highlighted with +/- 5 lines. if there is no line number in comments we know it was introduced by a logicsheet and might not be very helpful to display this way. But as I said... quite some hours of work... question is: do people think this is helpful? people? comments please... -- Torsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Yeah!!!! Got it working!!!! :-)))
Chris: I'm wondering: Have you been reading install doc lately? http://xml.apache.org/cocoon/installing/index.html Edit c:\bea\wlserver6.0sp2\config\mydomain\startWebLogic.cmd file, add xerces and xml-apis JAR files to the classpath: Vadim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Removing the packages fron the jars was how I got round my WL issues - a bit of a pain - but it did the trick. Oh? I just changed the classpath in the startWeblogic.sh script so that the xml-apis.jar and xerces-?.jar where in the classpath before the weblogic.jar file, and that stopped the NoSuchMethod thingy. I am rather against messing with BEA JAR files (I think it breaches the contract doing so, and therefore no support). I read the FAQ, and that PJA library is a godsend - because I got the error with X11, and after installing PJA according to the FAQ, cocoon started without any problems at all, and now I can get going on the fun stuff! :) Thanks for all your help folks. Chris. ... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: clob-esql-xml
Aloha, I added clob support to the esql stylesheet, but don't know if anyone added it to the release. I've attached it to this message, this allows you to use get-xml with clobs. Thursday, April 25, 2002, 8:34:56 AM, you wrote: SS The only tag that supports clobs is esql:get-ascii/. Try this: SS util:include-exprutil:expresql:get-ascii column=myclob//util:expr/util:include-expr SS Steve SS -Original Message- SS From: yuryx [mailto:[EMAIL PROTECTED]] SS Sent: Thursday, April 25, 2002 12:03 PM SS To: [EMAIL PROTECTED] SS Subject: Re: clob-esql-xml SS yuryx wrote: Steven Sedlmeyer wrote: try esql:get-ascii column=myclob/ Steve Thx, but I need XML,not ascii... Yury SS esql:get-xml / don't work with CLOB SS if use VARCHAR then it work very good... SS May be esql:get-xml / don't support CLOB? SS Yury. -Original Message- From: yuryx [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 1:46 AM To: [EMAIL PROTECTED] Subject: clob-esql-xml Hi all! How to extract clob column as xml into dynamic page? For example: my CLOB: h1hello!/h1 in sample.xsp I define: ... esql:execute-query esql:queryselect myclob from mytable/esql:query esql:results esql:row-results esql:get-xml column=myclob/ /esql:row-results /esql:results /esql:execute-query ... ?This example don't work :( What I'm wrong? Thanx. Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] SS - SS Please check that your question has not already been answered in the SS FAQ before posting. http://xml.apache.org/cocoon/faqs.html SS To unsubscribe, e-mail: [EMAIL PROTECTED] SS For additional commands, e-mail: [EMAIL PROTECTED] SS - SS Please check that your question has not already been answered in the SS FAQ before posting. http://xml.apache.org/cocoon/faqs.html SS To unsubscribe, e-mail: [EMAIL PROTECTED] SS For additional commands, e-mail: [EMAIL PROTECTED] -- Mahalo, Russellmailto:[EMAIL PROTECTED] Distinguished Engineer I know how hard it is for you to put food on your family. -Our President ?xml version=1.0? !-- $Id: esql.xsl,v 1.3 2002/03/28 03:43:46 russell Exp $-- !-- The Apache Software License, Version 1.2 Copyright (C) @year@ The Apache Software Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modifica- tion, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: This product includes software developed by the Apache Software Foundation (http://www.apache.org/). Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The names Cocoon and Apache Software Foundation must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [EMAIL PROTECTED] 5. Products derived from this software may not be called Apache, nor may Apache appear in their name, without prior written permission of the Apache Software Foundation. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Installation Doc build command typo listed
The target for the build command listed as printerdocs is of course incorrect. Just thought someone would want to change it to the correct, printer-docs target. Sincerely Yours, Marc J. Driftmeyer // - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serving static XML files a la Cocoon-1
From: Cédric Damioli [EMAIL PROTECTED] Peter Flynn wrote: ... Don't get me wrong, I love the idea of Cocoon. It was just an error to distribute it without the previous default (Cocoon 1) already enabled, ie any XML files already on disk should be processed with their XSL[T] files and served up as HTML/PDF by default. You don't understand the Cocoon2 concepts at all. It must be on the 75% the problem of Cocoon docs, but this question is definitely lightened in the rest 25% ;) It is nonsense to serve XML files with their XSL files : the principle is to separe data and presentation, ie XML source and XSL. Sometimes you need to use unique XSL file for several XML files, but this is also solved by the sitemap in a varios ways, e.g.: map:match pattern=*.xml map:generate src={1}.xml/ map:transform src={1}.xsl/ map:serialize / /map:match For a request like '/cocoon/page.xml' the following will be performed: 'page.xml' file will be read, parsed into SAX events 'page.xsl' will be read, then applied to the generated SAX event stream default (HTML) serializer will output the result as HTML This will work if you name your stylesheets as your xml files (my-page.xml - my-page.xsl). There a lot more possibilities for doing this, even generating a stylesheet on the fly or serving it from a database. -- Konstantin So you have to write a pipeline (or to copy/paste one from an existing sitemap) to generate HTML stuff from XML by transforming it through XSL. The sample sitemap bundled with Cocoon offers these 'defaults' already. Please read the docs and reffer to the samples. They will learn you much. Something like map:match pattern=3Drtfm/*.xml map:generate src=3Dsomewhere/{1}.xml/ But I don't want to *generate* any XML. I already have XML documents. Yes, you want In Cocoon2 terminology, generate means you generate SAX events from a source. In your case, the source is an XML document. So you have to use : map:generate src=XXX.xml/ map:transform src=3Dxslt-stuff/transform.xsl/ map:serialize type=3Dxml/ /map:match ///Peter - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto xsp process in C2 ?
Title: Howto xsp process in C2 ? Hi, I'm migrating from C1 to C2, and I guess I've get the idea but I still can't make it work. How can I do if I want to define a pipeline where I have a source file wich is a XSP page, after generating it I have to transform it by a logicsheet (XSL), then by the XSP processor and finally a stylesheet (XSL). I did this: map:match pattern=index map:generate src="webbpi/index.xml" type=serverpages / map:transform src="webbpi/estilo/cotizacion_xsp.xsl/ map:transform src="webbpi/estilo/cotizacion.xsl/ map:serialize type=html/ /map:match but it didn't work. Is there any whay to do shomething like map:transform src="webbpi/estilo/cotizacion_xsp.xsl" type=xsp/ ? thanks in advance Alejandro D. Raiczyk Desarrollo de Proyectos Technisys Informática S.R.L. Tel./Fax: +54(11)4322-7100 int 133 [EMAIL PROTECTED]
Re: AW: AW: Cocoon use
Cocoon's collection of Frameworks will work right in with WebObjects. You get the best of both worlds, all for $699. And if you don't know squat about WOF I suggest you check it out. The footprint is the fact that the Developer Tools are only for MacOS X and Windows 2000/NT. http://www.apple.com/webobjects/ -Marc Jörn Heid wrote: Well, I do not know much about WebObjects. As far as I know it's not free, isn't? Open source? Does it use XML/XSL for the content and style? I do not mean EJB oder Servlet/JSP technology. For me, it's not an open standard. Does it support true and only XML-XSL-whatever? -Ursprüngliche Nachricht- Von: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 26. April 2002 12:48 An: [EMAIL PROTECTED] Betreff: Re: AW: Cocoon use One does for damn sure. WebObjects 5.1.x -Marc Jörn Heid wrote: 1. Open Standards 2. Output independency 3. True MVC 4. Open Source 5. Java (plattform independency) 6. Fast (regarding the points above) The question is if there's an alternative product on the market? I think not. Cocoon uses as much open standards as it can. No other product I know has those advantages. -Ursprüngliche Nachricht- Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 26. April 2002 09:45 An: '[EMAIL PROTECTED]' Betreff: Cocoon use People, I would like to know why you use Cocoon? Thank you, Edgar - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Request vs HttpServletRequest
rant Life is hard for people porting from C1 to C2, so many things have changed. Why, oh why? /rant Let's asume I'm a crazy person who uses Cocoon servlet with other servlets and all these servelts share utility classes. Some of this utilities use to take HttpServletRequest as a parameter, but when I moved to C2 I had to changed them to take org.apacheRequest instead (lots of my XSPs use these utilities and doing (HttpServletRequest)objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT) everywhere would be a pain). In order for my other servlets to work I have to convert HttpServletRequest to cocoon HttpRequest, but the constructor for HttpRequest is protected so forget that. I guess the only option is to create HttpEnvironment and pass it all the crap that it needs, get the Reqeust out and throw it all away. Is there a simpler/smarter way to get cocoon HttpRequest from HttpServletRequest? Thanks, Artur... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TeraText Solutions new Livesite using Cocoon2
Hello cocoon-users TeraText Solutions (a division SAIC) is excited to anounce its new site hosted using Cocoon 2. http://www.teratext.com TeraText Solutions is focused on delivering best of breed text management solutions for customers with complex text related problems. Leveraging the TeraText Database System (DBS) product suite and utilizing years of practical experience using XML database capabilities to solve text related problems the TeraText Solutions team is focused on delivering end-to-end text management solutions. The TeraText Solutions web site is powered using Apache Cocoon and connected to the TeraText DBS (a Native XML database system). Tim Nelson TeraText Solutions, a division of SAIC 1997 Annapolis Exchange Pkwy, Suite 200 Annapolis, MD 21401 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Howto xsp process in C2 ?
Title: Howto xsp process in C2 ? Hi Alejandro, Here's a previous post that might be helpful: http://www.mail-archive.com/cocoon-users@xml.apache.org/msg06914.html Basically, you need to do three things: 1) "Register" your logicsheet in the cocoon.xconf file (as described in the above post). 2) Add the logicsheet's namespace to your xsp doc (in the xsp:page element). 3)In your pipeline below, remove the transform step that references your logicsheet; by having done the previous two steps, your logicsheet will be processed during the generate step. Hope that helps! Harry -Original Message-From: Alejandro Raiczyk [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 25, 2002 10:18 AMTo: '[EMAIL PROTECTED]'Subject: Howto xsp process in C2 ? Hi, I'm migrating from C1 to C2, and I guess I've get the idea but I still can't make it work. How can I do if I want to define a pipeline where I have a source file wich is a XSP page, after generating it I have to transform it by a logicsheet (XSL), then by the XSP processor and finally a stylesheet (XSL). I did this: map:match pattern="index" map:generate src="webbpi/index.xml" type="serverpages" / map:transform src="webbpi/estilo/cotizacion_xsp.xsl"/ map:transform src="webbpi/estilo/cotizacion.xsl"/ map:serialize type="html"/ /map:match but it didn't work. Is there any whay to do shomething like map:transform src="webbpi/estilo/cotizacion_xsp.xsl" type="xsp"/ ? thanks in advance Alejandro D. Raiczyk Desarrollo de Proyectos Technisys Informática S.R.L. Tel./Fax: +54(11)4322-7100 int 133 [EMAIL PROTECTED]
Closure and feedback ... Re: Sub sitemap pains
Greetings all, Thank you both .. Vadim and Erwin for pointing me in the right direction. After careful study of both sitemaps I found the following ... the sub-sitemap (in vcard) was missing one component map:selectors default=browser/ I guess it was cut and paste that proved to be my nemesis ... and also staring at a monitor for 19 hours at a stretch ... ... I added the missing line in the sitemap ... and everything started working fine. One area of confusion is the use of the * and ** ... is it just my imagination that * in a sitemap does not mean the same as * in a regular expression (expands to match zero or more characters???) ... there used to be a page that described that it has moved and I cannot find it. Anyway ... Cocoon is behaving now and life is good !! Now it is on to bigger and better (i.e. more complicated) sub-sitemaps Thanks again ... Conrad Vadim Gritsenko wrote: From: Conrad F. D'Cruz [mailto:[EMAIL PROTECTED]] Erwin wrote: On Thu, 25 Apr 2002, Conrad F. D'Cruz wrote: map:match pattern=vcard/** map:mount uri-prefix=vcard check-reload=yes reload-method=synchron src=c2/vcard/sitemap.xmap/ map:mount uri-prefix=vcard/** check-reload=yes reload-method=synchron src=c2/vcard/sitemap.xmap/ /map:match /map:pipeline Try with one map:mount element under map:match, i.e. comment out or remove the second one. That's what I started out with and thought I needed the other one. I went ahead and commented it out as directed. Uncomment last mount, remove first one. Log file should have a reason logged. Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MySQL
Istvan - http://www.galatea.com/flashguides/cocoon-tips-2.xml on my site has a section about MySQL and Cocoon. Don't try with JDK 1.4, though. People have recently reported problems with the connections under that JDK. Tisztelettel, Lajos galatea.com Istvan Beszteri wrote: Hi All, Is there somewhere any detailed decription about how to get Cocoon work with MySQL? I have found many complaining mails and answers about particular problems, but non of them contains a reference to a complete doq. Br, Istvan - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]