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 http://localhost/cocoon202/ ------------- 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}" /> <classpath> <fileset dir="${cocoonlib}"> <include name="*.jar"/> </fileset> <fileset dir="${tomcatlib}"> <include name="*.jar"/> </fileset> </classpath> </java> </target> -------------- 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" logger="core.xml-parser"> etc.... and then I get: ERROR 10289 [ ] (): Could not load parser, Cocoon object not created. java.lang.ClassNotFoundException: org.apache.avalon.excalibur.xml.JaxpParser at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:253) at org.apache.cocoon.Main.main(Main.java:395) 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(Cocoon.java:256) at org.apache.cocoon.Main.main(Main.java:395) 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? [EMAIL PROTECTED] --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>