OK....so I think the problem is this line...
Code:
env.put( Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.LdapCtxFactory" );
...it should be this...
Code:
env.put( Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory" );
So I've changed it, but I still get the exact same error...
Code:
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.LdapCtxFactory]
So it hasn't picked up the change? I've done a 'zmmailboxdctl restart' and a 'zmcontrol stop/start'....but the error still exists even though I've fixed it in the code.
Is Jetty caching this somewhere?
Matt