  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | 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 | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Resin Web Container Configuration Issues.. | Resin Web Container Configuration Issues.. 2004-05-12 - By GSD HPS
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
-- ---- ---- ---- ---- ---- ----- Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<DIV> <DIV><FONT face="Courier New" size=2> <P>Hi all,</P> <P>I am using Resin-ee-3.0.7 as a web server to run a simple servlet.</P> <P>I am unable to run a test servlet i have created as follows...</P> <P>(a) The Servlet have been created in</P> <P>C:\resin-ee-3.0.7\webapps\resin-doc\myworld\WEB-INF\classes\test\HelloWorld. </P> <P>java</P> <P>......................................</P> <P>......................................</P> <P>package test;</P> <P>public class HelloWorld extends HttpServlet {</P> <P>public void doGet (HttpServletRequest req,</P> <P>HttpServletResponse res)</P> <P>......................................</P> <P>......................................</P> <P>......................................</P> <P> </P> <P>(b) The web.xml file has been created in</P> <P>C:\resin-ee-3.0.7\webapps\resin-doc\myworld\WEB-INF\web.xml directory</P> <P>......................................</P> <P>......................................</P> <P><web-app xmlns="http://caucho.com/ns/resin"></P> <P><servlet></P> <P><servlet-name>hello</servlet-name></P> <P><servlet-class>test.HelloWorld</servlet-class></P> <P></servlet></P> <P><servlet-mapping></P> <P><url-pattern>/hello</url-pattern></P> <P><servlet-name>hello</servlet-name></P> <P></servlet-mapping></P> <P></web-app></P> <P>......................................</P> <P>......................................</P> <P> </P> <P>(c) Now when i try to access the URL to invoke the Servlet I get the</P> <P>following error(s).</P> <P>http://localhost:8080/resin-doc/myworld/hello</P> <P>or</P> <P>http://localhost:8080/resin-doc/myworld/test/hello</P> <P>I get the typical 404 Not Found</P> <P>resin-doc/myworld/hello was not found on this server.</P> <P>or</P> <P>resin-doc/myworld/test/hello was not found on this server.</P> <P> </P> <P>(d) When i access this , it works ..</P> <P>http://localhost:8080/resin-doc/myworld/a.jsp (this works as there is a jsp< /P> <P>inside myworld/ directory by the name "a.jsp"</P> <P> </P> <P>Can someone please help why I am unable to run this servlet in Resin.. what< /P> <P>all am i missing..?</P> <P>Regards</P> <P>Kumar</P></FONT><FONT size=2></FONT></DIV></DIV><p> <hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Yahoo! Movies - <a href="http://movies.yahoo.com/showtimes/movie?mid=1808405861">Buy advance tickets for 'Shrek 2' </a> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|
 |