I'm having problems using the Jetty connectors in Mule.
Within my mule
configuration:
<jetty:connector name="JettyRest" configFile="jetty-rest.xml" doc:name="Jetty" />
<jetty:connector name="JettySoap" configFile="jetty-soap.xml" doc:name="Jetty" />
There is no problem at all when running in Mule Studio (using Mule Server Runtime 3.4.0 CE
). However, after importing the project to and running in Anypoint Studio (using Mule Server Runtime 3.5.0 CE
), I get the following error:
Cannot load class 'org.mortbay.jetty.Server'
Even if I manually include the Jetty JAR from here to the build path, I get this error:
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.
The same issue is present when running with Mule standalone 3.4.0 CE
vs 3.5.0 CE
.
In jetty-rest.xml
:
<Configure id="Server" class="org.mortbay.jetty.Server">
In jetty-soap.xml
:
<Configure id="ServerForSlow" class="org.mortbay.jetty.Server">
What am I missing or doing wrong?