2 Replies Latest reply on Dec 20, 2013 11:47 PM by ashwin.r87itaj

    Spring With Jboss WorkManager in EAP6.1

    ashwin.r87itaj

      Hi All,

       

      can any one tell me the solution for this..i googled in all place but unable to get the actual fix.

       

      14:57:12,501 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19c4f94: defining beans [dataSource,paymentRefundManager,fsgCommonManager,oneStepPaymentCaptureManager,workLoadManager,paymentAuthorizationManager,paymentReversalManager,paymentAuthCaptureManager,autoRenewalManager,fileGenerationManager,FSGProperties,fundingSourceGatewayDelegate,casInterface,OPMInterface,FSGDataAccessor,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,fsgProps,fsgProperties,applicationContextProvider,fsgDBValues,myTaskExecutor,jbossResourceAdapterFactory,activityExecuter,casExecuter,intraSysExecuter,voidExecuter,gpoConfigInterface,gpoputilprops,com.americanexpress.wsf2.spring.SpringApplicationContext#0,com.americanexpress.wsf2.handler.WSF2ProviderHandler,com.americanexpress.gpoFSG.handler.WSF2FSGProviderDefaultHandler,com.americanexpress.gpofundprsr.handler.WSF2ConsumerDefaultHandler,com.americanexpress.wsf2.Handler.WSF2GPOConsumerHandler,productConfigRetrieveJob,productConfigRetrieveJobCronTrigger,productConfigRefreshJob,productConfigRefreshJobCronTrigger,processReversalJob,processReversalJobCronTrigger,twgJobProcessor,twgCronTrigger,prpJobProcessor,prpCronTrigger,gtsJobProcessor,gtsCronTrigger,autoRenewalJobProcessor,autoRenewalCronTrigger,RAMJobStoreScheduler,JDBCJobStoreScheduler,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
      14:57:26,230 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19c4f94: defining beans [dataSource,paymentRefundManager,fsgCommonManager,oneStepPaymentCaptureManager,workLoadManager,paymentAuthorizationManager,paymentReversalManager,paymentAuthCaptureManager,autoRenewalManager,fileGenerationManager,FSGProperties,fundingSourceGatewayDelegate,casInterface,OPMInterface,FSGDataAccessor,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,fsgProps,fsgProperties,applicationContextProvider,fsgDBValues,myTaskExecutor,jbossResourceAdapterFactory,activityExecuter,casExecuter,intraSysExecuter,voidExecuter,gpoConfigInterface,gpoputilprops,com.americanexpress.wsf2.spring.SpringApplicationContext#0,com.americanexpress.wsf2.handler.WSF2ProviderHandler,com.americanexpress.gpoFSG.handler.WSF2FSGProviderDefaultHandler,com.americanexpress.gpofundprsr.handler.WSF2ConsumerDefaultHandler,com.americanexpress.wsf2.Handler.WSF2GPOConsumerHandler,productConfigRetrieveJob,productConfigRetrieveJobCronTrigger,productConfigRefreshJob,productConfigRefreshJobCronTrigger,processReversalJob,processReversalJobCronTrigger,twgJobProcessor,twgCronTrigger,prpJobProcessor,prpCronTrigger,gtsJobProcessor,gtsCronTrigger,autoRenewalJobProcessor,autoRenewalCronTrigger,RAMJobStoreScheduler,JDBCJobStoreScheduler,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
      14:57:26,245 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."GPOFSGEar-1.ear"."GPOFSGServWeb.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."GPOFSGEar-1.ear"."GPOFSGServWeb.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "GPOFSGServWeb.war" of deployment "GPOFSGEar-1.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
      Caused by: java.lang.ExceptionInInitializerError
      at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_11]
      at java.lang.Class.forName(Class.java:264) [rt.jar:1.7.0_11]
      at org.apache.cxf.jaxws.handler.HandlerChainBuilder.buildHandlerChain(HandlerChainBuilder.java:122)
      at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.processHandlerElement(AnnotationHandlerChainBuilder.java:268)
      at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.processHandlerChainElement(AnnotationHandlerChainBuilder.java:168)
      at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(AnnotationHandlerChainBuilder.java:121)
      at org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(AnnotationHandlerChainBuilder.java:285)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.buildHandlerChain(JaxWsServerFactoryBean.java:249)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.initializeResourcesAndHandlerChain(JaxWsServerFactoryBean.java:227)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:212)
      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:453)
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:333)
      at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:67)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:250)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:536)
      at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:116)
      at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:128)
      at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:67)
      at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      ... 5 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myTaskExecutor' defined in class path resource [fsgspringbeans.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: jboss.jca:service=WorkManager -- service jboss.naming.context.java."jboss.jca:service=WorkManager"
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
      at com.americanexpress.wsf2.handler.WSF2ProviderHandler.<clinit>(WSF2ProviderHandler.java:22)
      ... 25 more
      Caused by: javax.naming.NameNotFoundException: jboss.jca:service=WorkManager -- service jboss.naming.context.java."jboss.jca:service=WorkManager"
      at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103)
      at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:197)
      at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:120)
      at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
      at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
      at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_11]
      at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
      at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
      at org.springframework.jca.work.WorkManagerTaskExecutor.afterPropertiesSet(WorkManagerTaskExecutor.java:167)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
      ... 37 more

      14:57:26,510 ERROR [org.jboss.as.server] (HttpManagementService-threads - 22) JBAS015870: Deploy of deployment "GPOFSGEar-1.ear" was rolled back with the following failure message:
      {
          "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"GPOFSGEar-1.ear\".\"GPOFSGServWeb.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"GPOFSGEar-1.ear\".\"GPOFSGServWeb.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"GPOFSGServWeb.war\" of deployment \"GPOFSGEar-1.ear\"
          Caused by: java.lang.ExceptionInInitializerError
          Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myTaskExecutor' defined in class path resource [fsgspringbeans.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: jboss.jca:service=WorkManager -- service jboss.naming.context.java.\"jboss.jca:service=WorkManager\"
          Caused by: javax.naming.NameNotFoundException: jboss.jca:service=WorkManager -- service jboss.naming.context.java.\"jboss.jca:service=WorkManager\""},
          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"GPOFSGEar-1.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"GPOFSGEar-1.ear\".\"GPOFSGServWeb.war\".deploymentCompleteService]"]
      }
      14:57:26,620 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment null (runtime-name: GPOFSGServWeb.war) in 121ms
      14:57:26,698 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment GPOFSGEar-1.ear (runtime-name: GPOFSGEar-1.ear) in 192ms