New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in thread "main" java.util.zip.ZipException: Bad CRC checksum for entry META-INF/MANIFEST.MF #29
Comments
You can do it like this: java -jar jakartaee-migration-1.0.1-shaded.jar -zipInMemory jna-platform-4.5.1.jar jna-platform-4.5.1.jar.jakarta It's a little inefficient, but it'll work. |
Thank you. Yes it works but as you've mentioned it's quite inefficient - takes ~150s instead of ~500ms for this specific jar and my project contains roughly 20 jar files 😅 |
Sure. The difference between 1.0.0 and 1.0.1 is that in order to solve #20, the logic was modified to use common-compression instead of JDK's zip implementation. Hi,@gregorkistler. 1. Note: This is not a release version, it has nothing to do with tc offical, it is only for testing. Thanks |
LGTM No exception any longer on any of the used jars. Thanks! |
Thanks for the test. ;) |
Hi, @aooohan. I am experiencing the same issue as @gregorkistler with the CRC.
OS is Windows 2019 server I'm having TC do the migration by placing the *.war into the webapps-javaee folder. |
Hi, @nissan4x4 You can use this temporary tool to test whether the migration of your war package works.
Note: This is not a release version, it has nothing to do with tc offical, it is only for testing. |
Hi Han,
Thanks for that, but my OS is windows not Unix.
From: Han Li ***@***.***>
Sent: Thursday, 18 August 2022 6:03 PM
To: apache/tomcat-jakartaee-migration
***@***.***>
Cc: nissan4x4 ***@***.***>; Mention
***@***.***>
Subject: Re: [apache/tomcat-jakartaee-migration] Exception in thread "main"
java.util.zip.ZipException: Bad CRC checksum for entry META-INF/MANIFEST.MF
(Issue #29)
Hi, @nissan4x4 <https://github.com/nissan4x4>
jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
<https://github.com/apache/tomcat-jakartaee-migration/files/9371552/jakartae
e-migration-1.0.2-SNAPSHOT-bin.tar.gz>
You can use this temporary tool to test whether the migration of your war
package works.
* tar -zxvf jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
* cd jakartaee-migration-1.0.2-SNAPSHOT/lib
* java -jar jakartaee-migration-1.0.2-SNAPSHOT.jar your-war.war
target-your-war.war OR java -jar your-war-dir target-dir
Note: This is not a release version, it has nothing to do with tc offical,
it is only for testing.
-
Reply to this email directly, view it on GitHub
<#29 (comment)
-1219162105> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2STHNVPDDWEZZTMLWK73CLVZ
XU2PANCNFSM55DDYDUA> .
You are receiving this because you were mentioned.
<https://github.com/notifications/beacon/A2STHNXFZSGOV6GYUOAICMLVZXU2PA5CNFS
M55DDYDUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJCVO76I
.gif> Message ID:
***@***.***
***@***.***> >
|
Sorry, I was careless. The steps are the same, first you need to unzip the package, then go to the lib folder and execute the jakartaee-migration-1.0.2-SNAPSHOT.jar file(the command is the same). JAVA_HOME/bin/java.exe -jar jakartaee-migration-1.0.2-SNAPSHOT.jar your-war.war target-your-war.war |
Thank you very much Han. That worked perfectly.
From: Han Li ***@***.***>
Sent: Thursday, 18 August 2022 7:17 PM
To: apache/tomcat-jakartaee-migration ***@***.***>
Cc: nissan4x4 ***@***.***>; Mention ***@***.***>
Subject: Re: [apache/tomcat-jakartaee-migration] Exception in thread "main" java.util.zip.ZipException: Bad CRC checksum for entry META-INF/MANIFEST.MF (Issue #29)
but my OS is windows not Unix.
Sorry, I was careless.
jakartaee-migration-1.0.2-SNAPSHOT-bin.zip <https://github.com/apache/tomcat-jakartaee-migration/files/9372150/jakartaee-migration-1.0.2-SNAPSHOT-bin.zip>
The steps are the same, first you need to unzip the package, then go to the lib folder and execute the jakartaee-migration-1.0.2-SNAPSHOT.jar file(the command is the same).
JAVA_HOME/bin/java.exe -jar jakartaee-migration-1.0.2-SNAPSHOT.jar your-war.war target-your-war.war
—
Reply to this email directly, view it on GitHub <#29 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A2STHNUAP5UW5I2F5EUGOL3VZX5RZANCNFSM55DDYDUA> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A2STHNXKQCO56MTUDUDBHYTVZX5RZA5CNFSM55DDYDUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJCWBSGQ.gif> Message ID: ***@***.*** ***@***.***> >
|
Hi,
with the release of version 1.0.1 of the Tomcat Migration Tool for Jakarta EE I'm having some issues with a couple of jar files in my project which cannot be migrated due to an exception. Same jar(s) can be migrated using version 1.0.0:
jakartaee-migration-1.0.1-shaded.jar
jakartaee-migration-1.0.0-shaded.jar
Java version: OpenJDK 11 as well as OpenJDK 17
OS version: Ubuntu 22.04 as well as 20.04
Simple reproducer:
docker run -it --rm openjdk:11 bash
java -jar jakartaee-migration-1.0.1-shaded.jar jna-platform-4.5.1.jar jna-platform-4.5.1.jar.jakarta
The text was updated successfully, but these errors were encountered: