Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting context in tomcat4.0.1

 
mohan kannan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried fully qualifying the path in your docBase attribute?

ie: docBase="c:\tomcat401\webapps\myhost"
 
Robin Wu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use the manager app to list/start/stop your applications
reference to the Tomcat document, Manager application HOW TO
 
mohan kannan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic