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 strongm 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
 
Why bother running IIS? You may as well run Tomcat straight... i can't imagine it could be less secure thatn IIS
 
williamcoates,

Beacause, &quot;maybe&quot; he has static content and maybe ASP pages running on IIS, but needs to redirect certain dynamic requests to Tomcat - without the user, or hime doing manual redirects to port 8080 ....
 
Spot on - This new application is just an extension on an existing website.

Found out that my problem was to do with the uriworkermap.properties. Without restarting the IIS server the changes made to this file do not take effect (even when tomcat is stopped and started).

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top