What does the Netiquette imply?
[Security & JAAS/JBoss] - cannot access a session bean with unchecked permissions set
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Java Programming > [Security & JAAS/JBoss] - cannot access a session bean with unchecked permissions set 14 June 2005 11:33:32

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

[Security & JAAS/JBoss] - cannot access a session bean with unchecked permissions set

DragosPD 14 June 2005 11:33:32
 I have a stateless session bean that run under a security domain but all methods are set to be unchecked for permissions. I cannot access this bean from a client program without providing the correct credentials.


<session >
| <description>[CDATA[]]­</description>
|
| <ejb-name>SecurityS­ervice2Session</ejb-­name>
|
| <home>rdcs.core.ejb­.interfaces.Security­Service2SessionHome<­/home>
| <remote>rdcs.core.e­jb.interfaces.Securi­tyService2Session</r­emote>
| <ejb-class>rdcs.cor­e.ejb.session.Securi­tyService2SessionBea­n</ejb-class>
| <session-type>State­less</session-type>
| <transaction-type>C­ontainer</transactio­n-type>
|
| </session>
|



| <method-permission >
| <description>[CDATA[description not supported yet by ejbdoclet]]­</description>
| <unchecked/>
| <method >
| <description>[CDATA[description not supported yet by ejbdoclet]]­</description>
| <ejb-name>SecurityS­ervice2Session</ejb-­name>
| <method-name>*</met­hod-name>
| </method>
| </method-permission­>
|
|
this is the relevant portion of the stacktrace:


| Caused by: javax.security.auth­.login.FailedLoginEx­ception: Password Incorrect/Password Required
| at org.jboss.security.­auth.spi.UsernamePas­swordLoginModule.log­in(UsernamePasswordL­oginModule.java:160)­
| at org.jboss.security.­auth.spi.UsersRolesL­oginModule.login(Use­rsRolesLoginModule.j­ava:124)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke0(Native Method)
| at sun.reflect.NativeM­ethodAccessorImpl.in­voke(NativeMethodAcc­essorImpl.java:39)
| at sun.reflect.Delegat­ingMethodAccessorImp­l.invoke(DelegatingM­ethodAccessorImpl.ja­va:25)
| at java.lang.reflect.M­ethod.invoke(Method.­java:585)
| at javax.security.auth­.login.LoginContext.­invoke(LoginContext.­java:769)
| at javax.security.auth­.login.LoginContext.­access$000(LoginCont­ext.java:186)
| at javax.security.auth­.login.LoginContext$­4.run(LoginContext.j­ava:683)
| at java.security.Acces­sController.doPrivil­eged(Native Method)
| at javax.security.auth­.login.LoginContext.­invokePriv(LoginCont­ext.java:680)
| at javax.security.auth­.login.LoginContext.­login(LoginContext.j­ava:579)
| at org.jboss.security.­plugins.JaasSecurity­Manager.defaultLogin­(JaasSecurityManager­.java:480)
| at org.jboss.security.­plugins.JaasSecurity­Manager.authenticate­(JaasSecurityManager­.java:420)
| at org.jboss.security.­plugins.JaasSecurity­Manager.isValid(Jaas­SecurityManager.java­:237)
| at org.jboss.security.­plugins.JaasSecurity­Manager.isValid(Jaas­SecurityManager.java­:210)
| at org.jboss.ejb.plugi­ns.SecurityIntercept­or.checkSecurityAsso­ciation(SecurityInte­rceptor.java:151)
| at org.jboss.ejb.plugi­ns.SecurityIntercept­or.invokeHome(Securi­tyInterceptor.java:7­4)
| at org.jboss.ejb.plugi­ns.LogInterceptor.in­vokeHome(LogIntercep­tor.java:121)
| ... 25 more
|

Why Jboss try to make a login on accessing an unchecked bean? Did I miss something?


View the original post : http://www.jboss.or­g/index.html?module=­bb&op=viewtopic&p=38­81377#3881377

Reply to the post : http://www.jboss.or­g/index.html?module=­bb&op=posting&mode=r­eply&p=3881377


-------------------­--------------------­----------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy­.com/?r=20
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Java Programming > [Security & JAAS/JBoss] - cannot access a session bean with unchecked permissions set 14 June 2005 11:33:32

see also:
[Messaging, JMS & JBossMQ] - Re: JNDI…
[Messaging, JMS & JBossMQ] - how to…
[Persistence & CMP/JBoss] - Re: How to…
пройди тесты:
see also:
Erase'em All!
Combating SpamTerrorism
Rubber brains

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .