Skip to main content
deleted 68 characters in body; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Upgrading Geoserver from 2.5 to 2.7.5 or 2.8.1 help needed?

Any suggestions or recommendations would be greatly appreciated!

Upgrading Geoserver from 2.5 to 2.7.5 or 2.8.1 help needed

Any suggestions or recommendations would be greatly appreciated!

Upgrading Geoserver from 2.5 to 2.7.5 or 2.8.1?

Source Link
Brian B
  • 825
  • 8
  • 19

Upgrading Geoserver from 2.5 to 2.7.5 or 2.8.1 help needed

I have in production a Geoserver 2.5 installation, with GDAL libraries and extension installed and working to display MrSID data, the SQL Server extension to provide dynamic layers stored in a SQL Server table, and I would like to start utilizing the CSS styling capabilities, but this is not yet installed.

The server is a VM, so I have the luxury of restoring a backup of it, so I have the identical machine, then trying to upgrade it to see what happens. I've failed miserably twice now, and am getting anxious and frustrated. But I probably took a shortcut I should not have taken.

In both attempts (one to upgrade to 2.8.1, the other to 2.7.5), I've downloaded the Windows Installer, shutdown the currently running server (which runs as a Windows service) and then running the install as an in-place upgrade. When it didn't work, (localhost:8080/geoserver returned 503 error), I upgraded the plugins, added a line to my wrapper.conf file so GDAL native loaded properly, but I still get Java errors. Different ones for 2.8.1 and 2.7.5.

2.7.5 gives me the following error

    STATUS | wrapper  | 2016/01/15 07:51:51 | --> Wrapper Started as Service
    STATUS | wrapper  | 2016/01/15 07:51:51 | Java Service Wrapper Community Edition 3.3.3
    STATUS | wrapper  | 2016/01/15 07:51:51 |   Copyright (C) 1999-2009 Tanuki Software, Ltd.  All Rights Reserved.
    STATUS | wrapper  | 2016/01/15 07:51:51 |     http://wrapper.tanukisoftware.org
    STATUS | wrapper  | 2016/01/15 07:51:51 | 
    STATUS | wrapper  | 2016/01/15 07:51:51 | Launching a JVM...
    INFO   | jvm 1    | 2016/01/15 07:51:52 | WrapperManager: Initializing...
    INFO   | jvm 1    | 2016/01/15 07:51:52 | 0 [WrapperSimpleAppMain] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@c550 via org.mortbay.log.Slf4jLog
    INFO   | jvm 1    | 2016/01/15 07:51:52 | 188 [WrapperSimpleAppMain] WARN org.mortbay.log - Deprecated configuration used for C:\Program Files (x86)\GeoServer 2.5/webapps
    INFO   | jvm 1    | 2016/01/15 07:51:52 | 219 [WrapperSimpleAppMain] INFO org.mortbay.log - jetty-6.1.8
    INFO   | jvm 1    | 2016/01/15 07:51:54 | Jan 15, 2016 7:51:54 AM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
    INFO   | jvm 1    | 2016/01/15 07:51:54 | INFO: GDAL Native Library loaded (version: 1.9.2)
    INFO   | jvm 1    | 2016/01/15 07:51:55 | Jan 15, 2016 7:51:55 AM org.geoserver.platform.GeoServerExtensions checkContext
    INFO   | jvm 1    | 2016/01/15 07:51:55 | WARNING: Extension lookup 'XStreamPersisterInitializer', but ApplicationContext is unset.
    INFO   | jvm 1    | 2016/01/15 07:51:55 | log4j:WARN File option not set for appender [geoserverlogfile].
    INFO   | jvm 1    | 2016/01/15 07:51:55 | log4j:WARN Are you using FileAppender instead of ConsoleAppender?
    INFO   | jvm 1    | 2016/01/15 07:51:55 | 3344 [WrapperSimpleAppMain] INFO /geoserver - Initializing Spring root WebApplicationContext
    INFO   | jvm 1    | 2016/01/15 07:51:58 | Jan 15, 2016 7:51:58 AM org.geoserver.platform.GeoServerExtensions checkContext
    INFO   | jvm 1    | 2016/01/15 07:51:58 | WARNING: Extension lookup 'GeoServerSecurityProvider', but ApplicationContext is unset.
    INFO   | jvm 1    | 2016/01/15 07:51:58 | 15 Jan 07:51:58 INFO [org.geoserver] - Loaded style 'AStyle'
    ...
    INFO   | jvm 1    | 2016/01/15 07:51:59 | 15 Jan 07:51:58 WARN [org.geoserver] - Failed to load coverage store 'arcGridSample'
    INFO   | jvm 1    | 2016/01/15 07:51:59 | com.thoughtworks.xstream.converters.ConversionException: Error creating bean with name 'pbePasswordEncoder' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.5/webapps/geoserver/WEB-INF/lib/gs-main-2.7.5.jar!/applicationSecurityContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jasypt/encryption/pbe/PBEStringEncryptor : Error creating bean with name 'pbePasswordEncoder' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.5/webapps/geoserver/WEB-INF/lib/gs-main-2.7.5.jar!/applicationSecurityContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jasypt/encryption/pbe/PBEStringEncryptor
    INFO   | jvm 1    | 2016/01/15 07:51:59 | ---- Debugging information ----
    INFO   | jvm 1    | 2016/01/15 07:51:59 | message             : Error creating bean with name 'pbePasswordEncoder' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.5/webapps/geoserver/WEB-INF/lib/gs-main-2.7.5.jar!/applicationSecurityContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jasypt/encryption/pbe/PBEStringEncryptor
    INFO   | jvm 1    | 2016/01/15 07:51:59 | cause-exception     : org.springframework.beans.factory.BeanCreationException
    INFO   | jvm 1    | 2016/01/15 07:51:59 | cause-message       : Error creating bean with name 'pbePasswordEncoder' defined in URL [jar:file:/C:/Program%20Files%20(x86)/GeoServer%202.5/webapps/geoserver/WEB-INF/lib/gs-main-2.7.5.jar!/applicationSecurityContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jasypt/encryption/pbe/PBEStringEncryptor
    INFO   | jvm 1    | 2016/01/15 07:51:59 | class               : org.geoserver.catalog.impl.CoverageStoreInfoImpl
    INFO   | jvm 1    | 2016/01/15 07:51:59 | required-type       : org.geoserver.catalog.impl.CoverageStoreInfoImpl
    INFO   | jvm 1    | 2016/01/15 07:51:59 | converter-type      : org.geoserver.config.util.XStreamPersister$StoreInfoConverter
    INFO   | jvm 1    | 2016/01/15 07:51:59 | line number         : 10
    INFO   | jvm 1    | 2016/01/15 07:51:59 | version             : 2.7.5
    INFO   | jvm 1    | 2016/01/15 07:51:59 | -------------------------------
    ...

I can provide the whole extremely long list of errors if necessary, but I believe all or most are related to bean named pbePasswordEncoder not being found, and/or PBEStringEncryptor.

Any suggestions or recommendations would be greatly appreciated!

I read that some save the data folder, install the new version, and then replace the data folder, but because of the extensions and config changes I've made it may not be that simple.