Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/auth/c
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
I am working on weblogic 8.1
can anyone help me with solution ?
Look for a jar called jaas.jar (unless WLS has repackaged it). This contains this class (part of the JAAS implementation). You seem to be missing this in your classpath.
add jaas.jar to ur classpath. it shud work.
The point i wanna make it clear is that is this a problem with rt.jar which is with my JDK.
I have been using Oracle 9iAS with same error. What solve this was remove classes deployed with Applications. I don't know why, but work fine after this.