JSP pages on IIS

I am running IIS 5.1 On Windows XP Pro SP1 and Tomcat 4.1.18. I have IIS giving jsp pages to Tomcat through isapi_redirector.dll and all setup that way. Context paths are setup up for wwwroot and any other dir's i need. Problem is when I try to view a JSP page it works the first time a JSP page is called from IIS then not after that. So when i restart IIS the first JSP request is processed properly and JSP code complied and outputs html but anything after that is just ignored. JSP code is visible in source code. Please helP!
mac1416Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kennethxuCommented:
hope this document helps you to configure it properly:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
objectsCommented:
Check your logs, and post details of how the 1st and 2nd reqests are being handled.
0
mac1416Author Commented:
ok i restarted IIS and went to test page and loaded fine then went to other dir with test page(refreshing didnt log it) and here is what log says happened: -

#Fields: time c-ip cs-method cs-uri-stem sc-status
02:40:48 203.45.170.3 GET /jakarta/isapi_redirector.dll 200
02:40:51 203.45.170.3 GET /test.jsp 200
02:41:10 203.45.170.3 GET /JSP/test.jsp 304

Any ideas?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

kennethxuCommented:
the url becomes /JSP/test.jsp in the 2nd request, can you check the url on you browser?
0
kennethxuCommented:
how did you make the 2nd request, from a link or you type it into browser address bar?

if it is from a link, check the link.
0
mac1416Author Commented:
all from typing into address bar. no linking. the url only changed becuase refreshing the page didnt record into log. basicly once IIS has started or been restarted the very first JSP page called works but any after that just display the html in browser and jsp code is visible in source code. what does 304 mean? i've never seen before in log for pages but is there for images and various other things.
0
mac1416Author Commented:
all from typing into address bar. no linking. the url only changed becuase refreshing the page didnt record into log. basicly once IIS has started or been restarted the very first JSP page called works but any after that just display the html in browser and jsp code is visible in source code. what does 304 mean? i've never seen before in log for pages but is there for images and various other things.
0
objectsCommented:
> the url only changed becuase refreshing the page didnt record into log.

What's in the log if you go back to that page.
Or restart and go to the pages in reverse order?

Along with the log can you post the urls u enter in browser.

> what does 304 mean?

means page hasn't changed.
0
mac1416Author Commented:
so if 304 means page hasnt changed how come when i refresh page test.jsp (which is just hello world type app btw) the content generated by the jsp code disappears and the actual code appears in source? basically only 1 jsp page is processed per server session and nothing else until server or IIS is restarted. i've checked all the registry settings for the isapi_redirector.dll and server.xml and workerr/uri.. properties files and everything seems to be set correctly.
0
objectsCommented:
> the content generated by the jsp code disappears and the
> actual code appears in source?

hard to tell from the details you've supplied.
is strange though.
0
mac1416Author Commented:
http://www.behemoth.gotdns.com/test.jsp . that's page trying to test with. you'll see in source that some content should be generated but nothing is. Log file just show the following: -

04:14:28 203.45.170.3 GET /jakarta/isapi_redirector.dll 200
04:14:31 203.45.170.3 GET /test.jsp 200
04:14:56 203.45.170.3 GET /hello.jsp 200

on second request or any request for jsp page after that just shows the code and not the output.
0
objectsCommented:
Whats in the log for the redirector?
0
mac1416Author Commented:
[Wed Mar 05 00:47:03 2003]  [jk_isapi_plugin.c (693)]: HttpFilterProc [/scripts/..À/../winnt/system32/cmd.exe] contains forbidden escape sequences.
[Wed Mar 05 05:28:49 2003]  [jk_isapi_plugin.c (693)]: HttpFilterProc [/scripts/..À/../winnt/system32/cmd.exe] contains forbidden escape sequences.
[Wed Mar 05 14:00:17 2003]  [jk_isapi_plugin.c (693)]: HttpFilterProc [/scripts/..À/../winnt/system32/cmd.exe] contains forbidden escape sequences.
[Wed Mar 05 17:57:27 2003]  [jk_isapi_plugin.c (693)]: HttpFilterProc [/scripts/..À/../winnt/system32/cmd.exe] contains forbidden escape sequences.

thats iis_redirector.log file contents.
0
mac1416Author Commented:
i've just checked the stderr.log file as well. here is what is has in it.

Created catalinaLoader in: C:\Tomcat 4.1\server\lib
Mar 7, 2003 11:25:38 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 7, 2003 11:25:39 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 7, 2003 11:25:39 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 7, 2003 11:25:40 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Mar 7, 2003 11:25:43 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Mar 7, 2003 11:25:43 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 7, 2003 11:25:43 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/94  config=C:\Tomcat 4.1\conf\jk2.properties
Mar 7, 2003 11:27:12 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Mar 7, 2003 11:28:37 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Mar 7, 2003 12:39:20 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Mar 7, 2003 12:40:48 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Mar 7, 2003 2:14:28 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
0
objectsCommented:
also with the web log which entries correspond to which requests.

eg. what is the contents of the log after you make the 1st request, and then what is contents after 2nd request.
0
girionisCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Split points between objects and kennethxu

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

girionis
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.