Well, I'm probably not using this the best way, but I
just have my ant prod_dist wrap up the project as
ROOT.war and drop it in webapps/

I have webapps nfs-shared, and I have tomcat running
as a member of group "web", so when I run ant with
prod_dist target, that deletes the
/mount/webapps/ROOT, then copies ROOT.war ->
/mount/webapps/ROOT.  Then I remove/install from
manager.

There may be documentation that describes the best
practices, but I haven't seen it.

Michael

--- Xinji Gu <[EMAIL PROTECTED]> wrote:
> For double check, I just put an JSP file that doing
> simple
> math (1+1) under /webapps, and query it, got 2 :)
> and then, change the JSP to do (1+2), and without
> doing any
> configuration/deployment, I reinput the query in the
> same browser:
> I got 3. So, it compiled automatically. The web.xml
> file has nothing in it:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE web-app (View Source for full doctype...)>
>   <web-app />
> 
> BTW, I have been confused by Tomcat manager: where
> does it
> put the deployment information? I mean the app.war
> could be anywhere
> in 4.1. How could Tomcat figure out the location of
> the war file when
> a request comes in?
> 
> thanks a lot
> 
> Jim Gu
> 
> ----- Original Message -----
> From: "Michael Teter" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Friday, May 10, 2002 5:50 PM
> Subject: Re: jsp's do not compile
> 
> 
> > My understanding is that Tomcat does usually does
> not,
> > and never really has :) reloaded things when they
> > change, regardless of you specifying that a webapp
> is
> > "reloadable".
> >
> > I use the manager app, and it works great.  With
> my
> > ant build.xml set up right, I can build/distribute
> my
> > webapp in an instant, then click on two bookmarks
> on
> > my browser (to tell the manager to remove my
> webapp,
> > and then install my webapp.)
> >
> > Good luck.
> > Michael
> >
> > --- Xinji Gu <[EMAIL PROTECTED]> wrote:
> > > maybe you should close your browser and start it
> > > again?
> > >
> > > Jim
> > >
> > > ----- Original Message -----
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, May 10, 2002 5:23 PM
> > > Subject: jsp's do not compile
> > >
> > >
> > > > I cannot get tomcat to recompile jsp's after I
> > > change them. I have tried
> > > > the 4.1 alpha nightly build as well as 4.0.3.
> I
> > > know this is supposed to
> > > > work...
> > > >
> > > > Is there some special parameter I should be
> > > configuring or something? I've
> > > > searched the docs.
> > > >
> > > > Troy
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > >
> <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Shopping - Mother's Day is May 12th!
> > http://shopping.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to