Error in deployment of MDB in jboss

Hi,
I have the following scenario in which I am trying to deploy a MBD in jboss and getting error. I want to deploy two ear files in one Jboss instance. One of the ear has a MDB and the other ear is the main application ear. In the ‘login-config.xml’ file if I use ‘DatabaseServerLoginModule’ then I am able to deploy the ear containing MDB where as my other application ear does not get deployed ,however if I use the ‘DynamicLoginModule’ my application ear gets deployed but MDB ear does not get deployed and I get the following error.