You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Cédric Exbrayat (Created JIRA)" <ji...@apache.org> on 2011/10/14 15:08:11 UTC
[jira] [Created] (CAMEL-4545) [WebConsole Archetype] Unable to run
with "mvn jetty:run"
[WebConsole Archetype] Unable to run with "mvn jetty:run"
---------------------------------------------------------
Key: CAMEL-4545
URL: https://issues.apache.org/jira/browse/CAMEL-4545
Project: Camel
Issue Type: Bug
Components: tooling
Affects Versions: 2.9.0
Reporter: Cédric Exbrayat
If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
There are conflicts with slf4j-api binding as you can see in the following logs
{code:xml}
...
[main] ContextLoader ERROR Context initialization failed
java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
...
{code}
Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
But you then ran in the following problem
{code:xml}
...
java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
...
{code}
Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Updated] (CAMEL-4545) [WebConsole Archetype] Unable to run
with "mvn jetty:run"
Posted by "Cédric Exbrayat (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cédric Exbrayat updated CAMEL-4545:
-----------------------------------
Attachment: webconsole-archetype-issue.patch
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Labels: maven, patch
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Commented] (CAMEL-4545) [WebConsole Archetype] Unable to
run with "mvn jetty:run"
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130471#comment-13130471 ]
Willem Jiang commented on CAMEL-4545:
-------------------------------------
I just did some test by adding the dependency of sl4j-api in the archetype pom, the webconsole can be started without any trouble.
so I created a new JIRA CAMEL-4559 to updated all other camel archetype.
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Labels: maven, patch
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Updated] (CAMEL-4545) [WebConsole Archetype] Unable to run
with "mvn jetty:run"
Posted by "Cédric Exbrayat (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cédric Exbrayat updated CAMEL-4545:
-----------------------------------
Attachment: (was: webconsole-archetype-issue.patch)
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Labels: maven, patch
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Commented] (CAMEL-4545) [WebConsole Archetype] Unable to
run with "mvn jetty:run"
Posted by "David J. M. Karlsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127544#comment-13127544 ]
David J. M. Karlsen commented on CAMEL-4545:
--------------------------------------------
Could it be an idea to control the slf4j version for all camel modules via the dependencyManagement section in the topmost pom?
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Labels: maven, patch
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Assigned] (CAMEL-4545) [WebConsole Archetype] Unable to run
with "mvn jetty:run"
Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-4545:
-----------------------------------
Assignee: Willem Jiang
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Assignee: Willem Jiang
> Labels: maven, patch
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Updated] (CAMEL-4545) [WebConsole Archetype] Unable to run
with "mvn jetty:run"
Posted by "Cédric Exbrayat (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cédric Exbrayat updated CAMEL-4545:
-----------------------------------
Attachment: webconsole-archetype-issue.patch
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Labels: maven, patch
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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
[jira] [Resolved] (CAMEL-4545) [WebConsole Archetype] Unable to run
with "mvn jetty:run"
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-4545.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.9.0
2.8.3
This issue is fixed by CAMEL-4559.
> [WebConsole Archetype] Unable to run with "mvn jetty:run"
> ---------------------------------------------------------
>
> Key: CAMEL-4545
> URL: https://issues.apache.org/jira/browse/CAMEL-4545
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.9.0
> Reporter: Cédric Exbrayat
> Assignee: Willem Jiang
> Labels: maven, patch
> Fix For: 2.8.3, 2.9.0
>
> Attachments: webconsole-archetype-issue.patch
>
>
> If you install the camel-archetype-webconsole from the trunk (2.9-SNAPSHOT actually), and create a new project with it ("mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-webconsole -DarchetypeVersion=2.9-SNAPSHOT"), you can't run "mvn jetty:run".
> There are conflicts with slf4j-api binding as you can see in the following logs
> {code:xml}
> ...
> [main] ContextLoader ERROR Context initialization failed
> java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:323)[slf4j-log4j12-1.6.1.jar:1.6.1]
> ...
> {code}
> Running "mvn dependencies:tree" show that two versions of slf4j are loaded.
> You can find with this issue a patch that exclude slf4j for activemq-camel, which solve the problem.
> But you then ran in the following problem
> {code:xml}
> ...
> java.net.URISyntaxException: Illegal character in opaque part at index 22: jar:file:/mypath/.m2/repository/org/apache/camel/camel-web/2.9-SNAPSHOT/camel-web-2.9-SNAPSHOT.war!/WEB-INF/classes/
> ...
> {code}
> Which can be solved by updating jetty-version to a more recent one (7.5.3.v20111011) in the parent pom ( issue [CAMEL-4544|https://issues.apache.org/jira/browse/CAMEL-4544] with patch)
--
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