java.lang.LinkageError

loader constraint violation: when resolving overridden method "org.jboss.weld.Weld.select( Ljavax/enterprise/util/TypeLiteral;[Ljava/lang/ annotation/Annotation;)Ljavax/enterprise/inject/Instance;" the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) of the current class, org/jboss/weld/Weld, and its superclass loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm), have different Class objects for the type tion/Annotation;)Ljavax/enterprise/inject/Instance; used in the signature at org.jboss.weld.servlet.StaticWeldProvider$ WeldSingleton.<clinit>(StaticWeldProvider.java:29) at org.jboss.weld.servlet.StaticWeldProvider.getCDI( StaticWeldProvider.java:49)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2100

  • via Google Groups by William Colen, 11 months ago
    /webapp/WebAppClassLoader) of the current class, org/jboss/weld/Weld, and its superclass loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm), have different Class objects for the type tion/Annotation;)Ljavax/enterprise/inject
  • via GitHub by shillner
    , 10 months ago
    (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, javax/enterprise/inject/spi/CDI, and the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) for interface javax/enterprise/inject/Instance have different Class objects for the type javax/enterprise/util/TypeLiteral used in the signature
  • via nabble.com by Unknown author, 1 year ago
    /webapp/WebAppClassLoader) of the current class, org/apache/cxf/jaxb/attachment/JAXBAttachmentUnmarshaller, and its superclass loader (instance of sun/misc/Launcher$ExtClassLoader), have different Class objects for the type javax/activation/DataHandler used in the signature
  • Stack trace

    • java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.jboss.weld.Weld.select( Ljavax/enterprise/util/TypeLiteral;[Ljava/lang/ annotation/Annotation;)Ljavax/enterprise/inject/Instance;" the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) of the current class, org/jboss/weld/Weld, and its superclass loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm), have different Class objects for the type tion/Annotation;)Ljavax/enterprise/inject/Instance; used in the signature at org.jboss.weld.servlet.StaticWeldProvider$ WeldSingleton.<clinit>(StaticWeldProvider.java:29) at org.jboss.weld.servlet.StaticWeldProvider.getCDI( StaticWeldProvider.java:49) at javax.enterprise.inject.spi.CDI.current(CDI.java:60)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.