Cool.  I got this working.  The option was actually "unauthenticatedIdentity" though.  Just curious, did you make a typo below?  Or did this change for later versions of JBoss?  I happen to be using 3.0.4 and just want to note that for when I do upgrade if it actually changed.

Thanks again,
gary.


Scott M Stark wrote:
Look into the unauthenticatedPrincipal login module option usage.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

----- Original Message ----- 
From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 2:40 PM
Subject: [JBoss-user] Calling secured EJB from MDB


  
Anybody know how to call an EJB method that requires authentication/role 
from a MDB?  I've tried to make the MDB run as a suitable role, but it 
still complained that the principal was null.

Any clues?
gary.


Stack Trace follows:
------------------------------------------------------------------------
17:30:06,030 ERROR [SecurityInterceptor] Authentication exception, 
principal=null
17:30:06,030 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
    at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
    at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
    at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
    at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
    at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
    at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
    at $Proxy337.findByPrimaryKey(Unknown Source)
    at 
com.innovationsw.panel.ejb.server.DeployerFeedbackMDB.onMessage(Unknown 
Source)
    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:324)
    at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391)
    at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
    at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88)
    at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
    at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
    at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
    at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
    at 
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
    at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962)
    at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1038)
    at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:238)
    at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:603)
    at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417)
    at org.jboss.mq.SpySession.run(SpySession.java:259)
    at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
    at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
    at java.lang.Thread.run(Thread.java:536)



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

    


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  

Reply via email to