webtier@glassfish.java.net

JSF 2.0-SNAPSHOT App - Error on deploy

From: Paulo Cesar Reis <casmeiron_at_gmail.com>
Date: Mon, 25 May 2009 11:06:24 -0300

Hi all,

I am trying to deploy a sample application on my glassfish v2.1.1 but Iım
getting error on deploy.

I entered on debug mode and the error is being generated when Mojarra try to
add the FactoryName javax.faces.context.ExceptionHandlerFactory using the
Implementation class com.sun.faces.context.ExceptionHandlerFactoryImpl but
donıt know why, though.

Any help is welcome, thanks.

faces-config.xml
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0"> <application> <!-- <locale-config>
<default-locale>en</default-locale> </locale-config>
<resource-bundle> <base-name>Resources</base-name>
<var>bundle</var> </resource-bundle> --> </application>
</faces-config>


Follow the stacktrace:
(Environment: MacOSX Leopard
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
)


INFO: Initializing Mojarra 2.0.0 (SNAPSHOT b10) for context '/jsf-2' INFO:
Unsanitized stacktrace from failed start...
java.lang.IllegalArgumentException:
javax.faces.context.ExceptionHandlerFactory at
javax.faces.FactoryFinder.validateFactoryName(FactoryFinder.java:630) at
javax.faces.FactoryFinder.setFactory(FactoryFinder.java:287) at
com.sun.faces.config.processor.FactoryConfigProcessor.setFactory(FactoryConf
igProcessor.java:289) at
com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(Facto
ryConfigProcessor.java:244) at
com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigP
rocessor.java:195) at
com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:310) at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.
java:210) at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4666) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5375)
at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
89) at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1636)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1241)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebMod
uleDeployEventListener.java:182) at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebMod
uleDeployEventListener.java:278) at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEvent
Listener(AdminEventMulticaster.java:1005) at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent
(AdminEventMulticaster.java:992) at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEvent
Multicaster.java:470) at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEve
ntMulticaster.java:182) at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastE
vent(DeploymentNotificationHelper.java:308) at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(
DeploymentServiceUtils.java:231) at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(
ServerDeploymentTarget.java:298) at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(Applica
tionStartPhase.java:132) at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:108) at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:966) at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeployment
Service.java:609) at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeployment
Service.java:653) at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsCo
nfigMBean.java:773) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
390) at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
373) at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:
477) at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:836) at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at
sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source) at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInte
rceptor.java:304) at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.
java:174) at
com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeC
aller.java:69) at
com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(
MBeanServerRequestHandler.java:155) at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet
.processRequest(RemoteJmxConnectorServlet.java:122) at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet
.doPost(RemoteJmxConnectorServlet.java:193) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFi
lterChain.java:427) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:315) at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:287) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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(PESessionLock
ingStandardPipeline.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:1096)
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:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:290)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(
DefaultProcessorTask.java:666) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(Defa
ultProcessorTask.java:597) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(Defaul
tProcessorTask.java:871) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTas
k(DefaultReadTask.java:341) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadT
ask.java:263) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadT
ask.java:214) at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadIm
pl.java:116) SEVERE: WebModule[/jsf-2]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:330) at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.
java:210) at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4666) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5375)
at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
89) at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1636)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1241)
at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebMod
uleDeployEventListener.java:182) at
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebMod
uleDeployEventListener.java:278) at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEvent
Listener(AdminEventMulticaster.java:1005) at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent
(AdminEventMulticaster.java:992) at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEvent
Multicaster.java:470) at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEve
ntMulticaster.java:182) at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastE
vent(DeploymentNotificationHelper.java:308) at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(
DeploymentServiceUtils.java:231) at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(
ServerDeploymentTarget.java:298) at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(Applica
tionStartPhase.java:132) at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:108) at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:966) at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeployment
Service.java:609) at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeployment
Service.java:653) at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsCo
nfigMBean.java:773) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
390) at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:
373) at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:
477) at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:836) at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at
sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source) at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInte
rceptor.java:304) at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.
java:174) at
com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeC
aller.java:69) at
com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(
MBeanServerRequestHandler.java:155) at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet
.processRequest(RemoteJmxConnectorServlet.java:122) at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet
.doPost(RemoteJmxConnectorServlet.java:193) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFi
lterChain.java:427) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:315) at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:287) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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(PESessionLock
ingStandardPipeline.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:1096)
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:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:290)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(
DefaultProcessorTask.java:666) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(Defa
ultProcessorTask.java:597) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(Defaul
tProcessorTask.java:871) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTas
k(DefaultReadTask.java:341) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadT
ask.java:263) at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadT
ask.java:214) at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadIm
pl.java:116) Caused by: java.lang.IllegalArgumentException:
javax.faces.context.ExceptionHandlerFactory at
javax.faces.FactoryFinder.validateFactoryName(FactoryFinder.java:630) at
javax.faces.FactoryFinder.setFactory(FactoryFinder.java:287) at
com.sun.faces.config.processor.FactoryConfigProcessor.setFactory(FactoryConf
igProcessor.java:289) at
com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(Facto
ryConfigProcessor.java:244) at
com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigP
rocessor.java:195) at
com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:310) ...
73 more