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(    at java.lang.ClassLoader.loadClass(    at java.lang.ClassLoader.loadClass(    at sun.misc.Launcher$AppClassLoader.loadClass(    at java.lang.ClassLoader.loadClass( 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”

Redeploy an application (ear/war/…) on JBoss

A) Via JMX-console find jboss.system:service=MainDeployer invoke listDeployed – find something like: org.jboss.deployment.DeploymentInfo@d78e875f { url=file:/C:/jboss-3.2.3/server/default/deploy/tap.ear }   copy the url, go back and invoke Redeploy with the url (file:/C:/…) as the parameter. B) From the command line The operations that can be invoked via the JBoss JMX console can also be invoked by the cmd lineContinue reading “Redeploy an application (ear/war/…) on JBoss”