3

私はこれについて本当にオフになっているかもしれませんが、誰かがこの構成を調べて、Tomcat 7 の起動時にこの問題が発生する理由を教えてもらえますか? 私はミュール 3.3 を使用していますが、以下のヘッダーから確認できます。

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

1 に答える 1

4

Maven を使用する場合は、次の依存関係を POM に追加します。

<dependency>
        <groupId>org.mule.modules</groupId>
        <artifactId>mule-module-jersey</artifactId>
        <version>3.3.0</version>
</dependency>
于 2012-11-19T22:16:57.990 に答える