Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14020

Richfaces 4.5.2 not working in Websphere

    Details

    • Steps to Reproduce:
      Hide

      Build war with Richfaces 4.5.2.
      Deploy it in Websphere
      Start the application
      Exception will be thrown.

      Show
      Build war with Richfaces 4.5.2. Deploy it in Websphere Start the application Exception will be thrown.

      Description

      I am using Richfaces 4.5.2 in my application which is already using Richfaces 4.3.7. I upgraded both Richfaces and Richface-CDK maven dependencies as mentioned in https://github.com/richfaces/richfaces/wiki/Migration-from-RichFaces-4-to-RichFaces-4.5.

      Maven compilation is fine, but I am getting below exception on starting the WAR file deployed with new Richfaces in websphere 8.0.

      Could you please help us to resolve this error.

      [4/17/15 10:29:32:760 EEST] 00000093 AbstractFaces E   An error occured while initializing MyFaces: null
                                       java.lang.NullPointerException
      	at java.util.Properties.load(Properties.java:281)
      	at org.richfaces.application.JsfVersionInspector.getLogStringsImplementationVersion(JsfVersionInspector.java:142)
      	at org.richfaces.application.JsfVersionInspector.<init>(JsfVersionInspector.java:70)
      	at org.richfaces.application.InitializationListener.onStart(InitializationListener.java:65)
      	at org.richfaces.application.InitializationListener.processEvent(InitializationListener.java:167)
      	at javax.faces.event.SystemEvent.processListener(SystemEvent.java:43)
      	at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2134)
      	at org.apache.myfaces.application.ApplicationImpl.access$000(ApplicationImpl.java:121)
      	at org.apache.myfaces.application.ApplicationImpl$SystemListenerEntry.publish(ApplicationImpl.java:2321)
      	at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:566)
      	at org.apache.myfaces.webapp.AbstractFacesInitializer._dispatchApplicationEvent(AbstractFacesInitializer.java:262)
      	at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:154)
      	at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111)
      	at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1689)
      	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
      	at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
      	at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
      	at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
      	at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1165)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
      	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:771)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1362)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2163)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)
      	at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:332)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:119)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:607)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5468)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5594)
      	at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:565)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1252)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      	at java.lang.reflect.Method.invoke(Method.java:611)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      	at java.lang.reflect.Method.invoke(Method.java:611)
      	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
      	at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1152)
      	at java.security.AccessController.doPrivileged(AccessController.java:298)
      	at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
      	at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
      	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1146)
      	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:999)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
      	at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
      	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
      	at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
      	at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
      	at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
      	at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
      	at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
      	at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
      	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
      	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1702)
      

      Thank you & BRs,
      Santosh

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                pujar.santosh Santosh P
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: