Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Random NoClassDefFoundError when initializing CXF

66 views
Skip to first unread message

avanka...@hotmail.com

unread,
Jan 15, 2025, 8:02:56 AMJan 15
to WildFly
Hi,

We are experiencing random noclassdeffound errors when we do SOAP calls and CXF is being initialized. 

Stacktrace is below:


Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.cxf.attachment.AttachmentUtil  at org.apa...@4.0.5//org.apache.cxf.interceptor.AttachmentOutInterceptor.handleMessage(AttachmentOutInterceptor.java:66)  at org.apa...@4.0.5//org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)  at org.apa...@4.0.5//org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)  at org.apa...@4.0.5//org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)  at org.apa...@4.0.5//org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)  at org.apa...@4.0.5//org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)  at org.apache.cxf.impl//org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)  at org.apache.cxf.impl//org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)  at deployment.ourapplication.war/jdk.proxy11/jdk.proxy11.$Proxy518.versionHash(Unknown Source)  at deployment. ourapplication .war//


Wildfly version: 34.0.0.Final
Java version:  Adoptium 17.0.10+7


Its random but seems to happen more frequently on 34 , before we were on 26 and didnt suffer from this.
We are in a migration from javax to jakarta.


Anyone else experiencing this ? or an explanation ? 

thx!


Jim Ma

unread,
Jan 25, 2025, 9:52:16 PMJan 25
to avanka...@hotmail.com, WildFly
Did you find what is the not found class ? is it jakarta.activation.MailcapCommandMap? 

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/dccf3c88-c20f-467f-8deb-227263da681an%40googlegroups.com.

Michael Douglass

unread,
Jan 27, 2025, 4:11:28 PMJan 27
to wil...@googlegroups.com

May not be related but I posted an issue on their (apache cxf) site about a different error but also intermittent and confusing. I had made some updates to mostly unrelated code and redeployed and a service which ran without errors now had intermittent failures (about every 30-40 connections). They went away if I increased the heap size from 2G to 6G.

I was calling getPort way too often (once per request) - fixed that and the errors disappeared.

Martial KIBA

unread,
Jan 29, 2025, 5:21:16 AMJan 29
to Michael Douglass, wil...@googlegroups.com
I think it is a problem with the SOAP API.

The code I am testing is their quickstarts. The code is just sending a text concatenated with the parameter.





--
KIBA Martial
Tél: +226 67 03 03 03 / 78 00 00 02
Mail alternatif: mki...@yahoo.fr
Reply all
Reply to author
Forward
0 new messages