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

Google Groups | William Colen | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Erro ao executar jetty:run no vraptor-musicjungle

    Google Groups | 3 years ago | William Colen
    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

    Root Cause Analysis

    1. 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>()
    2. Weld Implementation
      StaticWeldProvider.getCDI
      1. org.jboss.weld.servlet.StaticWeldProvider$WeldSingleton.<clinit>(StaticWeldProvider.java:29)
      2. org.jboss.weld.servlet.StaticWeldProvider.getCDI(StaticWeldProvider.java:49)
      2 frames
    3. JavaEE 7
      CDI.current
      1. javax.enterprise.inject.spi.CDI.current(CDI.java:60)
      1 frame
    4. Weld Implementation
      WeldInitialListener.contextInitialized
      1. org.jboss.weld.servlet.WeldInitialListener.contextInitialized(WeldInitialListener.java:85)
      1 frame
    5. Weld SPIs for container integration
      ForwardingServletListener.contextInitialized
      1. org.jboss.weld.servlet.api.helpers.ForwardingServletListener.contextInitialized(ForwardingServletListener.java:34)
      1 frame
    6. org.jboss.weld
      Listener.contextInitialized
      1. org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:171)
      1 frame
    7. Jetty
      ServletContextHandler.callContextInitialized
      1. org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:799)
      2. org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:446)
      2 frames