tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Schwarzer (JIRA)" <j...@apache.org>
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

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

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(DeploymentLoader.java:1905)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:548)
        at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:44)
        ... 52 more
    Caused by: java.io.IOException: Unable to unzip /opt/tomee/temp/43c804d4-c317-4d9f-b6ef-598997824907.war
        at org.apache.openejb.loader.Zips.unzip(Zips.java:69)
        at org.apache.openejb.loader.Zips.unzip(Zips.java:29)
        at org.apache.openejb.util.JarExtractor.extract(JarExtractor.java:105)
        at org.apache.openejb.util.JarExtractor.extract(JarExtractor.java:65)
        at org.apache.openejb.config.DeploymentLoader.unpack(DeploymentLoader.java:1903)
        ... 54 more
    Caused by: java.util.zip.ZipException: invalid code lengths set
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
        at java.io.FilterInputStream.read(FilterInputStream.java:107)
        at org.apache.openejb.loader.IO.copy(IO.java:264)
        at org.apache.openejb.loader.IO.copy(IO.java:246)
        at org.apache.openejb.loader.Zips.unzip(Zips.java:57)
        ... 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: https://issues.apache.org/jira/browse/TOMEE-1102
>             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: http://openejb.979440.n4.nabble.com/Arquillian-remote-adapter-not-able-to-deploy-to-a-quot-really-remote-quot-TomEE-td4666941.html
> ------------------------------------------
> 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 (https://github.com/apache/tomee/blob/tomee-1.6.0/arquillian/arquillian-tomee-common/src/main/java/org/apache/openejb/arquillian/common/TomEEContainer.java)
does not deploy the archive but only passes the archives path to the remotly running TomEE.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message