It's just TOOOO weird.
I have to have an empty security domain in jboss.xml in my EJS jar:
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss>
| <security-domain/>
| </jboss>
If I put the correct security domain in (java:/jaas/Greenfields), it says:
| 15:45:21,781 ERROR [UsersRolesLoginModule] Failed to load
users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults:
defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
| at
org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
| at
org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
| at
org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
| 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:585)
| at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
| at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
| at java.security.AccessController.doPrivileged(Native Method)
| at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
| at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
| at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:587)
| at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:521)
| at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:330)
| at
org.jboss.aspects.security.AuthenticationInterceptor.authenticate(AuthenticationInterceptor.java:121)
| at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:67)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)
| at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)
| at $Proxy120.getAll(Unknown Source)
| at com.fcl.gf.mgr.ListMgr.getList(Unknown Source)
But then I have to put
@SecurityDomain("Greenfields")
At the declaration of my EJB
into the EJBs that I'm using, otherwise it says:
15:48:01,968 ERROR [STDERR] javax.ejb.EJBException:
java.lang.IllegalStateException: isCallerInRole() called with no security conte
| t. Check that a security-domain has been set for the application.
| 15:48:01,968 ERROR [STDERR] at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| 15:48:01,984 ERROR [STDERR] at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| 15:48:01,984 ERROR [STDERR] at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
| 15:48:01,984 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| 15:48:01,984 ERROR [STDERR] at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 15:48:01,984 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| 15:48:01,984 ERROR [STDERR] at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:5
| )
THis isn't making sanse.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931375#3931375
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931375
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user