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