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

                 Key: CAMEL-4546
                 URL: https://issues.apache.org/jira/browse/CAMEL-4546
             Project: Camel
          Issue Type: Bug
          Components: tooling
    Affects Versions: 2.9.0
            Reporter: Cédric Exbrayat


Even with a fix archetype (see [issue 
CAMEL-4544|https://issues.apache.org/jira/browse/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
{code:xml}
[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
{code}

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).


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to