tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Schwarzer (JIRA)" <>
Subject [jira] [Commented] (TOMEE-1102) Remote adapter does transfer war to remote TomEE, but only path
Date Tue, 07 Jan 2014 16:29:51 GMT


Fabian Schwarzer commented on TOMEE-1102:

Progress: My war build by Arquillian/ShrinkWrap gets transfered to the remote TomEE (.../tomee/temp/)

But: I get an exception
Caused by: org.apache.openejb.OpenEJBException: Unable to extract jar. Unable to unzip /opt/tomee/temp/43c804d4-c317-4d9f-b6ef-598997824907.war:
Unable to unzip /opt/tomee/temp/43c804d4-c317-4d9f-b6ef-598997824907.war
        at org.apache.openejb.config.DeploymentLoader.unpack(
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(
        at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(
        ... 52 more
    Caused by: Unable to unzip /opt/tomee/temp/43c804d4-c317-4d9f-b6ef-598997824907.war
        at org.apache.openejb.loader.Zips.unzip(
        at org.apache.openejb.loader.Zips.unzip(
        at org.apache.openejb.util.JarExtractor.extract(
        at org.apache.openejb.util.JarExtractor.extract(
        at org.apache.openejb.config.DeploymentLoader.unpack(
        ... 54 more
    Caused by: invalid code lengths set
        at org.apache.openejb.loader.IO.copy(
        at org.apache.openejb.loader.IO.copy(
        at org.apache.openejb.loader.Zips.unzip(
        ... 58 more

The zip file is corrupted. I can't unzip it manually.
If I save the war right after the ShrinkWrap zipping with new ZipExporterImpl(archive).exportTo(new
File('test.war'), true), I can unzip the war file. Something between packaging by Shrinkwrap
and unzipping on the remote TomEE is messing with the file. I could not yet figure out what
that something is...

> Remote adapter does transfer war to remote TomEE, but only path
> ---------------------------------------------------------------
>                 Key: TOMEE-1102
>                 URL:
>             Project: TomEE
>          Issue Type: Improvement
>          Components: TomEE Arquillian Adapters
>    Affects Versions: 1.6.0
>            Reporter: Fabian Schwarzer
>            Priority: Blocker
>         Attachments: TOMEE-1102.patch
> Previous discussion on the user mailing list:
> ------------------------------------------
> The TomEE remote adapter does not work in a setup where an already running remote TomEE
is not on the same system as the JVM that executes the Arquillian tests.
> The reason for this is that TomEEContainer#deploy (
does not deploy the archive but only passes the archives path to the remotly running TomEE.

This message was sent by Atlassian JIRA

View raw message