All: I have (finally!) managed to set up PWS to cooperate with Tomcat (3.2.1) and have no problems running example servlets. However, when I try to run servlets from my working directory under /tomcat/webapps/workingdirectory, I get a page not found error. (HelloWorld servlet was tested to be working fine with a standalone Tomcat server). I looked at the isapi.log and relevant messages from the log file are included here. [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /MyWorkDir/HelloWorld [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/MyWorkDir/HelloWorld] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/MyWorkDir/HelloWorld] is points to the web-inf directory workers.properties has appropriate tomcat & java home directories. uriworkermap.properties has appropriate servlet context mount entries for MyWorkDir. Has anyone faced a similar problem OR have any suggestions to offer? Thanks.
Viji Bharat
Ranch Hand
Joined: Sep 18, 2000
Posts: 101
posted
0
All: I have some more observations with regards to the "map uri to worker" problem. I found that the uriworkermap.properties-auto ("Auto generated file") has the /MyWorkDir/* mapping commented out! This is probably the reason I get a "404 - Not found" error ??? when I try to access /MyWorkDir/HelloWorld servlet. The uriworker.properties-auto file however has the /MyWorkDir/servlet/*, /MyWorkDir/*.jsp mapped to ajp12 worker. My questions: 1. How is this uriworkermap.properties-auto file generated? 2. If during this auto file generation, the URI to worker mapping parameters are taken from uriworkermap.properties, why is it commenting out the /MyWorkDir/* mapping? It is set in the uriworkermap.properties file. 3. Why is it still including /MyWorkDir/servlet/* and /MyWorkDir/*.jsp mapping which I have commented out in workermap.properties file? Which means, is it not taking the parameters from uriworkermap.properties file to auto generate the uriworkermap.properties-auto file? I am stuck with this problem and any suggestions will be greatly appreciated. Thanks.
chandu raja
Greenhorn
Joined: Jan 11, 2001
Posts: 18
posted
0
I dont know exactly where your servlet class files are...you said that are in webapps directory...instead your class files should be in webapps/Root/Web-inf/classes directory....hope this helps... good luck
Viji Bharat
Ranch Hand
Joined: Sep 18, 2000
Posts: 101
posted
0
My servlet class files are in \tomcat\webapps\MyWorkDir\web-inf\classes directory. Correct me if I am wrong but it is my understanding that you can have your own directory created under webapps and have the web-inf\classes structure under your working directory, declare appropriate contexts, mappings and you should be able to run your servlets. With the same directory structure, \tomcat\webapps\MyWorkDir\web-inf\classes, I was able to run the servlets using http://localhost:8080/....../<<servlet name>>. However, I have difficulties when I am trying to integrate Tomcat with PWS. Any help is appreciated.
ray bond
Ranch Hand
Joined: Oct 11, 2000
Posts: 111
posted
0
would you please explain how you managed to set up PWS to cooperate with Tomcat , same process is true for iis.
Viji Bharat
Ranch Hand
Joined: Sep 18, 2000
Posts: 101
posted
0
Ray: I am assuming you have the tomcat-iis-howto.html document in the tomcat\doc directory. I just followed the instructions there and it was easy to integrate Tomcat and PWS. If you have any difficulties with any of the steps there, let me know. I will try to help you as much as I can. Viji