Issues with AS 4.0.5 / Seam 2.0 Beta1
rvkishore Aug 4, 2007 2:27 AMI am trying to port my Seam 2.0 application which runs fine on AS 4.2.1 to AS 4.0.5.
I followed the instructions in the docs to replace the myfaces jar files with the jsf-* files and modified the web.xml file. I am getting the following exception when I deploy my app's ear file
8-03 21:36:51,731 INFO [org.ajax4jsf.cache.LRUMapCacheFactory] Creating LRUMap cache instance of default capacity 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter 2007-08-03 21:36:51,731 INFO [org.jboss.seam.servlet.SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter 2007-08-03 21:36:51,764 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dtl]] StandardWrapper.Throwable java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256) at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) 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:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052) 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:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417)
Looking thru the log files, I see that the jsf-impl.jar file is being loaded by the server. Yet, it cant find the FacesContextFactory class.
ar/commons-modeler.jar 2007-08-03 21:36:07,797 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-digester-1.6.jar 2007-08-03 21:36:07,799 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-beanutils.jar 2007-08-03 21:36:07,800 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-codec.jar 2007-08-03 21:36:07,802 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-collections.jar 2007-08-03 21:36:07,802 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/jsf-api.jar 2007-08-03 21:36:07,803 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/el-api.jar 2007-08-03 21:36:07,804 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/commons-lang-2.1.jar 2007-08-03 21:36:07,805 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/jstl.jar 2007-08-03 21:36:07,806 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/opt/jboss4/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/el-ri.jar
Any ideas as to why this could be happening?
Thanks in advance