• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting context in tomcat4.0.1

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried fully qualifying the path in your docBase attribute?

ie: docBase="c:\tomcat401\webapps\myhost"
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic