Hello all,
I have a struts apps that work great if I connect to
http://localhost:8080/App
My Tomcat also has two other apps
http://localhost:8080/servlets-examples and
http://localhost:8080/jsp-examples.
However both the servlets-examples and jsp-examples work perfectly with
mod_jk but my struts application App does not!
How can two applications work fine under mod_jk while the other does
not? As you will see the configuration is not different.
If I access http://localhost:8080/App I see all my jsps, directories
etc. But if I click on a JSP I get:
HTTP Status 404: /App/login.jsp
Description: The requested resource /App/login.jsp is not available.
Now, for the other 2 apps if I click on a jsp it is executed.
I've checked all including file permissions and I do not seem to see the
problem. I am getting crazy here!
So I tought you might be able to give me a hand.
I am including my mod_jk and workers.properties here
I then configured my /etc/http/conf.d/mod_jk as follows:
_________________________________________________
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /servlet/* ajp13
Alias /jsp-examples "/home/antunes/tomcat/webapps/jsp-examples"
<Directory "/home/antunes/tomcat/webapps/jsp-examples">
Options Indexes FollowSymLinks
</Directory>
Alias /servlets-examples "/home/antunes/tomcat/webapps/servlets-examples"
<Directory "/home/antunes/tomcat/webapps/servlets-examples">
Options Indexes FollowSymLinks
</Directory>
Alias /App "/home/antunes/tomcat/webapps/App"
<Directory "/home/antunes/tomcat/webapps/App">
Options Indexes FollowSymLinks
</Directory>
JkMount /jsp-examples/servlet/* ajp13
JkMount /jsp-examples/*.jsp ajp13
JkMount /servlets-examples/servlet/* ajp13
JkMount /servlets-examples/*.jsp ajp13
JkMount /App/servlet/* ajp13
JkMount /App/*.jsp ajp13
JkMount /App/*.do ajp13
<Location "/jsp-examples/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/servlets-examples/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/App/WEB-INF/">
AllowOverride None
deny from all
</Location>
my /etc/http/conf/workers.properties as follows:
_________________________________________________
workers.tomcat_home=/home/antunes/tomcat
workers.java_home=/usr/lib/jvm/java
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.jboss.port=8809
worker.jboss.host=localhost
worker.jboss.type=ajp13
worker.jboss.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13, jboss
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]