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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat / IIS Configuration Problem

Status
Not open for further replies.

YaBabyYa

Programmer
Jul 26, 2007
21
CA
Hello,

I have setup Tomcat to work with IIS on Win 2K. I successfully configured the ISAPI filter in IIS to point to Tomcat. I checked the IIS_redirect logs and they show that IIS is able to initialize the ISAPI filter and talk to Tomcat over AJP 1.3. The tomcat web server returns an HTTP response.

The problem is that I getting the default Tomcat page not the page that I had specified "mypage.jsp" in IIS as my default document for the website.


You can view the website at: .. it should show you a default Tomcat page. It is completely ignoring my "Default Document" setting in IIS.

Any ideas? Thanks in advance.

Dwight
 
Hi,

I have been playing with Tomcat and I found out one thing. What appears to be happening is that all the requests are directed to Tomcat. The default page in IIS is never ever referenced.

Tomcat is having a webApps folder. There is a sub-folder there called ROOT. All requests are going to the ROOT folder and Tomcat finds index.jsp which appears to be the default page.

So I tried to copy my application folder into ROOT. What happened was that I saw a listing of all the JSP files. What I need now is: instead of the listing of JSP files to be able to set one particular default page.

I think it's one of the configs, but not sure which one. I tried to edit the web.xml file

Thanks.

Dwight
 
Ok,

I have solved the problem. You can copy your application folder contents into the ROOT folder.

Then edit the web.xml file in the "conf" folder.

At the bottom of the file there should be a list of default pages like : index.html, index.htm, index.jsp. Be careful, I think the naming is case sensitive. Add an entry for your default page at the top of the list.

It should start working.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top