Bug 18768 - WAR task (or ZIP base ?) generates amazing archives
Summary: WAR task (or ZIP base ?) generates amazing archives
Status: RESOLVED DUPLICATE of bug 17648
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5.2
Hardware: PC other
: P3 major (vote)
Target Milestone: 1.5.3
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-07 15:38 UTC by Philippe Maseres
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Maseres 2003-04-07 15:38:49 UTC
I've been using the V 1.5.1 alone and within Eclipse V2.0 without any problem.
Since, i upgraded my Eclipse to V2.1 which includes a updated 1.5.2 version of 
ANT.
My old well working build files dont work anymore !!!
The generated WAR files seems ok when i list their content with jar, but with 
WinZip, all the WEB-INF directory and subdirectories are hidden. The global war 
file size is ok according the files added in the archive.
When i activate the -v option, i can see the last operation the task does is 
adding the web.xml file, but, just before it does it, it adds the WEB-INF 
directory. The old 1.5.1 didn't add it (i verified it with the same run with -v 
option) : I bet this is the problem. Here the trace from eclipse console :

web-axis-archive:
         [war] Building war: C:\DOCUME~1\MASERE~1\LOCALS~1
\Temp\Jonas2.tmp\SmsWebAxis.war
         [war] adding directory META-INF/
         [war] adding entry META-INF/MANIFEST.MF
         [war] adding entry WEB-INF/jonas-web.xml
         [war] adding entry WEB-INF/server-config.wsdd
         [war] adding directory WEB-INF/classes/my/
         [war] adding directory WEB-INF/classes/my/jonas/
         [war] adding directory WEB-INF/classes/my/jonas/sms/
         [war] adding directory WEB-INF/classes/my/jonas/sms/axis/
         [war] adding directory WEB-INF/classes/my/jonas/sms/axis/client/
         [war] adding directory WEB-INF/classes/my/jonas/sms/axis/server/
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/IllegalParameterValueShortMessageSenderExce
ption.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/ShortMessageSenderException.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/SMSPortType.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/SMSService.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/SMSServiceLocator.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/SMSWebServiceSoapBindingStub.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/client/SystemShortMessageSenderException.class
         [war] adding entry WEB-INF/classes/my/jonas/sms/axis/LogFilter.class
         [war] adding entry WEB-INF/classes/my/jonas/sms/axis/LogHandler.class
         [war] adding entry WEB-INF/classes/my/jonas/sms/axis/server/deploy.wsdd
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/IllegalParameterValueShortMessageSenderExce
ption.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/ShortMessageSenderException.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SMSPortType.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SMSService.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SMSServiceLocator.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SMSWebServiceSoapBindingImpl.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SMSWebServiceSoapBindingSkeleton.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SMSWebServiceSoapBindingStub.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/SystemShortMessageSenderException.class
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/server/undeploy.wsdd
         [war] adding entry WEB-
INF/classes/my/jonas/sms/axis/ShortMessageSenderEJBWrapper.class
         [war] adding entry WEB-INF/lib/axis.jar
         [war] adding entry WEB-INF/lib/commons-discovery.jar
         [war] adding entry WEB-INF/lib/commons-logging.jar
         [war] adding entry WEB-INF/lib/jaxrpc.jar
         [war] adding entry WEB-INF/lib/saaj.jar
         [war] adding entry WEB-INF/lib/wsdl4j.jar
         [war] adding entry fingerprint.jsp
         [war] adding entry happyaxis.jsp
         [war] adding entry index.html
         [war] adding entry SOAPMonitorApplet$ServiceFilterPanel.class
         [war] adding entry SOAPMonitorApplet$SOAPMonitorData.class
         [war] adding entry SOAPMonitorApplet$SOAPMonitorFilter.class
         [war] adding entry SOAPMonitorApplet$SOAPMonitorPage.class
         [war] adding entry SOAPMonitorApplet$SOAPMonitorTableModel.class
         [war] adding entry SOAPMonitorApplet$SOAPMonitorTextArea.class
         [war] adding entry SOAPMonitorApplet.class
         [war] adding directory WEB-INF/
         [war] adding entry WEB-INF/web.xml

The actual problem is not using WinZip, but it seems the generated archive 
format also carries out trouble with Jonas/Tomcat when the war file has to be 
deployed.

Any idea ?

Thanks.
Comment 1 Stefan Bodewig 2003-04-07 15:57:51 UTC

*** This bug has been marked as a duplicate of 17648 ***
Comment 2 Philippe Maseres 2003-04-07 16:12:26 UTC
OK ! I had a look to the duplicate 17648, but i don't understand if the bug has 
been fixed in 1.5.3 or not...
Thanks again.
Comment 3 Conor MacNeill 2003-04-07 22:31:14 UTC
Yes, it is fixed - we set the target milestone when a bug is fixed, in dicating
in which release it will be available.
Comment 4 Philippe Maseres 2003-04-08 06:09:48 UTC
Hi.
After i posted my last comment, i tried again replacing the 1.5.2 with the 
1.5.3 beta, using it from Eclipse and standalone. In fact, the war task in this 
version generates the archive such a way it can be browsed now with both WinZip 
and jar. But it still doesn't work during the Jonas/Tomcat classloading 
process. As i have few time to search further more, i mean inspecting how these 
use the war files to extract the classes and lib subdirectories content, i 
can't say why.
Running it with -v flag, it still adds explicitly the WEB-INF directory to the 
archive, and i suppose here is the point the problem comes from. Is this really 
required, since, i think, the simple web.xml adding should be enough ?
Do you mean the future 1.6 version will fixe it, or the 1.5.3 already does it ?
Thanks again.
Comment 5 Stefan Bodewig 2003-04-08 06:20:26 UTC
To know whether the directory entry for WEB-INF is the problem, simply
set the filesonly attribute of the task to true.