This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I have recently started working with servlets.My testservlet is not working.I'm using JDK1.4.2 & Tomcat4.1.27 I created a 'myApp' directory under M:\Apache Group\Tomcat 4.1\webapps. And stored my 'testingServlet.class' file under M:\Apache Group\Tomcat 4.1\webapps\myApp\WEB-INF\classes And 'web.xml' is under M:\Apache Group\Tomcat 4.1\webapps\myApp\WEB-INF Typing the following url http://localhost:8080/myApp/servlet/testingServlet gives http 404 error as below:
But the sample examples(bundled with Tomcat) are working fine. Can somebody please tell me why is this problem occuring ? Thank you Raj
In the deployment descriptor (web.xml) what is the url-pattern of your servlet? Do you have it mapped appropriately? You should see: <servlet> <servlet-name>testingServlet</servlet-name> <servlet-class>com.test.servlet.TestingServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>testingServlet</servlet-name> <url-pattern>servlet/testingServlet</url-pattern> </servlet-mapping> [ August 23, 2003: Message edited by: William Duncan ]
No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com