Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 26 Aug 2009 at 1:15

from run-jetty-run.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 26 Aug 2009 at 1:24

from run-jetty-run.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 26 Aug 2009 at 2:46

from run-jetty-run.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 26 Aug 2009 at 4:06

from run-jetty-run.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Merged to Issue #27 .

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

  • Changed state: Duplicate

from run-jetty-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.