Date: Thu, 22 Apr 2004 13:45:11 +0700 From: Muhammad Reza <reza@it.mra.co.id> To: freebsd-java@freebsd.org Subject: mod_jk2..tomcat..plese help Message-ID: <408769F7.4010603@it.mra.co.id>
next in thread | raw e-mail | index | archive | help
Dear Lists, I'm interesting to integrating Apache Server and Tomcat so my development team can host their jsp in my FreeBSD-4.9Stable machine. But I have some difficulties, here goes the detail. My httpd server is apache-2.0.47 (installed from FreeBSD-4.9Stable Port) with jakarta-tomcat-4.1.29.tar.gz and mod_jk2-apache2-2.0.4 binary for FreeBSD from http://jakarta.apache.org. and diablo-jdk1.31 My configuration from Web Server side....... #cat httpd.conf --snip-- LoadModule jk2_module libexec/apache2/mod_jk2.so Include /usr/local/etc/apache2/mod_jk.conf ---snap-- #cat /usr/local/etc/apache2/mod_jk.conf <IfModule mod_jk.c> JkWorkersFile /usr/local/etc/apache2/workers2.properties JkLogFile logs/jk.log JkLogLevel warn JkSet config.file /usr/local/etc/apache2/workers2.properties JkMount /*.jsp localhost JkMount /servlet/* localhost JkMount /examples/* localhost </IfModule> #cat /usr/local/etc/apache2/workers2.properties [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: And from Tomcat Side........ #cat jk2.properties handler.list=apr,request,channelJni channelSocket.port=8019 shm.file=${jkHome}/work/jk2.shm channelJni.disabled = 0 apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so #cat server.xml | grep mod_jk2 <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="/usr/local/libexec/apache2/mod_jk2.so" workersConfig="/usr/local/etc/apache2/workers2.properties"/> When i start tomcat (debug=1) here goes the result........ #/usr/local/jakarta-tomcat/bin/shutdown.sh start Using CATALINA_BASE: /usr/local/jakarta-tomcat Using CATALINA_HOME: /usr/local/jakarta-tomcat Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp Using JAVA_HOME: /usr/local/java [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.29 [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] JkMain - -APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in java.library.path [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=2/177 config=/usr/local/jakarta-tomcat/conf/jk2.properties i set CATALINA_HOME and JAVA_HOME in my env variable... # env | grep java JAVA_HOME=/usr/local/java CATALINA_HOME=/usr/local/jakarta-tomcat The problem is... When i try to test the installation with browsing to http://localhost/example , the result is page not found 404 from apache [Thu Apr 22 11:50:27 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/www/data/examples Is there something i missed ? how to workaround and fix this problem ? does Tomcat work with Diablo-JDK ? Please help me regarding this problem, regards .:TomBie:.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?408769F7.4010603>