tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <jon.wingfi...@mkodo.com>
Subject Re: Can't get servlet to work on tomcat5.0.x.
Date Wed, 08 Sep 2004 08:50:22 GMT
You need a <servlet-mapping> for your servlet. The Invoker servlet, 
which gives you a configuration shortcut, has been disabled since Tomcat 
4.1.12.

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

nyhgan 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.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message