more specifics in jdbc forum (have my mssql-ds.xml included)
I tried deleting all java installs (I did have an old directory) and re-installing as I read this had to do with more then one install, but I should be clean.
Works fine with.
Connection con1 = DriverManager.getConnection(url, username, password);
Statement stmt = con1.createStatement();
blows up on
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/MSSQLDS");
con = ds.getConnection();
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 figured it out I needed more client libs to get jndi working. I ended up using ds config from an example on this forum to get the connection happy. I am sure I am including more libs then I need but I did not see the exact combo and once I knew that was the issue I just included all the ones from jboss client.
Jope this helps, more detail under JDBC forum.