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/16 22:25:30 UTC
Re: Tomcat Servlets not working
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?
# 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
Re: Tomcat Servlets not working
Posted by Mark Thomas <ma...@apache.org>.
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
Re: Tomcat Servlets not working
Posted by Martin Gainty <mg...@hotmail.com>.
Good Afternoon Christopher-
Did you Rebuild your war with the same JVM/JDK that TC 5.0.28 is using?
Can you send us the latest log from %CATALINA_HOME%/logs?
Martin-
----- Original Message -----
From: "Bliesner, Christopher P" <ch...@boeing.com>
To: <us...@tomcat.apache.org>
Cc: "Matson, Wayne" <wa...@boeing.com>
Sent: Friday, December 16, 2005 4:25 PM
Subject: Re: Tomcat Servlets not working
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?
# 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