• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1098
  • Last Modified:

java.lang.LinkageError: loader constraint violation

I am getting following exception while deploying application on jetty server using maven.(mvn -o jetty:run -u)

java.lang.LinkageError: loader constraint violation: loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) previously initiated loading for a different type with name "javax/management/MBeanServer"

How to resolve this.?
/manish
0
Manish
Asked:
Manish
  • 3
  • 2
1 Solution
 
objectsCommented:
that means two classes of the same name are loaded inconsistently.

great explanation of it here
http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html
0
 
ManishLeadAuthor Commented:
Sorry I am not able to open above link.
Some imp part can you paste?
0
 
objectsCommented:
typically same class being loaded by different classloaders

check the jars that are part of your war are not already supplied by jetty
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
syskrashCommented:
Check if you have a jmx.jar within your application as well as in Jetty. Remove yours and test...
0
 
ManishLeadAuthor Commented:
No, I didnt find jmx jar in our application.
0
 
ManishLeadAuthor Commented:
Thanks.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now