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

Weld does not work with Oracle WebLogic Server 11gR1 (10.3.5)

    Details

      Description

      Weblogic doesn´t seem to run Weld. When configuring the WeldListener, I get the following exception:

      java.lang.IllegalStateException: Singleton is not set
      	at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)
      	at org.jboss.weld.Container.instance(Container.java:54)
      	at org.jboss.weld.jsf.WeldPhaseListener.instance(WeldPhaseListener.java:161)
      	at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:98)
      	at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:85)
      	at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
      	at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:111)
      	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
      	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      	at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      

        Gliffy Diagrams

          Activity

          Hide
          alesj Ales Justin added a comment -

          Actually, Weld should work, it's just the container integration won't be there.
          So we must still find the real issue / cause.

          Show
          alesj Ales Justin added a comment - Actually, Weld should work, it's just the container integration won't be there. So we must still find the real issue / cause.
          Hide
          gastaldi George Gastaldi added a comment -

          This might be related to this output:

           
          GRAVE: Unable to load annotated class: com.sun.faces.config.FacesInitializer, reason: java.lang.NoClassDefFoundError: javax/servlet/ServletContainerInitializer
          
          

          Show
          gastaldi George Gastaldi added a comment - This might be related to this output:   GRAVE: Unable to load annotated class : com.sun.faces.config.FacesInitializer, reason: java.lang.NoClassDefFoundError: javax/servlet/ServletContainerInitializer
          Hide
          gastaldi George Gastaldi added a comment -
          Show
          gastaldi George Gastaldi added a comment - This also might answer some questions: https://forums.oracle.com/forums/thread.jspa?threadID=2113112
          Hide
          jjsnyder Joseph Snyder added a comment -

          WLS integration with Weld (1.1.3) is in WLS 12C which was released at the beginning of December (2011).

          As for just using Weld in a servlet container I don't know of anyone testing this on previous versions of WLS.

          Show
          jjsnyder Joseph Snyder added a comment - WLS integration with Weld (1.1.3) is in WLS 12C which was released at the beginning of December (2011). As for just using Weld in a servlet container I don't know of anyone testing this on previous versions of WLS.
          Hide
          gastaldi George Gastaldi added a comment -

          Weblogic 12c supports Weld with CDI out-of-box and should be used instead.

          Show
          gastaldi George Gastaldi added a comment - Weblogic 12c supports Weld with CDI out-of-box and should be used instead.

            People

            • Assignee:
              Unassigned
              Reporter:
              gastaldi George Gastaldi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development