Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 60984 invoked from network); 18 Jul 2003 18:45:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jul 2003 18:45:20 -0000 Received: (qmail 4914 invoked by uid 97); 18 Jul 2003 18:47:55 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 4907 invoked from network); 18 Jul 2003 18:47:55 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Jul 2003 18:47:55 -0000 Received: (qmail 59606 invoked by uid 500); 18 Jul 2003 18:45:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 59590 invoked from network); 18 Jul 2003 18:45:04 -0000 Received: from unknown (HELO JTURNER) (207.86.123.243) by daedalus.apache.org with SMTP; 18 Jul 2003 18:45:04 -0000 Received: from JTURNER ([127.0.0.1]) by JTURNER with Microsoft SMTPSVC(5.0.2195.5329); Fri, 18 Jul 2003 14:45:07 -0400 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat4-1, Apache2, jk2 setup problem - help! References: <022801c34d5a$930e5010$2402a8c0@development1> Message-ID: Content-Type: text/plain; charset=iso-8859-15; format=flowed From: John Turner Date: Fri, 18 Jul 2003 14:45:06 -0400 In-Reply-To: <022801c34d5a$930e5010$2402a8c0@development1> User-Agent: Opera7.03/Win32 M2 build 2670 X-OriginalArrivalTime: 18 Jul 2003 18:45:07.0459 (UTC) FILETIME=[B58A8530:01C34D5C] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Wait. ClassNotFoundException != NoClassDefFoundError They're completely different. NoClassDefFoundError typically means that there are multiple copies of a JAR file somewhere, or multiple copies of a class file, and the one Tomcat expects is not the one it is finding. Was this a clean install? Have you changed ANYTHING from the default? Moved anything, moved any JAR files, tried to install earlier versions or move an installation from one directory to another? John On Fri, 18 Jul 2003 15:29:45 -0300, Atreya Basu wrote: > Tristan, > > I had a similar problem with ClassNotFoundException. > > What I had to do was find all the jar files and uncompress them into the > lib directory. That was about 10MB worth of Jar files and it took me > about 30 mins to do, but that was the only way to get it running. > > _____________________________________ > Atreya Basu > Developer, > Greenfield Research Inc. > e-mail: atreya (at) greenfieldresearch (dot) ca > > -----Original Message----- > From: Tricky [mailto:tricky@mac.com] Sent: July 18, 2003 3:25 PM > To: 'Tomcat Users List' > Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! > > Still no joy! :( > > The line 'handler.list= apr,request,channelJni' was definitely in my > jk2.properties, but I must have deleted the line return when I emailed > it by accident. > > When I start apache, http://localhost/examples gives me the same > Internal Server Error page. I've also noticed the following output in my > \Apache2\logs\error.log file: > > [Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008 > [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running > [Fri Jul 18 19:18:29 2003] [error] Can't find class > org/apache/jk/apr/TomcatStarter > java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter > [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed > for worker.jni:onStartup > [Fri Jul 18 19:18:29 2003] [error] Can't find class > org/apache/jk/apr/TomcatStarter > java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter > [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed > for worker.jni:onShutdown > [Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0 > [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start > mutex. > [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker > threads. > > Thanks for the help, much appreciated, > > Tristan > > -----Original Message----- > From: Atreya Basu [mailto:atreya@greenfieldresearch.ca] Sent: 18 July > 2003 18:26 > To: 'Tomcat Users List' > Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! > > Alright, > > Those all look good. But in your jk2.properties file you should put in: > > handler.list= apr,request,channelJni > > > Next, if you installed the Apache there should be an applet on the > taskbar, next to the time. You shouldn't have to start Tomcat > separately. Simply click on the applet and choose to start Apache. > Wait about a minute for Tomcat to start. Then hit up: > http://localhost/examples > > That should show you a directory. > > > _____________________________________ > Atreya Basu > Developer, > Greenfield Research Inc. > e-mail: atreya (at) greenfieldresearch (dot) ca > > -----Original Message----- > From: Tricky [mailto:tricky@mac.com] Sent: July 18, 2003 2:07 PM > To: 'Tomcat Users List' > Cc: atreya@greenfieldresearch.ca > Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! > > Atreya, > > I've set all the environment variables, and have made the APACHE_HOME > addition at your recommendation. My .properties files are appended > below. > > The directories are as follows > > Apache 2 c:\Apache2 > Tomact 4.1 c:\tomcat > Java 1.4.2 c:\java > > Thanks for your help! > > Tristan > (jk2.properties and workers2.properties files attached below) > > --- start jk2.properties --- > > #Shared memory directive > shm.file=c:/Apache2/logs/jk2.shm > size=10485760 > > # Set the desired handler list handler.list=apr,request,channelJni > > # added to resolve 1st issue in original email > apr.NativeSo=c:/Apache2/modules/jkjni.dll > # If set to inprocess the mod_jk2 will Register natives itself # This > will enable the starting of the Tomcat from mod_jk2 > apr.jniModeSo=inprocess > > --- end jk2.properties --- > > --- start workers2.properties --- > > [shm] > file=c:/Apache2/logs/jk2.shm > size=10485760 > > # Define the comunication channel [channel.jni:jni] > info=The jni channel, used if tomcat is started inprocess > > [config:] > file=c:/Apache2/conf/workers2.properties > debug=0 > debugEnv=0 > > # Define the parameters for the Java Virtual Machine > [vm:] > info=Parameters used to load a JVM in the server process > OPT=-Djava.class.path=c:/tomcat/lib > OPT=-Dtomcat.home=c:/tomcat > OPT=-Dcatalina.home=c:/tomcat > OPT=-Xmx128M > > # JNI worker startup handler > [worker.jni:onStartup] > info=Command to be executed by the VM on startup. This one will start > tomcat. class=org/apache/jk/apr/TomcatStarter > ARG=start > stdout=c:/Apache2/logs/stdout.log stderr=c:/Apache2/logs/stderr.log > > # JNI worker shutdown handler > [worker.jni:onShutdown] > info=Command to be executed by the VM on shutdown. This one will stop > tomcat. class=org/apache/jk/apr/TomcatStarter > ARG=stop > > # Uri mapping > [uri:/examples] > info=Example webapp in the default context. > context=/examples > > [uri:/examples/*] > info=Map the whole webapp > > [status:] > info=Status worker, displays runtime information > channel=channel.socket:localhost:8009 > > [uri:/status/*] > worker=status:localhost:8009 > group=status: > > --- end workers2.properties --- > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org