Monday, 13 January 2014

OIM Design Console: java.lang.NoClassDefFoundError: javax/ejb/CreateException

java.lang.NoClassDefFoundError: javax/ejb/CreateException


Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/CreateException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
        at java.lang.Class.getDeclaredMethod(Class.java:2002)
        at java.awt.Component.isCoalesceEventsOverriden(Component.java:6190)
        at java.awt.Component.access$500(Component.java:188)
        at java.awt.Component$3.run(Component.java:6144)
        at java.awt.Component$3.run(Component.java:6142)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Component.checkCoalescing(Component.java:6141)
        at java.awt.Component.<init>(Component.java:6110)
        at java.awt.Container.<init>(Container.java:276)
        at java.awt.Window.<init>(Window.java:534)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.JFrame.<init>(JFrame.java:180)
        at com.thortech.xl.gui.base.tcFrame.<init>(tcFrame.java:34)
        at com.thortech.xl.client.base.tcAppWindow.<init>(tcAppWindow.java:104)
        at com.thortech.xl.client.base.tcAppWindow.main(tcAppWindow.java:173)
Caused by: java.lang.ClassNotFoundException: javax.ejb.CreateException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 18 more

This Error is caused by not having the “wlfullclient.jar” file in order to generate this, you need to cd to
$WL_HOME/server/lib
And run:
java -jar wljarbuilder.jar

This takes a while depending on how good the server is, but also outputs a lot, so don’t be afraid of this. Copy that file to your OIM Home /designconsole/ext
If you need to, you must FTP that to your local machine.

#bearMan