Gregory Charles wrote:
My question is why is this necessary? Do I have something misconfigured? Is it a bug? I found an issue report at https://issues.jboss.org/browse/AS7-1936, but I really can't tell if that's the same problem or not.
In previous versions of JBoss AS we used to use jnp project for JNDI naming implementation. Furthermore, the JBoss AS used to ship a default jndi.properties in JBOSS_HOME/server/<servername>/conf folder which had the correct jnp initial context factory reference. In AS7, the jnp project isn't used and the jars aren't shipped. That's why the change in the value of that initial context factory. AS7 doesn't ship a jndi.properties and hence you are passing the properties explicitly now.
Thanks for the explanation Jakiran! Is there somewhere I could put a jndi.properties now which would be equivalant to the JBOSS_HOME/server/<servername>/conf folder of previous versions? I tried JBOSS_HOME/standalone/configuration, but it didn't work.
Also, I have to ask ... JNDI is pretty fundamental to the operations of a Java application server. Why wouldn't it be configured to work right out of the box?