In order to integrate the Apache web server w/ Tomcat you need to tell Apache which "things" to redirect to Tomcat. That is the whole point of the
JkMount xyz worker
lines in your mod_jk.conf-auto file (I have made modifications to mine and saved it as mod_jk.config)
The login.jsp form that you use must be coded in a specific way (i.e. the field names, and the POST to action="j_security_check") The latter, j_security_check, is handled by the AccessInterceptor (a request interceptor specified in your server.xml file and available in your distrib. under src/org/apache/tomcat/request/AccessInterceptor.java). This is why the value "j_security_check" is not a class file.
I hope I've clarified things a bit, please re-read the mod_jk How To for a much better explanation than I've given here.
Mike
PS: Jake: If this wasn't satisfactory, please feel free to email me direct, or give me a call (phone nbr is below)....
At 11/30/2000 03:28 PM -0600, you wrote:
Mike,
I'm confused as to what you mean here? First of all, what is that "iristafulfill" context? Is that you own? I also looked for a class file called "j_security_check.class" and I didn't find it anywhere in the sample context or any other context that comes with 3.2 final.
Can you or someone else be a bit more explicit as to how to get this to work through Apache on port 80.
Jake
At 12:46 PM 11/30/2000 -0600, you wrote:
I ran in to the same problem. The solution is to modify the mod_jk.conf-auto file (and save w/ a different name) as follows:
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /iristafulfill/servlet/* ajp12
JkMount /iristafulfill/*.jsp ajp12
JkMount /iristafulfill/*.do ajp12
JkMount /iristafulfill/pages/security/j_security_check ajp12
Both of the last two lines were added manually. The first, 'cause we're using struts and the second for the login page....
HTH,
Mike
At 11/30/2000 09:09 AM -0800, you wrote:
hello,
with 3.2 final I ran into the same problem as the
message below. Is there a solution, so the 8080 is
not necessary, now?
Thanks, Juergen
http://mikal.org/interests/java/tomcat_users/msg09581.html
I am using Tomcat 3.2b6 with mod_jk. When accessing
http://localhost:8080/examples/jsp/security/protected/index.jsp
The login.jsp page works (posts) fine. However, when
accessing through Apache,
http://localhost/examples/jsp/security/protected/index.jsp,
the login.jsp comes up but j_security_check is not
found when I post. Has anyone else had this problem?
Can I manually do the mapping from within web.xml?
Thanks,
Charlie
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
Michael H. La Buddeemail: [EMAIL PROTECTED]
Prosoft, Inc.phone: 414-860-6509
[EMAIL PROTECTED]fax: 414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
