0 Replies Latest reply on Apr 25, 2002 11:28 AM by kiuma

    javax.naming.NameNotFoundException: DefaultDS not bound

    kiuma Newbie

      I'm using JBoss 3.0 as is, modifying only
      $JBOSS_HOME/server/default/conf/auth.conf file.

      I've followed instructions in "JAAS Security Using..",
      but I always get the following message

      Created LoginContext
      Login failed
      javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: DefaultDS not bound

      my startup script is:

      #!/bin/sh

      JAVA_HOME="/usr/local/jdk"
      JBOSS_HOME="/usr/local/jboss3"
      JAVA_PATH="./"
      JBOSS_SECURITY="$JBOSS_HOME/server/default/conf/auth.conf"
      JAVA=$JAVA_HOME/bin/java

      for JBOSS_JAR in `ls -c1 $JBOSS_HOME/lib`;
      do
      JAVA_PATH=$JAVA_PATH:$JBOSS_HOME/lib/$JBOSS_JAR
      done;

      $JAVA -Djava.security.auth.login.config=file://$JBOSS_SECURITY -cp $JAVA_PATH $1

      PLEASE HELP!!!!