Ivy resolve downloads but ignores some artifacts (though not modules)

I’ve had a strange issue with Apache Ivy‘s resolve task – it resolved and downloaded all my dependencies but didn’t put some of them to the classpath (via ivy:cachepath) and certainly wouldn’t copy them either (via ivy:retrieve). An indicia was that in the resolve report the number of “artifacts” was zero while the number ofContinue reading “Ivy resolve downloads but ignores some artifacts (though not modules)”

Troubleshooting Class/Resource Loading on an Application Server

If you need to find out where is a certain class loaded from or where a class has loaded a resource (typically a configuration file) from, you can use the JSP below – just put it to your web app and point a browser to it. Note: The resource loading tracking assumes that the loadingContinue reading “Troubleshooting Class/Resource Loading on an Application Server”

Eclipse: Run => NoClassDefFoundError for an interface when loading a class implementing it

I had quite a hard time trying to run the following code in Eclipse (CollectionUserType implements UserType): Class.forName(“net.sf.hibernate.tap.CollectionUserType”); The problem was: Exception in thread “main” java.lang.NoClassDefFoundError: net/sf/hibernate/UserType    at java.lang.ClassLoader.findBootstrapClass(Native Method)    at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)    at java.lang.ClassLoader.loadClass(ClassLoader.java:301)    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)    at java.lang.ClassLoader.loadClass(ClassLoader.java:251) The strange thing was that I could define instances of both UserType and CollectionUserType soContinue reading “Eclipse: Run => NoClassDefFoundError for an interface when loading a class implementing it”