dev@glassfish.java.net

java.lang.IllegalStateException

From: Derek Knapp <derek_at_itracmedia.com>
Date: Tue, 01 Mar 2011 12:59:31 -0500

I am seeing the following exception in my glassfish logs using the
latest promoted build of glassfish 3.1.

When I view any JSF page after this exception starts, all I see is a
blank white page, with no response.

Once this exception starts occuring, the only solution I have found so
far is to restart glassfish.





[#|2011-03-01T12:23:27.284-0500|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=50;_ThreadName=Thread-1;|ApplicationDispatcher[]
PWC1231: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: Application was not properly
initialized at startup, could not find Factory:
javax.faces.render.RenderKitFactory
         at
javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)
         at
com.sun.faces.context.FacesContextImpl.<init>(FacesContextImpl.java:127)
         at
com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:302)
         at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
         at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:787)
         at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
         at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
         at
org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)
         at
org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)
         at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:474)
         at
org.apache.catalina.core.StandardHostValve.dispatchToErrorPage(StandardHostValve.java:671)
         at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:295)
         at
org.apache.catalina.core.StandardHostValve.postInvoke(StandardHostValve.java:220)
         at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:328)
         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
         at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
         at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
         at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
         at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
         at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
         at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:619)
|#]