aspose file tools*
The moose likes Tomcat and the fly likes setting context in tomcat4.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "setting context in tomcat4.0.1" Watch "setting context in tomcat4.0.1" New topic
Author

setting context in tomcat4.0.1

mohan kannan
Greenhorn

Joined: Dec 02, 2001
Posts: 26
hi all
I have installed tomcat4.0.1 on winp8
i am trying to set up my own context to run own web application
similar to the default "examples" web application
I have included the following lines under <host> entry of conf/server.xml file
<Context path="/myhost" docBase="myhost" debug="0"
reloadable="true">
and created new directory structure in tomcat as
jakarta-tomcat-4.0.1\webapps\myhost
myhost dir contains following dir
Wen-inf
Web-inf contains classes dir

when i access files by tyoing in browser address bar as
http://localhost:8080/myhost/somefile.html
i am not getting the document loaded
Can anyone please provide info on how to set up new context for
running own web application in tomcat4.0.1
thanks
mohan
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Have you tried fully qualifying the path in your docBase attribute?

ie: docBase="c:\tomcat401\webapps\myhost"
Robin Wu
Greenhorn

Joined: Dec 14, 2001
Posts: 2
you can use the manager app to list/start/stop your applications
reference to the Tomcat document, Manager application HOW TO


Robin Wu
mohan kannan
Greenhorn

Joined: Dec 02, 2001
Posts: 26
hi all
Thanks for your reply
I have solved the contex problem and able to run jsp's from the
newly set context
But I have another query on jspbean
pl ref to my posting on jspbean not working
regards
mohan
 
Don't get me started about those stupid light bulbs.
 
subject: setting context in tomcat4.0.1