Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Impossible to load custom kernel module in Jboss7 #136

Closed
lassewesth opened this Issue · 2 comments

2 participants

@lassewesth
Owner

@alexsmirnov: 'Jboss 7 classloader removes content of META-INF/services from Thread#currentThread#getContextClassLoader for modules used by application : https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
At the same time, Neo4j org.neo4j.helpers.Service class uses java.util.ServiceLoader#load(Class serviceClass) call that tries to find service descriptions using context class loader.
Therefore, if application creates instance of GraphDatabase from library deployed in separate Jboss7 module, it cannot find any custom service defined in that module. It affects both neo4j-connector and Spring data-graph/neo4j as well.
Proposed patch tries to load services using context class loader first ( to not break any existing code if it relies on the current behavior ) and, if service not found, using classloader wich loads Neo4j kernel itself.'

@lassewesth
Owner

values:

@jakewins
Collaborator

Resolved by c029cea

@jakewins jakewins closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.