Hi!

It seems to me that I'm facing a huge problem ...

I'm sending a JMS message to embedded queue called "queue/A".

Everything's working!!

But I've bound to my webapp a cool open-source security module called "jGuard"

After this when I createQueueSession() I get the "principal=null" exception....

20:34:29,609 ERROR [DispatchAction] java.lang.SecurityException: Invalid 
authentication attempt, principal=null

Looks like this jGuard kills some security context or smth like that.

What I've found on the internet is the following:

     SecurityAssociation.setPrincipal(new 
org.jboss.security.SimplePrincipal("guest"));      
SecurityAssociation.setCredential("guest".toCharArray());

But....
I get 
Invalid authentication attempt, principal=guest....

So am I going the right way?

If yes, how do I create a jboss user with "publisher" role?

Sorry for my childish questions :)

Thanks !

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

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


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to