【发布时间】:2014-07-16 13:28:56
【问题描述】:
我在 Mule 中使用 Jetty 连接器时遇到问题。
在我的mule 配置中:
<jetty:connector name="JettyRest" configFile="jetty-rest.xml" doc:name="Jetty" />
<jetty:connector name="JettySoap" configFile="jetty-soap.xml" doc:name="Jetty" />
在Mule Studio中运行完全没有问题(使用Mule Server Runtime 3.4.0 CE)。但是,在将项目导入 Anypoint Studio 并在其中运行后(使用 Mule Server Runtime 3.5.0 CE),我收到以下错误:
Cannot load class 'org.mortbay.jetty.Server'
即使我手动将Jetty JAR from here 包含到构建路径中,我也会收到此错误:
Object of class 'org.eclipse.jetty.server.Server' is not of type 'org.mortbay.jetty.Server'. Object Class and type Class are from different loaders.
使用 Mule 独立运行 3.4.0 CE 与 3.5.0 CE 时存在相同的问题。
在jetty-rest.xml:
<Configure id="Server" class="org.mortbay.jetty.Server">
在jetty-soap.xml:
<Configure id="ServerForSlow" class="org.mortbay.jetty.Server">
我错过了什么或做错了什么?
【问题讨论】:
-
您使用的是 Jetty 传输还是第三方连接器?有关说明的链接无效。
-
@AleSequeira 这是 Mule Jetty 连接器。我链接的说明页面似乎在过去 20 分钟内被删除了。
-
为什么不使用 Jetty Transport,它是 Mule 支持的交通工具?
-
@AleSequeira 我指的是码头运输。如果我不包含 Jetty JAR,我会收到错误
Cannot load class 'org.mortbay.jetty.Server'。这在 Mule 的早期版本中根本不会发生。
标签: jetty mule mule-studio