You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Envious Guest (JIRA)" <ji...@apache.org> on 2014/08/15 10:29:18 UTC

[jira] [Commented] (MTOMCAT-274) Tomcat8 integration tests fail with JDK 7 / Maven 3.2.2

    [ https://issues.apache.org/jira/browse/MTOMCAT-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098342#comment-14098342 ] 

Envious Guest commented on MTOMCAT-274:
---------------------------------------

This allegedly has something to do with specific maven-war-plugin version which is not yet JDK 7-ready , as mentioned for example here: https://issues.apache.org/jira/browse/AMQ-3427

As a quick fix, I tried to update to most recent one (2.4) which seemingly did the trick. For sake of consistency, I updated the maven-war-plugin version also in tomcat7 plugin, whose integration tests still pass.


> Tomcat8 integration tests fail with JDK 7 / Maven 3.2.2
> -------------------------------------------------------
>
>                 Key: MTOMCAT-274
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-274
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"
> Java version: 1.7.0_67, vendor: Oracle Corporation
> Maven 3.2.2
>            Reporter: Envious Guest
>
> When running integration tests for Tomcat8, like that:
> mvn clean verify -pl :tomcat8-maven-plugin -am -P run-its
> The build fails with following exception:
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1-alpha-2:war (default-war) on project simple-war-project: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1-alpha-2:war failed: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
> ---- Debugging information ----
> message             : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
> cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
> cause-message       : Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor
> class               : org.apache.maven.plugin.war.util.WebappStructure
> required-type       : org.apache.maven.plugin.war.util.WebappStructure
> path                : /webapp-structure
> line number         : 1
> -------------------------------
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:364)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1-alpha-2:war failed: Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org