We have data source defined in app server which is JAAS secured.
Now we have standalone application which needs to access this data source,but as this is JAAS secured and specified on app server its not able to connect and throws following excpetion.
javax.naming.ConfigurationException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
Is it a way to this......
Following is the code snippet. Properties systemProps = new Properties();
Why do you suspect that JAAS is the problem - does it work if you turn JAAS off? The error message suggests that there is more to using JNDI on the client than just using the code shown here. Does JNDI work in this way in other clients?