Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 77930 invoked by uid 500); 27 Jul 2002 04:26:19 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 77909 invoked from network); 27 Jul 2002 04:26:18 -0000 From: "Vadim Gritsenko" To: , Subject: RE: 2.0.2 -> 2.0.3: ClassNotFoundException on startup Date: Sat, 27 Jul 2002 00:24:55 -0400 Message-ID: <024801c23525$8f97fd80$0a00a8c0@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Mark S. Kent [mailto:mark.kent@vistyx.com] > > > 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 That's ok: it is in another jar file. But at least, this confirms that your java can read jar files. > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:496) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:117) My last guess: Do you want to try running Tomcat *without* security manager? > 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? No, that's sounds perfectly fine. Vadim > mark > > > Vadim --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: