From owner-freebsd-java@FreeBSD.ORG Wed Jul 14 03:27:49 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 D661616A4CE for ; Wed, 14 Jul 2004 03:27:49 +0000 (GMT) Received: from mx3.mra.co.id (mx3.mra.co.id [202.138.254.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D421643D54 for ; Wed, 14 Jul 2004 03:27:44 +0000 (GMT) (envelope-from reza@mra.co.id) Received: from localhost (unknown [127.0.0.1]) by mx3.mra.co.id (Postfix) with ESMTP id 8E99A2E100 for ; Wed, 14 Jul 2004 09:38:36 +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 96403-03 for ; Wed, 14 Jul 2004 09:37:21 +0700 (WIT) Received: from mail.mra.co.id (unknown [172.16.0.25]) by mx3.mra.co.id (Postfix) with ESMTP id 24AB02E0C2 for ; Wed, 14 Jul 2004 09:37:21 +0700 (WIT) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Wed, 14 Jul 2004 09:17:46 +0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: servlet via apache Thread-Index: AcRo6Pex83zRSsRBRMSZKbH/mp8gsgAXogJQ From: "Mohammad Reza" To: X-Virus-Scanned: by amavisd-new at mra.co.id Subject: RE: servlet via apache 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: Wed, 14 Jul 2004 03:27:49 -0000 -----Original Message----- From: Clive Lin [mailto:clive@tongi.org]=20 Sent: Tuesday, July 13, 2004 9:53 PM To: Mohammad Reza Subject: Re: servlet via apache On Tue, Jul 13, 2004 at 01:26:48PM +0700, Mohammad Reza wrote: > Dear Lists; > =20 > Recently I configure my FreeBSD-4.10 Release box to host jsp page via > Tomcat-5.0, Apache-2.0 and mod_jk2.and java-mysql-conector > Everything is install form ports except Tomcat-5.0. > Now I can serve *.jsp page via Apache-2.0, but I have some trouble when > try to serve servlet page.=20 > Everytime I execute servlets-examples, ie: Hello World (taken from > servlet Tomcat source), I'm ending with "the page cannot be found". > But success with jsp-examples. > Please help me to configure my apache-tomcat so it's can serve servlet. > This is my server.xml. take a look at ${TOMCAT_ROOT}/conf/web.xml, and search for invoker, especially the=20 Hope this helps, Clive Dear List, Thank for attention, The problem is, I can serve sevlet and *.jsp via Tomcat Standalone services, but only *.jsp pages with Apache-Tomcat and mod_jk2. My web.xml is under directory WEB_INF , I just copy servlets-examples and jsp-examples from Tomcat webapps directory to my apache virtual host directory. This is my workers2.properti # cat /usr/local/etc/apache2/workers2.properties [shm] info=3DScoreboard. Requried for reconfiguration and status with multiprocess servers. file=3Danon # 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=3D8009 host=3D127.0.0.1 # define the worker [ajp13:localhost:8009] channel=3Dchannel.socket:localhost:8009 group=3Dlb # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] group=3Dlb [uri:dev.mra.co.id/*.jsp] worker=3Dajp13:localhost:8009 [uri:java.mra.co.id/*.jsp] worker=3Dajp13:localhost:8009 Is there something I missed, what about jk2.properties ? what should I put there... I'm new with Jakarta-tomcat, please help me... Regards .:TomBie:.