[jboss-user] [Security & JAAS/JBoss] - Re: NullPointerException @ DatabaseServerLoginModule.java:14
jahebe
do-not-reply at jboss.com
Tue Jan 22 09:34:44 EST 2008
Slight update:
I downloaded the source for the correct release of JBoss AS, where the faulting line is:
| (140) DataSource ds = (DataSource) ctx.lookup(dsJndiName);
| (141) conn = ds.getConnection();
|
Now, the strange thing is that ds is null no matter what the
datasource is set to in login-config.xml.
Even not setting it (making it default to java:/DefaultDS (with HSQL)) yields a NPE at this point.
What's even more strange is that a JPA/Hibernate model in the same EAR uses the same datasource, and this works flawlessly.
The log clearly states:
| 15:31:57,342 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=FluxMonClockerDS' to JNDI name 'java:FluxMonClockerDS'
|
As I wrote in the previous post -- all help is appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122225#4122225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122225
More information about the jboss-user
mailing list