tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Polaski <>
Subject RE: IIS - jsp file download on port 80 - resolved
Date Fri, 28 Jun 2002 19:53:04 GMT
Thanks for the help so far... I finally got it to work! Yea!

[Background: I'm running NT sp6 with IIS , Tomcat 4.0.4
After following the instructions at: Tomcat worked fine on port 8080.
When I'd try to access a .jsp file through IIS on port 80 I would get a
"file download" dialog box, instead of being served up a piping hot .jsp
file. The fix is as follows...]

1.) First I added the Application Mapping for .jsp files so IIS would
recognize them:
	Application mapping for .jsp's to isapi_redirector.dll. 

	IIS Management Console -> <computer name> -> properties -> master
properties(for WWW Service) -> edit -> home Directory -> Configuration ->
App Mappings -> Add
	Executable: D:\Tomcat4.0\native\isapi_redirector.dll
	Extension: .jsp
	I left the defaults as they were:
		"Script Engine" - Checked
		"Check that file Exists" - Unchecked

It still didn't work, but I was getting closer! When I would connect to
/home/jeff/fruit.jsp I would get a "page cannot be displayed" message.
Tomcat was still working fine, though on port 8080 at /home/jeff/fruit.jsp

The final change was to switch Tomcat to run on port 80. I changed
port="8080" to port="80" in the "non-SSL HTTP/1.1 Connector" in the
server.xml file. It's at about line 54 in the default server.xml file. 

Changed to:
    <Connector className="org.apache.catalina.connector.http.HttpConnector"

In case it's useful to anyone, I included my Tomcat configuration files. 

Again, thank you for you help! 

   Jeff Polaski 
   "The cow is of the bovine ilk;
    One end is moo, the other, milk."
               -- Ogden Nash 

-----Original Message-----
From: Prashanth Pushpagiri []
Sent: Thursday, June 27, 2002 6:55 PM
To: Tomcat Users List
Subject: Re: IIS - jsp file download on port 80

Try adding a application mapping in your IIS console.
(IIS console --> Home Directory --> Configuration App
Mapping), I'm using IIS 5.0 in win2k professional.
In this console add the .jsp entension  and map it to
isapi_redirect(or).dll where ever it is stored. That
should work. Also, check to see if your web
application has script and executable access.


--- Jeffrey Polaski <> wrote:
> First, thanks in advance for any help with this...
> I've gotten Tomcat 4.0.4 set up and everything works
> well if I connect to
> port 8080. I'd like to be able to serve servlets and
> jsp's transparently to
> users over port 80. However, if I connect through
> port 80 and try to grab a
> .jsp file all I get is a download prompt asking me
> if I want to save the
> file to my hard drive. (You can see for yourself:
> <> ).
> (you can also see that Tomcat works on port 8080:
> <> )
> I'm not sure what needs to be changed. Do I need to
> add an application
> mapping for .jsp's to the default web site in IIS?
> If that's so, I'm not
> sure what to map it _to_. Would it be
> isapi_redirector.dll? I tried setting
> Tomcat to run on port 80, but Tomcat just breaks. Is
> the problem that I'm
> using the warp connector? Should I be using
> something else?
> I've put a copy of all the Tomcat configuration
> files in:
> <> . As
> far as I can tell,
> everything is set up correctly... I took out ajp12
> because it isn't used in
> anything. Removing it didn't seem to affect
> anything...
> I'll be happy to summarize and post the solution to
> the group, once it's
> worked out. And again, thanks for any help!
>    Jeff Polaski 
>    Manager, Web Services 
>    Research & Graduate Studies 
>    University California, Irvine 
> --
> To unsubscribe, e-mail:  
> <>
> For additional commands, e-mail:
> <>

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message