tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nyhgan <>
Subject Re: Can't get servlet to work on tomcat5.0.x. (solved)
Date Wed, 08 Sep 2004 22:09:23 GMT

nyhgan <> 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 "/servlet/*">
                JkUriSet worker ajp13:localhost:8009

#       <IfModule mod_jk.c>
#         JkMount /*.jsp  ajp13
#         JkMount /servlet/* ajp13
#         JkMount /*.xml  ajp13
#        AddType text/xml .xml
#       </IfModule>

nyhgan <> wrote:  
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"
# Uri mapping for jsp
# Uri mapping for jsp


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.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message