薄雾倾城

导航

invalid END header (bad central directory offset) 异常解决方法

今天版本升级时,一个ear包在传到aix下,weblogic后启动出现 

 

invalid END header (bad central directory offset)

 

后来才发下是文件传输中出现了问题,ssh默认使用ASCII ,改成Binary(二进制)就好了(我是改成total Commander上传的)

 

再详细一点,一下附上我的报错信息:

<Apr 25, 2014 10:58:58 AM CST> <Error> <Deployer> <BEA-149605> <Failed to create App/Comp mbeans for AppDeploymentMBean BPWeb. Error - weblogic.management.DeploymentException: invalid END header (bad central directory offset) with : /usr/local/Oracle/Middleware/user_projects/domains/xstest_domain/servers/AdminServer/upload/BPWeb.ear.
weblogic.management.DeploymentException: invalid END header (bad central directory offset) with : /usr/local/Oracle/Middleware/user_projects/domains/xstest_domain/servers/AdminServer/upload/BPWeb.ear
at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
Truncated. see log file for complete stacktrace

Caused By: java.io.IOException: invalid END header (bad central directory offset) with : /usr/local/Oracle/Middleware/user_projects/domains/xstest_domain/servers/AdminServer/upload/BPWeb.ear
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:137)
at java.util.jar.JarFile.<init>(JarFile.java:149)
at java.util.jar.JarFile.<init>(JarFile.java:113)
at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)
Truncated. see log file for complete stacktrace
>
<Apr 25, 2014 10:58:58 AM CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'BPWeb' due to error weblogic.management.DeploymentException: invalid END header (bad central directory offset) with : /usr/local/Oracle/Middleware/user_projects/domains/xstest_domain/servers/AdminServer/upload/BPWeb.ear.
weblogic.management.DeploymentException: invalid END header (bad central directory offset) with : /usr/local/Oracle/Middleware/user_projects/domains/xstest_domain/servers/AdminServer/upload/BPWeb.ear
at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
Truncated. see log file for complete stacktrace

Caused By: java.io.IOException: invalid END header (bad central directory offset) with : /usr/local/Oracle/Middleware/user_projects/domains/xstest_domain/servers/AdminServer/upload/BPWeb.ear
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:137)
at java.util.jar.JarFile.<init>(JarFile.java:149)
at java.util.jar.JarFile.<init>(JarFile.java:113)
at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)
Truncated. see log file for complete stacktrace

posted on 2014-04-25 11:15  若菲  阅读(5043)  评论(0编辑  收藏  举报