我正在尝试在jboss-as 7.1.1-final上部署geoserver.war(2.2.1)
日志已上传到Pastebin,在那里最好可读。
在两个CNFE
旁边- 07:23:51 java.lang.noclassdeffounderror:com/sun/sun/imageio/spi/fileimageOutputstreamspi
- 07:24:01 java.lang.noclassdeffounderror:com/sun/sun/imageio/spi/fileimageOutputstreamspi
我认为失败的主要原因在这里
07:23:58,357 ERROR [org.apache.catalina.core.StandardContext]
(MSC service thread 1-6) Error listenerStart
07:23:58,357 ERROR [org.apache.catalina.core.StandardContext]
(MSC service thread 1-6) Context [/geoserver] startup failed due
to previous errors
不幸的是,我无法确定CNFE和Error listenerStart
旁边的任何重大错误。
一种替代方案是创建文件jboss-deployment-structure.xml
GeoServer.war/Web-Inf,其中具有以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<system>
<paths>
<path name="com/sun/imageio/spi"/>
<path name="com/sun/imageio/plugins/common"/>
</paths>
</system>
</dependencies>
</deployment>
</jboss-deployment-structure>
我不想给出仅链接的答复,但是JBOSS论坛中的此主题似乎描述了完全相同的问题,解决方案:
https://community.jboss.org/thread/177472
i引用:
"我发现如果我添加
<path name="com/sun/imageio/spi"/>
to模块/sun/jdk/main目录中的module.xml文件,然后classNotFoundException消失了。"
Google:" classNotfound fileimageoutputstreamspi"