Top "Classloader" questions

A class loader is an object that is responsible for loading classes in Java.

Java ServiceLoader with multiple Classloaders

What are the best practices for using ServiceLoader in an Environment with multiple ClassLoaders? The documentation recommends to create and …

java classloader serviceloader
Classloader issues - How to determine which library versions (jar-files) are loaded

I've just solved another *I-though-I-was-using-this-version-of-a-library-but-apparently-my-app-server-has-already-loaded-an-older-version-of-this-library-*issue (sigh). Does anybody know a good way to verify (or monitor) whether your application …

java jar classloader
Understanding Thread.currentThread().getContextClassLoader().getResourceAsStream()

I am looking at a code example, and I am not sure what this means. Thread.currentThread().getContextClassLoader() .getResourceAsStream("MyProperty.…

java classloader contextclassloader
Updating a JAR whilst running

Given a jar runs within a JVM would it be possible to unload the current running Jar and remove it …

java jvm classpath classloader
WAS 8.5: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory

I am deploying a J2EE web application in Websphere Application Server 8.5. The web application has a shared library with …

java websphere classloader xerces
Java Enums: Two enum types, each containing references to each other?

Is there a way to get around the class-loading issues caused by having two enums that reference each other? I …

java oop enums classloader cyclic-reference
Solution for the ClassCastException due to ClassLoader issue

I have two ClassLoaders which loads the same class. So, obviously these can't cast to one another. But I need …

java classloader classcastexception
how to set java class loader PARENT_LAST

i have a spring mvc web application that I need to change the class loader on. I need to change …

maven websphere classloader websphere-6.1 wsadmin
No suitable classloader found for grab

I have this at the beginning of a class: @Grab(group = 'org.ccil.cowan.tagsoup', module = 'tagsoup', version = '1.2') …

groovy intellij-idea classloader junit4
defining root classpath for class.getResource()

I'm using java in Eclipse (windows), and I'm trying to use: myClass.getResource("/image.jpg"), While image.jpg exists in …

java classpath classloader getresource