Hi Christian,

My geoserver data dir is a bog standard directory in /var/www.

The "jdbc_data" referred to is the name of a (MySQL JNDI) store in two of my workspaces. I assume the problem has something to do with either one of these and that it's not necessarily trying to connect to the database.

Does that give you any hints?

Regards,
Andrew

On 26/09/2013 23:05, Christian Mueller wrote:
Hi Andrew

I seems that this error is caused by migration code. This code is triggered on startup and tries to modify the geoserver security dir. (contained in the geoserver data dir). I have no idea why this code should try to connect to a MYSQL database. Is there something special with your geoserver data dir ?


On Thu, Sep 26, 2013 at 2:37 PM, Andrew Miskelly <[email protected] <mailto:[email protected]>> wrote:

    Hi all,

    I have just attempted to upgrade to GeoServer 2.4 from 2.3.5 but was
    unable to do so as the Tomcat was unable to start the application. I
    have successfully reverted to 2.3.5.

    The procedure was to stop and undeploy GeoServer using the Tomcat
    manager, copy the new WAR into webapps, copy the MySQL JARs into
    the new
    libs, modify the new web.xml to point at my existing external data
    directory and add a resource-ref for JNDI, and fully restart the
    Tomcat.

    Upon restarting, all I got when it came to starting up GeoServer was

    26/09/2013 9:59:06 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error listenerStart

    so I got a suitable logging.properties in place and managed to expand
    this to the trace below. "jdbc_data" is a JNDI MySQL data source which
    is configured in the Tomcat's context.xml.

    Does anyone know what the issue may be? Presumably something
    relating to
    my configuration.

    Regards,
    Andrew

    26/09/2013 9:59:06 PM org.apache.catalina.core.StandardContext
    listenerStart
    SEVERE: Exception sending context initialized event to listener
    instance
    of class org.geoserver.platform.GeoServerContextLoaderListener
    java.lang.RuntimeException:
    
org.springframework.security.authentication.InsufficientAuthenticationException:
    Cannot access jdbc_data as anonymous
             at
    
org.geoserver.security.GeoServerSecurityManager.onApplicationEvent(GeoServerSecurityManager.java:327)
             at
    
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
             at
    
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:324)
             at
    
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:25)
             at
    
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
             at
    
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
             at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
             at
    
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
             at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
             at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
             at
    org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
             at
    org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
             at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
             at
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
             at java.util.concurrent.FutureTask.run(FutureTask.java:138)
             at
    
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
             at
    
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
             at java.lang.Thread.run(Thread.java:662)
    Caused by:
    
org.springframework.security.authentication.InsufficientAuthenticationException:
    Cannot access jdbc_data as anonymous
             at
    
org.geoserver.security.SecureCatalogImpl.unauthorizedAccess(SecureCatalogImpl.java:878)
             at
    
org.geoserver.security.SecureCatalogImpl.buildWrapperPolicy(SecureCatalogImpl.java:856)
             at
    
org.geoserver.security.SecureCatalogImpl.checkAccess(SecureCatalogImpl.java:549)
             at
    
org.geoserver.security.SecureCatalogImpl.filterStores(SecureCatalogImpl.java:927)
             at
    
org.geoserver.security.SecureCatalogImpl.getStores(SecureCatalogImpl.java:430)
             at
    
org.geoserver.catalog.impl.AbstractFilteredCatalog.getStores(AbstractFilteredCatalog.java:352)
             at
    
org.geoserver.catalog.impl.AbstractCatalogDecorator.getStores(AbstractCatalogDecorator.java:117)
             at
    
org.geoserver.security.GeoServerSecurityManager.updateConfigurationFilesWithEncryptedFields(GeoServerSecurityManager.java:2842)
             at
    
org.geoserver.security.GeoServerSecurityManager.saveSecurityConfig(GeoServerSecurityManager.java:1390)
             at
    
org.geoserver.security.GeoServerSecurityManager.migrateFrom23(GeoServerSecurityManager.java:2385)
             at
    
org.geoserver.security.GeoServerSecurityManager.onApplicationEvent(GeoServerSecurityManager.java:325)
             ... 17 more
    26/09/2013 9:59:06 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error listenerStart

    
------------------------------------------------------------------------------
    October Webinars: Code for Performance
    Free Intel webinars can help you accelerate application performance.
    Explore tips for MPI, OpenMP, advanced profiling, and more. Get
    the most from
    the latest Intel processors and coprocessors. See abstracts and
    register >
    http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
    _______________________________________________
    Geoserver-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/geoserver-users




--
DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to