Migrating from javax to jakarta

280 views
Skip to first unread message

Anton Mostovenko

unread,
Mar 6, 2024, 9:12:21 AM3/6/24
to iDempiere
Hello!
Palich team needs an advice :)
We are upgrading to a new iDempiere version and currently facing a problem. There are a few places where we are using SOAP client classes based on a javax lib. It works in Java 8, but in future versions it was moved to jakarta lib. And it turns out that migration from one to another is not an easy task.
We tried to define dependencies in Maven to get Jakarta libraries, but it's not working properly. Eclipse does not show any problems. Running process stops with an error: "java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: jakarta/xml/ws/WebServiceException". All required libraries were added to pom.xml using "maven-dependency-plugin". I think there is some type of conflict with existing versions appears.

Another attempt was made by editing Target Platform. We walked through a chain of dependencies, raising versions of every library. But in the end there is also a problem:

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.adempiere.base 10.0.0.qualifier
[ERROR]   Missing requirement: org.adempiere.base 10.0.0.qualifier requires 'java.package; jakarta.mail 2.0.1' but it could not be found


jakarta.mail 2.0.1 is in the Target Platform and downloaded successfully.


Also I tried to extract plugin with our process and run it as a separate Maven Project and it works fine.

Has anyone had experience with migrating to jakarta lib? Any advices?

Thanks,
Palich team.

Hiep Lq

unread,
Mar 6, 2024, 11:38:53 PM3/6/24
to idem...@googlegroups.com

Where do you get this error from? 
on mvn verify or run server from eclipse or run server from command line?

1. mvn verify => need more log
2. run server from eclipse => check plugin tab of launching configuration already has jakarta.mail 2.0.1
3. run server from command line => make sure you already add jakarta.mail 2.0.1 to feature

Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/acbb0d0f-8016-4de0-916e-b36529e2311en%40googlegroups.com.

Anton Mostovenko

unread,
Mar 7, 2024, 1:19:06 AM3/7/24
to iDempiere
it's from "mvn verify".
I didn't try to run server. It's pointless while "verify" is not complete.

четверг, 7 марта 2024 г. в 07:38:53 UTC+3, hie...@hasuvimex.vn:

Hiep Lq

unread,
Mar 7, 2024, 1:43:26 AM3/7/24
to idem...@googlegroups.com
Can you give more logs?

i guess you not yet add that plugin to a feature (example org.adempiere.base-feature)

Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Anton Mostovenko

unread,
Mar 7, 2024, 2:03:12 AM3/7/24
to iDempiere
No, unfortunately I can't. I already rolled it backed.
There were no additional error logs. Only usual successfull parts.

четверг, 7 марта 2024 г. в 09:43:26 UTC+3, hie...@hasuvimex.vn:
Reply all
Reply to author
Forward
0 new messages