Java 找不到命名空间的NamespaceHandlerhttp://www.mulesoft.org/schema/mule/jersey
我可能真的对这一点很感兴趣,但是有人能检查一下这个配置并告诉我为什么在Tomcat7启动时我会看到这个问题吗?我使用的是mule 3.3,但您可以从下面的标题中看到Java 找不到命名空间的NamespaceHandlerhttp://www.mulesoft.org/schema/mule/jersey,java,xml,web-services,xsd,mule,Java,Xml,Web Services,Xsd,Mule,我可能真的对这一点很感兴趣,但是有人能检查一下这个配置并告诉我为什么在Tomcat7启动时我会看到这个问题吗?我使用的是mule 3.3,但您可以从下面的标题中看到 Unable to locate NamespaceHandler for namespace [http://www.mulesoft.org/schema/mule/jersey] 这是我的mule配置文件的标题: <mule xmlns="http://www.mulesoft.org/schema/mule/core
Unable to locate NamespaceHandler for namespace [http://www.mulesoft.org/schema/mule/jersey]
这是我的mule配置文件的标题:
<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>
org.mule.modules
mule模块针织物
3.3.0
您在类路径中丢失了JAR文件,该类路径处理配置文件中的jersey
xml名称空间。我已将com.sun.jersey客户端添加到每个与web服务远程相关的pom.xml中,但我仍然遇到了这个问题。我对jersey的依赖性不正确,谢谢您tomcat上面的代码片段刚刚正确启动了服务失败,但这是我的问题:p谢谢!