Spring Boot 应用程序在 [=10th=] fedora 7.5 中失败,无法读取架构文档 http://www.springframework.org/schema/beans/spring-beans.xsd
SpringBoot app failng in WLS12c/Java8/RHEL fedora7.5 with Failed to read schema document http://www.springframework.org/schema/beans/spring-beans.xsd
我正在尝试在 Web 逻辑 12c 中部署 springboot 应用程序(捆绑为 war)。
下面是配置:
RHEL 软呢帽 7.5
Java8
当我试图在上面的机器上部署它时,它失败并出现错误
<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>
War 是使用 java7.
构建的
但同样的 war 适用于 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>
但这也没有用。
根据@M。 Deinum 评论,我将 beans.xml 文件更改为其他名称并开始工作。
我正在尝试在 Web 逻辑 12c 中部署 springboot 应用程序(捆绑为 war)。 下面是配置: RHEL 软呢帽 7.5 Java8
当我试图在上面的机器上部署它时,它失败并出现错误
<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>
War 是使用 java7.
构建的但同样的 war 适用于 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>
但这也没有用。
根据@M。 Deinum 评论,我将 beans.xml 文件更改为其他名称并开始工作。