You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeffrey Polaski <jp...@rgs.uci.edu> on 2002/06/28 21:53:04 UTC
RE: IIS - jsp file download on port 80 - resolved
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:
http://www.getnet.net/~rbarr/TomcatOnIIS/ 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"
port="80"
minProcessors="5"
maxProcessors="75"
enableLookups="true"
redirectPort="8443"
acceptCount="10"
debug="0"
connectionTimeout="60000"/>
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 [mailto:prash_mail_lists@yahoo.com]
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.
Prashanth
--- Jeffrey Polaski <jp...@rgs.uci.edu> 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:
> http://128.200.156.162/home/jsp-files/fruit.jsp
> <http://128.200.156.162/home/jsp-files/fruit.jsp> ).
>
> (you can also see that Tomcat works on port 8080:
> http://128.200.156.162:8080/jsp-files/fruit.jsp
> <http://128.200.156.162:8080/jsp-files/fruit.jsp> )
>
> 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:
> http://128.200.156.162/home/jeff/tomcat/conf/
> <http://128.200.156.162/home/jeff/tomcat/conf/> . 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>