jQuery in Action, 3rd edition
The moose likes Portals and Portlets and the fly likes Exception in running Portlet program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Exception in running Portlet program" Watch "Exception in running Portlet program" New topic

Exception in running Portlet program

Preethi Lm

Joined: Feb 27, 2011
Posts: 9

Hai All,

I am new to portlet programming. Am using RAD and Websphere portal server for developing codes.

Am getting the following error, while running the simple "hello world" program.

Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
... 196 more
Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
at com.ibm.faces.portlet.FacesPortlet.getLifecycle(FacesPortlet.java:487)
at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:352)
at com.ibm.faces.portlet.FacesPortlet.doView(FacesPortlet.java:413)
at com.ibm.faces.portlet.FacesPortlet.doDispatch(FacesPortlet.java:301)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128)
at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:183)
at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:573)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:114)
at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doRender(PortletServletCollaborator.java:69)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.java:123)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.java:92)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doRender(PortletServletCollaboratorImpl.java:156)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:273)
... 195 more

Please help me to get rid of this error ....

Thanks in advance...
Preethi Lm

Joined: Feb 27, 2011
Posts: 9

Please somebody help me ???

Portlet guys please look into it ??
Noms Dom

Joined: Jan 30, 2009
Posts: 5
This is cased by the missing jar in WEB INF lib folder . Place the jar containing the missing file in WEB_INF/lib and this should work
Also make sure the tld has been added in web.xml
Preethi Lm

Joined: Feb 27, 2011
Posts: 9

Thanks for giving response Dom.

Actually When I ran "Hello World" for the first time in RAD with WebSphere Application Server, I didn't place any jar files in the WEB_INF/lib folder and I didnt add tld files also.
But it was working fine.

Then, I have re-installed the server now and it is not working.

Can you suggest me, what are all the jars and tlds are required for running "Hello world" program in RAD with WAS.

Thanks in advance..

I agree. Here's the link: http://aspose.com/file-tools
subject: Exception in running Portlet program
It's not a secret anymore!