当前位置: 首页 > 知识库问答 >
问题:

我的xml配置有什么问题?

荆煌
2023-03-14
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:p="http://www.springframework.org/schema/p"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:jms="http://www.springframework.org/schema/jms"
   xmlns:amq="http://activemq.apache.org/schema/core"
   xsi:schemaLocation="http://www.springframework.org/schema/beans 
                       http://www.springframework.org/schema/beans/spring-beans.xsd 
                       http://www.springframework.org/schema/context 
                       http://www.springframework.org/schema/context/spring-context.xsd 
                       http://www.springframework.org/schema/jms 
                       http://www.springframework.org/schema/jms/spring-jms.xsd 
                       http://activemq.apache.org/schema/core 
                       http://activemq.apache.org/schema/core/activemq-core.xsd">

当我运行这个应用程序时,它抱怨说:

org.xml.sax.saxParseException:schemaLocation:schemaLocation值=

共有1个答案

呼延凌
2023-03-14

例外情况是缺少在beans标记中给出的最后一个模式URI,“http://activemq.apache.org/schema/core/activemq-core.xsd”。您是否有可能拥有另一个配置副本,其中省略了该URI,或者还没有部署具有该URI的配置?

异常与配置不匹配,所以这就是为什么我要问您给出的配置是否完全准确。

 类似资料:
  • 我使用selenium网格来实现功能测试,我将其与testNG结合起来,以同时运行多个测试。当我运行testNG时,firefox开始执行selenium脚本,但问题是我不能同时拥有超过5个浏览器,我不知道为什么。这是我启动中心和节点的方式。 中心: 启动java-jar%seleniumPath%-端口4444-角色集线器-nodeTimeout 1000 节点: 启动java-jar%sele

  • 首先,我正在尝试将我的学校java Web项目配置为HTTPS,所以我正在尝试制作一个自签名证书并将其导入tomcat。我的tomcat版本是9.0.591,我使用的是java 17。 我基本上遵循了tomcat官方网站上的文档。 我首先创建了一个密钥库,方法是运行这个精确的命令 这是我进入的 然后我简单地将其添加到tomcatserver.xml文件中- 我把这个添加到了网上。xml文件- 现在

  • 提示:Extra content at the end of the document这样的错误

  • 但是,我在spring-boot文档中发现了以下内容。https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-configuration-classes.html 它赞成使用Java配置而不是XML配置。Java配置中的更改需要重新编译。然而,这让我想到为什么文档偏爱Java配置。 Internet上已经发

  • 问题内容: 运行此代码时,我不断收到此错误: 错误:大小写类型的字符不同,并且整数不能匹配 您可能会认为这不会造成问题,因为我正在查询中创建新列。我还想指出的是,如果有帮助,我正在使用旧版本的PostgreSQL。 问题答案:

  • 我的dockerfile和wildfly配置有问题。我使用以下Dockerfile作为基础:https://github.com/mosaic-hgw/wildfly/blob/master/Dockerfile,我根据我的私人项目的需要对其进行了扩展。我想将现有的项目迁移到Docker,但是在部署WAR文件时,我得到了以下我不明白的错误消息。 现在错误是: 10:06:33,316错误[org.