7 Replies Latest reply: Aug 14, 2014 10:31 AM by dvohra21 RSS

    javax.el.ELException: java.lang.NoClassDefFoundError

    rade.todorovich

      JDeveloper 12.1.3

       

      This error happens when application is deployed onto standalone Weblogic 12.1.2. Application runs fine on integrated Weblogic

       

      I looked at the class and it is part of the ADF DVT Faces Runtime library. This library is 'checked' under Library Dependencies in the EAR Deployment Profile

       

      Managed Server is configured with JRF runtime

       

      Any idea what the issue is?

        • 1. Re: javax.el.ELException: java.lang.NoClassDefFoundError
          Timo Hahn

          The more specific you are the better we can help.

           

          Which class you are talking about?

          Can you post the relevant part of the stack trace.

          Is the application migrated from an old version?

          Have you build a small test case (using the HR schema) and tested the component with this test app?

          If yes post the sample here so we can take a look at it.

           

          Timo

          • 2. Re: javax.el.ELException: java.lang.NoClassDefFoundError
            dvohra21

            Instead of bundling in the EAR file deploy as a shared library by including a library-ref for adf.oracle.domain.webapp in weblogic.xml or weblogic-application.xml.

            • 3. Re: javax.el.ELException: java.lang.NoClassDefFoundError
              rade.todorovich

              Timo,

               

               

              Thank you for reply.

               

               

               

               

              1. This is the class: oracle.adf.view.faces.bi.component.gantt.BackgroundBarFormat

              If you search by the class you can see that it is part of ADF DVT Faces Runtime librabry which

              as I said is part of the deployment

               

               

              2. This is start-from-scratch 12.1.3 application. It is actually very simple. It has jspx page with one link.

              When user clicks on the link it goes to bounded task flow.In the BTF, method call is the default activity which executes

              certain managed bean (session scope) method that sets up some global vars. Then it redirects to a jspx page which shows

              scheduling gantt component. I am not using BC yet hence I cannot provide test case with HR schema. I use POJO to generate

              static data tree model for the gantt component.

               

               

              3. Here is some of the backing bean code ( where it fails)

               

               

                  public void setGantt(UIComponent gantt) {

                      this.gantt = (UIGantt)gantt;

                      if (!m_registered)

                      {

                       

                          TaskbarFormatManager _manager = this.gantt.getTaskbarFormatManager();

               

               

                          _manager.registerBackgroundBarFormat("MOAFTS", new BackgroundBarFormat("MOAFTS", "#66FF99", null));

                          _manager.registerBackgroundBarFormat("HCP", new BackgroundBarFormat("HCP", "#FF99CC", null));

               

               

               

               

              Some of the stack dump

               

               

              <Aug 13, 2014 1:01:10 PM CDT> <Error> <oracle.adfinternal.controller.application.AdfcExceptionHandler> <ADFC-50018> <ADFc: No exception handler was found for an application exception.

              javax.faces.FacesException: javax.el.ELException: java.lang.NoClassDefFoundError: oracle/adf/view/faces/bi/component/gantt/BackgroundBarFormat

                      at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1952)

                      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:447)

                      at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

                      at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:529)

                      at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:735)

                      at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1311)

                      at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:63)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag6(__schganttoneday2_jspx.java:388)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag5(__schganttoneday2_jspx.java:346)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag3(__schganttoneday2_jspx.java:258)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag2(__schganttoneday2_jspx.java:205)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag1(__schganttoneday2_jspx.java:155)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag0(__schganttoneday2_jspx.java:104)

                      at jsp_servlet.__schganttoneday2_jspx._jspService(__schganttoneday2_jspx.java:65)

                      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

                      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)

                      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)

                      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

                      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)

                      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:238)

                      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:573)

                      at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:272)

                      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

                      at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

                      at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

                      at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)

                      at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

                      at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

                      at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

                      at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)

                      at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:364)

                      at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)

                      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)

                      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)

                      at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:322)

                      at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager._processViewDefinitionLanguage(ResponseRenderManager.java:105)

                      at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:41)

                      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)

                      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)

                      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

                      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)

                      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)

                      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

                      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)

                      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:77)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)

                      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)

                      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)

                      at java.security.AccessController.doPrivileged(Native Method)

                      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

                      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

                      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

                      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

                      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)

                      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)

                      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

                      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

                      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

                      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)

                      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)

                      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)

                      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)

                      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)

                      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)

                      at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

              Caused By: javax.el.ELException: java.lang.NoClassDefFoundError: oracle/adf/view/faces/bi/component/gantt/BackgroundBarFormat

                      at javax.el.BeanELResolver.setValue(BeanELResolver.java:389)

                      at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)

                      at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)

                      at com.sun.el.parser.AstValue.setValue(AstValue.java:217)

                      at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:291)

                      at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1949)

                      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:447)

                      at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

                      at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:529)

                      at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:735)

                      at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1311)

                      at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:63)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag6(__schganttoneday2_jspx.java:388)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag5(__schganttoneday2_jspx.java:346)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag3(__schganttoneday2_jspx.java:258)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag2(__schganttoneday2_jspx.java:205)

                      at jsp_servlet.__schganttoneday2_jspx._jspx___tag1(__schganttoneday2_jspx.java:155)

               

               

              ..       

              at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)

                      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)

                      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)

                      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)

                      at java.security.AccessController.doPrivileged(Native Method)

                      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

                      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

                      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

                      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

                      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

                      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

                      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)

                      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)

                      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

                      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

                      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

                      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)

                      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)

                      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)

                      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)

                      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)

                      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)

                      at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

              Caused By: java.lang.NoClassDefFoundError: oracle/adf/view/faces/bi/component/gantt/BackgroundBarFormat

                      at scheduling.view.backing.SchGanttOneDay2.setGantt(SchGanttOneDay2.java:45)

              • 4. Re: javax.el.ELException: java.lang.NoClassDefFoundError
                rade.todorovich

                Thank you dvohra21.

                Can you please give me steps how to do that?

                I am far from expert in ADF

                Thank you in advance

                • 5. Re: javax.el.ELException: java.lang.NoClassDefFoundError
                  dvohra21

                  In the WEB-INF/weblogic.xml add the following.

                  <library-ref>

                      <library-name>adf.oracle.domain.webapp</library-name>

                    </library-ref>

                  • 6. Re: javax.el.ELException: java.lang.NoClassDefFoundError
                    rade.todorovich

                    dvohra21,

                    Under WEB-INF I have the following files:

                    adfc-config.xml

                    faces-config.xml

                    scheduling-gantt.xml

                    trinidad-config.xml

                    web.xml

                     

                    So there is no weblogic.xml

                     

                    I also filed SR with Oracle support and so far they believe that since my JDeveloper is 12.1.3 and standalone WLS is 12.1.2, that this might be the problem Looking to see now if we can upgrade it quickly

                    • 7. Re: javax.el.ELException: java.lang.NoClassDefFoundError
                      dvohra21

                      Create a weblogic.xml.