我试图在Web逻辑12c中部署springboot应用程序(捆绑为war)。 以下是配置: RHEL软呢帽7.5 Java 8
当我尝试将其部署在上述计算机上时,它因错误而失败
<Warning> <org.jboss.weld.Bootstrap> <BEA-000000> <WELD-001210: Warning
when validating file:/abc/.../war/WEB-INF/beans.xml@17 against xsd.
schema_reference.4: Failed to read schema document
'http://www.springframework.org/schema/beans/spring-beans.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the root
element of the document is not <xsd:schema>
战争是使用 java7 构建的。
但是在Windows 10平台上的weblogic12c / java8上还是一样。
beans.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd">
<bean id="someClass" class="com.somepackage" />
<bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
<jaxrs:server id="someService" address="/ser/v1.0">
<jaxrs:serviceBeans>
<ref bean="someControllerClass" />
</jaxrs:serviceBeans>
<jaxrs:providers>
<ref bean='jsonProvider' />
</jaxrs:providers>
</jaxrs:server>
我尝试将其添加到顶部
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE beans>
但是那也不起作用。
答案 0 :(得分:0)
按照@M。 Deinum评论,我将beans.xml文件更改为其他名称,然后开始工作。