Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2056

Spring on EAP template doesn't work out of the box on Fuse 6.3.0 on EAP 6.4 (CNFE)

    XMLWordPrintable

Details

      1. create a project from Spring on EAP/Spring DSL template
      2. try to deploy it on server via Servers view

    Description

      If I create a project from Fuse on EAP/Spring DSL template, I'm unable to deploy it out of the box. The following error occurred:

      16:24:17,297 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."test.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "test.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.5.9.Final-redhat-2.jar:7.5.9.Final-redhat-2]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_91]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_91]
      Caused by: java.lang.IllegalStateException: Cannot create camel context: test.war
      	at org.wildfly.extension.camel.deployment.CamelContextCreateProcessor.deploy(CamelContextCreateProcessor.java:62)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.9.Final-redhat-2.jar:7.5.9.Final-redhat-2]
      	... 5 more
      Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.test.MyBean] for bean with name 'helloBean' defined in URL [vfs:/home/tsedmik/devel/git/server-installer/fuse-eap-6.3.0.CR1/target/jboss-eap-6.4/standalone/deployments/test.war/META-INF/jboss-camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.test.MyBean from [Module "deployment.test.war:main" from Service Module Loader]
      	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1278)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1347)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:913)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:617)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
      	at org.wildfly.extension.camel.SpringCamelContextFactory.createCamelContextList(SpringCamelContextFactory.java:92)
      	at org.wildfly.extension.camel.SpringCamelContextFactory.createCamelContextList(SpringCamelContextFactory.java:66)
      	at org.wildfly.extension.camel.deployment.CamelContextCreateProcessor.deploy(CamelContextCreateProcessor.java:58)
      	... 6 more
      Caused by: java.lang.ClassNotFoundException: org.test.MyBean from [Module "deployment.test.war:main" from Service Module Loader]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.springframework.util.ClassUtils.forName(ClassUtils.java:265)
      	at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:419)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1299)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1270)
      	... 15 more
      
      16:24:17,304 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "test.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"test.war\"
          Caused by: java.lang.IllegalStateException: Cannot create camel context: test.war
          Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.test.MyBean] for bean with name 'helloBean' defined in URL [vfs:/home/tsedmik/devel/git/server-installer/fuse-eap-6.3.0.CR1/target/jboss-eap-6.4/standalone/deployments/test.war/META-INF/jboss-camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.test.MyBean from [Module \"deployment.test.war:main\" from Service Module Loader]
          Caused by: java.lang.ClassNotFoundException: org.test.MyBean from [Module \"deployment.test.war:main\" from Service Module Loader]"}}
      16:24:17,306 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "test.war" was rolled back with the following failure message: 
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"test.war\"
          Caused by: java.lang.IllegalStateException: Cannot create camel context: test.war
          Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.test.MyBean] for bean with name 'helloBean' defined in URL [vfs:/home/tsedmik/devel/git/server-installer/fuse-eap-6.3.0.CR1/target/jboss-eap-6.4/standalone/deployments/test.war/META-INF/jboss-camel-context.xml]; nested exception is java.lang.ClassNotFoundException: org.test.MyBean from [Module \"deployment.test.war:main\" from Service Module Loader]
          Caused by: java.lang.ClassNotFoundException: org.test.MyBean from [Module \"deployment.test.war:main\" from Service Module Loader]"}}
      16:24:17,312 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment test.war (runtime-name: test.war) in 5ms
      16:24:17,313 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."test.war".POST_MODULE
      
      16:24:18,432 INFO  [org.jboss.as.protocol] (Remoting "tsedmikntb:MANAGEMENT" read-1) JBAS012119:  cancelled task by interrupting thread Thread[management-handler-thread - 2,5,management-handler-thread]
      

      Attachments

        1. deploy_problem.webm
          5.41 MB
        2. server.log
          121 kB

        Activity

          People

            lheinema@redhat.com Lars Heinemann
            tsedmik Tomáš Sedmík
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: