3 Replies Latest reply on Apr 15, 2010 8:32 AM by gutierrez.ge

    JBoss and JAAS Issue

    gutierrez.ge

      Hey guys, im using some library that connects to a document manager using some kind of service, it works fine on my JUnit /Standalone and on Jetty but when i deploy it on JBoss it says

       

      20:02:09,703 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
      java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
              at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
              at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
              at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
              at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
              at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
              at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
              at javax.security.auth.login.LoginContext.login(LoginContext.java:579)

       

      I think this issue has to do with some classloading, because on Jetty works fine and jetty doesn't have all weird libraries that jboss do.Also changing the JBoss server is not an option

       

      Thanks on advance your comments.

        • 1. Re: JBoss and JAAS Issue
          jfclere

          ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files

          It seems you are not using the Realm you want...

          Your "libraries" use a Realm don't they?

          Which version of JBoss are you using?

          • 2. Re: JBoss and JAAS Issue
            gutierrez.ge

            I'm nos sure if we are using realm this is a thrid-party API, I just have the user/password for the doc mgmt repo, and in my unit testing works perfectly, so this could be a library issue.

             

            I'm using JBoss 4.2.3

             

            Can I isolate JBoss security libs?

            • 3. Re: JBoss and JAAS Issue
              gutierrez.ge

              I tried noew this

               

              I add the user and roles properties files in the "conf" folder

               

              Now im getting this error.

               

              Configured JAAS entry found (Default not used) for: 'FileNetP8Engine'

              com.filenet.api.exception.EngineRuntimeException: E_NOT_AUTHENTICATED: The user is not authenticated.

               

              FileNet is a library from IBM and when it is deployed on Weblogic the same problem happens, but they do something like this: classloader=PARENT_LAST

               

              but I haven't been able to "PARENT_LAST" in JBoss.