tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alice Young <aliceyoun...@yahoo.com>
Subject RE: change in local directory deployment behavior between 5.5 and 6
Date Sat, 21 Jul 2007 23:59:02 GMT
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" <Chuck.Caldarale@unisys.com> wrote:
  > From: Alice Young [mailto:aliceyoung44@yahoo.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message