This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configuration help.

 
Rob Deer
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to put my index.jsp in this directory. /home/www
How should server.xml be setup? I keep getting 404 error or a blank page.

<Host name="localhost" appBase="/home/www"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/www" reloadable="true" />
</Host>

tried a ton of configs. still don't work.
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do your error logs say? I'm guessing that the context couldn't be started for some reason. I usually have something more like:



note that the docBase of the Context is not a full path name. This just means that it inherits from the parent Host element.

Also, remember that you are creating web apps. You will want to have at least a WEB-INF directory with a valid web.xml. A really short web.xml would be something like:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic