ClassCastException: org.jboss.vfs.VirtualFile cannot be cast to java.awt.image.ImageProducer in JBoss EAP 7 / 6

Solution Unverified - Updated -

Issue

 java.lang.ClassCastException: org.jboss.vfs.VirtualFile cannot be cast to java.awt.image.ImageProducer
    at reproducer.LoadImageTest.loadImage2(LoadImageTest.java:20)
    at reproducer.LoadImageTest.<init>(LoadImageTest.java:8)
    at org.apache.jsp.test_jsp._jspService(test_jsp.java:103)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.1
    • 7.0
    • 6.4

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