Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlets not found on the Internet

Status
Not open for further replies.

DJSmith

Programmer
Aug 14, 2000
82
GB
I have a problem accessing servlets when my application is being run over the Internet. When the application tries to load the servlet a Page Cannot be Found page is displayed. However when I reference the site through an intranet address the servlets function perfectly.

I am running IIS and using an ISAPI redirect to pass all the relevant requests to Jakarta Tomcat (Version 4.1.24). I have a feeling that it is something to do with the way I have setup my web.xml file (at the application level) as all of the servlets in the examples application (packaged with Jakarta Tomcat) run correctly.

The contents of my web.xml file are as follows

<?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>

<!DOCTYPE web-app
PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&quot;
&quot;
<web-app>

<display-name>DIY WEB</display-name>
<description>
DIY Web.
</description>

<!-- Define servlets that are included in the DIY application -->
<servlet>
<servlet-name>Director</servlet-name>
<servlet-class>Director</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Director</servlet-name>
<url-pattern>/Director</url-pattern>
</servlet-mapping>
</web-app>

Also please note that I have uncommented the servlet invoker section in the web.xml file located in the conf directory.

Any help would be greatly appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top