Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Resin Web Container Configuration Issues..

Resin Web Container Configuration Issues..

2004-05-12       - By GSD HPS

 Back
Reply:     1     2  


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>&nbsp;</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>&lt;web-app xmlns="http://caucho.com/ns/resin"&gt;</P>
<P>&lt;servlet&gt;</P>
<P>&lt;servlet-name&gt;hello&lt;/servlet-name&gt;</P>
<P>&lt;servlet-class&gt;test.HelloWorld&lt;/servlet-class&gt;</P>
<P>&lt;/servlet&gt;</P>
<P>&lt;servlet-mapping&gt;</P>
<P>&lt;url-pattern&gt;/hello&lt;/url-pattern&gt;</P>
<P>&lt;servlet-name&gt;hello&lt;/servlet-name&gt;</P>
<P>&lt;/servlet-mapping&gt;</P>
<P>&lt;/web-app&gt;</P>
<P>......................................</P>
<P>......................................</P>
<P>&nbsp;</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>&nbsp;</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>&nbsp;</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>

©2008 junlu.com - Jax Systems, LLC, U.S.A.