• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can�t get JSP:s as HTML from Tomcat for IIS

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am as many others before trying to get Tomcat execute JSP/Sevlets for IIS using it�s JK2 connector. I have followed the description in Professional Apache Tomcat 5, chapter 13, carefully and the connection seems to work with one exception: The returned response for a call http://localhost/jsp-examples/dates/date.jsp is not served as HTML. Instead am I prompted to "Open with .." or Save the response to disk, as for an binary file requested from a web site.

Have anyone here have had the same problem before or has a clue to what the problem can be? In my view should the problem be that the virtual IIS directory for Tomcat (named /jakarta) is not configured to be allowed to execute executeables, only scripts. But that is not the answer because I have configured the directory to allow scripts and executeables wether it is necessary or not.

I am sure this is just something I have overlooked in the setup and I am sure other have had the same problem before, so I hope someone of you reading this is one of them : )
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you do save the output, is it HTML or just the JSP script?
 
Jonny Andersson
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried that also and it is NOT HTML, if it is AJP13 source or just binary am I not quite sure about, I just cared about that it was not HTML. Then is the question of course why it is not HTML? But as I understand should the isapi_redirector2.dll file take care of that. And I can as I understand not configure it to explicitly talk HTML to IIS (and AJP/1.3 to Tomcat of course) because that is what it should always do! So something is strange here.

Because I actually can request JSP-files from /jsp-examples/* like /jsp-examples/dates/date.jsp, that is they are recognized, do I think everything should be configured correctly. But something in the chain of communication gets weird.

But I am very thankful for all suggetions like this from you because if they are not the direct answer they may at least help me get an idea on the answer myself.
 
Jonny Andersson
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I took another look and at least when I requested the JSP file did I got a binary response. A quick guess would be that I got the comiled JSP page returned. Or may it be the AJP/1.3 response that looks binary? Is it the ISAPI filter that then not translates that to HTML? I don�t know, I am still too new to Tomcat to know that : ) ... and the documentation for IIS on Tomcat is not too good.
reply
    Bookmark Topic Watch Topic
  • New Topic