2 Replies Latest reply on May 26, 2010 3:13 PM by jay ZHAO

    fail to deploy an ear file with JFS/Tomahawk implementation

    jay ZHAO Newbie

      I have an ear file with  JFS/TomaHawk implementation, which has been deployed to GLassfish and Weblogic without any problem. But it fails to deploy to Jboss 5.1, here are the errors:

       

      2010-05-26 08:21:06,295 WARN  [org.apache.commons.digester.Digester] (ResourceContainer.invoker.nonDaemon-9) [ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)

      2010-05-26 08:21:06,325 WARN  [org.apache.commons.digester.Digester] (ResourceContainer.invoker.nonDaemon-9) [ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)

      2010-05-26 08:21:08,059 INFO  [com.sun.faces.config.ConfigureListener] (ResourceContainer.invoker.nonDaemon-9) Application object verification completed successfully

      2010-05-26 08:21:08,067 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (ResourceContainer.invoker.nonDaemon-9) JSF1059: WARNING!  The com.sun.faces.verifyObjects feature is to aid developers not using tools.  It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.

      2010-05-26 08:21:08,421 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/StoreFront4025]] (ResourceContainer.invoker.nonDaemon-9) Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory

                              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)

                              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)

                              at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)

                              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

                              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)

                              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

                              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

                              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                              at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

                              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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                              at $Proxy38.start(Unknown Source)

                              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                              at org.jboss.system.ServiceController.start(ServiceController.java:460)

                              at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

                              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

                              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                              at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:263)

                              at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)

                              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

                              at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

                              at org.jboss.remoting.Client.invoke(Client.java:1724)

                              at org.jboss.remoting.Client.invoke(Client.java:629)

                              at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)

                              at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)

                              at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)

                              at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)

                              at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:120)

                              at org.rhq.plugins.jbossas5.AbstractManagedDeploymentComponent.invokeOperation(AbstractManagedDeploymentComponent.java:181)

                              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 org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)

                              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.InstantiationException: org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory

                              at java.lang.Class.newInstance0(Class.java:340)

                              at java.lang.Class.newInstance(Class.java:308)

                              at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537)

                              at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:405)

                              at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)

                              at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)

                              at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)

                              at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)

                              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:131)

                              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)

                              ... 78 more

       

      any idea about it?

      thanks

        • 1. Re: fail to deploy an ear file with JFS/Tomahawk implementation
          Stan Silvert Master

          Are you bundling the JSF implementation with your WAR?  If so you should remove it or, if using the MyFaces JSF impl, use WAR_BUNDLES_JSF_IMPL.

           

          JBoss5AndMyFaces

           

          Also see JBossFaces

           

          Stan

          • 2. Re: fail to deploy an ear file with JFS/Tomahawk implementation
            jay ZHAO Newbie

            thanks, it works. But now i got new errors related to JPA:

            2010-05-26 14:34:12,616 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: SSDataModelEJB.jar

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:ear=StoreFront.ear,jar=SSDataModelEJB.jar,name=CatalogBean,service=EJB3

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   with dependencies:

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and demands:

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)                 persistence.unit:unitName=StoreFront.ear/SSDataModelEJB.jar#SurfShop

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jboss.ejb:service=EJBTimerService

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and supplies:

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            Class:com.harris.iis.surfshop.catalog.ICatalog

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:StoreFront/CatalogBean/local

            2010-05-26 14:34:12,618 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:StoreFront/CatalogBean/local-com.harris.iis.surfshop.catalog.ICatalog

            2010-05-26 14:34:12,619 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:ejb/stateless/CatalogBean

            2010-05-26 14:34:12,619 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:ear=StoreFront.ear,jar=SSDataModelEJB.jar,name=CatalogBean,service=EJB3) to KernelDeployment of: SSDataModelEJB.jar

            2010-05-26 14:34:12,676 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: SSStoreEJB.jar

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:ear=StoreFront.ear,jar=SSStoreEJB.jar,name=SurfShopStoreBean,service=EJB3

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   with dependencies:

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and demands:

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jboss.ejb:service=EJBTimerService

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:StoreFront/CatalogBean/local-com.harris.iis.surfshop.catalog.ICatalog

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)   and supplies:

            2010-05-26 14:34:12,677 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            Class:com.harris.iis.surfshop.store.IStore

            2010-05-26 14:34:12,678 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:StoreFront/SurfShopStoreBean/local-com.harris.iis.surfshop.store.IStore

            2010-05-26 14:34:12,678 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:StoreFront/SurfShopStoreBean/local

            2010-05-26 14:34:12,678 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner)            jndi:ejb/stateless/SurfShopStoreBean

            2010-05-26 14:34:12,678 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:ear=StoreFront.ear,jar=SSStoreEJB.jar,name=SurfShopStoreBean,service=EJB3) to KernelDeployment of: SSStoreEJB.jar

            2010-05-26 14:34:12,768 INFO  [org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (HDScanner) Deploy AbstractBeanMetaData@ec2a9d{name=jboss.j2ee:ear=StoreFront.ear,jar=SSDataModelEJB.jar,name=CatalogBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

            2010-05-26 14:34:12,768 INFO  [org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (HDScanner) Deploy AbstractBeanMetaData@1f96c99{name=jboss.j2ee:ear=StoreFront.ear,jar=SSStoreEJB.jar,name=SurfShopStoreBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}

            2010-05-26 14:34:12,847 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] (HDScanner) Starting persistence unit persistence.unit:unitName=StoreFront.ear/SSDataModelEJB.jar#SurfShop

            2010-05-26 14:34:12,851 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Start:.unit:unitName=StoreFront.ear/SSDataModelEJB.jar#SurfShop state=Create

            java.lang.ClassNotFoundException:

                                                            org.apache.openjpa.persistence.PersistenceProviderImpl

             

            But openjpa.jar is in ear file's lib directory and i also put it into the lib directory in the Jboss, i still get this error.