Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5562

Make it possible to start wicket-examples with 'mvn jetty:run' again

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.14.0
    • Fix Version/s: None
    • Component/s: wicket-examples
    • Labels:
      None

      Description

      Since some months it is not possible to run the examples with 'mvn jetty:run' because of some CDI related issues.

      I'd be thankful if this can be fixed because it really slows me down when validating a release.

      The exception is:

      2014-04-17 15:11:54.481:WARN:oejuc.AbstractLifeCycle:FAILED org.mortbay.jetty.plugin.JettyServer@7cc8e407: 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
      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)
      at org.jboss.weld.servlet.WeldInitialListener.contextInitialized(WeldInitialListener.java:85)
      at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.contextInitialized(ForwardingServletListener.java:34)
      at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:171)
      at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:733)
      ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mgrigorov Martin Grigorov
                Reporter:
                mgrigorov Martin Grigorov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: