gpt4 book ai didi

java - 部署期间无法使用 weblogic12 中的 spring 模式文档读取 spring beans xml

转载 作者:行者123 更新时间:2023-12-02 05:01:57 27 4
gpt4 key购买 nike

虽然部署应用程序 beans.xml 文件无法使用 xsd 验证架构,但我们在启动服务器时收到错误。

下面是错误日志:

<May 30, 2019 8:21:20 PM IST> <Warning> org.jboss.weld.Bootstrap <cozw7dev21007> <AdminServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1559227880134> <BEA-000000> <WELD-001208 Warning when validating file:/X:/base-domain-12/servers/AdminServer/tmp/_WL_user/gbrs-ws/pk9aag/war/WEB-INF/beans.xml@26 against xsd. schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/jaxrs.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>.>

下面是 spring beans 配置文件定义。

<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
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
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd"
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
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">

感谢您的帮助。

最佳答案

我在尝试通过 Intellij 使用 xsd 时收到了相同的错误。我曾尝试在 Intellij 设置中定义 xsd:“设置 > 语言和框架 > 架构和 DTD”外部架构和 DTD。我在那里定义了它,但位置不正确。

关于java - 部署期间无法使用 weblogic12 中的 spring 模式文档读取 spring beans xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56381757/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com