Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie needs help - root context not working right

Status
Not open for further replies.

purpledawn

Programmer
Jun 21, 2001
50
US
I am running Tomcat 4.1.27 with Apache 2.0.47, using the jk2 2.0.43 connector and j2sdk 1.4.2 I connected Tomcat to Apache using the instructions at


I can open localhost/examples/servlet/HelloWorldExample

If I move HelloWorldExample.class into the ROOT contexts WEB-INF folder, I can open it using

localhost:8080/servlet/Hello...

but I cannot open it using

localhost/servlet/Hello...

The Tomcat Root Context section in server.xml has been uncommented, but that hasn't helped.

I NEED this to work, but I really don't know how to get this new Tomcat version to do it. What am I missing? Can anyone point me to documentation where this is covered?
 
If you changed your default port from 8080 to 80. then, I'm guessing that you've IIS running @ port 80. go to ctrl panel/admid services/services and stop IIS then try restart you'r tomcat....



Libaax
Hakuna Matata....;)
 
localhost:8080/servlet/Hello hits Tomcat directly, thus works because the invoker servlet handles the "/servlet" context.

But localhost/servlet/Hello attempts to hit Apache on port 80 - but doesn't understand the "/servlet" context. I think you need to tell Apache in the config file that any request for "/servlet" should be handled by Tomcat - I think it is JKMount or something like that ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top