liferay: java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException when using OpenJDK 1.7

Solution Verified - Updated -

Issue

  • We are getting the below exception with OpenJDK 1.7 while modifying an image.
  • we are trying to run LifeRay on EAP with OpenJDK 1.7 and get exceptions.
java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException

This does not happen with Sun/Oracle JDK's nor does it happen with OpenJDK 1.6

Environment

  • JBoss Enterprise Application Platform (EAP)

    • All versions
  • OpenJDK

    • 1.7

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