Hi Olivier, I'm not able to run this with tomcat6 as it's a Servlet 3.0 project. I'll get the issue created -- should have some time next week to put together a sample project.
Thanks, Leigh On 04/04/2012 11:36, "Olivier Lamy" <ol...@apache.org> wrote: >Hello, >Looks to be an issue (does that work with tomcat6:run ?) >Could you create an issue here: >https://issues.apache.org/jira/browse/MTOMCAT (if possible with a >small sample project to reproduce). > >Thanks >-- >Olivier Lamy >Talend: http://coders.talend.com >http://twitter.com/olamy | http://linkedin.com/in/olamy > >2012/4/3 Leigh Anderson <leigh.ander...@betfair.com>: >> Hi All, >> >> I'm trying to start a web application with 'mvn tomcat7:run'. It seems >> that with the configuration below it fails with the following error: >> >> >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-beta-1:run >>(default-cli) >> on project mantis-test-web-app: No such archiver: 'jar'. -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven >>with the >> -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug >>logging. >> >> I have also tried >> * 'mvn tomcat:run-war', which seems to get past this point, but >>then the >> application will not start because the 'additionalClasspathDir' property >> is not supported by the 'run-war' goal. >> * removing 'useSeparateTomcatClassLoader' which then doesn't >>load the >> Spring instrumenting class loader required to use AspectJ LTW, specified >> in >> context.xml. I have confirmed that I get the same 'no such archiver' >>error >> if I remove the >> context.xml, so I don't believe this to be the cause. >> >> Is there something I've missed in the configuration? >> >> Cheers, >> Leigh >> >> >> >> >> <plugin> >> <groupId>org.apache.tomcat.maven</groupId> >> <artifactId>tomcat7-maven-plugin</artifactId> >> <version>2.0-beta-1</version> >> <configuration> >> <systemProperties> >> >><log4j.defaultInitOverride>true</log4j.defaultInitOverride> >> <HOSTNAME>localhost</HOSTNAME> >> <port.http>9090</port.http> >> <port.https>8443</port.https> >> </systemProperties> >> <port>9090</port> >> <httpsPort>8443</httpsPort> >> <path>/</path> >> <useTestClasspath>false</useTestClasspath> >> <additionalClasspathDirs> >> >> >><additionalClasspathDir>${project.basedir}/config</additionalClasspathDir >>> >> </additionalClasspathDirs> >> >> <useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader> >> </configuration> >> <dependencies> >> <dependency> >> <groupId>org.springframework</groupId> >> >> >><artifactId>spring-instrument-tomcat</artifactId> >> <version>${spring.version}</version> >> </dependency> >> </dependencies> >> </plugin> >> >> >> >> ________________________________________________________________________ >> In order to protect our email recipients, Betfair Group use SkyScan from >> MessageLabs to scan all Incoming and Outgoing mail for viruses. >> >> ________________________________________________________________________ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org > ________________________________________________________________________ In order to protect our email recipients, Betfair Group use SkyScan from MessageLabs to scan all Incoming and Outgoing mail for viruses. ________________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org