question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow classpath Domain scanning, via configurable classloader

See original GitHub issue

I’m trying to use Neo4j on a JBoss EAP 6 environment, without success.

  1. 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.

  1. 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:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vince-bickerscommented, Nov 18, 2016

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.

0reactions
roinoucommented, Nov 18, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found