  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: Re: Resin Configuration Issue... | Subject: Re: Resin Configuration Issue... 2004-05-12 - By Saxena, Amit Kumar
Back Hi all,
I am using Resin-ee-3.0.7 as a web server to run a simple servlet.
I am unable to run a test servlet i have created as follows...
(a) The Servlet have been created in C:\resin-ee-3.0.7\webapps\resin-doc\myworld\WEB-INF\classes\test\HelloWorld. java
...................................... ......................................
package test;
public class HelloWorld extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) ...................................... ...................................... ......................................
(b) The web.xml file has been created in C:\resin-ee-3.0.7\webapps\resin-doc\myworld\WEB-INF\web.xml directory
...................................... ...................................... <web-app xmlns="http://caucho.com/ns/resin"> <servlet> <servlet-name>hello</servlet-name> <servlet-class>test.HelloWorld</servlet-class> </servlet>
<servlet-mapping> <url-pattern>/hello</url-pattern> <servlet-name>hello</servlet-name> </servlet-mapping>
</web-app> ...................................... ......................................
(c) Now when i try to access the URL to invoke the Servlet I get the following error(s).
http://localhost:8080/resin-doc/myworld/hello or http://localhost:8080/resin-doc/myworld/test/hello I get the typical 404 Not Found resin-doc/myworld/hello was not found on this server. or resin-doc/myworld/test/hello was not found on this server.
(d) When i access this , it works .. http://localhost:8080/resin-doc/myworld/a.jsp (this works as there is a jsp inside myworld/ directory by the name "a.jsp"
Can someone please help why I am unable to run this servlet in Resin.. what all am i missing..?
Regards Kumar DISCLAIMER: PLEASE NOTE "change in our mail id. It has changed from @(protected) to @(protected)".The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you.
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |