I have a project based in Spring Web model-view-controller (MVC) framework. The version of the Spring Web model-view-controller (MVC) framework is 3.2.8 deployed on a WebLogic Server Version: 12.1.2.0.0
I have this error:
]] Root cause of ServletException.
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/github/jaiimageio/impl/plugins/bmp/BMPImageReader
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2212)
at com.google.common.cache.LocalCache.get(LocalCache.java:4053)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986)
at com.tdk.iot.utils.DeviceCache.get(DeviceCache.java:42)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: com/github/jaiimageio/impl/plugins/bmp/BMPImageReader
at com.github.jaiimageio.impl.plugins.bmp.BMPImageReaderSpi.createReaderInstance(BMPImageReaderSpi.java:123)
at javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320)
at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:529)
at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:513)
at javax.imageio.ImageIO.read(ImageIO.java:1443)
Truncated. see log file for complete stacktrace
I've checked the ear and I have already included these jars:
jai-imageio-core-1.3.1.jar
jai_codec.jar
ai_core.jar
mlibwrapper_jai.jar
The Curious think is that the same ear works fine in my localhost, but not in anoher server with the same configuration
Here When I find the class in my eclipse:
I also added this to weblogic-application.xml
<prefer-application-packages>
<package-name>com.github.jaiimageio.*</package-name>
</prefer-application-packages>