一个WEB应用,框架spring+struts2+hibernate3.2
在tomcat下是好的,用myeclipse7.0打成WAR包,在部署到WAS6.1上,即上传应用WAR包时,提示错误:
EAR 文件可能是损坏的或不完整的
java.lang.IllegalArgumentException
后台报错为:
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:315)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:254)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:89)
at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.NestedArchiveLoadStrategyImpl.getFiles(NestedArchiveLoadStrategyImpl.java:131)
at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.collectFiles(LoadStrategyImpl.java:281)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ContainerImpl.getFiles(ContainerImpl.java:238)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.eGet(ArchiveImpl.java:215)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:483)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopySessionUtility.copyReference(ArchiveCopySessionUtility.java:97)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.copyCurrentReferences(EtoolsCopyUtility.java:237)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.primCopy(EtoolsCopyUtility.java:564)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopySessionUtility.primCopy(ArchiveCopySessionUtility.java:47)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.containmentCopy(EtoolsCopyUtility.java:107)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.copyManyReference(EtoolsCopyUtility.java:300)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopySessionUtility.copyReference(ArchiveCopySessionUtility.java:99)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.copyCurrentReferences(EtoolsCopyUtility.java:237)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.primCopy(EtoolsCopyUtility.java:564)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopySessionUtility.primCopy(ArchiveCopySessionUtility.java:47)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.containmentCopy(EtoolsCopyUtility.java:107)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopyUtility.copyRefObjects(EtoolsCopyUtility.java:338)
at org.eclipse.wst.common.internal.emf.utilities.EtoolsCopySession.copy(EtoolsCopySession.java:52)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopyUtility.copy(ArchiveCopyUtility.java:135)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopyUtility.copy(ArchiveCopyUtility.java:90)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveCopyUtility.copy(ArchiveCopyUtility.java:121)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.copy(CommonarchiveFactoryImpl.java:211)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.primAddCopyRef(EARFileImpl.java:149)
at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.addCopyRef(EARFileImpl.java:166)
at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:494)
at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:317)
at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:284)
at com.ibm.ws.console.appmanagement.action.UploadAction.formUpload(UploadAction.java:490)
at com.ibm.ws.console.appmanagement.action.UploadAction.execute(UploadAction.java:141)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)