nyhgan <[EMAIL PROTECTED]> wrote:Hi, I fixed the problem. It was because I have a mix of jk and jk2 directives in my httpd.conf. Everything works after I added the JkUriSet for the servlets and commented the <IfModule> block below
<Location "/*.jsp"> JkUriSet worker ajp13:localhost:8009 </Location> <Location "/servlet/*"> JkUriSet worker ajp13:localhost:8009 </Location> # <IfModule mod_jk.c> # JkMount /*.jsp ajp13 # JkMount /servlet/* ajp13 # JkMount /*.xml ajp13 # AddType text/xml .xml # </IfModule> nyhgan <[EMAIL PROTECTED]> wrote: Hi, I finished the apach2 and tomcat5.0.27 integration today, The JSP is fine, but the servlets are not working. When I try to login to my application, I got the "this page cannot be displayed" message. There are no error messages in catalina.out I have the invoker servlet turn on. My serlets are package in a jar file, place under my WEB-INF/lib directory. Here are the related configurations ----------- web.xml --------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>loginHandler</servlet-name> <servlet-class>site.music.servlet.LoginHandler</servlet-class> </servlet> </web-app> workers2.properties ---------------------------- # Uri mapping for jsp [uri:127.0.0.1/*.jsp] group=ajp13:localhost:8009 # Uri mapping for jsp [uri:127.0.0.1/servlet/*] group=ajp13:localhost:8009 --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. --------------------------------- Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping.