Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2220

WeldInstance class not found in weld-osgi bundle

    Details

      Description

      Trying to integrate into Payara 4 latest,
      getting the following exception below.
      This may be solved by the following:

      diff --git a/bundles/osgi/pom.xml b/bundles/osgi/pom.xml
      index ddc69d0..a465af8 100644
      --- a/bundles/osgi/pom.xml
      +++ b/bundles/osgi/pom.xml
      @@ -70,6 +70,7 @@
                                   org.jboss.weld.el;
                                   org.jboss.weld.event;
                                   org.jboss.weld.exceptions;
      +                            org.jboss.weld.inject;
                                   org.jboss.weld.injection;
                                   org.jboss.weld.interceptor.proxy;
                                   org.jboss.weld.interceptor.util.proxy;
      

      Exception:

      [7:52 PM] Lenny Primak: org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001524: Unable to load proxy class for bean Implicit Bean [javax.enterprise.inject.Instance] with qualifiers [@Default] with class interface javax.enterprise.inject.Instance using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
      [7:52 PM] Lenny Primak: Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/jboss/weld/inject/WeldInstance
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:101)
        at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:490)
        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:372)
        ... 47 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/weld/inject/WeldInstance
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
        at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:108)
        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:97)
        ... 49 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lprimak Lenny Primak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: