h2 and access to jdk.net

20 views
Skip to first unread message

avanka...@hotmail.com

unread,
Feb 20, 2026, 2:48:17 AM (9 days ago) Feb 20
to WildFly
Hi,

I was working on a wildfly project supported by a H2 database using the supplied module from wildfly. After recording some java internals with flightrecorder i noticed that there where a lot classdefnotfound exceptions from H2.

This class "jdk.net.ExtendedSocketOptions" could not be found during runtime of my application. 

see :


I tried many things to "open" and/ or expose the jdk.net module using the module parameters on the JVM commandline to no avail.

Finally i inspected the module.xml that came with H2 in wildfly and saw that the jdk.net was not mentioned in the dependencies list.

Once i added the jdk.net as a dependency the exceptions dissapeard.

Although the exceptions are internally caught and ignored., I think its better not to throw them at all. And maybe update the module.xml for H2 in the next release?

Regards,





Reply all
Reply to author
Forward
0 new messages