1 2 Previous Next 24 Replies Latest reply: Feb 21, 2012 11:21 AM by jaikiran pai RSS

ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi

David Robison Newbie

I am trying to run geoserver.war in JBoss AS7 using Java7. I am getting the following error:

12:14:10,893 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/geoserver]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class org.geoserver.GeoserverInitStartupListener: java.lang.NoClassDefFoundError: com/sun/imageio/spi/FileImageInputStreamSpi
    at it.geosolutions.imageio.stream.input.spi.FileImageInputStreamExtImplSpi.onRegistration(FileImageInputStreamExtImplSpi.java:106) [imageio-ext-customstreams-1.0.8.jar:]
    at javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:715) [:1.7.0_02]
    at javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:302) [:1.7.0_02]
    at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:211) [:1.7.0_02]
    at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138) [:1.7.0_02]
    at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159) [:1.7.0_02]
    at org.geotools.image.io.ImageIOExt.allowNativeCodec(ImageIOExt.java:170) [gt-coverage-2.7.4.jar:]
    at org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:117) [main-2.1.3.jar:]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.7.Final.jar:]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.7.Final.jar:]
    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:77) [jboss-as-web-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_02]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_02]
    at java.lang.Thread.run(Thread.java:722) [:1.7.0_02]
Caused by: java.lang.ClassNotFoundException: com.sun.imageio.spi.FileImageInputStreamSpi from [Module "deployment.geoserver.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    ... 16 more

Any ideas? David



 

  • 1. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    David Robison Newbie

    I also get a lot of Invalid Class Name errors even though the clases are part of the JAR that has the service type.

     

    21:02:22,798 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.LogarithmicTransform1D$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,798 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.ExponentialTransform1D$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,799 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.ProjectiveTransform$ProviderAffine" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,799 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.ProjectiveTransform$ProviderLongitudeRotation" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,799 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTranslation$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,800 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTranslation$ProviderSevenParam" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,800 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTranslation$ProviderFrameRotation" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,801 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTransform$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,801 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTransform$ProviderInverse" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,802 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.MolodenskiTransform$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,802 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.MolodenskiTransform$ProviderAbridged" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,803 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.NADCONTransform$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,803 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.WarpTransform2D$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,804 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EquidistantCylindrical$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,804 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EquidistantCylindrical$SphericalProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,805 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PlateCarree$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,806 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mercator1SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,806 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mercator2SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,807 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.TransverseMercator$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,807 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.TransverseMercator$Provider_SouthOrientated" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,808 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.ObliqueMercator$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,808 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.ObliqueMercator$Provider_TwoPoint" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,809 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.HotineObliqueMercator$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,809 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.HotineObliqueMercator$Provider_TwoPoint" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,810 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.AlbersEqualArea$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,810 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertConformal1SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,811 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertConformal2SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,811 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertConformalBelgium$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,812 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertAzimuthalEqualArea$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,812 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Orthographic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,813 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Stereographic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,813 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.ObliqueStereographic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,814 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderA" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,815 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderB" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,815 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderNorth" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,816 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderSouth" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,816 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.NewZealandMapGrid$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,817 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Krovak$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,817 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.CassiniSoldner$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,818 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EquidistantConic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,818 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Polyconic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,819 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Robinson$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,819 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.WinkelTripel$WinkelProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,820 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.WinkelTripel$AitoffProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,820 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EckertIV$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,821 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mollweide$MollweideProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,821 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mollweide$WagnerIVProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,822 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.WorldVanDerGrintenI$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,834 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mercator1SPGoogle$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,838 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer" for service type "org.xmlpull.v1.XmlPullParserFactory"

     

    I am trying to deploy the geoserver.war. It is a standard war and I hopped that I could just "drop it in" to JBoss as7. Any thoughts? David

  • 2. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    David Robison Newbie

    I found that if I added

     

    <path name="com/sun/imageio/spi"/>

     

    to the module.xml file in the modules/sun/jdk/main directory then the ClassNotFoundException goes away. Is there a way to add this dependency to the geoserver.war?

    Thanks, David

  • 4. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    David Robison Newbie

    Thanks. I've tried this but am unclear how to specify a dependency on a class in the rt.jar. I've tried several "system dependency" syntax but unsuccessfully. Any thoughs on how to do this specifically? David

  • 5. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    pstackle Newbie

    There is a bug in the CR1b release that prevents the "system dependency" from being setup in the jboss-deployment-structure.xml. Maybe try a nightly build?

    https://issues.jboss.org/browse/AS7-3171

  • 6. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    totom Newbie

    David Robison ha scritto:

     

    I also get a lot of Invalid Class Name errors even though the clases are part of the JAR that has the service type.

     

    21:02:22,798 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.LogarithmicTransform1D$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,798 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.ExponentialTransform1D$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,799 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.ProjectiveTransform$ProviderAffine" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,799 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.ProjectiveTransform$ProviderLongitudeRotation" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,799 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTranslation$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,800 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTranslation$ProviderSevenParam" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,800 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTranslation$ProviderFrameRotation" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,801 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTransform$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,801 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.GeocentricTransform$ProviderInverse" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,802 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.MolodenskiTransform$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,802 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.MolodenskiTransform$ProviderAbridged" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,803 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.NADCONTransform$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,803 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.transform.WarpTransform2D$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,804 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EquidistantCylindrical$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,804 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EquidistantCylindrical$SphericalProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,805 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PlateCarree$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,806 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mercator1SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,806 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mercator2SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,807 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.TransverseMercator$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,807 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.TransverseMercator$Provider_SouthOrientated" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,808 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.ObliqueMercator$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,808 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.ObliqueMercator$Provider_TwoPoint" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,809 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.HotineObliqueMercator$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,809 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.HotineObliqueMercator$Provider_TwoPoint" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,810 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.AlbersEqualArea$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,810 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertConformal1SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,811 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertConformal2SP$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,811 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertConformalBelgium$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,812 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.LambertAzimuthalEqualArea$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,812 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Orthographic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,813 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Stereographic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,813 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.ObliqueStereographic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,814 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderA" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,815 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderB" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,815 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderNorth" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,816 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.PolarStereographic$ProviderSouth" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,816 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.NewZealandMapGrid$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,817 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Krovak$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,817 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.CassiniSoldner$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,818 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EquidistantConic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,818 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Polyconic$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,819 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Robinson$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,819 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.WinkelTripel$WinkelProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,820 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.WinkelTripel$AitoffProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,820 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.EckertIV$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,821 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mollweide$MollweideProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,821 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mollweide$WagnerIVProvider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,822 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.WorldVanDerGrintenI$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,834 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.geotools.referencing.operation.projection.Mercator1SPGoogle$Provider" for service type "org.geotools.referencing.operation.MathTransformProvider"

    21:02:22,838 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-8) Encountered invalid class name "org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer" for service type "org.xmlpull.v1.XmlPullParserFactory"

     

    I am trying to deploy the geoserver.war. It is a standard war and I hopped that I could just "drop it in" to JBoss as7. Any thoughts? David

     

    I'm working on a project with geotools, so I didn't tried anything with geoserver. Also I'm a newby with jboss and javaee, so I'm not really sure of what I'm saying....

    The problem that is causing this messages is that geotools is looking for resources in the META-INF folder inside the jars of the many geotools modules, byut these resources are not made available to the jars by the classloader.

    I tried these steps:

    1. Build GeoTools as a standalone jar http://docs.geotools.org/stable/userguide/faq.html#how-do-i-create-an-executable-jar-for-my-geotools-app
    2. Install it as a module in <jboss>/modules (I'm using this module.xml

    <?xml version="1.0" encoding="UTF-8"?>

    <module xmlns="urn:jboss:module:1.1" name="org.geotools">

        <resources>

            <resource-root path="geotools-1.0.0.jar"/>

        </resources>

        <dependencies>

            <system export="true">

                <paths>

                    <path name="javax/xml"/>

                    <path name="javax/xml/transform"/>

                </paths>

            </system>

        </dependencies>

    </module>

     

    Now I got a different error (java.lang.ClassNotFoundException: org.geotools.factory.FactoryRegistry from [Module "org.geotools:main" from local module loader @175093f1 (roots: /Users/imac/Library/jboss-as-7.1.0.CR1b/modules)]), but I'm quite sure this error is related to the point 1) (I didn't include all the jars in "my" geotools module)

     

    I hope this is helpful, becouse in the next days I need to deploy a geoserver instance....

  • 7. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    David Robison Newbie

    Once I solved the first error (ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi), I was able to configure layers and view maps. I wonder if these are more warnings and later resolved after the full JAR is loaded. Is you geoserver unusable after fixing just the FileImageInputStreamSpi error?

  • 8. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    totom Newbie

    I was not working with geoserver, but with a different application that uses the same library as geoserver (geotools). Actually, as you noticed before, everything works without my solution , but I didn't try to use the reprojections utilities (it seems that the warnings are referring to math transformations, which are involved in coordinates reprojections). Have you tried with geoserver to perform some geographic reprojections?

  • 9. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    giovanni Archetti Newbie

    I tried to add this

     

    <path name="com/sun/imageio/spi"/>

     

    but the following error occurred:

     

    18:59:23,655 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/geoserver]] (MSC service thread 1-7) Exception sending context initialized event to listener instance of class org.geoserver.GeoserverInitStartupListener: java.util.ServiceConfigurationError: javax.imageio.spi.ImageInputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageInputStreamSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!

        at java.util.ServiceLoader.fail(Unknown Source) [:1.7.0_02]

        at java.util.ServiceLoader.access$100(Unknown Source) [:1.7.0_02]

        at java.util.ServiceLoader$LazyIterator.next(Unknown Source) [:1.7.0_02]

        at java.util.ServiceLoader$1.next(Unknown Source) [:1.7.0_02]

        at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown Source) [:1.7.0_02]

        at javax.imageio.spi.IIORegistry.<init>(Unknown Source) [:1.7.0_02]

        at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source) [:1.7.0_02]

        at org.geotools.image.io.ImageIOExt.allowNativeCodec(ImageIOExt.java:170) [gt-coverage-2.7.4.jar:]

        at org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:117) [main-2.1.3.jar:]

        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.7.Final.jar:]

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.7.Final.jar:]

        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:77) [jboss-as-web-7.1.0.CR1b.jar:7.1.0.CR1b]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_02]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_02]

        at java.lang.Thread.run(Unknown Source) [:1.7.0_02]

    Caused by: java.lang.IllegalArgumentException: vendorName == null!

        at javax.imageio.spi.IIOServiceProvider.<init>(Unknown Source) [:1.7.0_02]

        at javax.imageio.spi.ImageInputStreamSpi.<init>(Unknown Source) [:1.7.0_02]

        at com.sun.media.imageioimpl.stream.ChannelImageInputStreamSpi.<init>(ChannelImageInputStreamSpi.java:63) [jai_imageio-1.1.jar:]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.7.0_02]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [:1.7.0_02]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.7.0_02]

        at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.7.0_02]

        at java.lang.Class.newInstance0(Unknown Source) [:1.7.0_02]

        at java.lang.Class.newInstance(Unknown Source) [:1.7.0_02]

        ... 15 more

     

     

    any ideas ?

    thanks, Giovanni

  • 10. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    mr-l Newbie

    Does anyone know the syntax to include the appropriate dependency within the jboss-deployment-structure.xml file?

     

    Thanks,

    L

  • 11. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    jaikiran pai Master

    Martin Lerner wrote:

     

    Does anyone know the syntax to include the appropriate dependency within the jboss-deployment-structure.xml file?

     

    The documentation is here https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7. See "JBoss Deployment Structure File" section in there.

  • 12. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    Jeff Lavezzo Newbie

    From the linked page:

    "For a war this is the war's module, for an ear"

    Sorry, Jaikiran, that isn't documentation.  That's an example.  Documentation would include descriptions in complete sentences, some variations to establish the pattern and more than one example.

  • 13. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    mr-l Newbie

    David,

    David Robison wrote:

     

    Once I solved the first error (ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi), ...

    Could you show me the syntax you used to solve ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi?

     

    Thank you much,

    L


  • 14. Re: ClassNotFoundException com.sun.imageio.spi.FileImageInputStreamSpi
    jaikiran pai Master

    Jeff Lavezzo wrote:

     

    From the linked page:

    "For a war this is the war's module, for an ear"

    Sorry, Jaikiran, that isn't documentation.  That's an example.  Documentation would include descriptions in complete sentences, some variations to establish the pattern and more than one example.

    From that entire chapter on classloading which explains various different things including some examples, you find a misconstructed sentence in a xml comment and instead of asking someone to fix that sentence or explain it, you just belittle the entire documentation. Nice!

1 2 Previous Next