Allow classpath Domain scanning, via configurable classloader
See original GitHub issueI’m trying to use Neo4j on a JBoss EAP 6 environment, without success.
- the configured package is not found by the ClassPathScanner/ClassUtils mechanism.
Since the model classes are in the EJB jar, which is loaded by JBoss in its own classloader, ClassUtils.class.getClassLoader().getResources(classPath.replace(".","/"))
is incapable of locating them as ClassUtils is loaded by the main EAR classloader.
- moving the classes to the same classloader as the ogm-core does not solve the problem. The class is found, in a “vfs” location. Since my Jar is inside an EAR, even with a custom ResourceService I could not address the problem.
Is it possible to provide a hook to specify an appropriate classloader, with the possibility to load class information via introspection, or the very least allow to load a class definition via URL().openStream()
?
┆Issue is synchronized with this Asana task
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Guide to Classgraph Library - Baeldung
Work with the scan results. Let's create the following domain for our example setup: @Target({TYPE, METHOD, FIELD}) @Retention(RetentionPolicy ...
Read more >Class Loading in WildFly - Red Hat on GitHub
All classes packaged in the war will be loaded with the same class loader. ... on other modules inside the deployment using the...
Read more >Build, compile, run: A crash course in classpaths
Application or System class loader. Used to load third-party and user-defined classes. This is the class loader that is configured with the user ......
Read more >Is the Java classpath final after JVM startup? - Stack Overflow
Often I came across texts that claimed that it is not possible to add classes to the classpath during runtime and load them...
Read more >Chapter 3. Class Loading and Modules Red Hat JBoss ...
The modular class loader separates all Java classes into logical groups called modules. ... class path by adding module configuration to their application....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I’ll close this issue. I’m sorry you felt unable to use Neo4j OGM in your projects, but thank you for taking the time to report your issue and help us improve what we’re doing.
Hi @vince-bickers , I stopped using neo4j OGM as it is not mature enough for our projects. I’m afraid I won’t be able to test this one soon.