Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 54142 invoked from network); 29 Apr 2003 12:19:25 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Apr 2003 12:19:25 -0000 Received: (qmail 19330 invoked by uid 97); 29 Apr 2003 12:21:24 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 19323 invoked from network); 29 Apr 2003 12:21:24 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Apr 2003 12:21:24 -0000 Received: (qmail 52547 invoked by uid 500); 29 Apr 2003 12:19:05 -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 52534 invoked from network); 29 Apr 2003 12:19:04 -0000 Received: from unknown (HELO scom03.giessen.ordat) (195.226.66.99) by daedalus.apache.org with SMTP; 29 Apr 2003 12:19:04 -0000 Received: by scom03.giessen.ordat with Internet Mail Service (5.5.2653.19) id ; Tue, 29 Apr 2003 11:34:27 +0200 Message-ID: From: "Keim, Markus" To: 'Mark Eggers' Cc: Tomcat Users List Subject: RE: mod_jk2 jni in-process Date: Tue, 29 Apr 2003 11:34:26 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Mark (and Hello @all), and thank you for your quick response. I've adopted your propertie files, but again with no success. When starting up Apache, the "stderr.log" complains about missing class deffs (java.lang.NoClassDefFoundError). It seems that i've to put each and every jar file that ships with Tomcat in the "OPT=-Djava.class.path" property of the "workers2.properties". I've allready put about 20 jars in, and there's no end in view. Now it wants "javax/servlet/ServletException", i can't believe that i'm on the right path... (environment variables TOMCAT_HOME and CATALINA_HOME are set). Any ideas? (property files attached) Many thanks in advance & Ciao, Markus ============= workers2.properties ======================= [logger] level=ERROR [config:] file=c:/Programme/Apache Group/Apache2/conf/workers2.properties debug=3 debugEnv=3 [uriMap:] info=Maps the requests. Options: debug debug=3 # Alternate file logger [logger.file:0] level=INFO file=c:/Programme/Apache Group/Apache2/logs/jk2.log # Shared memory handling. Needs to be set. [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=E:/java/Tomcat-4.1.24/work/jk2.shm size=1000000 debug=3 disabled=0 [workerEnv:] info=Global server options timing=1 debug=3 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 [lb:lb] info=Default load balancer. debug=0 #[channel.socket:localhost:8009] #info=Ajp13 forwarding over socket #debug=3 #tomcatId=localhost:8009 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=E:/java/Tomcat-4.1.24/bin/tomcat-jni.jar;E:/java/Tomca t-4.1.24/server/lib/catalina.jar;E:/java/Tomcat-4.1.24/ser ver/lib/commons-digester.jar;E:/java/Tomcat-4.1.24/server/lib/commons-loggin g.jar;E:/java/Tomcat-4.1.24/server/lib/tomcat-util.jar;E:/ java/Tomcat-4.1.24/common/lib/commons-collections.jar;E:/java/Tomcat-4.1.24/ common/lib/naming-common.jar;E:/java/Tomcat-4.1.24/server/ lib/commons-beanutils.jar;E:/java/Tomcat-4.1.24/server/lib/mx4j-jmx.jar;E:/j ava/Tomcat-4.1.24/server/lib/commons-modeler.jar;E:/java/T omcat-4.1.24/server/lib/tomcat-coyote.jar OPT=-Dtomcat.home=E:/java/Tomcat-4.1.24 OPT=-Dcatalina.home=E:/java/Tomcat-4.1.24 OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=0 [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 disabled=0 stdout=c:/Programme/Apache Group/Apache2/logs/stdout.log stderr=c:/Programme/Apache Group/Apache2/logs/stderr.log [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 disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/examples/*] info=Map the whole webapp ====================================================================== ================ jk2.properties ====================================== # list of needed handlers. handler.list=request,container,channelJni,apr # The default port is 8009 but you can use another one #channelSocket.address=127.0.0.1 #channelSocket.port=8009 # Shared memory handling. Needs to be set. shm.file=E:/java/Tomcat 4.1.24/work/jk2.shm # Dynamic library needs to be defined only if Tomcat is used # out of process #jtc=/home1/jakarta/jakarta-tomcat-connectors #apr.NativeSo=${jtc}/jk/build/jk2/apache2/jkjni.so # Or you can use the mod_jk2 directly #apr.jniModeSo=c:/Programme/Apache Group/Apache2/modules/mod_jk2.so # In order to enable jni use any channelJni directive channelJni.disabled = 0 # 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 ====================================================================== > -----Original Message----- > From: Mark Eggers [mailto:its_toasted@yahoo.com] > Sent: Monday, April 28, 2003 5:00 PM > To: Tomcat Users List > Cc: Keim, Markus > Subject: RE: mod_jk2 jni in-process > > > Markus, > > Here are my minimal properties files. I've left out > lots of URI mappings (cocoon, jetspeed, jfreeservlet, > a couple of sandboxes, etc.), but other than that the > file is the same. > > I hope these help someone. > > /mde/ > just my two cents . . . . > > httpd.conf (fragment) > # > # Adding mod_jk2 > # > LoadModule jk2_module modules/mod_jk2.dll > > # > # Need alias since Apache still serves the static info > # > Alias /examples/ "C:/Tomcat/webapps/examples/" > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org