From owner-freebsd-java@FreeBSD.ORG Thu Apr 22 23:34:07 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 7D23016A4CE for ; Thu, 22 Apr 2004 23:34:07 -0700 (PDT) Received: from mx3.mra.co.id (mx3.mra.co.id [202.138.254.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09EB543D2F for ; Thu, 22 Apr 2004 23:34:04 -0700 (PDT) (envelope-from reza@it.mra.co.id) Received: from localhost (unknown [127.0.0.1]) by mx3.mra.co.id (Postfix) with ESMTP id D453A2E161; Fri, 23 Apr 2004 13:47:23 +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 62859-10; Fri, 23 Apr 2004 13:46:08 +0700 (WIT) Received: from mailbox.mra-holding.net (unknown [172.16.0.232]) by mx3.mra.co.id (Postfix) with ESMTP id 513322E025; Fri, 23 Apr 2004 13:46:08 +0700 (WIT) Received: from localhost (mailbox.mra-holding.net [127.0.0.1]) by mailbox.mra-holding.net (Postfix) with ESMTP id 882DD2FA12; Fri, 23 Apr 2004 13:04:50 +0700 (WIT) Received: from it.mra.co.id (unknown [172.16.0.228]) by mailbox.mra-holding.net (Postfix) with ESMTP id 8AA332FA11; Fri, 23 Apr 2004 13:04:47 +0700 (WIT) Message-ID: <4088BA57.6010007@it.mra.co.id> Date: Fri, 23 Apr 2004 13:40:23 +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: Kurt Miller , freebsd-java@freebsd.org References: <408769F7.4010603@it.mra.co.id> <003401c4287a$3efd5f10$200110ac@truk> In-Reply-To: <003401c4287a$3efd5f10$200110ac@truk> 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: Re: mod_jk2..tomcat..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: Fri, 23 Apr 2004 06:34:07 -0000 Thanks Kurt.. now i can serve jsp with apache.. for future administration purpose, what part should i care ? is there any howt-to that should i read.. ? what about logs.. I can't see log file from Tomcat.. regards reza >Couple of problems.. see below. > >From: "Muhammad Reza" > > >>#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 >> >> >> >> > >The primary reason you are not connecting to tomcat is >because you are using a mod_jk.conf with mod_jk2. Look in >/usr/local/share/examples/mod_jk2/ for a sample >of the correct IfModule directives. > > > >>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 >> >> >> > >I didn't not build in jni support into the binary, so >your handler.list and apr.jniModeSo lines are wrong. >Also, you don't need the shm.file line because your using >anonomous shared memory in workers2.properties. Just >comment out all of the lines in jk2.properties to get started. > > > >>#cat server.xml | grep mod_jk2 >>>modJk="/usr/local/libexec/apache2/mod_jk2.so" >>workersConfig="/usr/local/etc/apache2/workers2.properties"/> >> >> >> > >The ApacheConfig class generates apache mod_jk.conf for >mod_jk not mod_jk2. Remove the above listener line for mod_jk2. > >The installed server.xml comes with the CoyoteConnector enabled: > > > port="8009" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="9" connectionTimeout="0" > useURIValidationHack="false" > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > >This is all you need to get started with mod_jk2 in your server.xml. > > > >>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:. >> >> >> >> >> >>_______________________________________________ >>freebsd-java@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-java >>To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >> >> > > >