You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "MartinFunk (JIRA)" <ji...@codehaus.org> on 2007/04/20 12:27:46 UTC
[jira] Created: (MPJETTY-11) java.lang.ClassCastException while
executing mvn jetty:run
java.lang.ClassCastException while executing mvn jetty:run
----------------------------------------------------------
Key: MPJETTY-11
URL: http://jira.codehaus.org/browse/MPJETTY-11
Project: maven-jetty-plugin
Issue Type: Bug
Environment: uname -srvmpio
Linux 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 unknown unknown GNU/Linux
java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
Reporter: MartinFunk
Attachments: pom.xml
java.lang.ClassCastException while executing mvn jetty:run when jetty dependency is present.
Been creating a webapp project using:
mvn archetype:create -DgroupId=foo.bar -DartifactId=foo-bar -DarchetypeArtifactId=maven-archetype-webapp
Adding the jetty-plugin as described in:
http://www.mortbay.org/maven-plugin/howto.html
works fine.
Using mvn jetty:run starts the server, the application can be seen with a browser.
After adding
<dependencies>
...
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.1</version>
</dependency>
</dependencies>
to the pom.xml, mvn jetty:run crashes with a ClassCastException.
Attached is the pom.xml I used.
Martin
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira