tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <j...@kilbride.com>
Subject Re: context problem?
Date Wed, 04 Apr 2001 22:04:12 GMT
It's probably not good that you are mounting both ajp12 and ajp13 connectors
for the same directories. The first thing I would try is removing either the
JkMount directives for ajp12 or ajp13, then restart both Tomcat and Apache.

Everything else looks okay. I run my contexts outside of the
$TOMCAT_HOME/webapps directory also, and I haven't had any problems.

Thanks,
--jeff

----- Original Message -----
From: "Shun-Luoi Daniel Fong" <sdfong@engineering.uiowa.edu>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, April 04, 2001 1:51 PM
Subject: context problem?


> Hi,
>
> 1. I created a context in server.xml as follows
>
>         <Context path="/gamezone"
>                  docBase="/home/sdfong/public_html/rubyfong/gamezone"
>                  crossContext="false"
>                  debug="0"
>                  reloadable="true" >
>         </Context>
>
> 2. I also added the following in mod_jk.conf that is included in
> httpd.conf
>
> Alias /gamezone "/home/sdfong/public_html/rubyfong/gamezone"
> <Directory "/home/sdfong/public_html/rubyfong/gamezone">
>    Options Indexes FollowSymLinks
> </Directory>
>
> JkMount /gamezone/servlet/* ajp12
> JkMount /gamezone/*.jsp ajp12
>
> JkMount /gamezone/servlet/* ajp13
> JkMount /gamezone/*.jsp ajp13
>
> <Location "/gamezone/WEB-INF/">
>     AllowOverride None
>     deny from all
> </Location>
>
> <Location "/gamezone/META-INF/">
>    AllowOverride None
>    deny from all
> </Location>
>
> 3. But when I try access a page at
> http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp
>
> I got a 404 jsp not found error in the browser and I got the following
> message in jasper.log
>
> 2001-04-04 03:49:40 - Scratch dir for the JSP engine is:
/usr/java/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples
> 2001-04-04 03:49:40 - IMPORTANT: Do not modify the generated servlets
> 2001-04-04 03:50:26 - JspEngine --> /~sdfong/rubyfong/gamezone/testex.jsp
> 2001-04-04 03:50:26 -        ServletPath:
/~sdfong/rubyfong/gamezone/testex.jsp
> 2001-04-04 03:50:26 -           PathInfo: null
> 2001-04-04 03:50:26 -           RealPath:
/usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/~sdfong/rubyfong/gamezone/testex
.jsp
> 2001-04-04 03:50:26 -         RequestURI:
/~sdfong/rubyfong/gamezone/testex.jsp
> 2001-04-04 03:50:26 -        QueryString: null
> 2001-04-04 03:50:26 -     Request Params:
> 2001-04-04 03:50:26 - Classpath according to the Servlet Engine is:
/usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes
>
>
> The RealPath says it is looking in /usr/java/jakarta-tomcat-3.2.1/webapps
> for my directories and file.
> Could someone explain why it is doing this and how I could fix it. I've
> been struggling with this problem for almost a month now and am at my wits
> end.
>
> Thanks,
> Luoi
>
>
>
> --
> D. Shun-Luoi Fong
> 821 Melrose Avenue
> Iowa City, IA 52246
> email: sdfong@engineering.uiowa.edu
>
> -----------------------
> Colossions 2:8 See to it that no one takes you captive through philosophy
> or empty deception, according to the traditions of men, according to the
> elementary principles of the world, rather than according to Christ.
> -----------------------
>


Mime
View raw message