You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Bliesner, Christopher P" <ch...@boeing.com> on 2005/12/19 22:15:54 UTC

RE: Tomcat applet not working

Well, I opened up the Invoker with the mappings in the main Web.xml file
and plus I added the 'url-mapping'/'servlet-mapping' to the application
web.xml file and it seemed to do the trick...however, I have some apps
where the applet is not working and I get the following error...any
ideas?

"Started EmpInfoSrv Servlet: Mon Dec 19 14:08:11 MST 2005
Mon Dec 19 14:08:11 MST 2005 - EmpInfoSrv Read From Applet Error: null"
This error is from the Catalina.out file.

Chris

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Friday, December 16, 2005 2:39 PM
To: Tomcat Users List
Subject: Re: Tomcat Servlets not working

Bliesner, Christopher P wrote:
> Hello,
> 
> I've installed Tomcat 5.0.28 on a Unix System and our applications 
> came up without a problem.  However, the servlets that we have written

> for these Apps are not working.  They worked fine with TC4.1.12.
> 
> Please help!  Here is an example of one of our web.xml files.  Did 
> something else change with Tomcat 5.0?

Quite a bit changed including the version of the servlet spec.

This is just a wild stab in the dark looking at your web.xml but does
your app use the invoker servlet? The easy way to tell is that the
servlets are invoked by soemthing that looks like
http://host:port/context/servlet/ServletName

The give-away is the "/servlet/" between the context and the
ServletName. If this is the case you will either need to enable the
invoker servlet (disabled by default for many good reasons) or add a
sevrlet mapping to your web.xml. Something like

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

should do the trick.

Mark

> 
> # cat 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>
> 
>    <display-name>AutoTime - Shop Floor Data Colection</display-name>
>    <description>
>       For Development Only
>    </description>
>    
>    <context-param>
>       <param-name>dbInstanceName</param-name>
>       <param-value>wdsdev8</param-value>
>    </context-param>
> 
>    <servlet>
>       <servlet-name>AtTransSrv</servlet-name>
>       <servlet-class>attrans.AtTransSrv</servlet-class>
>    </servlet>
>    
> 
>    <resource-ref>
>       <res-ref-name>jdbc/wdsdev8</res-ref-name>
>       <res-type>javax.sql.DataSource</res-type>
>       <res-auth>Container</res-auth>
>    </resource-ref>
>    
> </web-app>
> 
> Thanks!
> 
> Chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 



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


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