ICEfaces
  1. ICEfaces
  2. ICE-10069

showcase - ice:graphicImage demo cannot be accessed (WebLogic12.1.2.1/10.3.6.0)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: EE-3.3.0.GA_P02
    • Fix Version/s: EE-3.3.0.GA_P03
    • Component/s: ICE-Components, Sample Apps
    • Labels:
      None
    • Environment:
      EE-3.3.0_P02 Build 11
      Server:WebLogic 12.1.2.1
      Browsers: all
      Application: showcase (built with 'web-profile', using servlet v.3.0 configuration)
    • Assignee Priority:
      P3
    • Affects:
      Sample App./Tutorial

      Description

      ice:graphicImage (all browsers, not an issue on Tomcat7)
      This demo cannot be accessed on WebLogic12.1.2.1, as the Overview page and the ACE Components menu are rendered under the "ICE Components" tab, see attached screen shot.

        Activity

        Hide
        Carmen Cristurean added a comment -

        Also, a server error is seen when accessing ice:graphicImage demo:

        Jun 05, 2014 6:26:51 PM org.icefaces.samples.showcase.util.FacesUtils getManagedBean
        SEVERE: could not get value for bean graphicImage
        com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean graphicImage
        at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:229)
        at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
        at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:408)
        at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:268)
        at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
        at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
        at org.icefaces.samples.showcase.util.FacesUtils.getManagedBean(FacesUtils.java:82)
        at org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:141)
        at org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:51)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
        at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
        at com.sun.faces.facelets.tag.jsf.core.DeclarativeSystemEventListener.processEvent(EventHandler.java:128)
        at javax.faces.component.UIComponent$ComponentSystemEventListenerAdapter.processEvent(UIComponent.java:2486)
        at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
        at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2163)
        at com.sun.faces.application.ApplicationImpl.invokeComponentListenersFor(ApplicationImpl.java:2111)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:289)
        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1222)
        at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1164)
        at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
        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 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: com.sun.faces.spi.InjectionProviderException: com.oracle.pitchfork.interfaces.LifecycleCallbackException: Failure to invoke public void org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean.initMetaData() on bean class class org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean with args: null
        at com.bea.faces.WeblogicInjectionProvider.invokePostConstruct(WeblogicInjectionProvider.java:40)
        at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
        ... 52 more
        Caused by: com.oracle.pitchfork.interfaces.LifecycleCallbackException: Failure to invoke public void org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean.initMetaData() on bean class class org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean with args: null
        at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:398)
        at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethods(Jsr250Metadata.java:368)
        at weblogic.servlet.internal.WebComponentContributor.invokeLifecycleMethods(WebComponentContributor.java:328)
        at weblogic.servlet.internal.WebComponentContributor.notifyPostConstruct(WebComponentContributor.java:311)
        at com.bea.faces.WeblogicInjectionProvider.invokePostConstruct(WeblogicInjectionProvider.java:38)
        ... 53 more
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:396)
        ... 57 more
        Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:251)
        at org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean.initMetaData(GraphicImageBean.java:86)
        ... 62 more

        Show
        Carmen Cristurean added a comment - Also, a server error is seen when accessing ice:graphicImage demo: Jun 05, 2014 6:26:51 PM org.icefaces.samples.showcase.util.FacesUtils getManagedBean SEVERE: could not get value for bean graphicImage com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean graphicImage at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:229) at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105) at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:408) at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:268) at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244) at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224) at org.icefaces.samples.showcase.util.FacesUtils.getManagedBean(FacesUtils.java:82) at org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:141) at org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.el.parser.AstValue.invoke(AstValue.java:254) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at com.sun.faces.facelets.tag.jsf.core.DeclarativeSystemEventListener.processEvent(EventHandler.java:128) at javax.faces.component.UIComponent$ComponentSystemEventListenerAdapter.processEvent(UIComponent.java:2486) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106) at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2163) at com.sun.faces.application.ApplicationImpl.invokeComponentListenersFor(ApplicationImpl.java:2111) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:289) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:247) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1222) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1164) at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) 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 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: com.sun.faces.spi.InjectionProviderException: com.oracle.pitchfork.interfaces.LifecycleCallbackException: Failure to invoke public void org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean.initMetaData() on bean class class org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean with args: null at com.bea.faces.WeblogicInjectionProvider.invokePostConstruct(WeblogicInjectionProvider.java:40) at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223) ... 52 more Caused by: com.oracle.pitchfork.interfaces.LifecycleCallbackException: Failure to invoke public void org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean.initMetaData() on bean class class org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean with args: null at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:398) at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethods(Jsr250Metadata.java:368) at weblogic.servlet.internal.WebComponentContributor.invokeLifecycleMethods(WebComponentContributor.java:328) at weblogic.servlet.internal.WebComponentContributor.notifyPostConstruct(WebComponentContributor.java:311) at com.bea.faces.WeblogicInjectionProvider.invokePostConstruct(WeblogicInjectionProvider.java:38) ... 53 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:396) ... 57 more Caused by: java.lang.NullPointerException at java.io.File.<init>(File.java:251) at org.icefaces.samples.showcase.example.compat.graphicimage.GraphicImageBean.initMetaData(GraphicImageBean.java:86) ... 62 more
        Hide
        Mircea Toma added a comment -

        Weblogic will return null whenever ServletContext.getRealPath is invoked within an archived application. Weblogic's admin console can be used to enable ServletContext.getRealPath functionality by toggling "Enable getRealPath() results for archived web apps". See more instructions here: http://my-java-planet.blogspot.ro/2011/11/how-to-fix-weblogic-servletcontextgetre.html

        Show
        Mircea Toma added a comment - Weblogic will return null whenever ServletContext.getRealPath is invoked within an archived application. Weblogic's admin console can be used to enable ServletContext.getRealPath functionality by toggling "Enable getRealPath() results for archived web apps" . See more instructions here: http://my-java-planet.blogspot.ro/2011/11/how-to-fix-weblogic-servletcontextgetre.html
        Hide
        Carmen Cristurean added a comment -

        Verified with EE-3.30-maintenance branch e43580 on WebLogic12/10 by setting the "Enable getRealPath()" to true in Admin console.

        Show
        Carmen Cristurean added a comment - Verified with EE-3.30-maintenance branch e43580 on WebLogic12/10 by setting the "Enable getRealPath()" to true in Admin console.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: