From owner-freebsd-java@FreeBSD.ORG Wed Apr 21 23:25:17 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BC2A16A4CF for ; Wed, 21 Apr 2004 23:25:17 -0700 (PDT) Received: from mx3.mra.co.id (mx3.mra.co.id [202.138.254.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAE9943D53 for ; Wed, 21 Apr 2004 23:25:13 -0700 (PDT) (envelope-from reza@mra.co.id) Received: from localhost (unknown [127.0.0.1]) by mx3.mra.co.id (Postfix) with ESMTP id EB6C32E0C8 for ; Thu, 22 Apr 2004 13:38:43 +0700 (WIT) Received: from mx3.mra.co.id ([127.0.0.1]) by localhost (mx3.mra.co.id [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36046-01 for ; Thu, 22 Apr 2004 13:37:28 +0700 (WIT) Received: from mailbox.mra-holding.net (unknown [172.16.0.232]) by mx3.mra.co.id (Postfix) with ESMTP id 6C5042E0F1 for ; Thu, 22 Apr 2004 13:37:28 +0700 (WIT) Received: from localhost (mailbox.mra-holding.net [127.0.0.1]) by mailbox.mra-holding.net (Postfix) with ESMTP id 827522FA46 for ; Thu, 22 Apr 2004 12:56:46 +0700 (WIT) Received: from mra.co.id (unknown [172.16.0.228]) by mailbox.mra-holding.net (Postfix) with ESMTP id A3FB02FA45 for ; Thu, 22 Apr 2004 12:56:44 +0700 (WIT) Message-ID: <408766CD.2030609@mra.co.id> Date: Thu, 22 Apr 2004 13:31:41 +0700 From: Muhammad Reza User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031008 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd 0.1 X-Virus-Scanned: by amavisd-new at mra.co.id Subject: mod_jk2 problem ..plese help X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 06:25:17 -0000 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 source and mod_jk2-apache2-2.0.4 binary for FreeBSD from http://jakarta.apache.org. and diablo-jdk1.31 (port) 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 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 #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 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:.