Comments (10)
I've meanwhile switched back to version 1.0.0 which works as intended.
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.
I've tried to fix the problem, can you test it with this fixed version?
branch: https://github.com/aooohan/tomcat-jakartaee-migration/tree/test_deflated
OR
jar:
jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
1.tar -zxvf jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
2.cd jakartaee-migration-1.0.2-SNAPSHOT/lib
3.java -jar jakartaee-migration-1.0.2-SNAPSHOT.jar jna-platform-4.5.1.jar jna-platform-4.5.1.jar.jakarta
Note: This is not a release version, it has nothing to do with tc offical, it is only for testing.
Thanks
from tomcat-jakartaee-migration.
Hi,@gregorkistler. I've tried to fix the problem, can you test it with this fixed version? branch: https://github.com/aooohan/tomcat-jakartaee-migration/tree/test_deflated OR jar: jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
1.
tar -zxvf jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
2.cd jakartaee-migration-1.0.2-SNAPSHOT/lib
3.java -jar jakartaee-migration-1.0.2-SNAPSHOT.jar jna-platform-4.5.1.jar jna-platform-4.5.1.jar.jakarta
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!
from tomcat-jakartaee-migration.
from tomcat-jakartaee-migration.
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.
from tomcat-jakartaee-migration.
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 😅
I've meanwhile switched back to version 1.0.0 which works as intended.
from tomcat-jakartaee-migration.
Hi,@gregorkistler. I've tried to fix the problem, can you test it with this fixed version? branch: https://github.com/aooohan/tomcat-jakartaee-migration/tree/test_deflated OR jar: jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
1.tar -zxvf jakartaee-migration-1.0.2-SNAPSHOT-bin.tar.gz
2.cd jakartaee-migration-1.0.2-SNAPSHOT/lib
3.java -jar jakartaee-migration-1.0.2-SNAPSHOT.jar jna-platform-4.5.1.jar jna-platform-4.5.1.jar.jakarta
Note: This is not a release version, it has nothing to do with tc offical, it is only for testing.
ThanksLGTM
No exception any longer on any of the used jars. Thanks!
Thanks for the test. ;)
from tomcat-jakartaee-migration.
Hi, @aooohan. I am experiencing the same issue as @gregorkistler with the CRC.
18-Aug-2022 14:55:06.339 WARNING [Catalina-utility-1] org.apache.catalina.startup.HostConfig.migrateLegacyApp Migration failure
java.util.zip.ZipException: Bad CRC checksum for entry META-INF/MANIFEST.MF: 277a0274 instead of 5cfc51fe
at org.apache.tomcat.jakartaee.commons.compress.archivers.zip.ZipArchiveOutputStream.handleSizesAndCrc(ZipArchiveOutputStream.java:718)
OS is Windows 2019 server
JAVA 8 (jre-8u341-windows-i586)
Tomcat 10.0.23
I'm having TC do the migration by placing the *.war into the webapps-javaee folder.
from tomcat-jakartaee-migration.
Hi, @nissan4x4
jakartaee-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
ORjava -jar jakartaee-migration-1.0.2-SNAPSHOT.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.
from tomcat-jakartaee-migration.
from tomcat-jakartaee-migration.
but my OS is windows not Unix.
Sorry, I was careless.
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
from tomcat-jakartaee-migration.
Related Issues (20)
- facing issue while migrating the war HOT 2
- Migrates packages that should not be migrated HOT 2
- Vulnerability with Apache Commons Compress v1.20 HOT 6
- Copyright and Derived Works HOT 10
- java.lang.IllegalArgumentException: Unknown Entity bean class with eclipselink in tomcat 10 HOT 2
- Exception occured while sending Websocket Message and the session is being closed. HOT 1
- Manifest in exploded osgi bundle is not migrated
- v1.0.3 causes java.lang.IllegalArgumentException: java.io.EOFException on certain Tomcat War deployments HOT 4
- Does this project work in a spring 5 project? HOT 1
- Fix (remove) "javax.servlet.*" package version when processing the MANIFEST.MF HOT 3
- The AJP Connector is configured with secretRequired="true" HOT 5
- Does this work tool work at the source or binary level? HOT 1
- "java.util.zip.ZipException: invalid entry size (expected 0 but got 913 bytes)" when opening migrated jar with `java.util.zip.ZipInputStream` HOT 35
- EE package migration HOT 2
- Workaround for JDK-8303866 makes migrated jar incompatible with latest JDK releases HOT 2
- Request to support ear file type as archive file HOT 1
- How can I know the migrated jar is actually "touched" or not after running MigrationCLI HOT 2
- Support jspf as text file type HOT 1
- activemq 5.16.x not working after converting javax to jakarta using tomcat transformer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tomcat-jakartaee-migration.