2012-11-19 32 views
3

我可能真的在這一個關閉,但任何人都可以看看這個配置,並告訴我爲什麼我看到這個問題時,tomcat 7開始?我使用騾3.3,但你可以從下面的標題看到。無法找到命名空間NamespaceHandler http://www.mulesoft.org/schema/mule/jersey

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

這是我的騾子配置文件頭:

<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"> 

這是使用的球衣標籤內容:

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

You miss JAR f ILE在類路徑來處理你的'jersey' XML命名空間中的配置文件 – hoaz

+0

我已經加入\t \t \t \t \t com.sun.jersey \t \t \t 球衣的客戶端 \t \t每一個的pom.xml遠程相關的網絡服務,我仍然得到了問題 – Stainedart

+0

看到我的答案 – hoaz

回答

4

如果您使用的是Maven,添加以下依賴到您的POM:

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

我有錯誤的澤西依賴謝謝你上面的tomcat片段剛剛開始正確的服務失敗,但那是我的公關oblem:p謝謝! – Stainedart

相關問題