Date: Wed, 14 Jul 2004 09:17:46 +0700 From: "Mohammad Reza" <reza@mra.co.id> To: <freebsd-java@freebsd.org> Subject: RE: servlet via apache Message-ID: <D9E6E4026B15A14BAF6DDBF1E74F49247F2917@exchange.mra-holding.net>
next in thread | raw e-mail | index | archive | help
-----Original Message-----
From: Clive Lin [mailto:clive@tongi.org]
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;
>
> 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.
> 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
<!-- The mapping for the invoker servlet -->
<!--
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
-->
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=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:/jsp-examples/*]
group=lb
[uri:dev.mra.co.id/*.jsp]
worker=ajp13:localhost:8009
[uri:java.mra.co.id/*.jsp]
worker=ajp13: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:.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9E6E4026B15A14BAF6DDBF1E74F49247F2917>
