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

configuration help.

Rob Deer
Greenhorn

Joined: Jan 10, 2005
Posts: 17
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

Joined: Sep 23, 2004
Posts: 245
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:



<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: configuration help.