Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

CXF and Jakarta Compatibility

848 views
Skip to first unread message

scottk...@gmail.com

unread,
Apr 22, 2024, 3:08:38 PM4/22/24
to ipf-user
Hi folks,

Another compatibility question here.  I'm still working on upgrading to IPF 4.x along with glassfish 7 (jakarta EE 10), and Java 17.  I'm at a point where things are compiling and deploying successfully, but I'm encountering a runtime error when I attempt to invoke the web services:

jakarta.servlet.ServletException: Class org.apache.cxf.transport.servlet.CXFServlet is not a Servlet

Some initial scouting around stackoverflow is indicating to me that this is the result of using CXF dependencies that are not compatible with Jakarta - specifically that CXF is not Jakarta-compatible until version 4.x.  Looking in maven, it seems like ipf-commons-ihe-ws imports CXF version 3.6.2 jars.  But I'm wondering if I'm missing something obvious here because I have to imagine that users are deploying IPF apps in jakarta environments at this point, so I would think there's some way to make this work.  Thanks

Michael Knapp

unread,
Apr 22, 2024, 3:23:01 PM4/22/24
to ipf-...@googlegroups.com
Not compatible yet. Wait for IPF 5.0

Regards,
Michael Knapp

scottk...@gmail.com

unread,
Apr 22, 2024, 3:40:50 PM4/22/24
to ipf-user
Gotcha, thanks Michael.  I suppose the natural follow-up question: is there a planned release date for 5.0?  I didn't immediately see one in the github project but I could have missed it.  

Michael Knapp

unread,
Apr 22, 2024, 6:58:49 PM4/22/24
to ipf-...@googlegroups.com
Am Mo., 22. Apr. 2024 um 21:40 Uhr schrieb scottk...@gmail.com <scottk...@gmail.com>:
Gotcha, thanks Michael.  I suppose the natural follow-up question: is there a planned release date for 5.0?  I didn't immediately see one in the github project but I could have missed it.  

Christian Ohr

unread,
Apr 23, 2024, 10:17:45 AM4/23/24
to ipf-...@googlegroups.com
Release date mostly depends on the CXF 4.1 release.
The main IPF branch already builds (with the one or other CXF test disabled).
In the meanwhile, CXF provides snapshot builds for 4.1.0 here: https://repository.apache.org/content/groups/snapshots/org/apache/cxf/

best regards
Christian

--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/CAJwHso0vhzX6iy_JNKOWwBbOAreX6jmJuM1n7LRfskn7X%3DM-Aw%40mail.gmail.com.

scottk...@gmail.com

unread,
May 3, 2024, 6:58:15 PM5/3/24
to ipf-user
Thanks Christian,

Follow-up question: If we take Jakarta 10 out of the picture for a moment, and I roll back to Jakarta 9 (glassfish 6.2.x, in my case), it seems like CXF 4.0 is meant to be compatible there (https://cxf.apache.org/docs/40-migration-guide.html).  ipf-commons-ihe-ws imports a bunch of CXF 3.x stuff, but is it your impression that I might be able to adjust my pom to pull in the CXF 4.0 stuff and retain compatibility with IPF?  Or is there a version of the IPF dependencies that include CXF 4.0 (and thus are compatible with JEE 9?  I'm literally just trying to find any compatible stack that gets me off of Java 8.  Thanks,

Scott

Thomas Papke

unread,
May 5, 2024, 5:52:04 AM5/5/24
to ipf-user
Hello Scott,

i don't think that raising CXF to 4.0 while staying on IPF 4 and camel 3 will work.
From IPF perspective, you can use java 11 - 21 with IPF 4 (+ cxf 3.6). But it looks like your Glassfish container seems to add a restriction to java 8 when using a j2ee 8 runtime.

I have checked the mess of javax -> jakarta and J2ee 9.1 vs 10 again. It might be already ok not to wait for CXF 4.1, since 4.0 already use j2EE 9.1 and has done the transition to jakarta.

@Christian / Boris: 
Since the IPF build on main looks fine, even with CXF 4.0, does it make sense to create a milestone release? So Scott and others can assist with verifing this new major release.

Best regards,
Thomas

scottk...@gmail.com

unread,
May 6, 2024, 12:45:40 PM5/6/24
to ipf-user
Hi Thomas,

Thanks - yes I think you captured my conundrum and resulting question exactly.  The Glassfish J2EE 8 implementations only support JDK8, whereas the later implementations support the more recent runtime versions.  Since CXF already has a J2EE 9.1 / Jakarta namespace release (4.0), and you folks have noted that IPF already builds in test with CXF 4.1, it seems like we could at least test IPF compatibility with J2EE 9 with the CXF 4.0 dependencies (and hey, maybe it 'just works' ;).  

Scott

Christian Ohr

unread,
May 7, 2024, 5:12:20 AM5/7/24
to ipf-...@googlegroups.com
I assume we can make a milestone tag based on CXF 4.0.4. 
However, our hands will be tied if any problems in this area occur.... E.g. there is one issue (mailing list threads see https://lists.apache.org/thread/ychr81b1z12mvl06z170h3j9rlz9411p) which has been fixed in CXF 4.1 snapshot builds, but is present in CXF 4.0.4. This made me disable one async webservice test to make the build succeed.

regards
Christian

Boris Stanojević

unread,
May 9, 2024, 8:08:17 AM5/9/24
to ipf-...@googlegroups.com
ipf-5.0-m1 milestone is released;

cheers,
Boris

scottk...@gmail.com

unread,
May 9, 2024, 6:29:05 PM5/9/24
to ipf-user
Thanks Boris (and team) - is this something I'll be able to pull in via Maven central in the near future, or do I need to access it through a specific repository?  Much appreciated,

Scott

Dmytro Rud

unread,
May 10, 2024, 12:53:17 AM5/10/24
to ipf-...@googlegroups.com
Hi Scott

The release is already available in the Maven Central repository, see https://central.sonatype.com/artifact/org.openehealth.ipf/ipf/versions.

Best regards
Dmytro


Boris Stanojević

unread,
May 10, 2024, 2:53:04 AM5/10/24
to ipf-...@googlegroups.com
Hi Scott, yes, you can pull it from maven central,

best regards,
Boris

scottk...@gmail.com

unread,
May 10, 2024, 10:56:26 AM5/10/24
to ipf-user
Very cool, thanks again guys!  I'll keep you posted on any interesting results.  

Michael Knapp

unread,
May 14, 2024, 1:38:07 PM5/14/24
to ipf-...@googlegroups.com
Am Fr., 10. Mai 2024 um 16:56 Uhr schrieb scottk...@gmail.com
<scottk...@gmail.com>:
>
> Very cool, thanks again guys! I'll keep you posted on any interesting results.

I'm in the process of converting my project to JEE10 (JDK17, Wildfly
31) too and was waiting for IPF 5.0.
What I can say is that 5.0-m1 works fine so far for my project.

Michael
Reply all
Reply to author
Forward
0 new messages