> 0. Do you use the *same* JRE to compile and run Cocoon?
Yes.
> 1. Check that user you use to launch tomcat can read jars:
> chmod 666 $TOMCAT_HOME/webapps/cocoon/WEB-INF/*
>
> Or even: chmod -R 666 $TOMCAT_HOME/webapps/cocoon
All files/folders are owned by tomcat.dev. I left the permissions alone
(for now).
> 2. Check that your java can read these jars:
> java -cp $TOMCAT_HOME/webapps/cocoon/WEB-INF/cocoon-2.0.3.jar:...
I think it should be: ".../WEB-INF/lib/coc...."
> org.apache.cocoon.Cocoon
>
> If all is ok, should say:
>
> Exception in thread "main" java.lang.NoSuchMethodError: main
>
> Repeat same for org.hsqldb.jdbcDriver.
I chnged to the $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib folder
and this is what I got:
===========================================================
[root@xxxxx lib]$ java -cp hsqldb-1.61.jar org.hsqldb.jdbcDriver
Exception in thread "main" java.lang.NoSuchMethodError: main
[this one worked as expected...]
[while the next one did not...]
[root@xxxxx lib]$ java -cp cocoon-2.0.3.jar org.apache.cocoon.Cocoon
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/AbstractLoggable
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:496)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$300(URLClassLoader.java:69)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:544)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:203)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
I did the build from the source version of the 2.0.3 distribution and I use
JDK 1.3. Should I have gotten the bin for the JDK 1.2/1.3?
mark
> Vadim
>
---------------------------------------------------------------------
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]>