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.
*** This bug has been marked as a duplicate of 17648 ***
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.
Yes, it is fixed - we set the target milestone when a bug is fixed, in dicating in which release it will be available.
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.
To know whether the directory entry for WEB-INF is the problem, simply set the filesonly attribute of the task to true.