Hi. I'm running a restlet 2.0.5 app with SpringServerServlet in web.xml on a
jetty 7.2.2 instance,
this one http://download.eclipse.org/jetty/7.2.2.v20101205/dist/

This is the error:

java.lang.LinkageError: loader constraint violation: when resolving
overridden method
"org.restlet.ext.spring.SpringServerServlet.createApplication(Lorg/restlet/Context;)Lorg/restlet/Application;"
the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) of
the current class, org/restlet/ext/spring/SpringServerServlet, and its
superclass loader (instance of org/eclipse/jetty/start/Classpath$Loader),
have different Class objects for the type org/restlet/Application used in
the signature

This does not happen at startup but the first time a URL for a restlet
resource is called.
My war only contains a few lib jars, the most of them are under
JETTY/lib/ext.
Any tip on how to fix this?

Thanks for any help, here follows the jetty installation lib details:

here are the jars of /lib the ditribution default

-rw-rw-r-- 1 117K 2010-12-06 15:25 servlet-api-2.5.jar
-rw-rw-r-- 1  29K 2010-12-06 15:25 jetty-xml-7.2.2.v20101205.jar
-rw-rw-r-- 1  31K 2010-12-06 15:25 jetty-websocket-7.2.2.v20101205.jar
-rw-rw-r-- 1  91K 2010-12-06 15:25 jetty-webapp-7.2.2.v20101205.jar
-rw-rw-r-- 1 193K 2010-12-06 15:25 jetty-util-7.2.2.v20101205.jar
-rw-rw-r-- 1  70K 2010-12-06 15:25 jetty-servlets-7.2.2.v20101205.jar
-rw-rw-r-- 1  77K 2010-12-06 15:25 jetty-servlet-7.2.2.v20101205.jar
-rw-rw-r-- 1 274K 2010-12-06 15:25 jetty-server-7.2.2.v20101205.jar
-rw-rw-r-- 1  75K 2010-12-06 15:25 jetty-security-7.2.2.v20101205.jar
-rw-rw-r-- 1  22K 2010-12-06 15:25 jetty-rewrite-7.2.2.v20101205.jar
-rw-rw-r-- 1  27K 2010-12-06 15:25 jetty-policy-7.2.2.v20101205.jar
-rw-rw-r-- 1  73K 2010-12-06 15:25 jetty-plus-7.2.2.v20101205.jar
-rw-rw-r-- 1  29K 2010-12-06 15:25 jetty-jndi-7.2.2.v20101205.jar
-rw-rw-r-- 1  36K 2010-12-06 15:25 jetty-jmx-7.2.2.v20101205.jar
-rw-rw-r-- 1  75K 2010-12-06 15:25 jetty-io-7.2.2.v20101205.jar
-rw-rw-r-- 1  97K 2010-12-06 15:25 jetty-http-7.2.2.v20101205.jar
-rw-rw-r-- 1  50K 2010-12-06 15:25 jetty-deploy-7.2.2.v20101205.jar
-rw-rw-r-- 1  20K 2010-12-06 15:25 jetty-continuation-7.2.2.v20101205.jar
-rw-rw-r-- 1  72K 2010-12-06 15:25 jetty-client-7.2.2.v20101205.jar
-rw-rw-r-- 1  44K 2010-12-06 15:25 jetty-annotations-7.2.2.v20101205.jar
-rw-rw-r-- 1  31K 2010-12-06 15:25 jetty-ajp-7.2.2.v20101205.jar


And here the ones I put in /lib/ext

-rw-r--r-- 1 422K 2011-01-14 13:49 xstream-1.3.1.jar
-rw-r--r-- 1  25K 2011-01-14 13:49 xpp3_min-1.1.4c.jar
-rw-r--r-- 1  23K 2011-01-14 13:49 stax-api-1.0-2.jar
-rw-r--r-- 1  26K 2011-01-14 13:49 stax-api-1.0.1.jar
-rw-r--r-- 1 389K 2011-03-27 11:00 spring-webmvc-3.0.1.RELEASE.jar
-rw-r--r-- 1 380K 2011-03-27 10:52 spring-web-3.0.3.RELEASE.jar
-rw-r--r-- 1 226K 2011-03-27 10:52 spring-tx-3.0.3.RELEASE.jar
-rw-r--r-- 1  12K 2011-03-27 11:09 spring-social-web-1.0.0.M2.jar
-rw-r--r-- 1  20K 2011-03-27 11:09 spring-social-twitter-1.0.0.M2.jar
-rw-r--r-- 1  44K 2011-03-27 11:09 spring-social-core-1.0.0.M2.jar
-rw-r--r-- 1 238K 2011-03-27 10:52 spring-security-web-3.0.5.RELEASE.jar
-rw-r--r-- 1 304K 2011-03-27 10:52 spring-security-core-3.0.5.RELEASE.jar
-rw-r--r-- 1 182K 2011-03-27 10:52 spring-security-config-3.0.5.RELEASE.jar
-rw-r--r-- 1 157K 2011-03-27 10:52 spring-expression-3.0.3.RELEASE.jar
-rw-r--r-- 1 357K 2011-03-27 10:52 spring-core-3.0.3.RELEASE.jar
-rw-r--r-- 1 647K 2011-03-27 10:52 spring-context-3.0.3.RELEASE.jar
-rw-r--r-- 1 541K 2011-03-27 10:52 spring-beans-3.0.3.RELEASE.jar
-rw-r--r-- 1  52K 2011-03-27 11:09 spring-asm-3.0.1.RELEASE.jar
-rw-r--r-- 1 314K 2011-03-27 10:52 spring-aop-3.0.3.RELEASE.jar
-rw-r--r-- 1  48K 2011-03-16 18:52 org.restlet.lib.org.json-2.0.jar
-rw-r--r-- 1 6.0K 2011-03-11 16:38 org.restlet.ext.xstream-2.0.5.jar
-rw-r--r-- 1  17K 2011-03-11 16:38 org.restlet.ext.spring-2.0.5.jar
-rw-r--r-- 1  22K 2011-03-11 16:38 org.restlet.ext.servlet-2.0.5.jar
-rw-r--r-- 1 5.8K 2011-03-16 18:52 org.restlet.ext.json-2.0.5.jar
-rw-r--r-- 1 647K 2011-03-11 16:38 org.restlet-2.0.5.jar
-rw-r--r-- 1 435K 2011-02-20 17:13 org.osgi.core-4.0.0.jar
-rw-r--r-- 1 225K 2011-03-24 07:14 mongo-java-driver-2.4.jar
-rw-r--r-- 1 359K 2011-01-14 13:58 log4j-1.2.14.jar
-rw-r--r-- 1 152K 2011-01-17 15:22 kahadb-5.4.2.jar
-rw-r--r-- 1  71K 2011-01-14 13:49 jettison-1.2.jar
-rw-r--r-- 1 2.3K 2011-02-23 13:33 jcip-annotations-1.0.jar
-rw-r--r-- 1 129K 2011-01-17 15:23 jasypt-1.6.jar
-rw-r--r-- 1 611K 2011-03-06 10:36 jackson-mapper-asl-1.7.3.jar
-rw-r--r-- 1 203K 2011-03-06 10:36 jackson-core-asl-1.7.3.jar
-rw-r--r-- 1 5.4M 2011-01-17 15:23 icu4j-4.0.1.jar
-rw-r--r-- 1  32K 2011-01-17 15:22 geronimo-jms_1.1_spec-1.1.1.jar
-rw-r--r-- 1  20K 2011-01-17 15:23
geronimo-j2ee-management_1.1_spec-1.0.1.jar
-rw-r--r-- 1  61K 2011-01-17 15:23
com.springsource.org.apache.commons.logging-1.1.1.jar
-rw-r--r-- 1 301K 2011-01-17 15:23
com.springsource.org.apache.commons.httpclient-3.1.0.jar
-rw-r--r-- 1  47K 2011-01-17 15:23
com.springsource.org.apache.commons.codec-1.3.0.jar
-rw-r--r-- 1 193K 2011-01-17 15:23 commons-net-2.0.jar
-rw-r--r-- 1  44K 2011-01-17 15:22 commons-logging-api-1.1.jar
-rw-r--r-- 1  60K 2011-01-14 13:49 commons-logging-1.1.1.jar
-rw-r--r-- 1 273K 2011-01-14 13:49 commons-lang-2.5.jar
-rw-r--r-- 1 107K 2011-01-14 13:49 commons-io-1.4.jar
-rw-r--r-- 1  57K 2011-01-14 13:57 commons-codec-1.4.jar
-rw-r--r-- 1 315K 2011-03-16 11:28 cglib-nodep-2.2.jar
-rw-r--r-- 1 1.6M 2011-01-14 13:50 aspectjweaver-1.6.8.jar
-rw-r--r-- 1 114K 2011-01-14 13:50 aspectjrt-1.6.8.jar
-rw-r--r-- 1 337K 2011-02-23 13:33 apache-mime4j-0.6.jar
-rw-r--r-- 1 4.4K 2011-01-14 13:50 aopalliance-1.0.jar
-rw-r--r-- 1 145K 2011-01-17 15:23 activemq-protobuf-1.1.jar
-rw-r--r-- 1 3.2M 2011-01-17 15:22 activemq-core-5.4.2.jar
-rw-r--r-- 1 101K 2011-01-17 15:22 activeio-core-3.1.2.jar



-- 
Daniele Dellafiore
http://danieledellafiore.net

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2717149

Reply via email to