tony1223 / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

"Class javax/management/MBeanServer violates loader constraints" #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

First of all, thanks for providing this plugin!

I have run into a problem where "mvn jetty:run" works but using the plugin does 
not. When I 
start my application, there is a classloader violation problem:

  Caused by: java.lang.LinkageError: Class javax/management/MBeanServer violates loader 
constraints

As mvn jetty:run works I assume it is my configuration that is not "compatible" 
with the plugin. 
Does anybody have an idea what might cause the problem?

I attach the startup log.

Thanks,
Kaspar

P.S. I could not find a forum or discussing list so I create this issue 
– it's more of a question than 
an issue though.

2009-08-26 15:04:30.454::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/airs/target/test-classes
ProjectClassLoader: entry=/Users/hbf/Documents/workspace/airs/target/classes
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/rampart/rampart-
policy/1.4/rampart-policy-1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/net/sf/jsr107cache/jsr107cache/1.0/jsr107cache-1
.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/springframework/spring/2.5.6/spring-2.5.6.ja
r
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/hibernate/hibernate-
entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/com/wideplay/warp-
servlet/0.9_06kf/warp-servlet-0.9_06kf.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/com/google/code/guice/guice-
servlet/2.0.1/guice-servlet-2.0.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/asm/asm/3.1/asm-3.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/slf4j/slf4j-log4j12/1.4.2/slf4j-
log4j12-1.4.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/geronimo/specs/geronimo-
javamail_1.4_spec/1.2/geronimo-javamail_1.4_spec-1.2.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/codehaus/woodstox/wstx-
asl/3.2.4/wstx-asl-3.2.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-inst/1.1/salve-inst-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-depend-guice/1.1/salve-
depend-guice-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/com/wideplay/warp/warp-persist/2.0-
SNAPSHOT/warp-persist-2.0-SNAPSHOT.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/derby/derby/10.4.2.0/derby-10.4.2.0.j
ar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-depend/1.1/salve-depend-
1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/geronimo/specs/geronimo-
stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
context/2.5.6/spring-context-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-
2.1_3.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/axis2/axis2-
codegen/1.4/axis2-codegen-1.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/hibernate/hibernate-
c3p0/3.3.2.GA/hibernate-c3p0-3.3.2.GA.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ws/commons/axiom/axiom-
api/1.2.7/axiom-api-1.2.7.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-lang/commons-
lang/2.4/commons-lang-2.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-httpclient/commons-
httpclient/3.1/commons-httpclient-3.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/aspectj/aspectjweaver/1.6.2/aspectjweaver-1.
6.2.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/wso2/spring/ws/wsf-
spring/1.5/wsf-spring-1.5.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/activation/activation/1.1/activation-1.1.j
ar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/woden/woden-impl-
dom/1.0M8/woden-impl-dom-1.0M8.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ws/commons/schema/XmlSchema/1.4.2/Xml
Sch
ema-1.4.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-
api-1.0-2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/opensaml/opensaml/1.1/opensaml-
1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-
launcher-1.7.0.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/wicket/wicket-
ioc/1.4.0/wicket-ioc-1.4.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ws/security/wss4j/1.5.4/wss4j-1.5.4.j
ar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/axis2/axis2-
xmlbeans/1.4/axis2-xmlbeans-1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/aopalliance/com.springsource.org.aopalliance
/1.0.0/com
.springsource.org.aopalliance-1.0.0.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
beans/2.5.6/spring-beans-2.5.6.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-discovery/commons-
discovery/0.2/commons-discovery-0.2.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/wicket/wicket-
extensions/1.4.0/wicket-extensions-1.4.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/com/google/common/collections/1.0-
SNAPSHOT/collections-1.0-SNAPSHOT.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/xerces/xmlParserAPIs/2.6.0/xmlParserAPIs-2.6.0.j
ar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
aspects/2.5.6/spring-aspects-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/wicketstuff/jslibraries/1.4-
SNAPSHOT/jslibraries-1.4-SNAPSHOT.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-logging/commons-
logging/1.0.4/commons-logging-1.0.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/bouncycastle/bcprov-jdk15/132/bcprov-
jdk15-132.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/c3p0/c3p0/0.9.1/c3p0-0.9.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-depend-inst/1.1/salve-
depend-inst-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/com/google/collections/google-
collections/1.0-rc2/google-collections-1.0-rc2.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/guiceyfruit/guiceyfruit-
spring/2.0/guiceyfruit-spring-2.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/geronimo/specs/geronimo-
activation_1.1_spec/1.0.1/geronimo-activation_1.1_spec-1.0.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/net/sf/ehcache/ehcache/1.5.0/ehcache-
1.5.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/springframework/spring-tomcat-
weaver/2.0.7/spring-tomcat-weaver-2.0.7.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/ws/rs/jsr311-api/1.0/jsr311-api-
1.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/httpcomponents/httpcore-
nio/4.0-beta1/httpcore-nio-4.0-beta1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/axis2/axis2-
mtompolicy/1.4/axis2-mtompolicy-1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ant/ant-nodeps/1.7.0/ant-
nodeps-1.7.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/xmlbeans/xbean/2.1.0/xbean-2.1.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/joda-time/joda-time/1.6/joda-time-
1.6.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/com/google/code/guice/guice/2.0.1/guice-2.0.1.ja
r
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/annogen/annogen/0.1.0/annogen-
0.1.0.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-fileupload/commons-
fileupload/1.2/commons-fileupload-1.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/httpcomponents/httpcore/4.0-beta1/htt
pcore-
4.0-beta1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/servlet/servlet-api/2.4/servlet-
api-2.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/xalan/xalan/2.7.0/xalan-2.7.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-
1.4.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/neethi/neethi/2.0.4/neethi-
2.0.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/annotation/com.springsource.javax.annotati
on/1.0.0/c
om.springsource.javax.annotation-1.0.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/backport-util-concurrent/backport-util-
concurrent/3.1/backport-util-concurrent-3.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/rampart/rampart-
core/1.4/rampart-core-1.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
agent/2.5.6/spring-agent-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/hibernate/hibernate-commons-
annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-codec/commons-
codec/1.3/commons-codec-1.3.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/com/h2database/h2/1.1.117/h2-
1.1.117.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/hibernate/ejb3-
persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/xom/xom/1.2.1/xom-1.2.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/aspectj/aspectjrt/1.5.4/aspectjrt-
1.5.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-collections/commons-
collections/3.2/commons-collections-3.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-asm/1.1/salve-asm-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/com/sun/jersey/contribs/jersey-
spring/1.0.1/jersey-spring-1.0.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/axis2/axis2-
adb/1.4.1/axis2-adb-1.4.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
core/2.5.6/spring-core-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-
2.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-
2.8.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/guiceyfruit/guiceyfruit-
core/2.0/guiceyfruit-core-2.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/woden/woden-
api/1.0M8/woden-api-1.0M8.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/com/sun/jersey/jersey-
server/1.0.3/jersey-server-1.0.3.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
web/2.5.6/spring-web-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/geronimo/specs/geronimo-
jms_1.1_spec/1.1/geronimo-jms_1.1_spec-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-depend-spring/1.1/salve-
depend-spring-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.
0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javassist/javassist/3.4.GA/javassist-
3.4.GA.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/easymock/easymock/2.4/easymock-
2.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/springframework/spring-
test/2.5.6/spring-test-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/testng/testng/5.7/testng-5.7-
jdk15.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ws/commons/axiom/axiom-
dom/1.2.7/axiom-dom-1.2.7.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/derby/derbytools/10.4.2.0/derbytools-
10.4.2.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/wicketstuff/minis/1.4-
SNAPSHOT/minis-1.4-SNAPSHOT.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/wicket/wicket-
guice/1.4.0/wicket-guice-1.4.0.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/axis2/axis2-adb-
codegen/1.4/axis2-adb-codegen-1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/ws/commons/axiom/axiom-
impl/1.2.7/axiom-impl-1.2.7.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/axis/axis-ant/1.4/axis-ant-
1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/axis2/mex/1.4/mex-1.4-
impl.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-
1.3.04.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-
1.0.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-io/commons-
io/1.4/commons-io-1.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/wicket/wicket-
datetime/1.4.0/wicket-datetime-1.4.0.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/wicket/wicket/1.4.0/wicket-
1.4.0.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/com/sun/jersey/jersey-
core/1.0.3/jersey-core-1.0.3.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.j
ar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/hibernate/hibernate-
annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/rampart/rampart-
trust/1.4/rampart-trust-1.4.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/hibernate/hibernate-
core/3.3.2.GA/hibernate-core-3.3.2.GA.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/opensymphony/quartz/quartz/1.6.5/quartz-1.6.
5.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/apache/axis2/axis2-
kernel/1.4.1/axis2-kernel-1.4.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/salve/salve-agent/1.1/salve-agent-
1.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/com/sun/xml/bind/jaxb-
impl/2.1.9/jaxb-impl-2.1.9.jar
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-hibernate/target/test-
classes
ProjectClassLoader: entry=/Users/hbf/Documents/workspace/core/core-
hibernate/target/classes
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/mortbay/jetty/jetty-util/6.1.4/jetty-
util-6.1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-
3.0.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/org/mortbay/jetty/jetty-
management/6.1.4/jetty-management-6.1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-
1.0.b2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/c3p0/c3p0/0.9.1.2/c3p0-0.9.1.2.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/mortbay/jetty/jetty/6.1.4/jetty-
6.1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/mortbay/jetty/servlet-api-
2.5/6.1.4/servlet-api-2.5-6.1.4.jar
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-basics/target/classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-task/target/test-
classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-task/target/classes
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/mx4j/mx4j-jmx/2.1.1/mx4j-jmx-
2.1.1.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-modeler/commons-
modeler/2.0/commons-modeler-2.0.jar
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-spring/target/classes
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/org/springframework/spring-tomcat-
weaver/2.5.6/spring-tomcat-weaver-2.5.6.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/commons-logging/commons-logging-
api/1.0.4/commons-logging-api-1.0.4.jar
ProjectClassLoader: 
entry=/Users/hbf/.m2/repository/tomcat/catalina/5.5.23/catalina-
5.5.23.jar
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-digester/commons-
digester/1.2/commons-digester-1.2.jar
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-xml/target/test-
classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-xml/target/classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-wicket/target/test-
classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-wicket/target/classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-jersey/target/test-
classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-jersey/target/classes
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-logging/commons-
logging/1.1.1/commons-logging-1.1.1.jar
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-movie/target/test-
classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-movie/target/classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-basics/target/test-
classes
ProjectClassLoader: 
entry=/Users/hbf/Documents/workspace/core/core-spring/target/test-
classes
ProjectClassLoader: entry=/Users/hbf/.m2/repository/commons-collections/commons-
collections/3.1/commons-collections-3.1.jar

Original issue reported on code.google.com by kaspar.f...@gmail.com on 26 Aug 2009 at 1:13

GoogleCodeExporter commented 9 years ago
Here's the rest of the log (posted in a comment because original post was too 
long).

...

Caused by: java.lang.LinkageError: Class javax/management/MBeanServer violates 
loader 
constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
    at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at 
com.mchange.v2.c3p0.management.ActiveManagementCoordinator.attemptManageC3P0Regi
stry
(ActiveManagementCoordinator.java:52)
    at 
com.mchange.v2.c3p0.C3P0Registry.attemptRegisterRegistryMBean(C3P0Registry.java:
217)
    at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java:242)
    at 
com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBas
e.java:2
28)
    at 
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedD
ataSourc
e.java:62)
    at 
com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:108)
    at 
com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:104)
    at 
org.hbf.core.spring.persistence.module.springtransactions.SpringTransactionedHib
ernateModule
$GuiceComboPooledDataSource.getObject(SpringTransactionedHibernateModule.java:20
4)
    at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(Facto
ryBeanRegist
rySupport.java:121)
    ... 107 more

Original comment by kaspar.f...@gmail.com on 26 Aug 2009 at 1:15

GoogleCodeExporter commented 9 years ago
A closer inspection revealed that the problem is C3P0 trying to expose its 
MBeans, see

  http://jira.atlassian.com/browse/CONF-11854

The problem is resolved if you add -
Dcom.mchange.v2.c3p0.management.ManagementCoordinator=com.mchange.v2.c3p0.manage
ment.NullManag
ementCoordinator to the VM arguments in the Eclipse Debug/Run Configuration for 
the project.

Original comment by kaspar.f...@gmail.com on 26 Aug 2009 at 1:24

GoogleCodeExporter commented 9 years ago
You may also be encountering the problem described in issue 27.  I suggested a 
workaround here:

http://code.google.com/p/run-jetty-run/issues/detail?id=27&can=1#c12

Original comment by James.Sy...@gmail.com on 26 Aug 2009 at 2:46

GoogleCodeExporter commented 9 years ago
James, thanks a lot for your tip. Indeed,

 -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true

solves the problem, too, and I will go for it.

Original comment by kaspar.f...@gmail.com on 26 Aug 2009 at 4:06

GoogleCodeExporter commented 9 years ago
Merged to Issue #27 .

Original comment by tonylovejava on 11 Mar 2011 at 8:41