• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing Document Base

 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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
web.xml.

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

BUUUUT

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,

J.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

J.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic