-
Feb 26th, 2011, 09:04 PM
#1
java.lang.LinkageError: Class javax/management/MBeanServer violates loader constraint
Hello. I've started a new grails project and switched on the POM dependency resolution in the BuildConfig. When I try to do a grails run-app I get this stack trace:
Running Grails application..
java.lang.LinkageError: Class javax/management/MBeanServer violates loader constraints
at javax.management.MBeanServerBuilder.newMBeanServer Delegate(MBeanServerBuilder.java:49)
at javax.management.MBeanServerFactory.newMBeanServer (MBeanServerFactory.java:308)
at javax.management.MBeanServerFactory.createMBeanSer ver(MBeanServerFactory.java:219)
at javax.management.MBeanServerFactory.createMBeanSer ver(MBeanServerFactory.java:180)
at java.lang.management.ManagementFactory.getPlatform MBeanServer(ManagementFactory.java:512)
at org.grails.tomcat.TomcatServer.start(TomcatServer. groovy:212)
at grails.web.container.EmbeddableServer$start.call(U nknown Source)
...
Server failed to start: java.lang.LinkageError: Class javax/management/MBeanServer violates loader constraints
From what I've researched it looks like one of the dependencies I added is pulling in a conflicting version of jmxri or another jar that includes javax.management.MBeanServer. I tried adding an exclusion on jmxri to those new dependencies but that doesn't get rid of the exception. When I run a grails dependency-report it shows me the list of who uses jmxri. But it doesn't show jmxri being evicted. I don't fully understand how the tomcat plugin is working, which may be part of my problem. Anyone got any advice on troubleshooting this further? Any way to find out where the conflict is?
Best regards.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules