Caldarale, Charles R wrote:
>> From: Tom Robinson [mailto:[EMAIL PROTECTED] 
>> Subject: Re: can't undeploy webapp with manager
>>
>> I want a separate <Engine>.
> 
> I'm still curious: why?
The <Service> represents my dedicated <Connector>(s) for my <Engine>. My
<Engine> is therefore wholly responsible for receiving and processing all
requests for the <Connector>'s in my <Service> (and not for any other service
connectors). Setting it up this way I know what my connector ports are being
used for. Maybe I'm mistaken on the usage for this specific flexibility in the
tomcat setup. Also, I think I had some problems isolating connector ports on
earlier tomcat versions (3 or 4?). I'm open to comments though, so please
elaborate on the above.

> 
>> There is a need for more than one virtual host.
> 
> Multiple <Host> elements are allowed inside a single <Engine>.
Correct. Earlier, I had two <Host>'s in my Parchment <Service>.

> 
>> The ROOT.xml stays and redeploys the .war from the 
>> docBase. Why doesn't it get removed?
> 
> Is there a permissions problem?  Make sure the Tomcat userid is allowed
> to delete the ROOT.xml file from that directory.
Doh! I had some earlier setup/config problems and did a fresh install of tomcat,
etc. Must have overlooked the permission changes on these directories. Now the
permissions are changed so the group ownership is correctly set to the tomcat
group (copied the ${CATALINA_HOME/conf/Catalina directory settings):

drwxrwxr-x 3 root tomcat 4096 Nov 29 22:28 Parchment
drwxrwxr-x 2 root tomcat 4096 Dec  2 21:47
Parchment/kennetproject.int.intelligentspace.com

Undeploy now stops the application and removes the ROOT.war but not the unpacked
war ROOT from appBase directory or the ROOT.xml from the
${CATALINA_HOME}/conf/[Engine]/[Host] directory.

http://kennetproject/manager/list
OK - Listed applications for virtual host kennetproject.int.intelligentspace.com
/:stopped:0:ROOT
/manager:running:0:/var/lib/tomcat5/server/webapps/manager

A second undeploy immediately following the first removes the ROOT.xml from
${CATALINA_HOME}/conf/[Engine]/[Host] and the unpacked war ROOT directory from
the appBase. I guess this is somewhat of a success but not entirely what I'd 
expect.

http://kennetproject:12380/manager/list
OK - Listed applications for virtual host kennetproject.int.intelligentspace.com
/manager:running:0:/var/lib/tomcat5/server/webapps/manager

Interestingly, I can start/stop the application after the first undeploy. Tomcat
uses the unpacked .war and the existing ROOT.xml.

I appreciate the feed back so thanks again,

Tom

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

Reply via email to