tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: tomcat JSP Servlet Apache JK2
Date Wed, 09 Aug 2006 12:01:11 GMT
It's a difference of path.  To Apache, the ecommerce webapp is the root 
of your site, but Tomcat does not see it that way.  Tomcat only 
recognizes the ROOT webapp as the document root.  Rename the ecommerce 
webapp to ROOT (notice the all caps), deleting the original ROOT 
directory under webapps and reconfigure Apache to use that as the 
document root.

The point is that URL paths in Tomcat and HTTPd must sync.  Your 
login.jsp can't be /ecommerce/login.jsp in tomcat and /login.jsp in Apache.


jeusdi wrote:

>   mmm, I've compiled and linked and configured mod_jk with Apache 2.0
>correctly, but I doesn't work correctly. Mmm, if I access to
> explorer continues show me the code of my JSP, but if I
>access to it shows me correctly the
>JSP formatted or interpreted as simpe HTML file.
>I don't know What more Can I do. Can you say me what do I do wrong?
>jk.conf ->
>JkWorkersFile "/etc/apache2/properties/"
>JkLogFile "/var/log/apache2/jk.log"
>JkLogLevel debug
> ->
># List workers
># Define work
>And httpd.conf ->
>        ServerName
>        ServerAdmin
>        DocumentRoot /usr/local/tomcat/webapps/ecommerce
>        ErrorLog /usr/local/tomcat/webapps/webshop/logs/error_log
>        CustomLog /usr/local/tomcat/webapps/webshop/logs/access_log common
>        <LocationMatch ".*WEB-INF.*">
>                AllowOverride None
>                Deny from all
>        </LocationMatch>
>        JkMount /*.jsp treb

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message