We're updating the issue view to help you get more done. 

additional classpath for tomcat5x not working

Description

Using <location> in dependency to add an extra classpath to tomcat5x in cargo plugin is not working.
A NoClassDefFoundError is thrown instead even the classpath is listed correctly in JspRuntimeContext at startup of Tomcat.

sample usage of <location> in pom.xml:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0-beta-2</version> <configuration> <configuration> <type>existing</type> <home>${basedir}/target/tomcat</home> <properties> <cargo.jvmargs><![CDATA[-Xdebug -Xrunjdwp:transport=dt_socket,address=5555,server=y,suspend=n]]> </cargo.jvmargs> </properties> <deployables> <deployable> <artifactId>webresources</artifactId> <groupId>${project.groupId}</groupId> <type>war</type> <properties> <context>myproject</context> </properties> </deployable> </deployables> </configuration> <container> <containerId>tomcat5x</containerId> <home>${basedir}/target/tomcat</home> <dependencies> <dependency> <location>target/main/classes</location> </dependency> </dependencies> </container> </configuration> </plugin>

Status

Assignee

Unassigned

Reporter

Paul Hammes

Components

Fix versions

Affects versions

1.0-maven2

Priority

Major