• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Map URI to worker - Tomcat

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
I child proofed my house but they still get in. Distract them with this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic