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;
modules/com/sun/media/jai./main
and have added the two JARs to the folder;
jai_core.jar
jai_codec.jar
The module.xml contains;
<module xmlns="urn:jboss:module:1.1" name="com.sun.media.jai" >
<resources>
<resource-root path="jai_codec.jar"/>
<resource-root path="jai_core.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<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"/>
-->
</dependencies>
</module>
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">
<deployment>
<dependencies>
<module name="com.sun.media.jai" />
<module name="javax.faces.api" />
</dependencies>
</deployment>
</jboss-deployment-structure>
Any ideas?
Thanks.
Roger Lee
I'm confused.
If you are using the jboss-deployment-structure do you still need to include a MANIFEST file with the JARs listed as Dependencies?
Thanks