tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gerdau" <...@technosis.de>
Subject Apache 2.0.45/jk2/TC4.1 mostly working, but...
Date Sun, 27 Apr 2003 14:10:46 GMT
Hi !

Thanks to the URL posted on friday by Mark Eggers
(http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html)
I now have Apache 2.0.45 and TC 4.1.24 working via mod_jk2 on
W2K with J2SDK 1.4.1_02.

However there remain a few issues I have not yet solved:

1) Upon start Apache2 write one error msg into error.log
   [Sat Apr 26 17:27:31 2003] [error] mod_jk child init 1 0
   I'm don't know wether this is something to worry about since
   there had not been a problem with accessing any JSPs but an
   error in the logfile is still an error.

   Any hints ?
   (I have appended the complete error.log as after Apache2 start
   at the end of this mail)

2) My WebApp uses Log4J for errorlogging. The appropriate JAR is
   in ${CATALINA_HOME}/shared/lib. That work fine with Tomcat
   standalone. However when running inprocess with Apache2 my
   WebApp does not deploy but gets this Exception:
   java.lang.NoClassDefFoundError: org/apache/log4j/Layout 

   I then copied log4j-1.2.8.jar into ${CATALINA_HOME}/common/lib
   but to no avail.
   For the time being I "solved" the problem by explicitly giving
   java.class.path=${CATALINA_HOME}/shared/lib/log4j-1.2.8.jar as
   option to Apache's JVM.

   Why is that required, i.e. why is this change to the standalone
   version required ?

3) Last and possibly the most annoying problem is that Tomcat
   inprocess with Apache logs out tons of DEBUG-msgs that I don't
   see when running standalone. Also my own log4j configuration
   file appears to be ignored to the result that all logging that
   should have been switched off is logged to the file.

   How do I fine tune logging when running inprocess, i.e. where
   do I find documentation ?

   I suppose this problem is related to 2) above.
   Any hints ?

Thank you, best,
Michael

PS:
error.log after starting Apache 2.0.45 w/o log4j-1.2.8.jar
==========================================================
[Sun Apr 27 15:51:09 2003] [notice] Parent: Created child process 3004
[Sun Apr 27 15:51:09 2003] [notice] Child 3004: Child process is running
[Sun Apr 27 15:51:09 2003] [notice] jk2_init() Found child 3004 in scoreboard slot 0
[Sun Apr 27 15:51:09 2003] [notice] vm.init(): Jni lib:
C:\Programme\Java\j2re1.4.1_02\bin\client\jvm.dll
[Sun Apr 27 15:51:09 2003] [notice] vm.open2() done
[Sun Apr 27 15:51:09 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter
[Sun Apr 27 15:51:09 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sun Apr 27 15:51:09 2003] [notice] jni.init() setting stdout=D:/Apache2/logs/stdout.log...
[Sun Apr 27 15:51:09 2003] [notice] jni.init() setting stderr=D:/Apache2/logs/stderr.log...
[Sun Apr 27 15:51:10 2003] [notice] jni.init() ARG start
[Sun Apr 27 15:51:10 2003] [notice] jni.init() calling main()...
[Sun Apr 27 15:51:10 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter
[Sun Apr 27 15:51:10 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sun Apr 27 15:51:10 2003] [notice] jni.init() disabling the non init hook worker
[Sun Apr 27 15:51:10 2003] [notice] workerEnv.init() ok D:/Apache2/conf/workers2.properties
[Sun Apr 27 15:51:10 2003] [error] mod_jk child init 1 0
[Sun Apr 27 15:51:10 2003] [notice] Child 3004: Acquired the start mutex.
[Sun Apr 27 15:51:10 2003] [notice] Child 3004: Starting 250 worker threads.

error.log after starting Apache 2.0.45 with log4j-1.2.8.jar
===========================================================
[Sun Apr 27 16:03:20 2003] [notice] Parent: Created child process 3072
[Sun Apr 27 16:03:20 2003] [notice] Child 3072: Child process is running
[Sun Apr 27 16:03:20 2003] [notice] jk2_init() Found child 3072 in scoreboard slot 0
[Sun Apr 27 16:03:20 2003] [notice] vm.init(): Jni lib:
C:\Programme\Java\j2re1.4.1_02\bin\client\jvm.dll
[Sun Apr 27 16:03:20 2003] [notice] vm.open2() done
[Sun Apr 27 16:03:20 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter
[Sun Apr 27 16:03:21 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sun Apr 27 16:03:21 2003] [notice] jni.init() setting stdout=D:/Apache2/logs/stdout.log...
[Sun Apr 27 16:03:21 2003] [notice] jni.init() setting stderr=D:/Apache2/logs/stderr.log...
[Sun Apr 27 16:03:21 2003] [notice] jni.init() ARG start
[Sun Apr 27 16:03:21 2003] [notice] jni.init() calling main()...
[Sun Apr 27 16:03:21 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter
[Sun Apr 27 16:03:21 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sun Apr 27 16:03:21 2003] [notice] jni.init() disabling the non init hook worker
[Sun Apr 27 16:03:21 2003] [notice] workerEnv.init() ok D:/Apache2/conf/workers2.properties
[Sun Apr 27 16:03:21 2003] [error] mod_jk child init 1 0
[Sun Apr 27 16:03:21 2003] [notice] Child 3072: Acquired the start mutex.
[Sun Apr 27 16:03:21 2003] [notice] Child 3072: Starting 250 worker threads.
0 [Thread-1] INFO modeler.Registry  - Loading registry information
20 [Thread-1] INFO modeler.Registry  - Creating new Registry instance
982 [Thread-1] INFO modeler.Registry  - Creating MBeanServer
2684 [Thread-1] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1 on port 8080

--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Ever notice how fast Windows runs?  Neither did I ...
 GPG/PGP-keys available on request or at public keyserver



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message