Hudson has issues building AppFuse 2.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson has issues building AppFuse 2.0

mraible
I'm trying to get Hudson to build AppFuse 2.0 (which is Maven 2 based). It has some Canoo WebTests that are run by the Ant plugin.  Here's the errors I get from Hudson when it tries to integration test the modules with Ant/WebTest:

[INFO ] Executing tasks

ERROR: Error executing ant tasks

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

        at hudson.maven.MavenEmbedder.execute(MavenEmbedder.java:441)

        at hudson.maven.MavenEmbedder.execute(MavenEmbedder.java:382)

        at hudson.maven.MavenBuild$Builder.invoke(MavenBuild.java:150)

        at hudson.maven.MavenBuild$Builder.invoke(MavenBuild.java:111)

        at hudson.FilePath.act(FilePath.java:191)

        at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:243)

        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:110)

        at hudson.model.Run.run(Run.java:533)

        at hudson.maven.MavenBuild.run(MavenBuild.java:102)

        at hudson.model.Executor.run(Executor.java:61)

Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks

        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:114)

        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

        at hudson.maven.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:119)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

        ... 15 more

Caused by: The following error occurred while executing this line:

/home/mraible/.hudson/jobs/AppFuse/workspace/trunk/web/struts/src/test/resources/web-tests.xml:23: Canoo Webtest: R_1454.

Test failed.

Test step steps (/home/mraible/.hudson/jobs/AppFuse/workspace/trunk/web/struts/src/test/resources/web-tests.xml:25: ) null failed with message "Step[invoke "get Login Page" (1/6)]: HTTP error 400, at: invoke"

        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)

        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:341)

        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)

        ... 19 more

Caused by: /home/mraible/.hudson/jobs/AppFuse/workspace/trunk/web/struts/src/test/resources/web-tests.xml:23: Canoo Webtest: R_1454.

Test failed.

Test step steps (/home/mraible/.hudson/jobs/AppFuse/workspace/trunk/web/struts/src/test/resources/web-tests.xml:25: ) null failed with message "Step[invoke "get Login Page" (1/6)]: HTTP error 400, at: invoke"

        at com.canoo.webtest.ant.WebtestTask.stopBuildIfNeeded(WebtestTask.java:228)

        at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:175)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:341)

        at org.apache.tools.ant.Target.performTasks(Target.java:369)

        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

        ... 23 more

Archiving /home/mraible/.hudson/jobs/AppFuse/workspace/trunk/web/struts/target/appfuse-struts-2.0-m4-SNAPSHOT.war

finished: FAILURE

Hudson is running in Tomcat under port 8281 and I'm starting Tomcat with Cargo on port 9876. I don't believe there's any port conflicts, but I'm not certain either.

Thanks,

Matt

If you'd like to try building AppFuse with Hudson, it's SVN is at https://appfuse.dev.java.net/svn/appfuse/trunk. Username guest, password is blank.
Reply | Threaded
Open this post in threaded view
|

Re: Hudson has issues building AppFuse 2.0

Kohsuke Kawaguchi-2

I believe you are using the experimental maven2 support, right?

There's a known TODO where the output goes to a console of the server,
so Ant might have reported some errors there.

I also recommend trying the freestyle project, which should work much
better.

mraible wrote:
> If you'd like to try building AppFuse with Hudson, it's SVN is at
> https://appfuse.dev.java.net/svn/appfuse/trunk. Username guest, password is
> blank.

Thanks for the info. And the goal to run is "install"?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Hudson has issues building AppFuse 2.0

mraible
Yes, I am using the experimental maven2 support.  At first, I was getting this issue because there were port conflicts, but I believe they were resolved because I was able to have Hudon+Tomcat running, as well as the Tomcat instance downloaded and installed by Cargo in my integration tests.

I didn't see any additional information in the console - but this is probably Ant and Cargo's fault, not Hudson's.

Yes, running "mvn install" (or "mvn clean install") will download all artifacts and run all unit and integration tests.  If you'd like to use an embedded database like H2 or HSQDB, just add -Ph2 or -Phsqldb.  Otherwise, it's expected that you have a MySQL database installed with a "root" user that has no password.

Matt

Kohsuke Kawaguchi-2 wrote
I believe you are using the experimental maven2 support, right?

There's a known TODO where the output goes to a console of the server,
so Ant might have reported some errors there.

I also recommend trying the freestyle project, which should work much
better.

mraible wrote:
> If you'd like to try building AppFuse with Hudson, it's SVN is at
> https://appfuse.dev.java.net/svn/appfuse/trunk. Username guest, password is
> blank.

Thanks for the info. And the goal to run is "install"?

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com