File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Adding new servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Adding new servlet" Watch "Adding new servlet" New topic
Author

Adding new servlet

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 250
I need to add servlets to be accessed within a context (context) and a host (somehost.com) now I have had no problems with accessing beans underthis context and have had no problem compiling and accessing my servlet under the default (examples) context.
I am wondering if I have to change some settings somewhere to access a servlet under a certain context. I have tryed putting it in the web.xml file to no avail. I am trying to access it from http://somehost.com/context/servlet/servletname my apache is set to redirect to tomcat when it hits /context/.
Any help is greatly appreciated.
Thanks,
Kerry


http://www.goodercode.com
SCJP 1.4
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
This sounds like an "invoker" servlet problem again. The invoker servlet is on by default in the examples application but off by default everywhere else. Search in recent posts for "invoker" - also see the documentation in Tomcat's ..conf/web.xml for the invoker servlet.
Bill
 
 
subject: Adding new servlet
 
Threads others viewed
On the ranch - waiting to be lynched
using servlets in Jboss-tomcat
Compilation Error
Different ways for Contex
RequestDispatcher repeating /servletname problem
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com