2 Replies Latest reply on Dec 5, 2001 5:51 AM by Erdal

    JAAS Tutorial

    Erdal Newbie

      Hi,

      I want to running the JAAS Tutorial.
      I do all so, how it in the JBoss JAAS Tutorial suscribed.
      I startet JBoss_Tomcat
      I startet the Tutorial by using
      c:\jaas>ant example1-test0
      I become to following Exception

      [java] Created LoginContext
      [java] java.lang.ClassNotFoundException: org.apache.log4j.Priority

      Please help me to find the bug

      A lot Thanks

      Er

        • 1. Re: JAAS Tutorial
          alphafoo Newbie

          I just upgraded to JBoss2.4.4/4.0.1 from 2.4.3/4.0 and upon starting up JBoss, I get the Priority class not found exception shown below. The log4j.jar file is in lib/ext and I checked the JAR to make sure the file exists, so I'm not sure why the classloader can't find it. JBoss runs fine even with the error, but it would be nice to figure out why it's blowing up here.

          [INFO,Shutdown] Shutdown hook added
          java.lang.NoClassDefFoundError: org/apache/log4j/Priority
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Class.java:1581)
          at java.lang.Class.getConstructors(Class.java:843)
          at com.sun.management.jmx.Introspector.testCompliance(Introspector.java:
          95)
          at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
          at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.ja
          va:507)
          at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
          at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
          at org.jboss.Main.(Main.java:181)
          at org.jboss.Main$1.run(Main.java:111)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.Main.main(Main.java:107)

          • 2. Re: JAAS Tutorial
            Erdal Newbie

            Hi alphafoo,
            I work with JBoss-2.4.4_Tomcat-3.2.4-beta.
            I have the same problem like you.
            The classloader don't found the log4.jar file, which
            is in lib/ext.

            I hope, that someone can help us.

            erdkal