EAP 7 hits java.lang.ClassCastException for class org.jboss.vfs.VirtualJarInputStream after upgrading java to 11.0.16+

Solution Verified - Updated -

Issue

  • After upgrading our JDK to latest java 11.0.16+, we see the following ClassCastException
WARN [org.reflections.Reflections] (Batch Thread - 1) could not create Dir using jboss_vfs from url vfs:/content/app.ear/app.jar/. skipping.: java.lang.ClassCastException: class org.jboss.vfs.VirtualJarInputStream cannot be cast to class org.jboss.vfs.VirtualFile (org.jboss.vfs.VirtualJarInputStream and org.jboss.vfs.VirtualFile are in unnamed module of loader 'org.jboss.vfs@3.2.15.Final' @6b57696f)

Environment

  • JBoss Enterprise Application Platform (EAP) 7.4.6 and earlier
  • Java 11.0.16+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content