Hi,

I am tried steps on the email, but I am getting exception like below. any help
on this will be a life saver.

[CustomerHelper] java.lang.NullPointerException
[CustomerHelper]  at
org.jboss.security.plugins.samples.JaasServerLoginModule.LoadProperties(JaasServerLoginModule.java:182)

[CustomerHelper]  at
org.jboss.security.plugins.samples.JaasServerLoginModule.LoadUsers(JaasServerLoginModule.java:166)

[CustomerHelper]  at
org.jboss.security.plugins.samples.JaasServerLoginModule.initialize(JaasServerLoginModule.java:74)

[CustomerHelper]  at java.lang.reflect.Method.invoke(Native Method)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:582)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
[CustomerHelper]  at
javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
[CustomerHelper]  at java.security.AccessController.doPrivileged(Native Method)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.login(LoginContext.java:449)
[CustomerHelper]  at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:332)

[CustomerHelper]  at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:301)

[CustomerHelper]  at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:193)

[CustomerHelper]  at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:209)

[CustomerHelper]  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:144)

[CustomerHelper]  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[CustomerHelper]  at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:253)

[CustomerHelper]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:369)

[CustomerHelper]  at java.lang.reflect.Method.invoke(Native Method)
[CustomerHelper]  at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[CustomerHelper]  at sun.rmi.transport.Transport$1.run(Transport.java:142)
[CustomerHelper]  at java.security.AccessController.doPrivileged(Native Method)
[CustomerHelper]  at sun.rmi.transport.Transport.serviceCall(Transport.java:139)

[CustomerHelper]  at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[CustomerHelper]  at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
[CustomerHelper]  at java.lang.Thread.run(Thread.java:484)
[CustomerHelper] javax.security.auth.login.LoginException: Missing _users or
_roles properties file.
[CustomerHelper]  at
org.jboss.security.plugins.samples.JaasServerLoginModule.login(JaasServerLoginModule.java:102)

[CustomerHelper]  at java.lang.reflect.Method.invoke(Native Method)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
[CustomerHelper]  at
javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
[CustomerHelper]  at java.security.AccessController.doPrivileged(Native Method)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
[CustomerHelper]  at
javax.security.auth.login.LoginContext.login(LoginContext.java:449)
[CustomerHelper]  at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:332)

[CustomerHelper]  at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:301)

[CustomerHelper]  at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:193)

[CustomerHelper]  at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:209)

[CustomerHelper]  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:144)

[CustomerHelper]  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[CustomerHelper]  at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:253)

[CustomerHelper]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:369)

[CustomerHelper]  at java.lang.reflect.Method.invoke(Native Method)
[CustomerHelper]  at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[CustomerHelper]  at sun.rmi.transport.Transport$1.run(Transport.java:142)
[CustomerHelper]  at java.security.AccessController.doPrivileged(Native Method)
[CustomerHelper]  at sun.rmi.transport.Transport.serviceCall(Transport.java:139)

[CustomerHelper]  at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[CustomerHelper]  at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
[CustomerHelper]  at java.lang.Thread.run(Thread.java:484)
[CustomerHelper] Authentication exception, principal=admin



and my ejb-jar.xml is like this:

....
<assembly-descriptor>
      <security-role>
         <role-name>administrator</role-name>
      </security-role>
      <method-permission>
         <role-name>administrator</role-name>
         <method>
            <ejb-name>Customer</ejb-name>
            <method-name>*</method-name>
         </method>
      </method-permission>
      <method-permission>
           <role-name>administrator</role-name>
           <method>
            <ejb-name>CustomerHelper</ejb-name>
                <method-name>*</method-name>
           </method>
      </method-permission>
....


jboss.xml :

<jboss>
   <enterprise-beans>

      <entity>
         <ejb-name>Customer</ejb-name>
         <jndi-name>awcl/Customer</jndi-name>
         <container-configuration>Standard BMP
EntityBean</container-configuration>
         <resource-ref>
    <res-ref-name>jdbc/PostgresDB</res-ref-name>
    <resource-name>PostgreSQL</resource-name>
        </resource-ref>
      </entity>

      <session>
           <ejb-name>CustomerHelper</ejb-name>
           <jndi-name>awcl/CustomerInfo</jndi-name>
           <container-configuration>Standard Stateless
SessionBean</container-configuration>
           <ejb-ref>
              <ejb-ref-name>ejb/Customer</ejb-ref-name>
              <jndi-name>awcl/Customer</jndi-name>
           </ejb-ref>
           <resource-ref>
     <res-ref-name>jdbc/PostgresDB</res-ref-name>
     <resource-name>PostgreSQL</resource-name>
        </resource-ref>
      </session>

   </enterprise-beans>

   <security-domain>java:/jaas/other</security-domain>
   <container-configurations>
    <container-configuration>
     <container-name>Standard BMP EntityBean</container-name>
     <role-mapping-manager>java:/jaas/other</role-mapping-manager>
     <authentication-module>java:/jaas/other</authentication-module>
    </container-configuration>
    <container-configuration>
     <container-name>Standard Stateless SessionBean</container-name>
     <role-mapping-manager>java:/jaas/other</role-mapping-manager>
     <authentication-module>java:/jaas/other</authentication-module>
    </container-configuration>
   </container-configurations>

   <resource-managers>
        <resource-manager res-class="javax.sql.DataSource">
        <res-name>PostgreSQL</res-name>
            <res-jndi-name>java:/jdbc/PostgresDB</res-jndi-name>
            </resource-manager>
   </resource-managers>
</jboss>


thank you in advance for any help.

anil




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to