Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-208

camel war example doesn't seem to work

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      I've just tried to convert the camel war example (camel-example-servlet-tomcat-no-spring from camel 2.16.1) which doesn't use spring and just uses servlets.

      It runs fine with jetty (mvn jetty:run-war) but doesn't seem to run in WildFly Swarm. It starts up swarm but doesn't seem to wanna run a web container.

      I've attached the project source code in case it helps.

      $ mvn clean wildfly-swarm:run
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Camel :: Example :: Servlet Tomcat without Spring 2.16.1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] >>> wildfly-swarm-plugin:1.0.0.Alpha5:run (default-cli) > package @ camel-example-servlet-tomcat-no-spring >>>
      [INFO]
      [INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camel-example-servlet-tomcat-no-spring ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 4 resources
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default) @ camel-example-servlet-tomcat-no-spring ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 4 resources
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ camel-example-servlet-tomcat-no-spring ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 2 source files to /jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/target/classes
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-example-servlet-tomcat-no-spring ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/src/test/resources
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ camel-example-servlet-tomcat-no-spring ---
      [INFO] No sources to compile
      [INFO]
      [INFO] --- maven-surefire-plugin:2.16:test (default-test) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] --- maven-war-plugin:2.6:war (default-war) @ camel-example-servlet-tomcat-no-spring ---
      [INFO] Packaging webapp
      [INFO] Assembling webapp [camel-example-servlet-tomcat-no-spring] in [/jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/target/camel-example-servlet-tomcat-no-spring-2.16.1]
      [INFO] Processing war project
      [INFO] Copying webapp webResources [/jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/target/classes] to [/jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/target/camel-example-servlet-tomcat-no-spring-2.16.1]
      [INFO] Copying webapp resources [/jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/src/main/webapp]
      [INFO] Webapp assembled in [195 msecs]
      [INFO] Building war: /jpackages/apache-camel-2.16.1/examples/camel-example-servlet-tomcat-no-spring/target/camel-example-servlet-tomcat-no-spring-2.16.1.war
      [INFO]
      [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] --- wildfly-swarm-plugin:1.0.0.Alpha5:package (default) @ camel-example-servlet-tomcat-no-spring ---
      [INFO]
      [INFO] <<< wildfly-swarm-plugin:1.0.0.Alpha5:run (default-cli) < package @ camel-example-servlet-tomcat-no-spring <<<
      [INFO]
      [INFO] --- wildfly-swarm-plugin:1.0.0.Alpha5:run (default-cli) @ camel-example-servlet-tomcat-no-spring ---
      [WARN] wildfly-swarm-logging not available, logging will not be configured
      tmpDir: /var/folders/gz/vlgb0mj102z0h3p19y4cpx3w0000gq/T/
      Dec 16, 2015 11:18:50 AM org.jboss.msc.service.ServiceContainerImpl <clinit>
      INFO: JBoss MSC version 1.2.6.Final
      Dec 16, 2015 11:18:50 AM org.jboss.as.server.ApplicationServerService start
      INFO: WFLYSRV0049: WildFly Core 2.0.0.CR8 "Kenny" starting
      Dec 16, 2015 11:18:51 AM org.jboss.as.txn.subsystem.TransactionSubsystemAdd checkIfNodeIdentifierIsDefault
      WARN: WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
      Dec 16, 2015 11:18:51 AM org.jboss.as.naming.subsystem.NamingSubsystemAdd performBoottime
      INFO: WFLYNAM0001: Activating Naming Subsystem
      Dec 16, 2015 11:18:51 AM org.jboss.as.naming.service.NamingService start
      INFO: WFLYNAM0003: Starting Naming Service
      Dec 16, 2015 11:18:51 AM com.arjuna.ats.jbossatx.jta.RecoveryManagerService create
      INFO: ARJUNA032010: JBossTS Recovery Service (tag: 8e522) - JBoss Inc.
      Dec 16, 2015 11:18:51 AM com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoader startRecoveryActivators
      INFO: ARJUNA012324: Start RecoveryActivators
      Dec 16, 2015 11:18:51 AM com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple <init>
      INFO: ARJUNA012343: RecoveryManagerImple is ready. Socket listener is turned off.
      Dec 16, 2015 11:18:51 AM com.arjuna.ats.internal.arjuna.recovery.ExpiredEntryMonitor run
      INFO: ARJUNA012296: ExpiredEntryMonitor running at Wed, 16 Dec 2015 11:18:51
      Dec 16, 2015 11:18:51 AM com.arjuna.ats.jbossatx.jta.RecoveryManagerService start
      INFO: ARJUNA032013: Starting transaction recovery manager
      Dec 16, 2015 11:18:51 AM com.arjuna.ats.jbossatx.jta.TransactionManagerService create
      INFO: ARJUNA032017: JBossTS Transaction Service (JTA version - tag: 8e522) - JBoss Inc.
      Dec 16, 2015 11:18:51 AM org.jboss.as.server.BootstrapListener done
      INFO: WFLYSRV0025: WildFly Core 2.0.0.CR8 "Kenny" started in 888ms - Started 67 of 71 services (8 services are lazy, passive or on-demand)
      [WARN] Unable to create default deployment
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                jastrachan James Strachan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: