my dog learned polymorphism
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

setting context in tomcat4.0.1

mohan kannan

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"
and created new directory structure in tomcat as
myhost dir contains following dir
Web-inf contains classes dir

when i access files by tyoing in browser address bar as
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
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

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

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
I agree. Here's the link:
subject: setting context in tomcat4.0.1
It's not a secret anymore!