webtier@glassfish.java.net

Re: [webtier] Initializing Mojarra 2.0.1 (FCS b02) Error: java.lang.IllegalArgumentExcept

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Fri, 15 Jan 2010 10:21:32 -0800

Offhand, it looks like a class not found exception in another name -
could you please double check everything? Maybe make sure that the
files have been properly copied, and that you specified the correct
directory? The configuration described works for us - we have an
automated test that runs without difficulty daily...

Jim

On 1/15/10 1:21 AM, webtier_at_javadesktop.org wrote:
> I have made all the steps to make Glassfish v 2.1.1 mojarra 2.0.2 enabled.
> (https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.2/releasenotes.html)
>
> But I get error trying to log in to admin panel (http://localhost:4848/):
>
>
> INFO: Application server startup complete.
>
> INFO: Initializing Mojarra 2.0.2 (FCS b10) for context ''
>
> INFO: Unsanitized stacktrace from failed start...
> java.lang.IllegalArgumentException: javax.faces.context.ExceptionHandlerFactory
> at javax.faces.FactoryFinder.validateFactoryName(FactoryFinder.java:578)
> at javax.faces.FactoryFinder.setFactory(FactoryFinder.java:264)
> at com.sun.faces.config.processor.FactoryConfigProcessor.setFactory(FactoryConfigProcessor.java:292)
> at com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(FactoryConfigProcessor.java:247)
> at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:198)
> at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
> at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.init(DelayedInitFacesServlet.java:72)
> at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1100)
> at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
> at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
> at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
> at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
> at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:117)
>
> INFO: PWC1412: WebModule[] ServletContext.log():PWC1409: Marking servlet FacesServlet as unavailable
>
>
>
> Also a I get error when trying to deploy my application (jsf 1.2 application - worked well with mojarra jsf 1.2_14 on the same glassfish):
>
> INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/app1'
>
> INFO: Unsanitized stacktrace from failed start...
> java.lang.IllegalArgumentException: javax.faces.context.ExceptionHandlerFactory
> at javax.faces.FactoryFinder.validateFactoryName(FactoryFinder.java:578)
> at javax.faces.FactoryFinder.setFactory(FactoryFinder.java:264)
> ...
>
> SEVERE: WebModule[/app1]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
> com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! javax.faces.context.ExceptionHandlerFactory
> at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:465
> ....
>
> SEVERE: PWC1306: Startup of context /app1 failed due to previous errors
> SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
> java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
> at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:725)
> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
> at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:104)
> at com.sun.faces.c
> ...
> [Message sent by forum member 'calmone' (calm_at_newmail.ru)]
>
> http://forums.java.net/jive/thread.jspa?messageID=381115
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>