hungvietnguyen opened a new issue, #46: URL: https://github.com/apache/tomcat-jakartaee-migration/issues/46
### Context I'm investigating https://youtrack.jetbrains.com/issue/KT-57767 where the build fails when reading [tomcat-embed-core-10.1.7-jakartaee.jar](https://github.com/apache/tomcat-jakartaee-migration/files/11252858/tomcat-embed-core-10.1.7-jakartaee.zip) *(Note: If you download the above file, you'll get a `.zip` file because GitHub doesn't accept uploading `.jar`s so I had to rename it to `.zip`.)* That jar was converted from [tomcat-embed-core-10.1.7.jar](https://repo1.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-core/10.1.7/tomcat-embed-core-10.1.7.jar) by the [Gradle Jakarta EE Migration plugin](https://github.com/nebula-plugins/gradle-jakartaee-migration-plugin), which uses the [Apache Tomcat migration tool for Jakarta EE](https://github.com/apache/tomcat-jakartaee-migration). If I open the migrated jar using [java.util.zip.ZipInputStream](http://www.java2s.com/Tutorial/Java/0180__File/UnzipusingtheZipInputStream.htm), I'll get: ``` java.util.zip.ZipException: invalid entry size (expected 0 but got 913 bytes) ``` If I open it using [java.util.zip.ZipFile](https://jenkov.com/tutorials/java-zip/zipfile.html), I'll get: ``` java.util.zip.ZipException: invalid CEN header (bad signature) ``` This suggests that there is a bug in either `ZipInputStream` (e.g., https://bugs.openjdk.org/browse/JDK-8298530), `ZipFile`, the `tomcat-jakartaee-migration` tool, or a combination of them. ### Request Please investigate whether this is a bug in the `tomcat-jakartaee-migration` tool. Even if it isn't, it would still be nice to change the way the tool generates migrated jars such that they can be read by `ZipInpuStream` or `ZipFile` API. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org