Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in running Portlet program

 
Preethi Lm
Greenhorn
Posts: 9
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 9
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please somebody help me ???

Portlet guys please look into it ??
 
Noms Dom
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 9
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic