Forum Discussion

garfield19's avatar
garfield19
New Contributor
13 years ago

Unable to run SoapUI Testsuite through Jenkins

Hello,

I am a new user especially wrt. the SoapUI for test automation and even more in terms of using it for CI through Jenkins. I have created the testsuite and built it locally on my machine through maven and it executes perfectly well. I have checked in the project into SVN and created a new job on Jenkins and sourced it through the SVN. The build of the project seems to be failing and I am at a loss to figure out what may possibly be the reason:

Below is the output of the console from Jenkins. Can someone please help me in understanding and resolving the problem here???

Parsing POMs
[workspace] $ java -Xmx1024m -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/var/lib/jenkins/tools/Maven_3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /var/lib/jenkins/tools/Maven_3.0.4 /var/lib/jenkins/war/WEB-INF/lib/remoting-2.11.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 51111
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/pom.xml install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DDC WebService TestSuite 0.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://daon-eng-nexus:8081/nexus/conten ... it-1.3.pom
Downloaded: http://daon-eng-nexus:8081/nexus/conten ... it-1.3.pom (3 KB at 4.0 KB/sec)
Downloading: http://daon-eng-nexus:8081/nexus/conten ... it-1.3.jar
Downloaded: http://daon-eng-nexus:8081/nexus/conten ... it-1.3.jar (95 KB at 142.5 KB/sec)
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ WAR_DDCService ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/src/main/resources
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ WAR_DDCService ---
[INFO] No sources to compile
[INFO]
[INFO] [debug] execute contextualize
--- maven-resources-plugin:2.5:testResources (default-testResources) @ WAR_DDCService ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ WAR_DDCService ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ WAR_DDCService ---
[INFO] No tests to run.
[INFO] Surefire report directory: /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ WAR_DDCService ---
[INFO] Packaging webapp
[INFO] Assembling webapp [WAR_DDCService] in [/var/lib/jenkins/jobs/DDCAutomationSuite/workspace/target/WAR_DDCService-0.2.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in [73 msecs]
[INFO] Building war: /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/target/WAR_DDCService-0.2.1-SNAPSHOT.war
[JENKINS] Archiving /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/pom.xml to /var/lib/jenkins/jobs/DDCAutomationSuite/modules/ddc$WAR_DDCService/builds/2013-01-24_10-41-07/archive/ddc/WAR_DDCService/0.2.1-SNAPSHOT/WAR_DDCService-0.2.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.504s
[INFO] Finished at: Thu Jan 24 10:41:27 GMT 2013
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project WAR_DDCService: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
cause : Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project WAR_DDCService: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:104)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:175)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
at org.codehaus.plexus.archiver.war.WarArchiver.initZipOutputStream(WarArchiver.java:149)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:346)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:871)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:543)
at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:225)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:159)
... 29 more
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/jobs/DDCAutomationSuite/workspace to /var/lib/jenkins/jobs/DDCAutomationSuite/builds/2013-01-24_10-41-05/htmlreports/HTML_Report
Finished: FAILURE