GeeCON Prague 2014*
The moose likes Tomcat and the fly likes default index.jsp in IIS6 shows source code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "default index.jsp in IIS6 shows source code" Watch "default index.jsp in IIS6 shows source code" New topic
Author

default index.jsp in IIS6 shows source code

Dinesh Bhandare
Greenhorn

Joined: Aug 06, 2004
Posts: 2
Hello,

i have configured TOMCAT 5.0.24 with IIS6 without ISOLATION mode and its working fine, only one problem facing that if any *.jsp configured as default page in IIS it shows source code i.e. http://domain.com and index.jsp default--- it is showing same code written in the file but doesn't get executed, when i enter http://domain.com/index.jsp then it works with no errors

Advice me

Thanks in Advance

Dinesh
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
How are you mapping .jsp to Tomcat?
I suspect that if you tell IIS that a .jsp is a default page, it does not give Tomcat a chance at it.
Maybe you should make your default page HTML that redirects to the jsp.
Bill
Dinesh Bhandare
Greenhorn

Joined: Aug 06, 2004
Posts: 2
Thanks for prompt reply.

Till now im doing the same but what is the problem with default .jsp. any idea.

Dinesh
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
To amplify what I said before. I suspect that if IIS sees a request URL that includes the .jsp, it is able to route the request to Tomcat. If it sees a request without a page file name (ie http://domain.com ) it does not go through the same lookup mechanism that is able to find Tomcat, but goes directly to the page file specified as a default page.
Bill
 
GeeCON Prague 2014
 
subject: default index.jsp in IIS6 shows source code