You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Adam: Kurzawa" <ad...@optymalni.com> on 2001/09/27 09:11:11 UTC
Tomcat 4 with JSP
So, nobody here knows how to use Apache + Tomcat 4 with JSP? Is it even
possible?
Like everyone knows, JSP files should be stored on the Apache server
along with all other static content. I haven't been able to figure out
how to convince Apache to cooperate with Tomcat 4 for execution of JSP
files.
I have no problems with normal servlets, which are served from SPECIAL
directores and can be easily defined in httpd.conf by:
WebApp Deplay servlet conn /servlet/
Kind regards,
Adam: Kurzawa
Re: Tomcat 4 with JSP
Posted by paul <pa...@roadrunner.uk.com>.
here is relevant httpd.conf.....
WebAppConnection conn warp localhost:8009
NameVirtualHost 193.133.123.162
<VirtualHost 193.133.123.162>
ServerName pan.web.roadrunner.uk.com
DocumentRoot /usr/local/apache/pan.web.roadrunner.uk.com/htdocs
WebAppDeploy ct conn /ct/
WebAppDeploy b2b conn /b2b/
WebAppDeploy logon conn /logon/
WebAppDeploy wh conn /wh/
WebAppDeploy edi conn /edi/
</VirtualHost>
here is relevent server.xml
<Host name="pan.web.roadrunner.uk.com" debug="1" appBase="webapps">
<Context path="" docBase="ROOT" debug="0"/>
<Context path="/ct" docBase="ct" debug="1" crossContext="true"
reloadabl
e="true">
</Context>
<Context path="/b2b" docBase="b2b" debug="1" crossContext="true"
reloada
ble="true">
</Context>
<Context path="/logon" docBase="logon" debug="1" crossContext="true"
rel
oadable="true">
</Context>
<Context path="/wh" docBase="wh" debug="1" crossContext="true"
reloadabl
e="true">
</Context>
</Host>
</Engine>
</Service>
</Server>
I have five seperate contexts........,
I then place my jsp pages in
TOMCAT_HOME/webapps/ct/*.jsp for example
then the page pan.web.roadrunner.uk.com/ct/*.jsp will retreive the jsp page.
----- Original Message -----
From: "Adam: Kurzawa" <ad...@optymalni.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, September 27, 2001 8:11 AM
Subject: Tomcat 4 with JSP
>
> So, nobody here knows how to use Apache + Tomcat 4 with JSP? Is it even
> possible?
>
> Like everyone knows, JSP files should be stored on the Apache server
> along with all other static content. I haven't been able to figure out
> how to convince Apache to cooperate with Tomcat 4 for execution of JSP
> files.
>
> I have no problems with normal servlets, which are served from SPECIAL
> directores and can be easily defined in httpd.conf by:
>
> WebApp Deplay servlet conn /servlet/
>
> Kind regards,
> Adam: Kurzawa
>