Heads-Up: Jax2002 in Frankfurt, Germany
Hi, Carsten and I will be at Jax2002 in Frankfurt next week and hope to meet some of you there for some Cocoon related chat and perhaps a few beers in the evening. Hope to see you there. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = - 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! Problems installing a user component and role into Cocoon2
Stuart Roebuck wrote: I'm trying to install a new 'user' component into Cocoon 2 but I'm hitting a problem which I can't seem to get a handle on: Basically, I'm getting a the following stack dump: ERROR (2002-05-09) 19:03.08:176 [sitemap.generator.database- access](/about_us_index.html) HttpProcessor[8080][4]/DatabaseAccessGenerator: Can't get DatabaseAccessManager component org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup (ExcaliburComponentManager.java:335) at org.apache.cocoon.components.CocoonComponentManager.lookup (CocoonComponentManager.java:175) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at com.adolos.cocoon.generation.DatabaseAccessGenerator.compose (DatabaseAccessGenerator.java:94) ... My new DatabaseAccessGenerator (generator) is composable and uses the given manager to lookup the new component called DatabaseAccessManager. This component is defined in my my.roles file: ?xml version=1.0? role-list role name=com.adolos.cocoon.util.DatabaseAccessManager shorthand=database-access-manager default-class=com.adolos.cocoon.util.DatabaseAccessManager/ /role-list The my.roles file is referenced in my cocoon.xconf file as: cocoon version=2.0 user-roles=/WEB-INF/my.roles This appears to be being accessed, as prior to putting in the preceding forward-slash this reference threw a runtime error as well. The cocoon.xconf file also has an entry for the component like this (I'm not sure if this is really necessary): database-access-manager class=com.adolos.cocoon.util.DatabaseAccessManager logger=core.database.access / I have some logging in place and I know that the compose and configure methods of my DatabaseAccessManager component are called prior to any attempt to use the component. But, when my DatabaseAccessGenerator attempts to lookup the component it throws the 'Could not find component' exception listed above (top). I've checked and double-checked that the role names match up throughout. Any thoughts? Blind shot. Do you have a work interface for your DatabaseAccessManager? Greets Gerhard -- Beam me up... arrgh, no carrier! Weblogging at: http://radio.weblogs.com/0107791/ - 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: Loosing Faith In Open Source
Internal server error[FYI] An error like ComponentSelector could not access the Component for hint: XXX usually means that you haven't cleaned the work dir between installations. As for faith... well, that's another story ;-) -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Original Message - From: Emre Tezel To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 6:34 AM Subject: Re: Loosing Faith In Open Source Some miracle happened and I got it working under Tomcat 4.0.4b2, Sun JDK 1.3.1. I have no idea how it worked. Anyway, my faith to open source is being restored again. Emre Tezel wrote: I have been tryin to get cocoon up and running for the last 3 days and still no luck. So far I have tried all Sun JDK 1.3.x, Sun SDK 1.4.x, IBM SDK 1.3.x, Tomcat 4.0.3, Tomcat 4.04b2, Tomcat 3.3x permutations and each time I get an error message, whenever I try to go to cocoons welcome page. Such pure documentation. I am doing everything in the installation instructions still no luck. I am getting all stable releases and rpms. Can somebody please put a detail installation instruction and common pitfalls. This is the latest error I am getting. Emre Cocoon 2 - Internal server error type fatal messagemarkup-languages: ComponentSelector could not access the Component for hint: sitemap descriptionorg.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.avalon.framework.component.ComponentException: markup-languages: ComponentSelector could not access the Component for hint: sitemap at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca liburComponentSelector.java:293) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:289) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:484) request-uri /cocoon/ path-info - 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]
NEWBIE: Logging?
Please could someone help me with this, seemingly, obvious question. I am writing an action for cocoon 2 which extends AbstractLogger indirectly through extending other cocoon classes. I am then calling getLogger.debug(debug text here); No debug info is appearing in any of the log files within cocoon/WEB-INF/logs I have used the binary download as is. Do I need to initialise the logging somewhere somehow. I have looked around on the mailing list archives and I've been to the LogKit site but have had no joy. The only logging framework I've used is Log4j TIA Andrew - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NEWBIE: Logging?
The logging is turned on by default and configured in the WEB-INF/logkit.xconf file. I guess you have cocoon 2.0.2 installed? If so, have a look if you have this section at the end of the file: categories !-- log-level: One of DEBUG, INFO, WARN, ERROR, FATAL_ERROR. -- category name=core log-level=DEBUG category name=startup log-level=DEBUG/ category name=roles log-level=DEBUG/ category name=manager log-level=DEBUG/ category name=store log-level=DEBUG/ Remove the last for lines as they are wrong. Short Explanation: The logkit uses categories to log in. Unless otherwise specified each component logs into the category core.manager. With the line from above category name=manager log-level=DEBUG/, this category (core.manager) is specified to log nowhere. By removing this line the category is logged into the logs again. HTH Carsten Carsten Ziegeler SN AG, Germany - Open Source Group == mailto:[EMAIL PROTECTED] http://www.s-und-n.de == The Cocoon Book: http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20 -Original Message- From: Andrew Timberlake [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:33 AM To: [EMAIL PROTECTED] Subject: NEWBIE: Logging? Please could someone help me with this, seemingly, obvious question. I am writing an action for cocoon 2 which extends AbstractLogger indirectly through extending other cocoon classes. I am then calling getLogger.debug(debug text here); No debug info is appearing in any of the log files within cocoon/WEB-INF/logs I have used the binary download as is. Do I need to initialise the logging somewhere somehow. I have looked around on the mailing list archives and I've been to the LogKit site but have had no joy. The only logging framework I've used is Log4j TIA Andrew - 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]
ExcaliburComponentManager.java still missing from Latest Snapshotbreaks /cocoon/ and throwing ERRORS
Vadim - Are you obtuse on purpose? Its the one throwing the error in the process of mapping /cocoon/ Logic dictates one reduces errors from the first one thrown to the last one thrown. 2.1 dev has been in the tree for the past month, atleast. If its Alpha than someone should make separate branches for the alpha and then the maintenance branch for 2.0.2 so it can work seemlessly with SDK 1.4. Or perhaps I'm just highly critical? No. I'm driven by wanting to get this stuff working smoothly so average folks, like myself, who can articulate technology to inepts with money can find it as an useful means of development and worth investing. And if you think Technology sells itself you wouldn't be working on Open Source software and dealing with an Troglodyte like M$ dictating the Market landscape. And after just getting a clean snapshot and rebuilding the cocoon.war it still fails. with the Avalon Framework specifically referencing ExcaliburComponentManager.java. Here is the error.log. ERROR (2002-05-10) 01:22.48:604 [core.manager](Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not get class org.apache.cocoon.components.store.impl.FilesystemStore for role org.apache.excalibur.store.Store on configuration element persistent-store java.lang.ClassNotFoundException: org.apache.cocoon.components.store.impl.FilesystemStore at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(ExcaliburComponentManager.java:435) at org.apache.cocoon.Cocoon.configure(Cocoon.java:408) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1214) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:415) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3274) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3416) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478) at org.apache.catalina.core.StandardHost.install(StandardHost.java:738) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) ERROR (2002-05-10) 01:22.48:614 [access](Unknown-URI) Unknown-thread/CocoonServlet: Exception reloading org.apache.avalon.framework.configuration.ConfigurationException: Could not get class at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(ExcaliburComponentManager.java:448) at org.apache.cocoon.Cocoon.configure(Cocoon.java:408) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1214) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:415) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3274) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3416) at
Redirection with URL parameters
Hi all, I generate a URL of the following form: http://localhost:8080/cocoon/tekst/thesis/?chapter=N10134 In the sitemap tekst/thesis/ is redirected to tekst/thesis/index.html but by doing this the URL parameters are lost (I use map:redirect-to). I have hacked a solution into my xslt bij prepending index.html to the generated URL, but that is not a clean solution. Does anybody know how to solve this at the level of the sitemap? 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: ExcaliburComponentManager.java still missing from Latest Snapshot breaks /cocoon/ and throwing ERRORS
Sorry, for jumping in here... snip/ And after just getting a clean snapshot and rebuilding the cocoon.war it still fails. with the Avalon Framework specifically referencing ExcaliburComponentManager.java. .. Here is the error.log. ERROR (2002-05-10) 01:22.48:604 [core.manager](Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not get class org.apache.cocoon.components.store.impl.FilesystemStore for role org.apache.excalibur.store.Store on configuration element persistent-store java.lang.ClassNotFoundException: org.apache.cocoon.components.store.impl.FilesystemStore AFAICS it is referencing the role org.apache.excalibur.store.Store ..so better check you store setup in cocoon.xconf. As Vadim pointed out: this should have nothing to do with the ECM except seeing the ECM complaining... -- 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]
Possible to use xsl:template in a query?
The stylesheet below is applied to use a parameter (=odjID) with a query. It is actually applied to a dummy XML, which contains no data (this pattern works just the way I want it). The correponding sitemap entry looks like this: map:generate src=Queries/raw-query.xml/ map:transform src=Queries/odj_query.xsl (=The stylesheet below) map:parameter name=var value={1}/ /map:transform map:transform type=sql. Now I'd like to use the same pattern for something else, and this time, the XML (raw-query above) would contain data I'd like to keep. The problem is that wherever in the XSL I insert something like this: xsl:template match=sql:enTete aTagxsl:value-of select=.//aTag /xsl:template I'm getting a NullPointerException error from Cocoon. At one point, the error log said that inserting an xsl:template element was not allowed here, but moving it around in the XSL didn't help. How can I add the information from the XML then? Here's the styleheet, it works perfectly as long as I don't wanna add another xsl:template section... xsl:stylesheet version=1.0 xmlns:sql=http://apache.org/cocoon/SQL/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=var/ xsl:template match=/ xsl:variable name=odjID xsl:value-of select=$var/ xsl:apply-templates select=sql:enTete/ /xsl:variable page content execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query name=titreOJ_séance selectto_char(RE.REU_DATE) as reu_dateReunion, to_char(RE.REU_HDEBUT,'hh24:mi') as reu_heureReunion from REUNION RE where RE.OBJ_ID = xsl:value-of select=$odjID/ /query /execute-query /content /page /xsl:template /xsl:stylesheet - 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]
CachingCIncludeTransformer - no effect?
Dear colleagues, I have built a xsp-page which takes two xml-Files and builds a xsp which will be compiled by another pipeline: map:match pattern=xsp-part1 map:generate src=part1.xsp/ map:serialize type=xml/ /map:match map:match pattern=xsp-part2 map:generate src=part2.xsp/ map:serialize type=xml/ /map:match map:match pattern=xsp-main map:generate src=main.xsp/ map:transform type=cinclude/ map:serialize type=xml/ /map:match map:match pattern=xsp-result map:generate type=serverpages src=cocoon:/xsp-main/ map:serialize type=xml/ /map:match This is not very performant, so that I tried to use the CachingCIncludeTransformer instead of the CIncludeTransformer, but bad performance did not change. My other xsp sample pages run 2-3 times faster than this. One point is, that I have 4 pipelines here and with every new included part I will get a further one. I think that caching of the CInclude result will be very helpful in this case. Is it necessary to switch the CachingCIncludeTranformer to on? I looked into the source code, but I did not find anything that looks like a switch or a helpful attribute. Can anybody help me? Thank you, best regards - Volker - - 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: Possible to use xsl:template in a query?
Or would it be better to just execute the query and then aggregate the result with the XML? I thought it was more elegant to do that through an XSL... -Message d'origine- De: Hahn Kurt (CHA) A: '[EMAIL PROTECTED]' Date: 10.05.02 10:55 Objet: Possible to use xsl:template in a query? The stylesheet below is applied to use a parameter (=odjID) with a query. It is actually applied to a dummy XML, which contains no data (this pattern works just the way I want it). The correponding sitemap entry looks like this: map:generate src=Queries/raw-query.xml/ map:transform src=Queries/odj_query.xsl (=The stylesheet below) map:parameter name=var value={1}/ /map:transform map:transform type=sql. Now I'd like to use the same pattern for something else, and this time, the XML (raw-query above) would contain data I'd like to keep. The problem is that wherever in the XSL I insert something like this: xsl:template match=sql:enTete aTagxsl:value-of select=.//aTag /xsl:template I'm getting a NullPointerException error from Cocoon. At one point, the error log said that inserting an xsl:template element was not allowed here, but moving it around in the XSL didn't help. How can I add the information from the XML then? Here's the styleheet, it works perfectly as long as I don't wanna add another xsl:template section... xsl:stylesheet version=1.0 xmlns:sql=http://apache.org/cocoon/SQL/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=var/ xsl:template match=/ xsl:variable name=odjID xsl:value-of select=$var/ xsl:apply-templates select=sql:enTete/ /xsl:variable page content execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query name=titreOJ_séance selectto_char(RE.REU_DATE) as reu_dateReunion, to_char(RE.REU_HDEBUT,'hh24:mi') as reu_heureReunion from REUNION RE where RE.OBJ_ID = xsl:value-of select=$odjID/ /query /execute-query /content /page /xsl:template /xsl:stylesheet - 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: Loosing Faith In Open Source
Hi Emre, please try this: copy the batik*.jar and xml-apis.jar files to your common/lib directory and restart tomcat. Cocoon 2.0.2 works with JDK 1.3.1 Best regards - Volker - -Original Message- From: Emre Tezel [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10. Mai 2002 06:06 To: [EMAIL PROTECTED] Subject: Loosing Faith In Open Source I have been tryin to get cocoon up and running for the last 3 days and still no luck. So far I have tried all Sun JDK 1.3.x, Sun SDK 1.4.x, IBM SDK 1.3.x, Tomcat 4.0.3, Tomcat 4.04b2, Tomcat 3.3x permutations and each time I get an error message, whenever I try to go to cocoons welcome page. Such pure documentation. I am doing everything in the installation instructions still no luck. I am getting all stable releases and rpms. Can somebody please put a detail installation instruction and common pitfalls. This is the latest error I am getting. Emre - 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: Loosing Faith In Open Source - addition
Hi Emre, it worked for me with Tomcat 4.0.2 and 4.0.3. Best regards - Volker - -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10. Mai 2002 11:09 To: [EMAIL PROTECTED] Subject: RE: Loosing Faith In Open Source Hi Emre, please try this: copy the batik*.jar and xml-apis.jar files to your common/lib directory and restart tomcat. Cocoon 2.0.2 works with JDK 1.3.1 Best regards - Volker - -Original Message- From: Emre Tezel [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10. Mai 2002 06:06 To: [EMAIL PROTECTED] Subject: Loosing Faith In Open Source I have been tryin to get cocoon up and running for the last 3 days and still no luck. So far I have tried all Sun JDK 1.3.x, Sun SDK 1.4.x, IBM SDK 1.3.x, Tomcat 4.0.3, Tomcat 4.04b2, Tomcat 3.3x permutations and each time I get an error message, whenever I try to go to cocoons welcome page. Such pure documentation. I am doing everything in the installation instructions still no luck. I am getting all stable releases and rpms. Can somebody please put a detail installation instruction and common pitfalls. This is the latest error I am getting. Emre - 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: Redirection with URL parameters
On Fri, 10 May 2002, Erwin wrote: Hi all, I generate a URL of the following form: http://localhost:8080/cocoon/tekst/thesis/?chapter=N10134 In the sitemap tekst/thesis/ is redirected to tekst/thesis/index.html but by doing this the URL parameters are lost (I use map:redirect-to). I have hacked a solution into my xslt bij prepending index.html to the generated URL, but that is not a clean solution. Does anybody know how to solve this at the level of the sitemap? Tnx in advance. Ok, I found the solution I used map:redirect-to uri=index.html/ I've replaced it with map:redirect-to uri=cocoon:/index.html/ and ik works like a charm. - 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! Problems installing a user component and role into Cocoon 2
On Friday, May 10, 2002, at 08:03 AM, Gerhard Froehlich wrote: Stuart Roebuck wrote: I'm trying to install a new 'user' component into Cocoon 2 but I'm hitting a problem which I can't seem to get a handle on: Basically, I'm getting a the following stack dump: ERROR (2002-05-09) 19:03.08:176 [sitemap.generator.database- access](/about_us_index.html) HttpProcessor[8080][4]/DatabaseAccessGenerator: Can't get DatabaseAccessManager component org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup (ExcaliburComponentManager.java:335) at org.apache.cocoon.components.CocoonComponentManager.lookup (CocoonComponentManager.java:175) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at com.adolos.cocoon.generation.DatabaseAccessGenerator.compose (DatabaseAccessGenerator.java:94) ... My new DatabaseAccessGenerator (generator) is composable and uses the given manager to lookup the new component called DatabaseAccessManager. This component is defined in my my.roles file: ?xml version=1.0? role-list role name=com.adolos.cocoon.util.DatabaseAccessManager shorthand=database-access-manager default-class=com.adolos.cocoon.util.DatabaseAccessManager/ /role-list The my.roles file is referenced in my cocoon.xconf file as: cocoon version=2.0 user-roles=/WEB-INF/my.roles This appears to be being accessed, as prior to putting in the preceding forward-slash this reference threw a runtime error as well. The cocoon.xconf file also has an entry for the component like this (I'm not sure if this is really necessary): database-access-manager class=com.adolos.cocoon.util.DatabaseAccessManager logger=core.database.access / I have some logging in place and I know that the compose and configure methods of my DatabaseAccessManager component are called prior to any attempt to use the component. But, when my DatabaseAccessGenerator attempts to lookup the component it throws the 'Could not find component' exception listed above (top). I've checked and double-checked that the role names match up throughout. Any thoughts? Blind shot. Do you have a work interface for your DatabaseAccessManager? Thank you for a suggestion - I'm not sure what you mean by a 'work interface'. Do you mean 'ThreadSafe', 'Poolable', etc. ? Here is the class declaration: public class DatabaseAccessManager extends AbstractLoggable implements Composable, Configurable, ThreadSafe { Here's the call to look up the component, the exception is thrown in the lookup: public void compose(ComponentManager manager) throws ComponentException { super.compose(manager); try { this.dam = (DatabaseAccessManager) this.manager.lookup(DatabaseAccessManager.ROLE); } catch (ComponentException e) { getLogger().error(Can't get DatabaseAccessManager component, e); this.dam = null; } } I've done some further debugging and I've established that the manager and this.manager objects (which are identical at the time of the lookup call) contain an entry for the DatabaseAccessManager role in the parent manager. Could there be any issue with the lookup only discovering things in the immediate manager? The other thought was whether there could be any problems arising in creating the instance of the DatabaseAccessManager, and if there was a problem, whether the error message would be different or whether 'Could not find component' could mean this as well. Stuart. Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos) Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF - Stuart Roebuck [EMAIL PROTECTED] Systems Architect Java, XML, MacOS X, XP, etc. ADOLOS http://www.adolos.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]
2.0.2 websphere Websphere 4.0.2 stopped working ??
Hi All I am having a problem used to be able to run some of the sample. Now nothing works any more :-( I have uninstalled and reinstalled when I run it cpu goes to 100% for about a minute then it barfs. It seems to complain about the 'sitemap.xmap' but i have changed it?? The log is below any help would be appreciated. Thanks Jon INFO(2002-05-10) 10:53.21:424 [access](/cocoon/) Servlet.Engine.Transports:10/CocoonServlet: '' Processed by Apache Cocoon 2.0.2 in 1.3350834 minutes. DEBUG (2002-05-10) 10:53.48:232 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolving 'sitemap.xmap' in context 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/' DEBUG (2002-05-10) 10:53.48:232 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolved to 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/sitemap.xm ap' DEBUG (2002-05-10) 10:53.48:232 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolving '' in context 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/' DEBUG (2002-05-10) 10:53.48:243 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolved to 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/' ERROR (2002-05-10) 10:55.06:425 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/CocoonServlet: Problem with servlet org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : UnnamedSelector: ComponentSelector could not find the component for hint: wildcard at org.apache.cocoon.www.sitemap_xmap.configure(www\sitemap_xmap.java:171) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGen erator(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: wildcard at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca liburComponentSelector.java:276) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite mapComponentSelector.java:101) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite mapComponentSelector.java:104) at org.apache.cocoon.www.sitemap_xmap.preparePattern(www\sitemap_xmap.java:221) at org.apache.cocoon.www.sitemap_xmap.prepareMatchers(www\sitemap_xmap.java:240 ) at org.apache.cocoon.www.sitemap_xmap.configure(www\sitemap_xmap.java:164) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat or(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) INFO(2002-05-10) 10:55.06:615 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/CocoonServlet: 'docs/samples' Processed by Apache Cocoon 2.0.2 in 1.30655 minutes. - 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! Problems installing a user component and role into Cocoon2
Stuart Roebuck wrote: On Friday, May 10, 2002, at 08:03 AM, Gerhard Froehlich wrote: Stuart Roebuck wrote: I'm trying to install a new 'user' component into Cocoon 2 but I'm hitting a problem which I can't seem to get a handle on: Basically, I'm getting a the following stack dump: ERROR (2002-05-09) 19:03.08:176 [sitemap.generator.database- access](/about_us_index.html) HttpProcessor[8080][4]/DatabaseAccessGenerator: Can't get DatabaseAccessManager component org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup (ExcaliburComponentManager.java:335) at org.apache.cocoon.components.CocoonComponentManager.lookup (CocoonComponentManager.java:175) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at com.adolos.cocoon.generation.DatabaseAccessGenerator.compose (DatabaseAccessGenerator.java:94) ... My new DatabaseAccessGenerator (generator) is composable and uses the given manager to lookup the new component called DatabaseAccessManager. This component is defined in my my.roles file: ?xml version=1.0? role-list role name=com.adolos.cocoon.util.DatabaseAccessManager shorthand=database-access-manager default-class=com.adolos.cocoon.util.DatabaseAccessManager/ /role-list The my.roles file is referenced in my cocoon.xconf file as: cocoon version=2.0 user-roles=/WEB-INF/my.roles This appears to be being accessed, as prior to putting in the preceding forward-slash this reference threw a runtime error as well. The cocoon.xconf file also has an entry for the component like this (I'm not sure if this is really necessary): database-access-manager class=com.adolos.cocoon.util.DatabaseAccessManager logger=core.database.access / I have some logging in place and I know that the compose and configure methods of my DatabaseAccessManager component are called prior to any attempt to use the component. But, when my DatabaseAccessGenerator attempts to lookup the component it throws the 'Could not find component' exception listed above (top). I've checked and double-checked that the role names match up throughout. Any thoughts? Blind shot. Do you have a work interface for your DatabaseAccessManager? Thank you for a suggestion - I'm not sure what you mean by a 'work interface'. Do you mean 'ThreadSafe', 'Poolable', etc. ? Here is the class declaration: public class DatabaseAccessManager extends AbstractLoggable implements Composable, Configurable, ThreadSafe { Every Avalon Component must implement a work interface, in your case: package your.package; import org.apache.avalon.framework.component.Component; public interface DatabaseAccessManager extends Component { String ROLE = your.package.DatabaseAccessManager ; //your methods and fields } public class DatabaseAccessManagerImpl extends AbstractLoggable implements DatabaseAccessManager, Parameterizable, Composable, Disposable, ThreadSafe { //your class goes here } You see what I mean. There interface name is the same as you define in your roles.conf. Important is the String ROLE in the DatabaseAccessManager interface. Now the ComponentManager should find your component. Refer to: http://jakarta.apache.org/avalon/developing/index.html I hope that helps! Greets Gerhard -- -- Black holes were created when God divided by zero. -- Weblogging at: http://radio.weblogs.com/0107791/ - 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! Problems installing a user component and role into Cocoon 2
On Friday, May 10, 2002, at 11:30 AM, Gerhard Froehlich wrote: Stuart Roebuck wrote: On Friday, May 10, 2002, at 08:03 AM, Gerhard Froehlich wrote: Stuart Roebuck wrote: I'm trying to install a new 'user' component into Cocoon 2 but I'm hitting a problem which I can't seem to get a handle on: Basically, I'm getting a the following stack dump: ERROR (2002-05-09) 19:03.08:176 [sitemap.generator.database- access](/about_us_index.html) HttpProcessor[8080][4]/DatabaseAccessGenerator: Can't get DatabaseAccessManager component org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup (ExcaliburComponentManager.java:335) at org.apache.cocoon.components.CocoonComponentManager.lookup (CocoonComponentManager.java:175) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy. lookup(DefaultComponentFactory.java:323) at com.adolos.cocoon.generation.DatabaseAccessGenerator.compose (DatabaseAccessGenerator.java:94) ... My new DatabaseAccessGenerator (generator) is composable and uses the given manager to lookup the new component called DatabaseAccessManager. This component is defined in my my.roles file: ?xml version=1.0? role-list role name=com.adolos.cocoon.util.DatabaseAccessManager shorthand=database-access-manager default- class=com.adolos.cocoon.util.DatabaseAccessManager/ /role-list The my.roles file is referenced in my cocoon.xconf file as: cocoon version=2.0 user-roles=/WEB-INF/my.roles This appears to be being accessed, as prior to putting in the preceding forward-slash this reference threw a runtime error as well. The cocoon.xconf file also has an entry for the component like this (I'm not sure if this is really necessary): database-access-manager class=com.adolos.cocoon.util.DatabaseAccessManager logger=core.database.access / I have some logging in place and I know that the compose and configure methods of my DatabaseAccessManager component are called prior to any attempt to use the component. But, when my DatabaseAccessGenerator attempts to lookup the component it throws the 'Could not find component' exception listed above (top). I've checked and double-checked that the role names match up throughout. Any thoughts? Blind shot. Do you have a work interface for your DatabaseAccessManager? Thank you for a suggestion - I'm not sure what you mean by a 'work interface'. Do you mean 'ThreadSafe', 'Poolable', etc. ? Here is the class declaration: public class DatabaseAccessManager extends AbstractLoggable implements Composable, Configurable, ThreadSafe { Every Avalon Component must implement a work interface, in your case: package your.package; import org.apache.avalon.framework.component.Component; public interface DatabaseAccessManager extends Component { String ROLE = your.package.DatabaseAccessManager ; //your methods and fields } public class DatabaseAccessManagerImpl extends AbstractLoggable implements DatabaseAccessManager, Parameterizable, Composable, Disposable, ThreadSafe { //your class goes here } You see what I mean. There interface name is the same as you define in your roles.conf. Important is the String ROLE in the DatabaseAccessManager interface. Now the ComponentManager should find your component. Refer to: http://jakarta.apache.org/avalon/developing/index.html I hope that helps! Very much - thank you! I wasn't aware of that bit of extra documentation - I had gone to the page: http://jakarta.apache.org/avalon/framework/index.html which has an explanation on What is a Component? and Designing a Component but these texts aren't anywhere near as detailed as the one you mentioned. It might be good to have a link to the Developing with Apache Avalon guide from that page. Okay... off to make the changes. :-) Stuart. Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos) Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF - Stuart Roebuck [EMAIL PROTECTED] Systems Architect Java, XML, MacOS X, XP, etc. ADOLOS http://www.adolos.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]
Sample or documentation about FormValidatorAction?
Dear colleagues, where can I find a documentation about or a sample using the FormValidator action? Source code says that the configuration xml file don't need to be a file. Does anybody know more about this? Does using of the FormValidator action have an impact on performance? Thank you, best regards - Volker - - 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.0.2 websphere Websphere 4.0.2 stopped working ??
It seem that it was nothing that a quick reinstall of websphere. That fixed the problem dont know how or why. I will compair the config files. Dont care to much it works. - Original Message - From: Jon Pallas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 11:09 AM Subject: 2.0.2 websphere Websphere 4.0.2 stopped working ?? Hi All I am having a problem used to be able to run some of the sample. Now nothing works any more :-( I have uninstalled and reinstalled when I run it cpu goes to 100% for about a minute then it barfs. It seems to complain about the 'sitemap.xmap' but i have changed it?? The log is below any help would be appreciated. Thanks Jon INFO(2002-05-10) 10:53.21:424 [access](/cocoon/) Servlet.Engine.Transports:10/CocoonServlet: '' Processed by Apache Cocoon 2.0.2 in 1.3350834 minutes. DEBUG (2002-05-10) 10:53.48:232 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolving 'sitemap.xmap' in context 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/' DEBUG (2002-05-10) 10:53.48:232 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolved to 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/sitemap.xm ap' DEBUG (2002-05-10) 10:53.48:232 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolving '' in context 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/' DEBUG (2002-05-10) 10:53.48:243 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/AbstractEnvironment: Resolved to 'file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/' ERROR (2002-05-10) 10:55.06:425 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/CocoonServlet: Problem with servlet org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : UnnamedSelector: ComponentSelector could not find the component for hint: wildcard at org.apache.cocoon.www.sitemap_xmap.configure(www\sitemap_xmap.java:171) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGen erator(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: wildcard at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca liburComponentSelector.java:276) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite mapComponentSelector.java:101) at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite mapComponentSelector.java:104) at org.apache.cocoon.www.sitemap_xmap.preparePattern(www\sitemap_xmap.java:221) at org.apache.cocoon.www.sitemap_xmap.prepareMatchers(www\sitemap_xmap.java:240 ) at org.apache.cocoon.www.sitemap_xmap.configure(www\sitemap_xmap.java:164) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat or(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:332) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:291) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:498) INFO(2002-05-10) 10:55.06:615 [access](/cocoon/docs/samples) Servlet.Engine.Transports:10/CocoonServlet: 'docs/samples' Processed by Apache Cocoon 2.0.2 in 1.30655 minutes. - 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
Mail archive ends at 2000/04/20 - why?
Dear colleagues, why does the mail archive end at April, 20th? I think that there are some interesting mails before. Where can I get them from? I want to avoid asking questions which have been asked yet, but I cannot really check it, when mail archive is not complete. Best regards - Volker - - 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: Mail archive ends at 2000/04/20 - why?
Sorry, it's 2002 not 2000 :-) -Original Message- From: Volker Schneider [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10. Mai 2002 13:30 To: [EMAIL PROTECTED] Subject: Mail archive ends at 2000/04/20 - why? Dear colleagues, why does the mail archive end at April, 20th? I think that there are some interesting mails before. Where can I get them from? I want to avoid asking questions which have been asked yet, but I cannot really check it, when mail archive is not complete. Best regards - Volker - - 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]
cocoon2 instalation problem
Hello! I'm new in cocoon and I have a problem My OS is Debian, and I'm using Tomcat4, JDK1.3 and cocoon2.0.1 I followed the instruction for instalation, I took cocoon-2.0.1-src.tar.gz from the website, I builded it and copyed the war file into TOMCAT_HOME/webapps. But when I try to access to cocoon by localhost:8180/cocoon I get following error. I also tries to find some help in the FAQ but I didn't find anything. Could somebody help me? I have not idea what is happening. Thanks in advance. Sonia The error I get in the browser: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error *type* Exception report *message*_Internal Server Error_ *description*_The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:498) *root cause* java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver at java.lang.ClassLoader.findLoadedClass(Native Method) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1297) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java:257) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(ExcaliburComponentManager.java:408) at org.apache.cocoon.Cocoon.configure(Cocoon.java:406) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at
RE: cocoon2 instalation problem
Hi Sonia, maybe this helps. I don't know Debian, but it helps with Tomcat in most cases when you have such an error after installation: copy the batik*.jar and xml-apis.jar files to your common/lib directory and restart tomcat. Best regards - Volker - -Original Message- From: Sonia Pérez [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10. Mai 2002 13:35 To: [EMAIL PROTECTED] Subject: cocoon2 instalation problem Hello! I'm new in cocoon and I have a problem My OS is Debian, and I'm using Tomcat4, JDK1.3 and cocoon2.0.1 I followed the instruction for instalation, I took cocoon-2.0.1-src.tar.gz from the website, I builded it and copyed the war file into TOMCAT_HOME/webapps. But when I try to access to cocoon by localhost:8180/cocoon I get following error. I also tries to find some help in the FAQ but I didn't find anything. Could somebody help me? I have not idea what is happening. Thanks in advance. Sonia The error I get in the browser: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error *type* Exception report *message*_Internal Server Error_ *description*_The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 5) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) 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:190) 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.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:498) *root cause* java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver at java.lang.ClassLoader.findLoadedClass(Native Method) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1297) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java:257) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex caliburComponentManager.java:408) at org.apache.cocoon.Cocoon.configure(Cocoon.java:406) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) 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:190) at
RE: Heads-Up: Jax2002 in Frankfurt, Germany
Teaser warning Carsten and I will be at Jax2002 in Frankfurt next week and hope to meet some of you there for some Cocoon related chat and perhaps a few beers in the evening. And when we are back we will have more information on this: http://radio.weblogs.com/0103021/2002/05/10.html#a180 /Teaser warning Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: Matthew Langham [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:05 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Heads-Up: Jax2002 in Frankfurt, Germany Hi, Carsten and I will be at Jax2002 in Frankfurt next week and hope to meet some of you there for some Cocoon related chat and perhaps a few beers in the evening. Hope to see you there. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = - 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]
How cocoon users create xml documents for further processing?
Hi all Just to know how each cocoon users generate xml documents for their requirement. Through cocoon xml documents are generated and stored for futher processing like pdf, html (or) Generated seperately outside may be through xindice or java application which then taken to cocoon for processing Thanks in advance sreenivasan. Attitudes are much more important than aptitudes. Nothing is impossible for a willing heart Sreenivasan N. Sony SARD Ext 232 Email. [EMAIL PROTECTED] Per: [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: Possible to use xsl:template in a query?
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] Or would it be better to just execute the query and then aggregate the result with the XML? I thought it was more elegant to do that through an XSL... ... The stylesheet below is applied to use a parameter (=odjID) with a query. It is actually applied to a dummy XML, which contains no data (this pattern works just the way I want it). The correponding sitemap entry looks like this: map:generate src=Queries/raw-query.xml/ map:transform src=Queries/odj_query.xsl (=The stylesheet below) map:parameter name=var value={1}/ /map:transform map:transform type=sql. Now I'd like to use the same pattern for something else, and this time, the XML (raw-query above) would contain data I'd like to keep. The problem is that wherever in the XSL I insert something like this: xsl:template match=sql:enTete aTagxsl:value-of select=.//aTag /xsl:template I'm getting a NullPointerException error from Cocoon. At one point, the error log said that inserting an xsl:template element was not allowed here, but moving it around in the XSL didn't help. How can I add the information from the XML then? Looks like you have made an error while adding xsl:template, and stylesheet became invalid. Do this: save your XML before it has been processed by your XSLT into file, and use command-line Xalan to process it with the stylesheet. Now edit stylesheet as you want, and test with Xalan. When you have desired result, plug it into Cocoon. Vadim Here's the styleheet, it works perfectly as long as I don't wanna add another xsl:template section... xsl:stylesheet version=1.0 xmlns:sql=http://apache.org/cocoon/SQL/2.0; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=var/ xsl:template match=/ xsl:variable name=odjID xsl:value-of select=$var/ xsl:apply-templates select=sql:enTete/ /xsl:variable page content execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query name=titreOJ_séance select to_char(RE.REU_DATE) as reu_dateReunion, to_char(RE.REU_HDEBUT,'hh24:mi') as reu_heureReunion fromREUNION RE where RE.OBJ_ID = xsl:value-of select=$odjID/ /query /execute-query /content /page /xsl:template /xsl:stylesheet - 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: CachingCIncludeTransformer - no effect?
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, I have built a xsp-page which takes two xml-Files and builds a xsp which will be compiled by another pipeline: map:match pattern=xsp-part1 map:generate src=part1.xsp/ map:serialize type=xml/ /map:match map:match pattern=xsp-part2 map:generate src=part2.xsp/ map:serialize type=xml/ /map:match map:match pattern=xsp-main map:generate src=main.xsp/ map:transform type=cinclude/ map:serialize type=xml/ /map:match map:match pattern=xsp-result map:generate type=serverpages src=cocoon:/xsp-main/ map:serialize type=xml/ /map:match This is not very performant, so that I tried to use the CachingCIncludeTransformer instead of the CIncludeTransformer, but bad performance did not change. My other xsp sample pages run 2-3 times faster than this. One point is, that I have 4 pipelines here and with every new included part I will get a further one. I think that caching of the CInclude result will be very helpful in this case. Is it necessary to switch the CachingCIncludeTranformer to on? I looked into the source code, but I did not find anything that looks like a switch or a helpful attribute. Do you have CachingCIncludeTranformer declared in the sitemap? Does it actually work (turn on debug and look for messages from the MRUStore)? Vadim Can anybody help me? Thank you, best regards - Volker - - 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: jdk1.4 revisited . What CVS branch? How is 2.0.3?
From: Christopher Watson [mailto:[EMAIL PROTECTED]] Can someone recommend.. I'm about to have another go at getting jdk1.4 and cocoon working together. I've tried 2.0.2 release with failures on 1)ESQL, specifically with connection pooling, once I'd patched EsqlConnection ;- 2)the bug in AbstractValidatorAction.java (Thanks Vadim for helping me with this bit! ) I'm a bit nervous about using CVS HEAD since it's alpha-quality? Should I be nervous? I guess... yes. Could someone inform .. What is the status of 2.0.3? It's in bug-fix-only-and-no-new-features state. Is there still a release of this planned? If so, are there still things to be fixed, and what are they? See BugZilla for list of issues. Vadim NAG NAG NAG Christopher -Original Message- From: David Crossley [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 08:22 To: [EMAIL PROTECTED] Subject: Re: clarification of CVS branches Carsten Ziegeler wrote: David Crossley wrote: Would someone please clarify what needs to happen with documentation in regard to the CVS branches. I have been updating some documents and adding some new ones. I have been adding this only to the HEAD of CVS and not into the 2.0.3 branch. I gather that only code bugfixes need to go into the 2.0.3 branch. Is that correct? I am trying to minimise work. --David The 2.0.3 branch is a bugfixes only branch, this means no new or experimental code should go in there. I think if the documentation is valid for 2.0.3 as well it should go there, too. Because if we do a 2.0.3 release all will benefit from this new docs asap. Ah thanks. Yes it is important to get some new docs out with the next release. I had forgotten about that aspect. --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, 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] - 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: Sample or documentation about FormValidatorAction?
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, where can I find a documentation about or a sample using the FormValidator action? Main sitemap, search for form-validator. Source code says that the configuration xml file don't need to be a file. Any source, including http://..., cocoon:/, etc. Vadim Does anybody know more about this? Does using of the FormValidator action have an impact on performance? Thank you, best regards - Volker - - 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: Dynamic sql in xsp
Vadim, And so I plug in: map:generate type=serverpages src=FileWithCIncludedXspRightNow.xsp map:parameter name=GeneratedSQL value=cocoon:/generatedSQL.sql/ /map:generate But all I get on the console is: param is: cocoon:/generatedSQL.sql Yes sure, what you put there is what you get. And no, (answering your next email), this won't be substituted, never. Oops. I guess I misunderstood the messages! I will move my code over the SQL Transformer. Thank you again for all your help and steering me towards the right path. Steve - 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]
Creating PDF error
I have the following pipelines: map:match pattern=xsl/BatchSummary map:act type=get-locale/ map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=xml/ /map:match map:match pattern=pdf/BatchSummary map:act type=get-locale/ map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=fo2pdf/ /map:match The first one displays the XSL:FO used to create a PDF, the second creates (or should create) the actual PDF file. The problem is that it gives me an exception. The strange thing is that if I take the XSL:FO document and use Fop directly it creates the PDF without any errors. The exception is the following (btw I also get a few 'Broken pipe', but I think they are related): FATAL_E (2002-05-10) 09:04.28:912[core.xslt-processor](/cocoon/msim/pdf/BatchSummary) SocketListener-4/TraxErrorHandler: Error in TraxTransformer: javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1226) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:436) at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91) at org.jdom.output.SAXOutputter.endDocument(SAXOutputter.java:359) at org.jdom.output.SAXOutputter.output(SAXOutputter.java:267) at com.spectron.cocoon.SpectronGenerator.generate(SpectronGenerator.java:341) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:184) at org.apache.cocoon.www.msim.sitemap_xmap.matchN100DE(/tmp/Jetty__80___cocoon/ cocoon-files/org/apache/cocoon/www/msim/sitemap_xmap.java:2031) at org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:991) at org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:898) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.www.sitemap_xmap.matchN109AB(/tmp/Jetty__80___cocoon/cocoo n-files/org/apache/cocoon/www/sitemap_xmap.java:11987) at org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi les/org/apache/cocoon/www/sitemap_xmap.java:3889) at org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi les/org/apache/cocoon/www/sitemap_xmap.java:3097) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:595) at org.mortbay.http.HttpContext.handle(HttpContext.java:1357) at org.mortbay.http.HttpContext.handle(HttpContext.java:1309) at org.mortbay.http.HttpServer.service(HttpServer.java:744) at org.mortbay.http.HttpConnection.service(HttpConnection.java:743) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:758) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715) at java.lang.Thread.run(Thread.java:484) - java.lang.ArrayIndexOutOfBoundsException at org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:86) at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:489) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:261) at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172) at org.apache.fop.fo.flow.Table.layout(Table.java:247) at org.apache.fop.fo.flow.Block.layout(Block.java:262) at org.apache.fop.fo.flow.Flow.layout(Flow.java:156) at org.apache.fop.fo.flow.Flow.layout(Flow.java:113) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182) at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler. java:307) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java: 716) at
Re: Try this Re: Can't connect to MySQL with Cocoon 2
Hi, The WEB-INF/cocoon.xconf I use has the datasources jdbc name=HWITCD driver@database-driver@/driver pool-controller min=1 max=10/ !--auto-commitfalse/auto-commit-- dburl@database-url@/dburl user@database-user@/user password@database-password@/password /jdbc /datasources where in the database.properties database-driver=org.gjt.mm.mysql.Driver database-url=jdbc:mysql://localhost:3306/WITCD database-user=martin database-password=martin I'm using the http://www.worldserver.com/mm.mysql - http://mmmysql.sourceforge.net/ JDBC driver. And using Tomcat v4.0-b7 but usually is not a problem. More later, -Roger - Original Message - From: Arda Balci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 12:37 AM Subject: Re: Try this Re: Can't connect to MySQL with Cocoon 2 Hi Roger, I made a clean install and then did not be able to connect to mysql server. These are the related lines. What can be the reason of the error? This is the core.log error: WARN(2002-05-10) 07:24.46:708 [core.datasources.mysql_pool](/cocoon/kolon.html) HttpProcessor[8080][3]/LogKitLogger: Could not return Connection org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available I copied only the necessary line. It says no valid connection, but in the DEBUG line the Classpath contains D:\Program Files\Apache Tomcat 4.0\webapps\cocoon\WEB-INF\lib\mysql.jar;, which i downloaded yesterday. This is the web.xml section as stated in the userdocs: init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver /param-value /init-param This is the cocoon.xconf: datasources jdbc logger=core.datasources.mysql_pool name=mysql_pool pool-controller max=10 min=5/ dburljdbc:mysql://localhost/test/dburl userarda/user passwordarda/password /jdbc /datasources This is the sitemap: map:match pattern=kolon.html map:generate src=mysql/kolon.xml/ map:transform type=sql map:parameter name=use-connection value=mysql_pool/ /map:transform map:transform src=mysql/stylesheets/sql.xsl/ map:serialize/ /map:match Thank you for your attention and your time. Arda __ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pollo anyone?
I used it, but I guess it's out of data now. Does anyone know if pollo still supports all the sitemap tags? Bert At 14:39 10/05/2002 +, you wrote: Hi guys gals, has anyone out there used Pollo to edit .xmap, just wondering because I've just run it and ,it seems like a cool tool. If anyone has had experience with it and has any comments, pros, cons then I'd be interested in hearing them. Ta Jason Lane - 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: Pollo anyone - 2?
well the version I'm using is 0.3.3 and it seems to. I'm going to explore this @ the weekend, I'll get back to you with my findings. On Friday, May 10, 2002, at 02:04 PM, Bert Van Kets wrote: I used it, but I guess it's out of data now. Does anyone know if pollo still supports all the sitemap tags? Bert At 14:39 10/05/2002 +, you wrote: Hi guys gals, has anyone out there used Pollo to edit .xmap, just wondering because I've just run it and ,it seems like a cool tool. If anyone has had experience with it and has any comments, pros, cons then I'd be interested in hearing them. Ta Jason Lane - 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]
Cocoon Internal Server Error
Hi, First of all thanks Volker, I have copied those files to {TOMCAT_HOME}/lib and now I get another error. OS Debian Tomcat4 JDK1.3 The error is: Cocoon 2 - Internal server error *type* fatal *message*_Language Exception_ *description*_ org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 22, column 7: Class org.apache.avalon.framework.component.Component not found in import. Line 23, column 7: Class org.apache.avalon.framework.configuration.Configurable not found in import. Line 24, column 7: Class org.apache.avalon.framework.configuration.Configuration not found in import. Line 25, column 7: Class org.apache.avalon.framework.configuration.ConfigurationException not found in import. Line 26, column 7: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found in import. Line 27, column 7: Class org.apache.avalon.framework.parameters.Parameters not found in import. Line 29, column 7: Class org.apache.cocoon.Constants not found in import. Line 30, column 7: Class org.apache.cocoon.ProcessingException not found in import. Line 31, column 7: Class org.apache.cocoon.ResourceNotFoundException not found in import. Line 32, column 7: Class org.apache.cocoon.ConnectionResetException not found in import. Line 33, column 7: Class org.apache.cocoon.acting.Action not found in import. Line 34, column 7: Class org.apache.cocoon.environment.Environment not found in import. Line 35, column 7: Class org.apache.cocoon.environment.Redirector not found in import. Line 36, column 7: Class org.apache.cocoon.matching.Matcher not found in import. Line 37, column 7: Class org.apache.cocoon.matching.PreparableMatcher not found in import. Line 38, column 7: Class org.apache.cocoon.selection.Selector not found in import. Line 39, column 7: Class org.apache.cocoon.sitemap.AbstractSitemap not found in import. Line 40, column 7: Class org.apache.cocoon.components.pipeline.StreamPipeline not found in import. Line 41, column 7: Class org.apache.cocoon.components.pipeline.EventPipeline not found in import. Line 42, column 7: Class org.apache.cocoon.sitemap.Sitemap not found in import. Line 43, column 7: Class org.apache.cocoon.sitemap.NotifyingGenerator not found in import. Line 44, column 7: Class org.apache.cocoon.sitemap.ContentAggregator not found in import. Line 45, column 7: Class org.apache.cocoon.sitemap.Manager not found in import. Line 46, column 7: Class org.apache.cocoon.sitemap.SitemapRedirector not found in import. Line 47, column 7: Class org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper not found in import. Line 48, column 7: Class org.apache.cocoon.components.language.markup.xsp.XSPResponseHelper not found in import. Line 49, column 7: Class org.apache.cocoon.components.notification.NotifyingBuilder not found in import. Line 50, column 7: Class org.apache.cocoon.components.notification.Notifying not found in import. Line 51, column 7: Class org.apache.cocoon.components.notification.SimpleNotifyingBean not found in import. Line 62, column 34: Superclass org.apache.cocoon.sitemap.AbstractSitemap of class org.apache.cocoon.www.jndi_.localhost.cocoon.sitemap_xmap not found. Line 428, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 429, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 438, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 438, column 32: Undefined variable or class name: Sitemap Line 443, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 444, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 450, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 450, column 32: Undefined variable or class name: Sitemap Line 454, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 455, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 461, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 461, column 32: Undefined variable or class name: Sitemap Line 466, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 467, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 473, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 473, column 32: Undefined variable or class name: Sitemap Line 478, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 479, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 485, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line
WebSphere jdk1.4
Hi, anybody out there running Cocoon on WebSpere can tell me if WebSphere is JDK1.4 ready? My experience is IBM is always running way behind. On a sidenote has anybody running Cocoon using JDK1.4 noticed a significant performance improvement running over JDK1.3 as claimed by Sun@JavaOne? Thanks, Horst - 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 Internal Server Error
--- Sonia Pérez [EMAIL PROTECTED] escribió: Hi, Cocoon 2 - Internal server error Error compiling sitemap_xmap: Line 22, column 7: Hello Look at your sitemap omar ___ Do You Yahoo!? Yahoo! Messenger Comunicación instantánea gratis con tu gente. http://messenger.yahoo.es - 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: Creating PDF error
--- Spectron International, Inc. [EMAIL PROTECTED] escribió: I have the following pipelines: map:match pattern=xsl/BatchSummary map:act type=get-locale/ map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=xml/ /map:match map:match pattern=pdf/BatchSummary map:act type=get-locale/ map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=fo2pdf/ /map:match Try map:match pattern=xsl/BatchSummary map:act type=get-locale map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=xml/ /map:act /map:match map:match pattern=pdf/BatchSummary map:act type=get-locale map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=fo2pdf/ /map:act /map:match Omar ___ Do You Yahoo!? Yahoo! Messenger Comunicación instantánea gratis con tu gente. http://messenger.yahoo.es - 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]
FW: multiple pipelines
What is the reason to have multiple pipelines in the cocoon sitemap ? Can they be collpsed in just one pipeline ? Lev Thentsiper - 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: multiple pipelines
Hi Lev, The two major reasons I know of are: 1) You can specify a different error handler for each pipeline. 2) You can specify a pipeline as internal-only, meaning all matches inside are only used by internal cocoon:// references. So it's sometimes helpful to have two pipelines, one for externally visible matches, and one for internal-only matches. Hope that helps! Harry -Original Message- From: lev [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: FW: multiple pipelines What is the reason to have multiple pipelines in the cocoon sitemap ? Can they be collpsed in just one pipeline ? Lev Thentsiper - 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]
Transformer writing
Hallo, I am trying to get my head around the cocoon internals. In particular I have an old library which takes XML in an InputStream, performs some (significant) processing and produces XML making it available in an OutputStream (a Document is also available). Is it possible to insert this processing into a cocoon pipe? I have had a look at the source code for Transformers, in particular CIncludeTransformer which I see as the closest example. I could write a Transformer to parse the input into the Transformer, on the appropriate endElement, the object could go away and do something, but I can't see how to insert the results back into the pipe. Does any one have a simple example of this, or an easy explanation they would share? Are there any resources for extending cocoon available? - I see on Amazon that there'll be a couple of books published soon. Many thanks --Ben - 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]
Printing Cocoon2 docs
Is there any easy way to print Cocoon2 documents? Prabhakar - 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: Transformer writing
Hi Ben, The simplest approach I can think of would be to build a Transformer that wraps your library. Your Transformer would have to: 1. Convert SAX events to a stream on the input side 2. Pass that stream to your library 3. Get the output stream or Document from your library 4. Convert that stream/Document to SAX events on the output side (which is how you would insert the results back into the pipe). The biggest problem I see, though, is that you're going to take potentially significant performance hits for steps 1 and 4. Another possibility is that if the output of your library is the final output that you want your pipeline to render, you could wrap your library in a serializer (which outputs a stream instead of SAX events), which would allow you to skip step 4 (i.e. you'd only do the stream-SAX conversion once). Harry -Original Message- From: Ben Skelton [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Transformer writing Hallo, I am trying to get my head around the cocoon internals. In particular I have an old library which takes XML in an InputStream, performs some (significant) processing and produces XML making it available in an OutputStream (a Document is also available). Is it possible to insert this processing into a cocoon pipe? I have had a look at the source code for Transformers, in particular CIncludeTransformer which I see as the closest example. I could write a Transformer to parse the input into the Transformer, on the appropriate endElement, the object could go away and do something, but I can't see how to insert the results back into the pipe. Does any one have a simple example of this, or an easy explanation they would share? Are there any resources for extending cocoon available? - I see on Amazon that there'll be a couple of books published soon. Many thanks --Ben - 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: Creating PDF error
Nope, still gives me the same error, but only when I try to create the PDF. It seems to be crashing inside the fo2pdf transformer, because when I use the xml transformer to display the XSL:FO document it works ok. Anyone else has any idea? - Original Message - From: Omar Alos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 12:55 PM Subject: Re: Creating PDF error --- Spectron International, Inc. [EMAIL PROTECTED] escribió: I have the following pipelines: map:match pattern=xsl/BatchSummary map:act type=get-locale/ map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=xml/ /map:match map:match pattern=pdf/BatchSummary map:act type=get-locale/ map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=fo2pdf/ /map:match Try map:match pattern=xsl/BatchSummary map:act type=get-locale map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=xml/ /map:act /map:match map:match pattern=pdf/BatchSummary map:act type=get-locale map:generate type=batch src=/ map:transform src=pdf/BatchSummary.xsl/ map:serialize type=fo2pdf/ /map:act /map:match Omar ___ Do You Yahoo!? Yahoo! Messenger Comunicación instantánea gratis con tu gente. http://messenger.yahoo.es - 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 Internal Server Error
I looked my sitemap_xmap.java file and almost every errors are on imports of classes. Those one which refers to org.apache.cocoon., I found then in {COCOON_HOME}/build/cocoon/classes, but I couldn't find those which refers to org.apache.avalon.framework. I have no idea of what happens or what I have to do. Any help will be welcome The error is: Cocoon 2 - Internal server error *type * fatal *message *_ Language Exception_ *description *_ org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 22, column 7: Class org.apache.avalon.framework.component.Component not found in import. Line 23, column 7: Class org.apache.avalon.framework.configuration.Configurable not found in import. Line 24, column 7: Class org.apache.avalon.framework.configuration.Configuration not found in import. Line 25, column 7: Class org.apache.avalon.framework.configuration.ConfigurationException not found in import. Line 26, column 7: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found in import. Line 27, column 7: Class org.apache.avalon.framework.parameters.Parameters not found in import. Line 29, column 7: Class org.apache.cocoon.Constants not found in import. Line 30, column 7: Class org.apache.cocoon.ProcessingException not found in import. Line 31, column 7: Class org.apache.cocoon.ResourceNotFoundException not found in import. Line 32, column 7: Class org.apache.cocoon.ConnectionResetException not found in import. Line 33, column 7: Class org.apache.cocoon.acting.Action not found in import. Line 34, column 7: Class org.apache.cocoon.environment.Environment not found in import. Line 35, column 7: Class org.apache.cocoon.environment.Redirector not found in import. Line 36, column 7: Class org.apache.cocoon.matching.Matcher not found in import. Line 37, column 7: Class org.apache.cocoon.matching.PreparableMatcher not found in import. Line 38, column 7: Class org.apache.cocoon.selection.Selector not found in import. Line 39, column 7: Class org.apache.cocoon.sitemap.AbstractSitemap not found in import. Line 40, column 7: Class org.apache.cocoon.components.pipeline.StreamPipeline not found in import. Line 41, column 7: Class org.apache.cocoon.components.pipeline.EventPipeline not found in import. Line 42, column 7: Class org.apache.cocoon.sitemap.Sitemap not found in import. Line 43, column 7: Class org.apache.cocoon.sitemap.NotifyingGenerator not found in import. Line 44, column 7: Class org.apache.cocoon.sitemap.ContentAggregator not found in import. Line 45, column 7: Class org.apache.cocoon.sitemap.Manager not found in import. Line 46, column 7: Class org.apache.cocoon.sitemap.SitemapRedirector not found in import. Line 47, column 7: Class org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper not found in import. Line 48, column 7: Class org.apache.cocoon.components.language.markup.xsp.XSPResponseHelper not found in import. Line 49, column 7: Class org.apache.cocoon.components.notification.NotifyingBuilder not found in import. Line 50, column 7: Class org.apache.cocoon.components.notification.Notifying not found in import. Line 51, column 7: Class org.apache.cocoon.components.notification.SimpleNotifyingBean not found in import. Line 62, column 34: Superclass org.apache.cocoon.sitemap.AbstractSitemap of class org.apache.cocoon.www.jndi_.localhost.cocoon.sitemap_xmap not found. Line 428, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 429, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 438, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 438, column 32: Undefined variable or class name: Sitemap Line 443, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 444, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 450, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 450, column 32: Undefined variable or class name: Sitemap Line 454, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 455, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 461, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 461, column 32: Undefined variable or class name: Sitemap Line 466, column 8: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 467, column 14: Class org.apache.avalon.framework.configuration.DefaultConfiguration not found. Line 473, column 32: Class org.apache.cocoon.sitemap.Sitemap not found. Line 473, column 32: Undefined variable or class name: Sitemap Line 478, column 8: Class
Re: OT: Anybody successfully using XIndice and Cocoon?
At 10:30 03/05/2002, Jörn Heid wrote: If there's anybody with good knowledge and some time to answer some of my questions, please let me know. I'm looking for some help regarding XUpdate and application development using Xindice... There seem to be occasional mention of people with XUpdate problems and no one to solve them. Perhaps we should band together with a mailing list just for Xindice and Cocoon Alex Openweb Analysts Ltd, London: Software For Complex Websites http://www.OWAL.co.uk/ Free Consultancy for London Companies thinking of Open Source Software. - 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]
How can I WAP enable the cocoon tutorial?
Hi all, I'm new to cocoon and I've got to develop a Web and WAP site for my university project. Im trying to WAP enable the cocoon tutorial supplied with Cocoon 2.1. Has anyone got any ideas?. Any pointers will be apretiated. Thanks.. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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: caching proposals
What I'd like to see is a flag that I can use to mark a map as cached and the ability to specify a time-out. For example: map:match pattern=test/* map:generate src=xmldb:xindice://localhost:4080/db/test/{1}/ map:serialize type=xml/ map:cache timeout=300 regenerate=async/ /map:match In this case, what'ever is returned by test, no matter what it is or how it was generated would be cached for 300 seconds. The map wouldn't even try to check to see if the source data has changed. Also, after the 300 seconds (5 minutes) has elapsed, the next call to the map will cause a new data set to be created either Synchronously making the caller wait, or Asynchronously thus allowing the caller to continue on his way without having to wait for the data to be re-created. Incoherent babbling on my thoughts of implementing this using xsp and java... I've thought of doing this in XSP using Java, by storing the request URI stored into a hash table with a calculated timeout, and the name of a file. The first request to the map generates a file for the cache and writes out the result of the pipeline to that file. It then stores the calling URI, calculated expiration date/time, and filename to the hashtable. Subsequent calls to the same map check against the hashtable, if the URI is not present it generates it for the first time, if it is present and the time-out has not expired it feeds back to the caller the cached file, if the timeout has expired it starts a new thread to generate a new cache file (when that thread completes it resets the hashtable to point to the new file) in the mean time the cached file is returned to the caller. Anyone interested in such a beast? -- Mike - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xslt question
Hi! I have the follwing xml file page article headerfoo/header leadinbar/leadin /article form text name=/page/article/header size=60/ /form /page and here some xslt snippets: xsl:template match=text input type=text name={@name} size={@size} xsl:attribute name=valuexsl:value-of select=@name//xsl:attribute /inputbr / /xsl:template then the output of the value field is /page/article/header What I want is the content of page/article/header in the value field. When I use this input type=text name={@name} size={@size} xsl:attribute name=valuexsl:value-of select=/page/article/header//xsl:attribute /inputbr / I get exactly what I want. value field contains foo Is it possible to get the content of a subnode in such a way? Have someone another solution for this kind of problem? Thanks, Gerhard - 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: Printing Cocoon2 docs
Hi! I found a little trick, which only works if you have cocoon installed locally and only on the documents which are directly in the xdocs directory: If you want to print the following page: http://localhost:8080/cocoon/documents/introduction.html You can modify it to this URL: http://localhost:8080/cocoon/documents/body-introduction.xml Now you get the page content only without menu. This is a hack and may not work with every browser (at least it works in konqueror ;-) nor with every document, because it interpretes the XML (which is much lik HTML) as HTML. There should be definitely a printer friendly version for all docs available. It would be great, if we could provide HTML and PDF for printing. This way we can show off cocoons great possibilities ;-) On Freitag, 10. Mai 2002 18:33, pkrishnaswami wrote: Is there any easy way to print Cocoon2 documents? Prabhakar - 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] -- Bye, Andreas - 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: xslt question
Gerhard Hipfinger wrote: ... XSLT questions are best asked on the XSL list, for some obvious reasons. http://www.mulberrytech.com/xsl/xsl-list/ text name=/page/article/header size=60/ ... input type=text name={@name} size={@size} xsl:attribute name=valuexsl:value-of select=@name//xsl:attribute ... then the output of the value field is /page/article/header You get what you ask for: the content of the @name attribute. The processor won't interpret it as an XPath and evaluate it again just because it looks like a good idea to you. There is nothing magic about using xsl:attribute. Is it possible to get the content of a subnode in such a way? Not in standard XSLT. Most processors have an extension function called evaluate() or something similar, which takes a string as parameter and evaulates the string as XPath expression: input type=text name={@name} value={xx:evaluate(@name)} size={@size} Consult the manual of your processor for the details. This will make your style sheet non-portable. Therefore better yet: Have someone another solution for this kind of problem? You should use names/ids for crossreferences in you XML instead of XPath expressions: page article header id=id1foo/header leadinbar/leadin /article form text name=id1 size=60/ /form /page Use in XSL: xsl:key name=value match=* use=@id/ ... input type=text name={@name} value={key('value',@name)} size={@size} If you are using XForms, well, you're stuck with evaluate(). J.Pietschmann - 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]
[DOC] Cocoon Related Resources (attached)
Hi! I finally managed to get my text-only listing of cocoon related resources converted to the document XML format. All files are located in the directory src/documentation/xdocs/links. I chose the following structure, all reachable via the menu entry Links: * Main (../index.xml) * Overview (index.xml) Resources: * Tips and Guides (tips_guides.xml * Books (books.xml) * Training (training.xml) Sites: * Cocoon Sites (sites.xml) * Projects (projects.xml) * Live Sites (livesites.xml) * Cocoon Hosting (hosting.xml) Related Links: * XML (xml.xml) * XSL/XSLT (xsl.xml) I've attached the file xdocs.tar.gz which contains a modified book.xml (original file was just checked out) for the main menu and the directory links with all the other files. Simply replace src/documentation/xdocs/book.xml with the one in the attachment and copy the directory links to src/documentation/xdocs/. Now you should see the new menu entry. I moved the menu entries 'Live Sites', 'Cocoon Hosting' and 'XML Links' to the new directory and split the links from the menu entry 'Cocoon Links' into the link categories where the fit now. I'd be happy for your feedback, especially the wording of the menu entries (which I'm not yet very happy with in some cases). -- Bye, Andreas xdocs.tar.gz Description: application/tgz - 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: [DOC] Cocoon Related Resources (attached)
I think these changes should follow the same procedure as patches. Put in bugzilla and attach the files rather than send them to the list. (save the bug, go back to the bug and attach, use [PATCH] in the subject) -Andy Andreas Hochsteger wrote: Hi! I finally managed to get my text-only listing of cocoon related resources converted to the document XML format. All files are located in the directory src/documentation/xdocs/links. I chose the following structure, all reachable via the menu entry Links: * Main (../index.xml) * Overview (index.xml) Resources: * Tips and Guides (tips_guides.xml * Books (books.xml) * Training (training.xml) Sites: * Cocoon Sites (sites.xml) * Projects (projects.xml) * Live Sites (livesites.xml) * Cocoon Hosting (hosting.xml) Related Links: * XML (xml.xml) * XSL/XSLT (xsl.xml) I've attached the file xdocs.tar.gz which contains a modified book.xml (original file was just checked out) for the main menu and the directory links with all the other files. Simply replace src/documentation/xdocs/book.xml with the one in the attachment and copy the directory links to src/documentation/xdocs/. Now you should see the new menu entry. I moved the menu entries 'Live Sites', 'Cocoon Hosting' and 'XML Links' to the new directory and split the links from the menu entry 'Cocoon Links' into the link categories where the fit now. I'd be happy for your feedback, especially the wording of the menu entries (which I'm not yet very happy with in some cases). - 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: [DOC] Cocoon Related Resources (attached)
Hi! On Freitag, 10. Mai 2002 22:23, Andrew C. Oliver wrote: I think these changes should follow the same procedure as patches. Put in bugzilla and attach the files rather than send them to the list. (save the bug, go back to the bug and attach, use [PATCH] in the subject) Sorry for doing it wrong, but I only did what has been suggested to me some days ago. Anyway I created a bug report in bugzilla (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8989) as you described. I hope that I've done everything right, since it was the first time I used bugzilla (shame on me ;-). -Andy Andreas Hochsteger wrote: Hi! I finally managed to get my text-only listing of cocoon related resources converted to the document XML format. All files are located in the directory src/documentation/xdocs/links. I chose the following structure, all reachable via the menu entry Links: * Main (../index.xml) * Overview (index.xml) Resources: * Tips and Guides (tips_guides.xml * Books (books.xml) * Training (training.xml) Sites: * Cocoon Sites (sites.xml) * Projects (projects.xml) * Live Sites (livesites.xml) * Cocoon Hosting (hosting.xml) Related Links: * XML (xml.xml) * XSL/XSLT (xsl.xml) I've attached the file xdocs.tar.gz which contains a modified book.xml (original file was just checked out) for the main menu and the directory links with all the other files. Simply replace src/documentation/xdocs/book.xml with the one in the attachment and copy the directory links to src/documentation/xdocs/. Now you should see the new menu entry. I moved the menu entries 'Live Sites', 'Cocoon Hosting' and 'XML Links' to the new directory and split the links from the menu entry 'Cocoon Links' into the link categories where the fit now. I'd be happy for your feedback, especially the wording of the menu entries (which I'm not yet very happy with in some cases). - 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] -- Bye, Andreas - 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: Printing Cocoon2 docs
If you want to print the following page: http://localhost:8080/cocoon/documents/introduction.html You can modify it to this URL: http://localhost:8080/cocoon/documents/body-introduction.xml Isn't there a special build target that creates printable docs version ? ouzo -- -- [EMAIL PROTECTED] Leszek GawronICQ# 19681190 Software development SE consulting Mobile +48 (608) 23 74 55 - 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: WebSphere jdk1.4
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Hi, anybody out there running Cocoon on WebSpere can tell me if WebSphere is JDK1.4 ready? My experience is IBM is always running way behind. On a sidenote has anybody running Cocoon using JDK1.4 noticed a significant performance improvement running over JDK1.3 as claimed by Sun@JavaOne? IIRC, the major performance improvements in JDK1.4 is java.nio and swing. Cocoon is not related to either of them; you should ask Tomcat guys when Catalina will support java.nio. Vadim Thanks, Horst - 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: Transformer writing
From: Ben Skelton [mailto:[EMAIL PROTECTED]] Hallo, I am trying to get my head around the cocoon internals. In particular I have an old library which takes XML in an InputStream, performs some (significant) processing and produces XML making it available in an OutputStream (a Document is also available). Is it possible to insert this processing into a cocoon pipe? I have had a look at the source code for Transformers, in particular CIncludeTransformer which I see as the closest example. I could write a Transformer to parse the input into the Transformer, on the appropriate endElement, the object could go away and do something, but I can't see how to insert the results back into the pipe. See DOMStreamer (.xml.dom package). Does any one have a simple example of this, or an easy explanation they would share? XMLDBTransformer in the scratchpad does something similar. Vadim Are there any resources for extending cocoon available? - I see on Amazon that there'll be a couple of books published soon. Many thanks --Ben - 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: caching proposals: SQLTransformer and Request
From: Stephen Ng [mailto:[EMAIL PROTECTED]] A couple of things I'd like to do with Cocoon caching; let me know if this is crazy. 1. Add caching to the request generator. Many of my pipelines are transformations based upon the request, and since requestGenerator currently does not support caching, it means those transformations are always re-done (and often there is some sql at the end of the pipe which is really slow). I'd like to hash (or MD5?) the request string and use that as the cache key so that if I get the same one the pipeline knows it can skip over everything. 2. Add caching to the SqlTransformer. I know this sounds weird, but hear me out. Our database is modified infrequently, so usually returns the same data. There is a datestamp in a special table which indicates when the last time the database was updated. The SQL Transformer would remember the time of the last query. I would have a new parameter to the sql transformer to indicate when the data is dirty. map:transform type=sql map:parameter name=last-update-time value=cocoon:/lastUpdateTime.xml/ /map:transform LastUpdateTime looks like: Date20021005144321/Date (Or whatever the xml date format is, I forget). SQLGenerator would resolve cocoon:/lastUpdateTime.xml. I would then have a pipeline for lastUpdateTime.xml which would build it by querying my special table (but if you wanted, you could use some other mechanism to build it). SQLGenerator would compare the two dates and re-run the sql if it needed to. How does this sound? May be you should consider different design, which is suited better for the problem? XSP pages with ESQL provide easy ability to program any caching behavior. Vadim Steve - 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: Printing Cocoon2 docs
From: Leszek Gawron [mailto:[EMAIL PROTECTED]] If you want to print the following page: http://localhost:8080/cocoon/documents/introduction.html You can modify it to this URL: http://localhost:8080/cocoon/documents/body-introduction.xml Isn't there a special build target that creates printable docs version ? ouzo build printer-docs Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: caching proposals: SQLTransformer and Request
May be you should consider different design, which is suited better for the problem? XSP pages with ESQL provide easy ability to program any caching behavior. What?!? You just convinced me to go from XSP/ESQL to SQLTransformer! The problem with ESQL is the Java recompilation, which is excessive when only the sql part is changing. Anyway, another way to solve my problem would be to simulate RequestGenerator using an XSP (have an xsp create the same format output as RequestGenerator). But this is really no different at all from rewriting RequestGenerator so it supports caching--the caching issues are exactly the same. So I think this means I should put caching into RequestGenerator. (As no-one has either protested or applauded, maybe not that many people are using RequestGenerator?) --Steve - 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: ExcaliburComponentManager.java still missing from Latest Snapshotbreaks /cocoon/ and throwing ERRORS
Jump in all you want. More suggestions the better. I'll check into it. -Marc Torsten Curdt wrote: Sorry, for jumping in here... snip/ And after just getting a clean snapshot and rebuilding the cocoon.war it still fails. with the Avalon Framework specifically referencing ExcaliburComponentManager.java. .. Here is the error.log. ERROR (2002-05-10) 01:22.48:604 [core.manager](Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not get class org.apache.cocoon.components.store.impl.FilesystemStore for role org.apache.excalibur.store.Store on configuration element persistent-store java.lang.ClassNotFoundException: org.apache.cocoon.components.store.impl.FilesystemStore AFAICS it is referencing the role org.apache.excalibur.store.Store ..so better check you store setup in cocoon.xconf. As Vadim pointed out: this should have nothing to do with the ECM except seeing the ECM complaining... -- 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: caching proposals: SQLTransformer and Request
RequestGenerator *should* cache. Give me a good reason why it shouldn't have caching! --Steve -Original Message- From: Stephen Ng [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 7:23 PM To: 'Vadim Gritsenko'; [EMAIL PROTECTED] Subject: RE: caching proposals: SQLTransformer and Request May be you should consider different design, which is suited better for the problem? XSP pages with ESQL provide easy ability to program any caching behavior. What?!? You just convinced me to go from XSP/ESQL to SQLTransformer! The problem with ESQL is the Java recompilation, which is excessive when only the sql part is changing. Anyway, another way to solve my problem would be to simulate RequestGenerator using an XSP (have an xsp create the same format output as RequestGenerator). But this is really no different at all from rewriting RequestGenerator so it supports caching--the caching issues are exactly the same. So I think this means I should put caching into RequestGenerator. (As no-one has either protested or applauded, maybe not that many people are using RequestGenerator?) --Steve - 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: ClassCastExcep'n on ServletExec 3.1 / Solaris -- Issue resolved!
In case anyone out there is interested, I got C2 running under ServletExec 3.1, with iPlanet 4 as the http server, on Solaris 5.8 1.) Rebuilt Cocoon with xerces-1.4.3.jar since exising web apps require that version. (This step may not be required for other people.) 2.) Added xerces-1.4.3.jar, xml_apis.jar and xalan-2.3.1.jar to the classpath of ServletExec 3.) in web.xml, set init-classloader=true 4.) Since there were no defaults, set the following properties: -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl Chris Wolf wrote: I searched the faq's and surfed before posting this and was surprised to find that this has not already been addressed. After successfully using C2 on Tomcat, I attempted to migrate to a hosting environment running ServletExec 3.1 on Solaris 5.8 and I get the following error when the servlet engine attempts to start the Cocoon servlet: Has anyone deployed on ServletExec3.1 on Solaris? BTW, I changed out the old xerces jar for version 1.4.3 -- both with and without the xml_apis.jar present... Thanks, Chris Error. The server encountered an unexpected condition which prevented it from fulfilling the request. java.lang.Error: Unable to setup SAX parserjava.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:92) at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:64) at org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:582) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165) at com.newatlanta.servletexec.ServletExec.CallServletInit(ServletExec.java) at com.newatlanta.servletexec.ApplServletContext.CreateServlet(ApplServletContext.java) at com.newatlanta.servletexec.ApplServletContext.loadConfiguredServlet(ApplServletContext.java) at com.newatlanta.servletexec.ApplicationInfo.LoadExternalServlets(ApplicationInfo.java) at - 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: xslt question
Have you looked at XMLForm? http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/webapp/mount/xm lform/ - Original Message - From: Gerhard Hipfinger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 10, 2002 2:14 PM Subject: xslt question Hi! I have the follwing xml file page article headerfoo/header leadinbar/leadin /article form text name=/page/article/header size=60/ /form /page and here some xslt snippets: xsl:template match=text input type=text name={@name} size={@size} xsl:attribute name=valuexsl:value-of select=@name//xsl:attribute /inputbr / /xsl:template then the output of the value field is /page/article/header What I want is the content of page/article/header in the value field. When I use this input type=text name={@name} size={@size} xsl:attribute name=valuexsl:value-of select=/page/article/header//xsl:attribute /inputbr / I get exactly what I want. value field contains foo Is it possible to get the content of a subnode in such a way? Have someone another solution for this kind of problem? Thanks, Gerhard - 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]