Hello,
I am getting the following error
javax.naming.NoInitialContextException: Need to specify class name in environment or system property,
or as an applet parameter, or in an application resource file: java.naming.factory.initial
I have the following
InitialContext ctx = new InitialContext();
String datasource = (DataSource)ctx.lookup(name);
The above is called as a method from my public static void method.
Any idea how can I resolve this error