sample web.xml<BR> <?xml version="1.0" encoding="ISO-8859-1"?><BR> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"><BR> <web-app><BR> <display-name>Test for Rob</display-name><BR> <servlet><BR> <servlet-name>beindxServlet1</servlet-name><BR> <servlet-class>package.class</servlet-class><BR> <init-param><BR> <param-name>org.apache.velocity.properties</param-name><BR> <param-value>beindxServlet1.properties</param-value><BR> </init-param><BR> </servlet><BR> <servlet-mapping><BR> <BR> <servlet-name>beindxServlet1</servlet-name><BR> <url-pattern>/beindxservlet</url-pattern><BR> <welcome-file-list><BR> <welcome-file>index.jsp</welcome-file><BR> </welcome-file-list><BR> <taglib><BR> <taglib-uri>/WEB-INF/struts-bean</taglib-uri><BR> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location><BR> </taglib><BR> </web-app><BR> <BR> Martin<BR> ______________________________________________ <BR> Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
Date: Wed, 3 Sep 2008 16:00:30 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar) Thank you for responding to the post. I have looked at the web.xml in the /usr/apache-tomcat-6.0.18/conf directory. I've tried creating my own web.xml under the /usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF directory which i will attach. It would be greatly appreciated if you have any advice on changes i should make to it in order to get it to work, thank you. Robert Pid wrote: Robert K. Vanderhoek wrote: Unable to find servlet or load servlet jar from a client jar, can this be done with the default conf files? Do i have to create a web.xml file for each webapp? Yes, if you want to use servlets. web.xml provides the means to map the servlet(s) to url patterns. p I'm using jar files created for Apache Jserv back in 1998 probably using the servlet specification 2.1 could this be part of the problem? Software running on server - RHEL4u3 - Java6u7 - Tomcat6.0 Directory structure - /usr/apache-tomcat-6.0.18 (CATALINA_HOME) - /usr/apache-tomcat-6.0.18/webapps/belknap (webapp folder) - /usr/apache-tomcat-6.0.18/webapps/belknap/*.gif, *.html, *.jar (client) - /usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF/lib/beindxServlet1.jar (servlet) Unpacked beindxServlet1.jar - /beindxservlet/beindxServlet1.class - /META-INF/ Thank you, Robert --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Robert K. Vanderhoek (603) 772-2305 Computer Technician IT Department Connor & Connor 16 Kingston Rd Unit #5 Exeter, NH 03833 _________________________________________________________________ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008