Tried opening up the Invoker Servlet but that didn't seem to fix it. Everything I've read so far seems that you should be able to bring your webapps straight across from TC4 into TC5...but my servlets are not working...
-----Original Message----- From: Mark Thomas [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]