THANKS for directing me to the link. But my problem doesnt get solved by the solution provided, i.e.
i.e.
Uncomment the following in your Tomcat's web.xml
file.


   <!-- The mapping for the invoker servlet -->
   <servlet-mapping>
       <servlet-name>invoker</servlet-name>
       <url-pattern>/servlet/*</url-pattern>
   </servlet-mapping>



Once I uncomment this, the server cannot be restarted. If I comment it again, the server can be restarted.

Do you think, in Tomcat5 the ability of allowing annonymous servlets was disabled completely for security reasons?

Thanks,
Swapna

From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: RE: creating web applications
Date: Fri, 28 May 2004 11:50:09 -0400


http://jakarta.apache.org/tomcat/faq/misc.html#invoker

Yoav Shapira
Millennium Research Informatics


>-----Original Message----- >From: swapna gupta [mailto:[EMAIL PROTECTED] >Sent: Friday, May 28, 2004 11:38 AM >To: [EMAIL PROTECTED] >Subject: creating web applications > >Hello, >I have installed Tomcat 5.0.25 . I am trying to create a web application, >but having trouble deploying servlets. >I have created the required directory structure in the TOMCAT_HOME/webapps >directory...namely examples/WEB-INF/classes. >Also I added ><Context path="/examples" docBase="examples" debug="0" > reloadable="true"></Context> >within the 'host' element of the server.xml file. >To test I placed a simple html file in the TOMCAT_HOME/webapps/examples >directory, and that worked fine. > >Now, to test servlets, I placed a simple HelloWorld servlet class file in >the TOMCAT_HOME/webapps/examples /WEB-INF/classes directory. I also >shutdown >adn restarted the server, but teh servlet doesnt work when I point my >browser to >http://localhost:8080/examples/servlet/HelloWorld. >I get following message: >The requested resource (/examples/servlet/HelloWorld) is not available. > >I have read about adding a <servlet> element to the web.xml file in WEB-INF >directory. I did that too. But that didnt help. The web.xml file I have in >/examples/WEB-INF/ now looks las follows: > ><?xml version="1.0" encoding="ISO-8859-1"?> ><!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > ><web-app> </web-app> > > > >I remember in a previous installation of Tomcat (someone else and installed >it) I had a webapplication directory, similar to the 'examples' directory >above, and could place my class files in the classes directory, without >adding any entry into the web.xml file, and the servlets would work fine . > >Can anyone see what I have done wrong..why wont my servlets work? > >Thanks in advance, >Swapna > >_________________________________________________________________ >Post Classifieds on MSN classifieds. http://go.msnserver.com/IN/44045.asp >Buy and Sell on MSN Classifieds. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Easiest Money Transfer to India. Send Money To 6000 Indian Towns. http://go.msnserver.com/IN/48198.asp Easiest Way To Send Money Home!



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to