I have a datasource defined in JBOSS called SecurityDS. When I define a DataSourceRealm inside Tomcat for authentication, it doesn't seem to be able to find it. I have tried to access it both as
dataSourceName="SecurityDS"
and
dataSourceName="java:SecurityDS"
I seem to get a NullPointerException in both cases. Is there something else I need to do to be able to reference this instead of defining another one within tomcat?
Thanks
Nic