[Geoserver-users] GeoServer 2.3.0 and and JBoss 7.1.1 WMS Issue

The issue I’m having is running GeoServer 2.3.0 with JBoss 7.1.1 on CentOS 6.3 with Open JDK 1.6 and getting a WMS getMap request to work when requesting a PNG or JPEG (it works when the format is TIFF). The only thing a OpenLayers request returns is a blank canvas and the error message below which can be seen in full detail in the attached server.log file. In GeoServer 2.2.4 I was able to do an OpenLayers layer preview and it worked without issue. I also tried 2.3.0 with Tomcat 7 and had no issues. Has anyone seen this before and know of a solution?

08:04:17,546 ERROR [org.geoserver.ows] (http–127.0.0.1-8080-1) : java.lang.NoClassDefFoundError: com/sun/imageio/plugins/jpeg/JPEGImageWriterSpi

at org.geotools.image.ImageWorker.(ImageWorker.java:150) [gt-coverage-9.1.jar:]
at org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:117) [wms-2.3.1.jar:2.3.1]
at org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:122) [wms-2.3.1.jar:2.3.1]
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:919) [ows-2.3.1.jar:2.3.1]
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:276) [ows-2.3.1.jar:2.3.1]

08:04:17,729 ERROR [org.geoserver.ows] (http–127.0.0.1-8080-1) : java.lang.NoClassDefFoundError: Could not initialize class org.geotools.image.ImageWorker
at org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:117) [wms-2.3.1.jar:2.3.1]
at org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:122) [wms-2.3.1.jar:2.3.1]
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:919) [ows-2.3.1.jar:2.3.1]
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:276) [ows-2.3.1.jar:2.3.1]
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) [spring-webmvc-3.1.1.RELEASE.jar:3.1.1.RELEASE]

jboss-classloading.xml

jboss-deployment-structure.xml











Thanks,
Max


View this message in context: GeoServer 2.3.0 and and JBoss 7.1.1 WMS Issue
Sent from the GeoServer - User mailing list archive at Nabble.com.

Was able to resolve this issue after coming across JIRA AS7-3958. The
imageio packages are not in the sun.jdk module for JBoss 7.1.1. This issue
is resolved in JBoss 7.2.0.

*Some packages required to use the Java Advanced Imaging (JAI) API are
missing in the module sun.jdk. *
https://issues.jboss.org/browse/AS7-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Workaround is included here.
https://issues.jboss.org/browse/AS7-3958?page=com.atlassian.jirafisheyeplugin:crucible-issuepanel

These packages (and its descendants) are missing in the sun.jdk module:
com.sun.image
com.sun.image.codec
com.sun.image.codec.jpeg
com.sun.imageio
com.sun.imageio.plugins
com.sun.imageio.plugins.bmp
com.sun.imageio.plugins.common
com.sun.imageio.plugins.gif
com.sun.imageio.plugins.jpeg
com.sun.imageio.plugins.png
com.sun.imageio.plugins.wbmp
com.sun.imageio.spi
com.sun.imageio.stream

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-3-0-and-and-JBoss-7-1-1-WMS-Issue-tp5049203p5049287.html
Sent from the GeoServer - User mailing list archive at Nabble.com.