Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.
This repository was archived by the owner on May 23, 2024. It is now read-only.

Restarting WPS via Tomcat Manager fails  #273

Description

@ridoo

Restarting WPS via Tomcat Manager fails from time to time with Stacktrace:

javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
        at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:200)
        at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152)
        at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:232)
        at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:120)
        at se.jiderhamn.classloader.leak.prevention.preinit.DocumentBuilderFactoryInitiator.doOutsideClassLoader(DocumentBuilderFactoryInitiator.java:17)
        at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor$1.run(ClassLoaderLeakPreventor.java:86)
        at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor$2.run(ClassLoaderLeakPreventor.java:112)
        at java.security.AccessController.doPrivileged(Native Method)
        at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.doInLeakSafeClassLoader(ClassLoaderLeakPreventor.java:109)
        at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.runPreClassLoaderInitiators(ClassLoaderLeakPreventor.java:82)
        at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventorListener.contextInitialized(ClassLoaderLeakPreventorListener.java:224)
        at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventionContainerInitializer.onStartup(ClassLoaderLeakPreventionContainerInitializer.java:20)

Probably, this is a race condition of the se.jiderhamn leak preventer in cases a Geoserver instance is deployed next to WPS. Both use the shared xerces dependency from Tomcat's common lib directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions