permaculture playing cards*
The moose likes Tomcat and the fly likes Apache + Tomcat Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache + Tomcat Problem" Watch "Apache + Tomcat Problem" New topic
Author

Apache + Tomcat Problem

Gabriel Tomoloju
Greenhorn

Joined: Feb 23, 2004
Posts: 20
Hello guys, I have successfully integrated tomcat 4 and Apache 1.3
on AIX, then dropped a JSP in the tomcat's examples/jsps/ folder and accessed it via Apache. But, the problem is after deploying an application, i was able to access the first screen, WelcomePage.jsp
But after logging in i get a 404 error:
The requested resource (/context/servlet/pack1.pack2.pack3.ControllerServlet) is not available.

My Apache_home/conf/httpd.conf entry is:

#
# Mod_jk settings
#

JkWorkersFile "conf/workers.properties"
JkLogFile "/aah/apache/1.3.33/logs/mod_jk.log"
JkLogLevelerror
JkMount/context default
JkMount/context/* default - made me access WelcomePage.jsp
JkMount /context/servlet/default

# End of mod_jk settings

I think the problem, is the WelcomePage.jsp has form action value of
action="/context/servlet/pack1.pack2.pack3.ControllerServlet"

And JkMount expects a physical location for a webpage, NOT the path to the controller servlet.

Any help, will be appreciated.
Gabriel Tomoloju
Greenhorn

Joined: Feb 23, 2004
Posts: 20
The invoker mapping was un-commented out in the tomcat_home/conf/web.xml

<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

It now works!
 
GeeCON Prague 2014
 
subject: Apache + Tomcat Problem