Charles,
  THANK YOU!! This put me on the right track to the answer. I did see something 
very similar to what you were talking about in a document somewhere, but it 
wasn't especially clear. About 10 more minutes of tinkering with it and it 
worked! One thing that threw me off was the directories, which didn't exist 
yet. I created /conf/Catalina/localhost (localhost on a hunch) and put ROOT.xml 
in it:
   
  <Context path="/" docBase="c:/the_app/WebRoot/">
</Context>
   
  Then deleted the old ROOT dir under webapps that was copied in before, and 
restarted. Miraculously, it came right up without copying anything. This is 
exactly what I was looking for. Thanks!
  

"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:
  > From: Alice Young [mailto:[EMAIL PROTECTED] 
> Subject: Re: change in local directory deployment behavior 
> between 5.5 and 6
>
> I've looked into it some more and it seems like I need to
> create a custom context.xml. However I can't seem to find
> much information on how to do this at all, in the tomcat
> docs or in the tomcat-related books that I have.

You certainly had one before, although it may have been created
automatically during the deployment. Whatever script you're using
should also have created it for Tomcat 6.

Most books have not caught up to Tomcat 5.5, let alone 6. In any event,
the doc is here:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

Basically, you need to create a file named ROOT.xml in
conf/Catalina/[host]; within that file you need to have a 
element with a docBase attribute pointing to the actual location of your
webapp (c:/myapp/WebRoot, apparently). You may need other attributes as
well; that depends on the webapp.

You must also delete Tomcat's regular webapps/ROOT directory and
everything in it.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Reply via email to