Hi guys,

First, thanks so much for the tomcat-maven-plugin! I'm using it in
conjunction with the webtest-maven-plugin and it's great for running
integration-tests for Metawidget (http://metawidget.org).

I have a requirement to test older versions of Tomcat. I am happy to put the
Tomcat JARs in my local repo, and point to them as <dependencies>, but I am
stuck because there doesn't seem to be a mapping between the JARs
tomcat-maven-plugin usually wants and the ones Tomcat 4.1 supplies. This is
the output I get (which looks quite helpful):

[ERROR] Failed to execute goal
org.codehaus.mojo:tomcat-maven-plugin:1.1:run-war (start-tomcat) on project
allwidgets-struts: Execution start-tomcat of goal
org.codehaus.mojo:tomcat-maven-plugin:1.1:run-war failed: Unable to load the
mojo 'run-war' in the plugin 'org.codehaus.mojo:tomcat-maven-plugin:1.1' due
to an API incompatibility:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
(class: org/codehaus/mojo/tomcat/AbstractRunMojo, method: startContainer
signature: ()V) Bad type in putfield/putstatic
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.codehaus.mojo:tomcat-maven-plugin:1.1
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/C:/Users/User/.m2/repository/org/codehaus/mojo/tomcat-maven-plugin/1.1/tomcat-maven-plugin-1.1.jar
[ERROR] urls[1] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/catalina/4.1.37/catalina-4.1.37.jar
[ERROR] urls[2] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/catalina-ha/6.0.24/catalina-ha-6.0.24.jar
[ERROR] urls[3] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/juli/6.0.24/juli-6.0.24.jar
[ERROR] urls[4] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/tribes/6.0.24/tribes-6.0.24.jar
[ERROR] urls[5] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/el-api/6.0.24/el-api-6.0.24.jar
[ERROR] urls[6] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/jasper/6.0.24/jasper-6.0.24.jar
[ERROR] urls[7] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/jasper-el/6.0.24/jasper-el-6.0.24.jar
[ERROR] urls[8] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/jasper-jdt/6.0.24/jasper-jdt-6.0.24.jar
[ERROR] urls[9] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/jsp-api/6.0.24/jsp-api-6.0.24.jar
[ERROR] urls[10] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/servlet-api/6.0.24/servlet-api-6.0.24.jar
[ERROR] urls[11] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/coyote/6.0.24/coyote-6.0.24.jar
[ERROR] urls[12] =
file:/C:/Users/User/.m2/repository/org/apache/tomcat/dbcp/6.0.24/dbcp-6.0.24.jar
[ERROR] urls[13] =
file:/C:/Users/User/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
[ERROR] urls[14] =
file:/C:/Users/User/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
[ERROR] urls[15] =
file:/C:/Users/User/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
[ERROR] urls[16] =
file:/C:/Users/User/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
null]]

I understand I have a 4.1.37 version of catalina, and 6.0.24 versions of
everything else. But 4.1.37 doesn't have, say, tribes and el-api and all
that.

How can I configure tomcat-maven-plugin to run Tomcat 4.1?

Thanks in advance,

Richard.

-- 
View this message in context: 
http://old.nabble.com/-tomcat-maven-plugin--How-to-configure-dependencies-for-Tomcat-4.1--tp31208916p31208916.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to