I added the servlet mapping entry but it's still not working. I have the class file in /dev_new/WEB-INF/classes/umJavaLib/. Does the class file need to go into a special directory of anything?
<servlet> <servlet-name>servUploadMedia</servlet-name> <servlet-class>umJavaLib.servUploadMedia</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>servUploadMedia</servlet-name> <url-pattern>/dev_new/servlet/umJavaLib.servUploadMedia</url-pattern> </servlet-mapping> I also added a uri entry in workers2.properties. Here are the 2 entries for my app: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/servlet/*] info=Prefix Mapping Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -----Original Message----- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 11:14 AM To: Tomcat Users List Subject: Re: Where do I place a servlet class You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribi?: > >I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat >4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. >It's called servUploadMedia. I had it in my classes directory and it was configured >in my web.xml file: > ><web-app> > <display-name>Upgrade Test</display-name> > <session-timeout>900</session-timeout> > <servlet> > <servlet-name>servUploadMedia</servlet-name> > <servlet-class>umJavaLib.servUploadMedia</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet> > <servlet-name>CalendarServlet</servlet-name> > <servlet-class>com.jsos.calendar.CalendarServlet</servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/sections/plcmt/students/config/</param-value> > </init-param> > </servlet> > > <!-- Default directory Files --> > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > <welcome-file>intro.jsp</welcome-file> > <welcome-file>index.html</welcome-file> > <welcome-file>index.htm</welcome-file> > </welcome-file-list> ></web-app> > >Does tomcat 4 look for servlets in a different directory in this new version ? > >Emil Diego >Website Administrator >University of Miami School of Business > > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 > > >--------------------------------------------------------------------- >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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]