You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Walter, Patrick A" <Pa...@usa-spaceops.com> on 2007/09/20 19:56:19 UTC
WAR File Not Expanded
Not sure if this request was sent.... (if so, sorry for duplication)...
> When I place an war file in CATALINA_HOME\webapps directory, SOME TIMES the war file gets expanded into its own directory other times it does not.
> For example:
> MyApp.war is placed in C:\apache-tomcat-5.5.17\webapps\MyApp.war.
> When tomcat is started (startup.bat) it expands it to:
> C:\apache-tomcat-5.5.17\webapps\MyApp\META-INF and C:\apache-tomcat-5.5.17\webapps\MyApp\WEB-INF with class and lib directories and web.xml.
>
> For other applications, starting tomcat it does not get expanded.
>
> What causes this and how can I make sure it always expands the war file??
>
> THANKS
> Patrick Walter
>
>
>
RE: WAR File Not Expanded
Posted by "Walter, Patrick A" <Pa...@usa-spaceops.com>.
I thought about that but it seems that Tomcat would do that for you.
thanks
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Friday, September 21, 2007 7:54 AM
To: Tomcat Users List
Subject: RE: WAR File Not Expanded
> From: Walter, Patrick A [mailto:Patrick.A.Walter@usa-spaceops.com]
> Subject: RE: WAR File Not Expanded
>
> The war file will expand when there is no existing
> directory for that application. But when there is an
> existing directory, the war file does not get expanded.
So delete the directory as part of your redeployment procedure. You may
also want to clean out the webapp's subdirectory under the work
directory to get rid of old versions of compiled JSPs. I believe the
standard manager webapp and the ant scripts already do this (but I
haven't checked lately).
- 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
---------------------------------------------------------------------
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
RE: WAR File Not Expanded
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Walter, Patrick A [mailto:Patrick.A.Walter@usa-spaceops.com]
> Subject: RE: WAR File Not Expanded
>
> The war file will expand when there is no existing
> directory for that application. But when there is an
> existing directory, the war file does not get expanded.
So delete the directory as part of your redeployment procedure. You may
also want to clean out the webapp's subdirectory under the work
directory to get rid of old versions of compiled JSPs. I believe the
standard manager webapp and the ant scripts already do this (but I
haven't checked lately).
- 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
RE: WAR File Not Expanded
Posted by "Walter, Patrick A" <Pa...@usa-spaceops.com>.
Sorry I ment that...
"The war file will expand when there is no existing directory for that application."
THANKS FOR YOUR HELP!!
Patrick
-----Original Message-----
From: Walter, Patrick A
Sent: Friday, September 21, 2007 6:54 AM
To: Tomcat Users List
Subject: RE: WAR File Not Expanded
The issue was the context.xml file. It had unpackWAR="false". But now I have another question... The war file will not expand when there is no existing
directory for that application. But when there is an existing directory, the war file does not get expanded.
I use reloadable="true" crossContext="true" and unpackWAR="true" in the context.xml file. I could not find any other attribute in the documentation to help.
THANKS FOR YOUR HELP!!
Patrick
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Thursday, September 20, 2007 1:04 PM
To: Tomcat Users List
Subject: RE: WAR File Not Expanded
> From: Walter, Patrick A [mailto:Patrick.A.Walter@usa-spaceops.com]
> Subject: WAR File Not Expanded
>
> For other applications, starting tomcat it does not get expanded.
Not quite sure how to parse the above "sentence".
> What causes this and how can I make sure it always expands
> the war file??
Have you looked at the Tomcat doc?
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Specifically, the unpackWAR attribute would seem to be of interest.
This can be set in conjunction with the override attribute to force all
.war files to be expanded.
- 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
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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
RE: WAR File Not Expanded
Posted by "Walter, Patrick A" <Pa...@usa-spaceops.com>.
The issue was the context.xml file. It had unpackWAR="false". But now I have another question... The war file will not expand when there is no existing
directory for that application. But when there is an existing directory, the war file does not get expanded.
I use reloadable="true" crossContext="true" and unpackWAR="true" in the context.xml file. I could not find any other attribute in the documentation to help.
THANKS FOR YOUR HELP!!
Patrick
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Thursday, September 20, 2007 1:04 PM
To: Tomcat Users List
Subject: RE: WAR File Not Expanded
> From: Walter, Patrick A [mailto:Patrick.A.Walter@usa-spaceops.com]
> Subject: WAR File Not Expanded
>
> For other applications, starting tomcat it does not get expanded.
Not quite sure how to parse the above "sentence".
> What causes this and how can I make sure it always expands
> the war file??
Have you looked at the Tomcat doc?
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Specifically, the unpackWAR attribute would seem to be of interest.
This can be set in conjunction with the override attribute to force all
.war files to be expanded.
- 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
---------------------------------------------------------------------
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
RE: WAR File Not Expanded
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Walter, Patrick A [mailto:Patrick.A.Walter@usa-spaceops.com]
> Subject: WAR File Not Expanded
>
> For other applications, starting tomcat it does not get expanded.
Not quite sure how to parse the above "sentence".
> What causes this and how can I make sure it always expands
> the war file??
Have you looked at the Tomcat doc?
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Specifically, the unpackWAR attribute would seem to be of interest.
This can be set in conjunction with the override attribute to force all
.war files to be expanded.
- 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