Weblogic部署异常
环境:Weblogic10情况:原来好好地,建一个新的Web应用程序部署也好好的,就是我用的那个web应用程序不可以,出以下错误!
看了好多类似的情况,都是英文的,看不太明白。
<2009-4-7 上午10时04分54秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1239069891578' for task '2'. Error is: 'weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\bea\user_projects\domains\registry\autodeploy\registry" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.'
weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\bea\user_projects\domains\registry\autodeploy\registry" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.
at weblogic.application.internal.DeploymentManagerImpl.createDeployment(DeploymentManagerImpl.java:111)
at weblogic.deploy.internal.targetserver.BasicDeployment.createDeployment(BasicDeployment.java:149)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:192)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
Truncated. see log file for complete stacktrace
>
<2009-4-7 上午10时04分54秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application '_appsdir_registry_dir'.>
<2009-4-7 上午10时04分54秒 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\bea\user_projects\domains\registry\autodeploy\registry" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.
at weblogic.application.internal.DeploymentManagerImpl.createDeployment(DeploymentManagerImpl.java:111)
at weblogic.deploy.internal.targetserver.BasicDeployment.createDeployment(BasicDeployment.java:149)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:192)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
Truncated. see log file for complete stacktrace
> --------------------编程问答-------------------- 重启下机器,又有新的问题:
<2009-4-7 上午10时16分48秒 CST> <Error> <Deployer> <BEA-149605> <Failed to create
App/Comp mbeans for AppDeploymentMBean registry. Error -
weblogic.management.DeploymentException: .
weblogic.management.DeploymentException:
at
weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans
(WarDeploymentFactory.java:69)
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:88)
Truncated. see log file for complete stacktrace
java.io.FileNotFoundException:
D:\bea\discovery\conf\porting\weblogic\build\registry.war (系统找不到指定的文件。)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:73)
Truncated. see log file for complete stacktrace
>
<2009-4-7 上午10时16分48秒 CST> <Error> <Deployer> <BEA-149205> <Failed to
initialize the application 'registry' due to error
weblogic.management.DeploymentException: .
weblogic.management.DeploymentException:
at
weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans
(WarDeploymentFactory.java:69)
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:88)
Truncated. see log file for complete stacktrace
java.io.FileNotFoundException:
D:\bea\discovery\conf\porting\weblogic\build\registry.war (系统找不到指定的文件。)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:73)
Truncated. see log file for complete stacktrace
> --------------------编程问答-------------------- 我也没看明白 --------------------编程问答-------------------- (MBeanConverter.java:88)
Truncated. see log file for complete stacktrace
java.io.FileNotFoundException:
D:\bea\discovery\conf\porting\weblogic\build\registry.war (系统找不到指定的文件。)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile. <init>(ZipFile.java:114)
at java.util.zip.ZipFile. <init>(ZipFile.java:131)
at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:73)
Truncated. see log file for complete stacktrace
>
估计是物理文件损坏,清空temp目录,重新部署一下你的应用。 --------------------编程问答-------------------- 是否和你应用程序打包有关,相应的包要有相应的相关文件 --------------------编程问答-------------------- 清理临时文件,检查程序是否有问题,重新布包
补充:企业软件 , 中间件