2 Replies Latest reply on Apr 12, 2010 7:15 PM by Dominik Woźniak

    jboss-4.0.3SP1 LinkageError loader constraint violation

    Dominik Woźniak Newbie



      The error i get is driving me crazy....

      I compile sources with jdk1.6, everything is fine.

      The app deploys OK, i can enter some pages.

      When i enter one page i get the error:


      java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/tc5/WebAppClassLoader) previously initiated loading for a different type with name "pl/akonet/zpk/raporty/bean/RaportBean"
      java.lang.ClassLoader.defineClass1(Native Method)


      I was googling a lot and didn't found any anwer that could solve my problem.
      I checked that the class WebAppClassLoader is in two jars: catalina.jar and tomcat55-service.jar.
      I think that it's the problem, but i cannot remove any of this jars because app won't start at all.
      In WEB-INF/lib i don't have any jars.


      Where can i search to solve the problem ?
      Can anybody help me please ?