亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

SpringBoot 應用程序在 WLS12c/Java8/RHEL fedora7.5 中失敗

SpringBoot 應用程序在 WLS12c/Java8/RHEL fedora7.5 中失敗

MMTTMM 2023-06-21 13:30:23
我正在嘗試在 Web 邏輯 12c 中部署 springboot 應用程序(捆綁為 war)。以下是配置: RHEL fedora 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>War 是使用java7構建的。但同樣的戰爭也適用于 Windows 10 平臺上的 weblogic12c/java8beans.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>但這也不起作用。
查看完整描述

1 回答

?
慕容森

TA貢獻1853條經驗 獲得超18個贊

將 beans.xml 文件更改為其他名稱,它開始工作了。



查看完整回答
反對 回復 2023-06-21
  • 1 回答
  • 0 關注
  • 132 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號