Bo's blog

Friday, March 19, 2010

java.lang.NoClassDefFoundError: org/eclipse/wst/common/internal/emf/utilities/EncoderDecoder

1. The first check if the jar file com.ibm.ws.ejb.thinclient_7.0.0.jar is in classpath.

2. Although The class EncoderDecoder is in the classpath, WebSphere is still trying to load it by eclipse extensions or by looking in a xml file named: "impl-factory.xml".
then created the impl-factory.xml and put it into the config(should be in classpath and loaded before the thinclient jar file) dir with the following content:

<factories>
<factory interface="org.eclipse.wst.common.internal.emf.utilities.EncoderDecoder" impl="com.ibm.ws.security.util.WSEncoderDecoder"/>
</factories>

Call stack:

WorkpointBusiness.InitContext | Appserver Host:Port iiop://k8306-10:2809
WorkpointBusiness.InitContext | Appserver jnp.interface com.ibm.websphere.naming.WsnInitialContextFactory

DebugInterceptor.invoke | (Includes Exception Data) org/eclipse/wst/common/internal/emf/utilities/EncoderDecoder | quartzScheduler_Worker-10
java.lang.NoClassDefFoundError: org/eclipse/wst/common/internal/emf/utilities/EncoderDecoder
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at com.ibm.ws.naming.util.WsnInitCtxFactory.decodeCredentials(WsnInitCtxFactory.java:778)
        at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:428)
        at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
        at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
        at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
        at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.workpoint.client.connect.ClientContextEJB.A(Unknown Source)
        at com.workpoint.client.connect.ClientContextEJB.getServerConfigPvt(Unknown Source)
        at com.workpoint.client.ClientContext.retrieveAuthInfo(Unknown Source)

0 Comments:

Post a Comment

<< Home