Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Hideuname -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)
Showuname -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)
-
Number of attachments :
Description
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
Activity
Lukas Theussl
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Project | maven-jetty-plugin [ 10421 ] | Jetty [ 11160 ] |
| Key | MPJETTY-11 |
|
Jan Bartel
made changes -
| Assignee | Jan Bartel [ janb ] |
Jan Bartel
made changes -
| Resolution | Won't Fix [ 2 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
Martin,
You don't need to add jetty as the dependency to use the plugin - what's your usecase that makes you think you need to depend on jetty?
Jan