[EJB 3.0] - Re: Authorization failure when accessing a data source from
by jaikiran
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.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:552)
| at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:486)
| at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:365)
| at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:160)
| at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:90)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:687)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:495)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
| at ifs.fnd.sf.j2ee.FndJ2eeConnectionManager.getConnection(FndJ2eeConnectionManager.java:77)
Sorry, i did not pay much attention to the log and the ds.xml file earlier.
Looks like the issue is in the -ds.xml configuration. Remove this from the -ds.xml:
<application-managed-security>true</application-managed-security>
|
>From what i know, setting this to true means that your code which uses this datasource is expected to get a connection, using the alternate API which accepts user name and password:
datasource.getConnection(user,password)
Remove that and see how it goes.
P.S: Off topic - I am still not sure why this leads to a JAAS call.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228648#4228648
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228648
16 years, 12 months
[EJB 3.0] - Re: EJBTHREE-1800
by jaikiran
"hilmer" wrote : Sorry, I am no allowed to do that.
|
Fair enough :)
"hilmer" wrote :
| I can provide some statistics if that is in your interest (methods pr. bean, exact number of beans, ...)
|
| --Soren
These might help:
1) Start a clean "default" server configuration of JBossAS-5.1.0.CR1
2) Once the server completely starts, place your application in the deploy folder
3) Note the time, on the server console, when the first log message appears when your applications gets picked up by the hot deployer.
4) Wait for the application to be completely deployed and note the time.
5) Post the time details here and attach the server.log and the console log to EJBTHREE-1800
Also let us know, how many beans you have. What kind of beans are they? Stateless, Stateful or a mix of both? How heavily are objects injected in these beans? Any @EJB or @Resource injections? And approximately how many methods per bean?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228642#4228642
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228642
16 years, 12 months