File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Changing Document Base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Changing Document Base" Watch "Changing Document Base" New topic

Changing Document Base

Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149

I'd like to change the Document Base Property of a webapp.

From what i found up to now, the configuration is supposed to be in

But after i copied the webapp into webapps it worked already - without configuration


the Document Base is ReadOnly in the admin app and i'm stranded there.

Could someone please give me a pointer to either the automagic process that made my webapp run or a tip how to fiddle the document base without having web.xml entries.

Thank you,

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The document base is set in either TOMCAT_HOME/conf/server.xml or (as is the new standard) in the xml fragment for that app, found in TOMCAT_HOME/conf/Catalina/localhost/<your_app_name>.xml

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
Thank you Ben,

but now: there isn't a file named like my application in the .../localhost directory.

What puzzles me is, that the application is running fine if i put it in
$HOME/webapps, that i can configure it in the admin app, but i can't see where these settings get stored. I even did a full grep on the whole tomcat directory for my appname - nothing.

I simply want to put the webapp tree for the application into the userdirectory of this customer without giving him access to the rest of tomcat.

Are there any common practises on this subject? Problem looks rather trivial to me, i hope the solution is trivial as well.

All i can find by googling are examples with drive letters in the paths, so i assume thats nothing i could use in a production environment.

Thank you,

I agree. Here's the link:
subject: Changing Document Base
It's not a secret anymore!