Greetings,
I am new to Tomcat and am likely asking a dumb question however, If I don't
ask I may
never determine the answer.
I'm using Tomcat 3.2 beta 6 and no Apache, IIS or Netscape so I'm using the
'builtin' 'web' serving contained in Tomcat
I've been investigating the addition of webApps using the contextAdmin
interface.
I'm particularly interested in creating a webApp that is in a totally
different location from the
tomcat directory tree.
Using contextAdmin, I manage to create what appears to be a correct context,
with a nice docBase, path etc.
I use the listCOntexts option and I see my nice, new context listed with the
rest. However, this entry
does not survive tomcat shutdown so I have a question regarding the use of
adding contexts using the admin interface:
Q1. How can a context added in this manner be persisted (to the
server.xml?) - remember I don't want to use the
WebApps folder under TOMCAT_HOME. I find that anything I add to the
running tomcat instance doesn't survive a shutdown/restart -unless it
lives under the WebApps folder.
Q2. Does tomcat ever overwrite the server.xml configuration file? (If not
then I can write a tool to write correctly formatted entries to server.xml)
If so how do I prevent this from happening.
I apologize to one and all if this question has been asked before but I'd
appreciate some guidance and I couldn't find anything similar in the
archives.
thanks,
Thom
|