1 Reply Latest reply on Aug 8, 2012 10:48 AM by Roger Lee

    Caused by: java.lang.NoClassDefFoundError: com/sun/media/jai/codec/SeekableStream

    Roger Lee Apprentice

      I am trying to migrate a live application from JBoss 6.1.0 Final running on Windows 7 to JBoss 7.1.1 Final.


      I can’t get rid of the class not found error for the Java Advanced Imaging library.


      Caused by: java.lang.NoClassDefFoundError: com/sun/media/jai/codec/SeekableStream


      I have create a module.xml in;




      and have added the two JARs to the folder;





      The module.xml contains;


      <module xmlns="urn:jboss:module:1.1" name="com.sun.media.jai" >



                       <resource-root path="jai_codec.jar"/>

                       <resource-root path="jai_core.jar"/>

                  <!-- Insert resources here -->




                       <module name="com.sun.media.jai.codec" />


                       <module name="com.sun.media.jai.codecimpl" export="true"/>

                       <module name="com.sun.media.jai.codecimpl.fpx" export="true"/>

                       <module name="com.sun.media.jai.codecimpl.util" export="true"/>





      I have a jboss-deployment-structure.xml which is deployed in the META-INF folder of the EAR.


      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">



                  <module name="com.sun.media.jai" />

                  <module name="javax.faces.api" />






      Any ideas?



      Roger Lee