1 Reply Latest reply on Feb 27, 2012 1:04 PM by mr-l

    Errors running Geoserver w/gdal in JBoss 7.1

    mr-l Newbie

      I am trying to run geoserver in JBoss 7.1, utilizing Gdal.

       

      I am getting the following errors at start up.

       

      I think I am setting the necessary JAVA_OPTS and CLASSPATH values (in standalone.conf.bat)

       

      Any help would be greatly appreciated,

      Martin

       

      ...

      set "JAVA_OPTS=%JAVA_OPTS% -DGDAL_DATA=%SERVER_HOME%\lib\support\win32\gdal\gdaldata"

      set "JAVA_OPTS=%JAVA_OPTS% -DGDAL_DRIVER_PATH=%SERVER_HOME%\lib\support\win32\gdal\gdallibs"

      set "JAVA_OPTS=%JAVA_OPTS% -DGDAL_PLUGIN_DIR=%SERVER_HOME%\lib\support\win32\gdal\gdalplugin"

      set "JAVA_OPTS=%JAVA_OPTS% -DGDAL_PLUGIN_DIR=%SERVER_HOME%\lib\support\win32\gdal\gdalplugin"

       

      set "JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=%GDAL_DRIVER_PATH%"

       

      set CLASSPATH=%CLASSPATH%;%JBOSS_CLASSPATH%;

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\gdal\gdallibs";

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\gdal";

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\gdal\gdalplugin";

       

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\jai";

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\jai\lib";

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\jai_imageio";

      set CLASSPATH=%CLASSPATH%"%SERVER_HOME%\lib\support\win32\jai_imageio\lib";

      ...

       

      14:52:57,213 INFO  [org.geoserver] (MSC service thread 1-6) Loaded layer group 'tiger-ny'

      14:52:57,343 ERROR [stderr] (MSC service thread 1-6) com.thoughtworks.xstream.converters.ConversionException: maxInputMemory : maxInputMemory from [Module "deployment.geoserver.war:main" from Service Module Loader] : maxInputMemory : maxInputMemory from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,348 ERROR [stderr] (MSC service thread 1-6) ---- Debugging information ----

      14:52:57,349 ERROR [stderr] (MSC service thread 1-6) message             : maxInputMemory : maxInputMemory from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,352 ERROR [stderr] (MSC service thread 1-6) cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException

      14:52:57,354 ERROR [stderr] (MSC service thread 1-6) cause-message       : maxInputMemory : maxInputMemory from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,356 ERROR [stderr] (MSC service thread 1-6) class               : org.geoserver.wcs.WCSInfoImpl

      14:52:57,358 ERROR [stderr] (MSC service thread 1-6) required-type       : org.geoserver.wcs.WCSInfoImpl

      14:52:57,359 ERROR [stderr] (MSC service thread 1-6) line number         : 34

      14:52:57,361 ERROR [stderr] (MSC service thread 1-6) -------------------------------

      14:52:57,362 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)

      14:52:57,365 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)

      14:52:57,368 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)

      14:52:57,371 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)

      14:52:57,374 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)

      14:52:57,376 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)

      14:52:57,378 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)

      14:52:57,380 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)

      14:52:57,382 ERROR [stderr] (MSC service thread 1-6)     at org.geoserver.config.util.XStreamPersister.load(XStreamPersister.java:409)

      14:52:57,384 ERROR [stderr] (MSC service thread 1-6)     at org.geoserver.config.util.XStreamServiceLoader.load(XStreamServiceLoader.java:55)

      14:52:57,387 ERROR [stderr] (MSC service thread 1-6)     at org.geoserver.config.GeoServerLoader.loadGeoServer(GeoServerLoader.java:230)

      14:52:57,390 ERROR [stderr] (MSC service thread 1-6)     at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:142)

      14:52:57,392 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)

      14:52:57,395 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1330)

      14:52:57,398 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)

      14:52:57,401 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

      14:52:57,404 ERROR [stderr] (MSC service thread 1-6)     at java.security.AccessController.doPrivileged(Native Method)

      14:52:57,406 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

      14:52:57,409 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

      14:52:57,411 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)

      14:52:57,414 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

      14:52:57,417 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

      14:52:57,420 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

      14:52:57,423 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)

      14:52:57,426 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

      14:52:57,429 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)

      14:52:57,432 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)

      14:52:57,435 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

      14:52:57,438 ERROR [stderr] (MSC service thread 1-6)     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

      14:52:57,441 ERROR [stderr] (MSC service thread 1-6)     at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

      14:52:57,444 ERROR [stderr] (MSC service thread 1-6)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

      14:52:57,447 ERROR [stderr] (MSC service thread 1-6)     at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

      14:52:57,450 ERROR [stderr] (MSC service thread 1-6)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      14:52:57,452 ERROR [stderr] (MSC service thread 1-6)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      14:52:57,455 ERROR [stderr] (MSC service thread 1-6)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      14:52:57,458 ERROR [stderr] (MSC service thread 1-6)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      14:52:57,461 ERROR [stderr] (MSC service thread 1-6)     at java.lang.Thread.run(Thread.java:662)

      14:52:57,463 ERROR [stderr] (MSC service thread 1-6) Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: maxInputMemory : maxInputMemory from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,466 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)

      14:52:57,468 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,471 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:71)

      14:52:57,474 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,477 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)

      14:52:57,480 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,483 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:86)

      14:52:57,486 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,489 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,492 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,495 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,498 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,500 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,503 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:96)

      14:52:57,506 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,509 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,512 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,514 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,517 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,520 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,523 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)

      14:52:57,526 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:52)

      14:52:57,529 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.determineType(AbstractReflectionConverter.java:347)

      14:52:57,532 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:208)

      14:52:57,535 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)

      14:52:57,538 ERROR [stderr] (MSC service thread 1-6)     at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)

      14:52:57,541 ERROR [stderr] (MSC service thread 1-6)     ... 36 more

      14:52:57,552 ERROR [stderr] (MSC service thread 1-6) com.thoughtworks.xstream.converters.ConversionException: overrideGMLAttributes : overrideGMLAttributes from [Module "deployment.geoserver.war:main" from Service Module Loader] : overrideGMLAttributes : overrideGMLAttributes from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,557 ERROR [stderr] (MSC service thread 1-6) ---- Debugging information ----

      14:52:57,559 ERROR [stderr] (MSC service thread 1-6) message             : overrideGMLAttributes : overrideGMLAttributes from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,562 ERROR [stderr] (MSC service thread 1-6) cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException

      14:52:57,564 ERROR [stderr] (MSC service thread 1-6) cause-message       : overrideGMLAttributes : overrideGMLAttributes from [Module "deployment.geoserver.war:main" from Service Module Loader]

      14:52:57,568 ERROR [stderr] (MSC service thread 1-6) class               : org.geoserver.wfs.WFSInfoImpl

      14:52:57,569 ERROR [stderr] (MSC service thread 1-6) required-type       : org.geoserver.wfs.GMLInfoImpl

      14:52:57,571 ERROR [stderr] (MSC service thread 1-6) line number         : 33

      14:52:57,572 ERROR [stderr] (MSC service thread 1-6) -------------------------------

       

      ...