Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Apache Tomcat JK configuration

Thread view: 
sonnel@gmail.com - 25 May 2006 14:53 GMT
I have a Java application running on Tomcat 5.5.17 over Apache 2
through JK connector. The tree of the application looks like this

<ROOT>
- include.jsp
- /images
- /js
- /public
  - test.jsp
- /META-INF
- /WEB-INF
....

I configure *.do to route to forward to Tomcat from Apache.

# httpd.conf
...
<VirtualHost *:80>
 ...
 JkMount /*.do worker1
 JkMount /*.jsp worker1
 JkMount /public/* worker1
 ...
</VirtualHost>
...
# eof

# workers.properties
...
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
...
# eof

I can access most of the action classes and other pages.
The problem is when I access resouces under /public, the server returns
error.
For /public/*.do, the server response 404.
For /public/*.jsp, the jsp seems to see /public as the context root and
that makes it cannot include the resouces from the parent directory. Am
I missing something. Please help.

Thanks!
sonnel@gmail.com - 25 May 2006 16:37 GMT
The versions are as follows

Apache 2.0.54
mod_jk 1.2.10
sonnel@gmail.com - 25 May 2006 16:54 GMT
More details...

# httpd.conf
...
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
...
# eof

And the 404 response is from Tomcat rather than Apache...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.