Camel
  1. Camel
  2. CAMEL-4546

[WebConsole Archetype] Unable to run with "mvn tomcat:run" or in tomcat or jetty server

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not a Problem
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.10.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Even with a fix archetype (see issue CAMEL-4544), the only way to get the console running is to launch "mvn jetty:run".

      To reproduce, generate a project with the archetype
      "mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"

      When the project is launched with "mvn tomcat:run", it does not display any error

      [INFO] Scanning for projects...
      [WARNING] Failed to retrieve plugin descriptor for org.apache.camel:camel-maven-plugin:2.9-SNAPSHOT: Plugin org.apache.camel:camel-maven-plugin:2.9-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.apache.camel:camel-maven-plugin:jar:2.9-SNAPSHOT
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Camel Router Application 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [WARNING] Failed to retrieve plugin descriptor for org.apache.camel:camel-maven-plugin:2.9-SNAPSHOT: Plugin org.apache.camel:camel-maven-plugin:2.9-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.apache.camel:camel-maven-plugin:jar:2.9-SNAPSHOT
      [INFO]
      [INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) @ issue >>>
      [INFO]
      [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ issue ---
      [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] Copying 1 resource
      [INFO]
      [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ issue ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) @ issue <<<
      [INFO]
      [INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ issue ---
      [INFO] Running war on http://localhost:8080/issue
      [INFO] Creating Tomcat server configuration at D:\mb\test\issue\target\tomcat
      14 oct. 2011 15:17:43 org.apache.catalina.startup.Embedded start
      INFO: Starting tomcat server
      14 oct. 2011 15:17:44 org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
      14 oct. 2011 15:17:44 org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      14 oct. 2011 15:17:44 org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      

      And localhost:8080 show a white page

      I tried with tomcat-maven-plugin 2.0-SNAPSHOT and "mvn tomcat6:run" or "mvn tomcat7:run", with no success.

      If you package the application with "mvn package" and drop the war in a tomcat server (7.0.22 for me) or a jetty server (7.5.3v20111011), the application start with no error, but localhost:8080 display a 404 page.

      Out of the box, I think the project should be able to run with tomcat and jetty at least (with or without maven plugin).

        Activity

        Hide
        Claus Ibsen added a comment -

        This is not really a Camel problem. The mvn jetty:run works fine with the archetype.

        Its a bitch to get mvn tomcat7:run to work, as it does not seem to support overlays.

        The fix is on Apache Tomcat side, not Camel.

        Show
        Claus Ibsen added a comment - This is not really a Camel problem. The mvn jetty:run works fine with the archetype. Its a bitch to get mvn tomcat7:run to work, as it does not seem to support overlays. The fix is on Apache Tomcat side, not Camel.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Cédric Exbrayat
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development