4 Replies Latest reply on Oct 25, 2004 3:56 PM by Raffi Minassian

    SecurityException in Duke's Bank example

    Ralf Düerkop Newbie


      I have checked it for several times now and I think I did everything right so far. But I cannot manage to logon to the application. Everytime I do so with the credentials from 'users.properties' an exception is thrown like this:

      EJBException in method: public abstract com.sun.ebank.ejb.customer.CustomerController com.sun.ebank.ejb.customer.CustomerControllerHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException,
      java.lang.SecurityException: Authentication exception, principal=null

      I am running JBoss4 and using the j2eetutorial14. The database is up and running and the application deploys without any exceptions. These are the steps I've made:

      1. Added the security-domain to both jboss.xml and jboss-web.xml
      2. Added an entry to the conf/login.xml file for the dukesbank security domain
      3. users.properties and roles.properties are inside of the EAR file
      4. Repackaged, reassambled and redeployed the EAR file

      Is anybody out there who has encountered the same/a similar problem and has a clue how to fix it?

      Any help appriciated. TIA