gpt4 book ai didi

java - 无法找到命名空间 http ://www. 的 NamespaceHandler mulesoft.org/schema/mule/jersey

转载 作者:数据小太阳 更新时间:2023-10-29 02:27:06 25 4
gpt4 key购买 nike

我可能真的不喜欢这个,但是任何人都可以查看这个配置并告诉我为什么我在 tomcat 7 启动时看到这个问题吗?我使用的是 mule 3.3,但您可以从下面的标题中看到这一点。

Unable to locate NamespaceHandler for namespace [http://www.mulesoft.org/schema/mule/jersey]

这是我的 mule 配置文件的 header :

<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:jersey="http://www.mulesoft.org/schema/mule/jersey"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.3/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.3/mule-http.xsd
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/3.3/mule-xml.xsd
http://www.mulesoft.org/schema/mule/jersey http://www.mulesoft.org/schema/mule/jersey/3.0/mule-jersey.xsd
http://jersey.apache.org/core http://jersey.apache.org/schemas/core.xsd">

这是使用 Jersey 标签的内容:

<flow name="HelloWorld">
<inbound-endpoint address="http://localhost:8081/helloworld"/>
<jersey:resources>
<component class="com.sample.helloworld.HelloRest"/>
</jersey:resources>
</flow>

最佳答案

如果您使用 maven,请将以下依赖项添加到您的 POM:

<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-jersey</artifactId>
<version>3.3.0</version>
</dependency>

关于java - 无法找到命名空间 http ://www. 的 NamespaceHandler mulesoft.org/schema/mule/jersey,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13463111/

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