Enabling Default Document for Tomcat / IIS (ISAPI Redirector) connector
September 30, 2005 6:42 AM   Subscribe

How can I configure index.jsp to be a default document in Tomcat using the IIS connector (ISAPI Redirector)?

I've got the ISAPI redirector installed and working - for the most part. Specifiying the exact file (http://site/app/index.jsp) via the ISAPI redirector works. Going directly to Tomcat (http://site:8080/app/) works too. However, if I try:

http://site/app/

It does not work. Where do I fix this? I'm mostly a WebSphere guy and this stuff is pretty simple to fix with that in the WS plugin file... How about Tomcat?
posted by kuperman to Computers & Internet (8 answers total)
 
Response by poster: For what it's worth, I do have index.jsp in my welcome-file list in the web.xml conf file, but that doesn't seem to be enough when using the redirector.
posted by kuperman at 7:09 AM on September 30, 2005


You need to add index.jsp as a default content page in IIS. This is done on the Documents tab in the properties of your IIS Web Site.
posted by toomuch at 7:53 AM on September 30, 2005


Response by poster: toomuch, no dice. I tried that already ... Oh yeah, if it helps any, it's IIS 5 in Win2k, Tomcat 4.x.
posted by kuperman at 7:59 AM on September 30, 2005


When you say it does not work, what do you mean? Is it giving a 404, Directory Listing Denied or something else?

I would look in your IIS and JK logs (I presume you're using the JK connector) to see what requests are being made when you request http://site/app. You may have to change the verbosity of your JK logs.
posted by toomuch at 8:26 AM on September 30, 2005


Response by poster: toomuch, I think it 404'd me, I'm going to doublecheck right quick.
posted by kuperman at 8:27 AM on September 30, 2005


Can you confirm you are using JK? If so, what does your workers.properties file look like? You need to have a Url mapping that maps to the directory and not *.jsp.
posted by toomuch at 8:35 AM on September 30, 2005


Response by poster: Yep, as is, 404'd. When I manually specify the index.jsp file, regular ol' 200 come across, all gravy.

I'm using what I believe to be jk or jk2 (I guess, actually I was not the person who configured/installed it, I just am trying to clean up/complete it) - it's what's ever is referenced here. The logs I have in C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\log don't give me a whole lot of info as to why it isn't working.

On preview, the guy who installed this put in the workers.properties.minimal file.
posted by kuperman at 8:36 AM on September 30, 2005


it would be helpful to look at your worker config files. you can email me at my address in my profile if you want. you need to look in the registry to see which properties file is being used. HKLM/Software/Apache Software Foundation/Jakarta Isapi Redirector/2.0

just a heads up jk2 is no longer being updated and you may want to upgrade to JK.
posted by toomuch at 10:27 AM on September 30, 2005


« Older Credit in foreign countries   |   Searching for the perfect pair of men's boots... Newer »
This thread is closed to new comments.