Discussions

EJB design: java.lang.NoClassDefFoundError: javax/security/auth/callback/Cal

  1. Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/auth/c
    allback/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 jmseg.SimpleQueueSender.queueSender(SimpleQueueSender.java:60)
            at jmseg.SampleMDBClient.main(SampleMDBClient.java:30)


    I am working on weblogic 8.1

    can anyone help me with solution ?

    Threaded Messages (4)

  2. 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.
  3. class path[ Go to top ]

    add jaas.jar to ur classpath. it shud work.
  4. Did that work[ Go to top ]

    The point i wanna make it clear is that is this a problem with rt.jar which is with my JDK.
  5. Did that work[ Go to top ]

    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.

    Best regards.