cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Brogden" <>
Subject Trying to run Command line Cocoon 2.0.2
Date Sat, 10 Aug 2002 17:01:31 GMT
 I am attempting to execute the command line version of
 Cocoon with an ANT task.
 Configuration: JDK 1.3.1, Tomcat 4.0.1, Cocoon-2.0.2
 ANT 1.4.1 - op sys: Windows XP

 Tomcat happily serves pages from
 The ANT task and related definitions:
<property name="tomcatlib" value="c:\Tomcat401\common\lib\" />
<property name="cocoonlib"
value="c:\Tomcat401\webapps\cocoon202\WEB-INF\lib\" />

<property name="sourcepath" value="c:\Tomcat401\webapps\cocoon202" />
<property name="configfile" value="WEB-INF\cocoon.xconf" />
<property name="destpath" value="c:\JavaProj2002\dest" />
<property name="temppath" value="c:\temp" />
<property name="logfile" value="static.log" />
<property name="urilist" value="c:\JavaProj2002\urllist.txt" />
<property name="cocoon"
value="c:\Tomcat401\webapps\cocoon202\WEB-INF\lib\cocoon-2.0.2.jar" />

<target name="cmdline" >
<java jar="${cocoon}" fork="yes">
 <arg value="-c${sourcepath}" />
 <arg value="-C${configfile}" />
 <arg value="-d${destpath}" />
 <arg value="-w${temppath}" />
 <arg value="-l${logfile}" />
 <arg value="-uINFO" />
 <arg value="-f${urilist}" /> 
   <fileset dir="${cocoonlib}">
     <include name="*.jar"/>
   <fileset dir="${tomcatlib}">
     <include name="*.jar"/>

-------------- When trying to run this, it gets as
far as starting to configure components from
the cocoon.xconf where the first entry is
 <xml-parser class="org.apache.avalon.excalibur.xml.JaxpParser"
and then I get:

 ERROR   10289   [        ] (): Could not load parser, Cocoon object not
 	at Method)
 	at java.lang.ClassLoader.loadClass(
 	at sun.misc.Launcher$AppClassLoader.loadClass(
 	at java.lang.ClassLoader.loadClass(
 	at org.apache.cocoon.Cocoon.initialize(
 	at org.apache.cocoon.Main.main(
 FATAL_E 10289   [        ] (): Exception caught 
 org.apache.avalon.framework.configuration.ConfigurationException: Could
not load parser org.apache.avalon.excalibur.xml.JaxpParser
 	at org.apache.cocoon.Cocoon.initialize(
 	at org.apache.cocoon.Main.main(
 Java Result: 1
The class org.apache.avalon.excalibur.xml.JaxpParser
resides in avalon-excalibur-scratchpad-20020212.jar
which is in the ${cocoonlib} directory.

Why can't it find the class?
What should I try next?

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message