Discussions

EJB design: Exception in thread "main" java.lang.NoClassDefFoundError: javax

  1. Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/auth/callback/CallbackHandler
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:131)
            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)
            at ThinFlow.process(ThinFlow.java:79)
            at ThinFlow.main(ThinFlow.java:47)

    Thanks in advance to help me on this.
    I added Jass.jar. Still isn't working
  2. Please post this in the EJB programming forum.

    Cheers and happy coding,
    Martin
  3. Hi

     check the Java version and the weblogic version you are using, I got the same error when I tried Weblogic 8.1 with JDK 1.3.1, It is fixed once I migrated to JDK 1.4.X.

    Cheers
    K
  4. Weblogic 8 or > runs only on J2SDK 1.4.x

    Cheers and happy coding,
    Martin