Re: Tomcat 5.5 manager deploy context descriptor

2008-12-14 Thread Anni Ahonen-Bishopp
On Sat, Dec 13, 2008 at 1:27 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> > Subject: Re: Tomcat 5.5 manager deploy context descriptor
> >
> > > Is there a way to see, if my context.xml is actually loaded
> > > anywhere?
> >
> > You might want to try loading LambdaProbe
> > (http://www.lambdaprobe.org/).
>
> You can also use JConsole, if you start Tomcat with the
> -Dcom.sun.management.jmxremote option.
>
> Under the MBeans tab, follow this branch: Catalina -> WebModule ->
> //[host]/[contextPath] -> none -> none -> Attributes.  There you will find a
> good bit of information about the webapp, including various 
> parameters and servlet information from web.xml (double-click on the bolded
> array items in the rightmost column to open them up).
>
> There's also a Catalina -> Resource branch that has information about any
>  elements in use.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
> Thank you for the JConsole tip. That was the tool I was looking for.
I'll have a look at my context.

Anni


Tomcat 5.5 manager deploy context descriptor

2008-12-09 Thread Anni Ahonen-Bishopp
Hello all,

I have Tomcat 5.5.27 running on ScientificLinux 5 (RHEL5 clone). I need a
production environment -specific Context Descriptor for my WAR, so I've
tried to use the manager/deploy with ant to deploy context descriptor file
with the war file. The WAR in this case does not have META-INF in it, and
so, I'm assuming its context should come from the context.xml that I
specify.

The context.xml file that I point to does not appear in
$CATALINA_HOME/conf/Catalina/localhost/, as it does if I'd be deploying just
the WAR with META-INF/context.xml. OK, I read somewhere that the context
would be loaded just in memory in this case, and not copied as a file.
However, the Context specific database pool does not work either, which it
does when I just copy the war file with autoDeploy on. I read TC5.5
documents, and there is no mentioning about the actual fate of the
context.xml file specified in the manager/deploy task. What happens to it?

Is there a way to see, if my context.xml is actually loaded anywhere? I
cannot see anything in the logs or manager/deploy response.

How should I be doing this? I would not want to put anything about the
pooled database connection to server.xml. Also, if autoDeploy is off, what
is the 'safe' point to copy the context.xml to myapp/META-INF/, if I decided
to do it in the deployment script? If autoDeploy is on, will that screw
things up in this case?

My configurations:
Host:


Top of context.xml file

   
   
   


Thank you,

Anni