weblogic12c部署问题
程序员文章站
2022-06-28 18:24:00
weblogic12c上部署应用报错,在weblogic10g上没有问题。报错信息如下: weblogic.management.DeploymentException: CDI deployment failure:WELD-001201: Error loading beans.xml file ......
weblogic12c上部署应用报错,在weblogic10g上没有问题。报错信息如下:
weblogic.management.DeploymentException: CDI deployment failure:WELD-001201: Error loading beans.xml file:/softtool/apps/tpifanhua6026/mw/WEB-INF/beans.xml
at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:95)
at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:43)
at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:39)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: www.springframework.org
at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:378)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:511)
Truncated. see log file for complete stacktrace
>
webliogic12c部署程序启动时报该错。解决办法:看该应用程序下是否有beans.xml配置文件,如有,需修改该文件的文件名。随便修改为一个什么名字,如spring-beans.xml。
原因:暂不清楚(好像是weblogic12c有默认文件beans.xml)。