-
1. Re: ClassNotFoundException com.sun.imageio.plugins.common.BogusColorSpace from [Module "deployment.geoserver.war:main" from Service Module Loader]
nickarls Dec 5, 2012 2:57 AM (in response to mschwery)Tried adding com.sun.imageio to the export paths of module.xml in the sun.jdk module?
-
2. Re: ClassNotFoundException com.sun.imageio.plugins.common.BogusColorSpace from [Module "deployment.geoserver.war:main" from Service Module Loader]
mschwery Dec 14, 2012 12:55 PM (in response to nickarls)I tried that and got the same result.
This is what I added to the sun.jdk module
<path name="com/sun/imageio/spi"/>
<path name="com/sun/imageio/plugins/common/BogusColorSpace"/>
Then I tried adding a jboss-deployment-structure.xml.
<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>
Also added a jboss-classloading.xml.
<classloading xmlns="urn:jboss:classloading:1.0"
name="geoserver.war"
domain="GeoServerDomain"
export-all="NON_EMPTY"
import-all="true">
</classloading>
After adding the jboss-deployment-structure.xml and the jboss-classloading.xml I still can't deploy it.
-
3. Re: ClassNotFoundException com.sun.imageio.plugins.common.BogusColorSpace from [Module "deployment.geoserver.war:main" from Service Module Loader]
mschwery Dec 14, 2012 1:32 PM (in response to mschwery)Here is what I'm getting now.
11:52:47,509 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."geoserver.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."geoserver.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "geoserver.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from C:\JBoss\jboss-as-7.1.0.Final\standalone\tmp\vfs\tempfd528499caba6bb8\geoserver.war-1d2095319461fe3b\WEB-INF\jboss-deployment-structure.xml
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:275) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:247) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:133) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[7,11]
Message: Unexpected content of type 'element start' named '{urn:jboss:deployment-structure:1.1}path'
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.unexpectedContent(JBossDeploymentStructureParser11.java:1098) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parseNoContent(JBossDeploymentStructureParser11.java:947) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parsePathName(JBossDeploymentStructureParser11.java:867) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parseSet(JBossDeploymentStructureParser11.java:472) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parseSystemDependency(JBossDeploymentStructureParser11.java:441) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parseDependencies(JBossDeploymentStructureParser11.java:396) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parseModuleStructureSpec(JBossDeploymentStructureParser11.java:316) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.parseDeployment(JBossDeploymentStructureParser11.java:234) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.readElement(JBossDeploymentStructureParser11.java:211) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.readElement(JBossDeploymentStructureParser11.java:42) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:269) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 8 more
11:52:47,587 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 59312ms - Started 547 of 641 services (1 services failed or missing dependencies, 92 services are passive or on-demand)
11:52:47,603 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "layer.war" was rolled back with no failure message
11:52:47,603 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "geoserver.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"geoserver.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"geoserver.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"geoserver.war\""}}
11:52:47,603 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment geoserver.war in 0ms
11:52:47,619 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment layer.war in 15ms
11:52:47,619 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."geoserver.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."geoserver.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "geoserver.war"
-
4. Re: ClassNotFoundException com.sun.imageio.plugins.common.BogusColorSpace from [Module "deployment.geoserver.war:main" from Service Module Loader]
nickarls Dec 14, 2012 4:57 PM (in response to mschwery)What happens if you just add a <path name="com/sun/imageio"/> to the sun jdk module and don't do anything with the structure and classloading xml files?
-
5. Re: ClassNotFoundException com.sun.imageio.plugins.common.BogusColorSpace from [Module "deployment.geoserver.war:main" from Service Module Loader]
mschwery Dec 15, 2012 4:42 PM (in response to nickarls)The newest version won't work in JBoss 7.1, but an older one will.
I don't think we need the cutting edge so an earlier version should be ok to use.