JNDI, resource and LDAP Trouble

2011-04-27 Thread Kornmod
Hi, I'm trying to create a simple resource for my web-app. My web-app has to connect to a ldap server to maintain users. I have created a context.xml in my META-INF folder - with the following content: ldap://192.168.7.1:389/dc=blah,dc=com"; java.naming.security

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread Kornmod
Thanks Chris, I have tried this before - with little success. The code does not through any exception now - but the DirContext object (ctx) is null and by that unusable: DirContext ctx = (DirContext) newCtx.lookup("java:comp/env/blah"); if (ctx !=