Hi

I am getting the following error once logged and the app tries to use the EJB:

EJBException:; nested exception is: javax.ejb.EJBException: checkSecurityAssociation; 
CausedByException is: Authentication exception, principal=null 

In the login-config.xml, I defined the following application security policy:

<application-policy name="MFOracle">

<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" 
flag="required">
  <module-option name="dsJndiName">java:/RUM</module-option> 
  <module-option name="principalsQuery">select a.password, a.guid from ADM.APPUSERS a, 
ADM.APPUSERSTATUS b where a.userid = ? and b.guid = a.guid and b.user_status_code = 
'ACTIVE'</module-option> 
  <module-option name="rolesQuery">select rolename as Roles, 'Roles' as RoleGroup from 
ADM.APP_ROLES where roleid in (select roleid from ADM.APPUSERROLE where guid = (select 
guid from ADM.APPUSERS where userid=?))</module-option> 
  </login-module>
  
  </application-policy>

I have the following in the jboss.xml of the app:


     <security-domain>java:/jaas/MFOracle</security-domain>
    <enterprise-beans>
        
            <ejb-name>ogc</ejb-name>
            <jndi-name>ogc</jndi-name>
            true
        
    </enterprise-beans>


What am I doing wrong??

Thanks!!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834591#3834591

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834591


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to