It looks like something strange is happening when the cargo plugin tries to
download and install Apache Tomcat. The zip that comes down seems to be
corrupted - it may be worth checking if you can download it on your Linux
box manually and if you can unzip it without error (using a utility like
unzip). If you can, then try deleting the temp directory and running the
build again. If that still does not work, stick the zip somewhere on the
file system and point the build to it....
You may want to create a special profile for your Linux build that works
around the problem.
Mike
On 8/22/07, Kanchana <[EMAIL PROTECTED]> wrote:
>
>
> Hi Mike
> Thanks for the reply..btw I'm on linux and I checked on windows the same
> spring basic build. it doesn't have to change the pom.xml manually.
> is that I'm on linux is the fact that I have to edit this manually?While
> the
> build running it creates a folder
> /tmp/core/installs/apache-5.5.23.zip automatically.
> any comments would be really appreciated
> Thanks and Regards
> Kanchana
>
>
> Mike Horwitz wrote:
> >
> > If you look in your top level pom.xml there should be a property called
> > cargo.container.url (look for the properties relating to tomcat5x). If
> you
> > download the zip using the url, can you open it? If so you may want to
> > drop
> > the zip somewhere on your file system and change the URL to point to
> that
> > location.
> >
> > Mike
> >
> >
> > On 8/22/07, Kanchana <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi All
> >>
> >> I was working on the Sample tutorials (spring base)of appfuse and when
> I
> >> do
> >> the mvn integration-test it gave the following error.I removed the
> >> complianed stuff from the repository and did a on line build and tested
> >> in
> >> many other ways.But still it's throw the same error.can any one please
> >> help
> >> in this?
> >>
> >>
> >> Thanks and Regards
> >> Kanchana
> >> [INFO] Surefire report directory:
> >> /home/kanchi/work/springbase/target/surefire-reports
> >>
> >> -------------------------------------------------------
> >> T E S T S
> >> -------------------------------------------------------
> >> Running com.mycompany.app.AppTest
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047sec
> >>
> >> Results :
> >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> >>
> >> [INFO] [dbunit:operation {execution: test}]
> >> [INFO] [war:war]
> >> [INFO] Exploding webapp...
> >> [INFO] Assembling webapp springbase in
> >> /home/kanchi/work/springbase/target/springbase-1.0-SNAPSHOT
> >> [INFO] Copy webapp webResources to
> >> /home/kanchi/work/springbase/target/springbase-1.0-SNAPSHOT
> >> [INFO] Expanding:
> >>
> /home/kanchi/.m2/repository/org/appfuse/appfuse-web-common/2.0-m5/appfuse-
> >> web-common-2.0-m5.war
> >> into /home/kanchi/work/springbase/target/war/work/appfuse-
> >> web-common-2.0-m5
> >> [INFO] Expanding:
> >> /home/kanchi/.m2/repository/org/appfuse/appfuse-spring/2.0-m5/appfuse-
> >> spring-2.0-m5.war
> >> into /home/kanchi/work/springbase/target/war/work/appfuse-spring-2.0-m5
> >> [INFO] Overlaying 2 war(s).
> >> [INFO] Generating war
> >> /home/kanchi/work/springbase/target/springbase-1.0-SNAPSHOT.war
> >> [INFO] Building war:
> >> /home/kanchi/work/springbase/target/springbase-1.0-SNAPSHOT.war
> >> [INFO] [cargo:start {execution: start-container}]
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [ERROR] FATAL ERROR
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Error while expanding /tmp/cargo/installs/apache-
> tomcat-5.5.23.zip
> >> Unexpected end of ZLIB input stream
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Trace
> >> Error while expanding /tmp/cargo/installs/apache-tomcat-5.5.23.zip
> >> at
> >> org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:164)
> >> at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:127)
> >> at
> >> org.codehaus.cargo.container.installer.ZipURLInstaller.unpack(
> >> ZipURLInstaller.java:239)
> >> at
> >> org.codehaus.cargo.container.installer.ZipURLInstaller.install(
> >> ZipURLInstaller.java:136)
> >> at
> >> org.codehaus.cargo.maven2.configuration.Container.setupHome(
> Container.java
> >> :337)
> >> at
> >> org.codehaus.cargo.maven2.configuration.Container.createContainer(
> >> Container.java:221)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(
> >> AbstractCargoMojo.java:380)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(
> >> AbstractCargoMojo.java:320)
> >> at
> >> org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(
> >> ContainerStartMojo.java:52)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(
> AbstractCargoMojo.java
> >> :243)
> >> at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> >> DefaultPluginManager.java:443)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> >> DefaultLifecycleExecutor.java:539)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> >> (DefaultLifecycleExecutor.java:480)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> >> DefaultLifecycleExecutor.java:459)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> >> (DefaultLifecycleExecutor.java:311)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (
> >> DefaultLifecycleExecutor.java:278)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> >> DefaultLifecycleExecutor.java:143)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :334)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >> 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:585)
> >> at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >> at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
> >> at
> >> java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:216)
> >> at
> >> java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
> >> at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
> >> at java.io.FilterInputStream.read(FilterInputStream.java:90)
> >> at org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java
> >> :247)
> >> at
> >> org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:157)
> >> ... 27 more
> >> --- Nested Exception ---
> >> java.io.EOFException: Unexpected end of ZLIB input stream
> >> at
> >> java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:216)
> >> at
> >> java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
> >> at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
> >> at java.io.FilterInputStream.read(FilterInputStream.java:90)
> >> at org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java
> >> :247)
> >> at
> >> org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:157)
> >> at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:127)
> >> at
> >> org.codehaus.cargo.container.installer.ZipURLInstaller.unpack(
> >> ZipURLInstaller.java:239)
> >> at
> >> org.codehaus.cargo.container.installer.ZipURLInstaller.install(
> >> ZipURLInstaller.java:136)
> >> at
> >> org.codehaus.cargo.maven2.configuration.Container.setupHome(
> Container.java
> >> :337)
> >> at
> >> org.codehaus.cargo.maven2.configuration.Container.createContainer(
> >> Container.java:221)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(
> >> AbstractCargoMojo.java:380)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(
> >> AbstractCargoMojo.java:320)
> >> at
> >> org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(
> >> ContainerStartMojo.java:52)
> >> at
> >> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(
> AbstractCargoMojo.java
> >> :243)
> >> at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> >> DefaultPluginManager.java:443)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> >> DefaultLifecycleExecutor.java:539)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> >> (DefaultLifecycleExecutor.java:480)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> >> DefaultLifecycleExecutor.java:459)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> >> (DefaultLifecycleExecutor.java:311)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (
> >> DefaultLifecycleExecutor.java:278)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> >> DefaultLifecycleExecutor.java:143)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :334)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >> 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:585)
> >> at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >> at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/test-fail-in-mvn-integration-test-tf4310063s2369.html#a12269965
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/test-fail-in-mvn-integration-test-tf4310063s2369.html#a12273022
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>