4 Replies Latest reply on Dec 19, 2014 5:24 AM by srinivasbomm

    Not able to connect to LDAP using EJB3

    srinivasbomm

      Hi Everyone,

           I successfully connected to the LDAP server from standalone java application and able to authenticate the request.

       

           Now I am trying to integrate LDAP with EJB3 in JBoss. For this I used "jboss-5.0.1.GA, EJB3 and OpenLDAP".

       

      I followed the below steps for connecting to the LDAP

       

      1) Created user in LDAP
      In LDAP server, created 'admin' user with password 'secret' and assigned it to the role 'Manager'


      2) Configuring JBOSS with LDAP
      In "jboss-5.0.1.GA\server\default\conf\login-config.xml", used below code for LDAP

       

      <!-- Default login configuration for LDAP -->
      <application-policy name="LDAPAuth">
      <authentication>
        <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
         <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
         <module-option name="java.naming.provider.url">ldap://localhost:389</module-option>
         <module-option name="java.naming.security.authentication">simple</module-option>
         <module-option name="bindDN">uid=admin,dc=my-domain,dc=com</module-option>
         <module-option name="bindCredential">secret</module-option>
         <module-option name="baseCtxDN">ou=People,dc=my-domain,dc=com</module-option>
         <module-option name="baseFilter">(uid={0})</module-option>
          <module-option name="rolesCtxDN">ou=Roles,dc=my-domain,dc=com</module-option>
         <module-option name="roleFilter">(member={1})</module-option>
         <module-option name="roleAttributeID">cn</module-option>
         <module-option name="searchScope">ONELEVEL_SCOPE</module-option>
         <module-option name="allowEmptyPasswords">false</module-option>
        </login-module>
      </authentication>
      </application-policy>

       

      3) Created an EJB as follows " AuthLDAPBean.java"

       

      package com.abc.xyz.authenticate;

      import javax.annotation.security.RolesAllowed;
      import javax.ejb.Remote;
      import javax.ejb.Stateless;
      import org.jboss.ejb3.annotation.SecurityDomain;

      @Stateless
      @SecurityDomain("LDAPAuth")
      @RolesAllowed("Manager")
      @Remote(AuthLDAP.class)
      public class AuthLDAPBean implements AuthLDAP{
      @Override
      public void authenticate() {
        System.out.println("Calling authenticate method of AuthLDAPBean class ...........");

      }
      }


      4) Written a Client "TestAuthLDAP.java" file as below :

       

      package com.abc.xyz.authenticate.test;

      import java.util.Properties;
      import javax.naming.Context;
      import javax.naming.InitialContext;
      import javax.naming.NamingException;
      import com.tcs.hpp.authenticate.AuthLDAP;

      public class TestAuthLDAP {
      public static void main(String args[])
      {
        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
        props.setProperty(Context.SECURITY_PRINCIPAL, "admin");
        props.setProperty(Context.SECURITY_CREDENTIALS, "secret");
        props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
        try {
         InitialContext ctx = new InitialContext(props);
         AuthLDAP authLDAP = (AuthLDAP) ctx.lookup("AuthLDAPBean/remote");
         authLDAP.authenticate();
        } catch (NamingException e) {
         e.printStackTrace();
        }
       
      }

      }


      Created EJB jar and placed at location "jboss-5.0.1.GA\server\default\deploy" folder. Started JBOSS server and ran above "TestAuthLDAP.java" file. Got below exception:

      "
      Exception in thread "main" javax.ejb.EJBAccessException: Caller unauthorized
      at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:199)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742)
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:522)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:206)
      at org.jboss.remoting.Client.invoke(Client.java:1708)
      at org.jboss.remoting.Client.invoke(Client.java:612)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
      at com.sun.proxy.$Proxy3.invoke(Unknown Source)
      at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
      at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
      at com.sun.proxy.$Proxy2.authenticate(Unknown Source)
      at com.tcs.hpp.authenticate.test.TestAuthLDAP.main(TestAuthLDAP.java:20)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
      at com.sun.proxy.$Proxy3.invoke(Unknown Source)
      at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
      at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
      at com.sun.proxy.$Proxy2.authenticate(Unknown Source)
      at com.tcs.hpp.authenticate.test.TestAuthLDAP.main(TestAuthLDAP.java:20)
      "

      Getting Caller unauthorized exception, though we are passing the valid userName & Password from the Client.

      Can anybody help me on this.

        • 1. Re: Not able to connect to LDAP using EJB3
          jaysensharma

          Are your getting the [javax.ejb.EJBAccessException: Caller unauthorized] every time?

           

          In your $JBOSS_PROFILE/conf/jboss-log4j.xml" if you can enable the TRACE logging for the 'org.jboss.security' and 'org.jboss.ejb3' then it will give us more idea.

           

            <category name="org.jboss.security">
                <priority value="TRACE"/>
            </category>
            <category name="org.jboss.ejb3">
                <priority value="TRACE"/>
            </category>
          
          

           

           

          Also can you try adding the following module-option to your security-domain :

           

                        <module-option name="throwValidateError">true</module-option>
          • 2. Re: Not able to connect to LDAP using EJB3
            srinivasbomm

            Hi Jay, Thanks for the reply.

            Yes, I am getting [Exception in thread "main" javax.ejb.EJBAccessException: Caller unauthorized] everytime.

            I enabled TRACE logging in jboss-log4j.xml and also added <module-option> in login-config.xml file, but cannot see any error messages in below server.log file.

             

            server.log file :

            2014-12-19 12:47:38,374 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
            2014-12-19 12:47:38,374 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Linked java:comp/UserTransaction to JNDI name: UserTransaction
            2014-12-19 12:47:38,374 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) linkSecurityDomain
            2014-12-19 12:47:38,374 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) No security-domain given, using default: java:/jaas/jboss-web-policy
            2014-12-19 12:47:38,374 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Linking security/securityMgr to JNDI name: java:/jaas/jboss-web-policy
            2014-12-19 12:47:38,375 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) injectionContainer enabled and processing beginning
            2014-12-19 12:47:38,378 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] (main) Adding header name: X-Powered-By='Servlet 2.5; JBoss-5.0/JBossWeb-2.1'
            2014-12-19 12:47:38,379 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Initialized: {WebApplication: /D:/jboss-5.0.1.GA/server/default/deploy/ROOT.war/, URL: file:/D:/jboss-5.0.1.GA/server/default/deploy/ROOT.war/, classLoader: BaseClassLoader@ecf1bf{vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ROOT.war/}:15528383} jboss.web:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none
            2014-12-19 12:47:38,682 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] (main) Begin deploy, org.jboss.metadata.web.jboss.JBossWebMetaData@1f
            2014-12-19 12:47:38,682 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] (main) deployWebModule: vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/
            2014-12-19 12:47:38,683 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.web.deployment:war=/jmx-console to vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/
            2014-12-19 12:47:38,683 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.jacc:id="vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/",service=jacc to vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/
            2014-12-19 12:47:38,684 DEBUG [org.jboss.system.ServiceCreator] (main) About to create bean: jboss.web.deployment:war=/jmx-console with code: org.jboss.web.deployers.WebModule
            2014-12-19 12:47:38,686 DEBUG [org.jboss.system.ServiceCreator] (main) Created mbean: jboss.web.deployment:war=/jmx-console
            2014-12-19 12:47:38,686 DEBUG [org.jboss.system.ServiceConfigurator] (main) SecurityManagement set to org.jboss.security.integration.JNDIBasedSecurityManagement@6b80a9 in jboss.web.deployment:war=/jmx-console
            2014-12-19 12:47:38,686 DEBUG [org.jboss.system.ServiceConfigurator] (main) PolicyRegistration set to org.jboss.security.plugins.JBossPolicyRegistration@1cbe5d2 in jboss.web.deployment:war=/jmx-console
            2014-12-19 12:47:38,687 DEBUG [org.jboss.system.ServiceConfigurator] (main) Kernel set to org.jboss.kernel.Kernel@4294b2 in jboss.web.deployment:war=/jmx-console
            2014-12-19 12:47:38,688 DEBUG [org.jboss.system.ServiceController] (main) Creating service jboss.web.deployment:war=/jmx-console
            2014-12-19 12:47:38,688 DEBUG [org.jboss.system.ServiceController] (main) starting service jboss.web.deployment:war=/jmx-console
            2014-12-19 12:47:38,688 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) webContext: /jmx-console
            2014-12-19 12:47:38,688 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) warURL: file:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/
            2014-12-19 12:47:38,688 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/jmx-console
            2014-12-19 12:47:38,688 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Using session cookies default setting
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) Created parser: org.apache.xerces.jaxp.SAXParserImpl@14e05fb, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/validation set to: true
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/namespaces set to: true
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/dynamic set to: true
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/schema set to: false
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/validation set to: false
            2014-12-19 12:47:38,704 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/dynamic set to: false
            2014-12-19 12:47:38,705 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) Created parser: org.apache.xerces.jaxp.SAXParserImpl@14e05fb, isNamespaceAware: true, isValidating: false, isXIncludeAware: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) Created parser: org.apache.xerces.jaxp.SAXParserImpl@1cba215, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/validation set to: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/namespaces set to: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/dynamic set to: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/schema set to: false
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/validation set to: false
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/dynamic set to: false
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) Created parser: org.apache.xerces.jaxp.SAXParserImpl@1fe2830, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/validation set to: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/namespaces set to: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/dynamic set to: true
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/schema set to: false
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://xml.org/sax/features/validation set to: false
            2014-12-19 12:47:38,706 DEBUG [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) http://apache.org/xml/features/validation/dynamic set to: false
            2014-12-19 12:47:38,710 DEBUG [org.jboss.web.tomcat.service.WebCtxLoader] (main) injectionContainer enabled and processing beginning with JBoss WebCtxLoader
            2014-12-19 12:47:38,712 DEBUG [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) Setting MC attributes, kernel: org.jboss.kernel.Kernel@4294b2, unit: AbstractVFSDeploymentContext@21964913{vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/}
            2014-12-19 12:47:38,715 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Creating ENC using ClassLoader: BaseClassLoader@93b72e{vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/}
            2014-12-19 12:47:38,717 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Unable to retrieve orb
            javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
            at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
            at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559)
            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:451)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
            at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
            at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
            at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
            at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
            at com.sun.proxy.$Proxy37.start(Unknown Source)
            at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
            at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
            at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
            at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
            at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
            at org.jboss.system.ServiceController.start(ServiceController.java:460)
            at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
            at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
            at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
            at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
            at org.jboss.Main.boot(Main.java:209)
            at org.jboss.Main$1.run(Main.java:547)
            at java.lang.Thread.run(Unknown Source)
            2014-12-19 12:47:38,718 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
            2014-12-19 12:47:38,718 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Linked java:comp/UserTransaction to JNDI name: UserTransaction
            2014-12-19 12:47:38,718 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) linkSecurityDomain
            2014-12-19 12:47:38,718 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) No security-domain given, using default: java:/jaas/jboss-web-policy
            2014-12-19 12:47:38,718 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Linking security/securityMgr to JNDI name: java:/jaas/jboss-web-policy
            2014-12-19 12:47:38,718 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) injectionContainer enabled and processing beginning
            2014-12-19 12:47:38,721 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] (main) Adding header name: X-Powered-By='Servlet 2.5; JBoss-5.0/JBossWeb-2.1'
            2014-12-19 12:47:38,723 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Initialized: {WebApplication: /D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/, URL: file:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/, classLoader: BaseClassLoader@93b72e{vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/}:9680686} jboss.web:j2eeType=WebModule,name=//localhost/jmx-console,J2EEApplication=none,J2EEServer=none
            2014-12-19 12:47:38,724 DEBUG [org.jboss.system.ServiceCreator] (main) About to create bean: jboss.jacc:service=jacc,id="vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/" with code: org.jboss.deployment.security.WarJaccPolicy
            2014-12-19 12:47:38,725 DEBUG [org.jboss.system.ServiceCreator] (main) Created mbean: jboss.jacc:service=jacc,id="vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/"
            2014-12-19 12:47:38,725 DEBUG [org.jboss.system.ServiceController] (main) Creating service jboss.jacc:service=jacc,id="vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/"
            2014-12-19 12:47:38,725 DEBUG [org.jboss.web.WebPermissionMapping] (main) Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
            2014-12-19 12:47:38,725 DEBUG [org.jboss.system.ServiceController] (main) starting service jboss.jacc:service=jacc,id="vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/"
            2014-12-19 12:47:38,727 DEBUG [org.jboss.ejb3.deployers.Ejb3Deployer] (main) ********* Ejb3Deployer Begin Unit: TestAuthLDAP.jar jar: TestAuthLDAP.jar
            2014-12-19 12:47:38,968 DEBUG [org.jboss.ejb3.interceptors.metadata.InterceptorMetaDataBridge] (main) ======> Creating interceptor metadata bridge
            2014-12-19 12:47:39,053 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice InvocationContextInterceptor with loader null
            2014-12-19 12:47:39,451 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor with loader null
            2014-12-19 12:47:39,451 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.BlockContainerShutdownInterceptor with loader null
            2014-12-19 12:47:39,463 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.asynchronous.AsynchronousInterceptor with loader BaseClassLoader@57b4bc{vfsfile:/D:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml}
            2014-12-19 12:47:39,496 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.ENCPropagationInterceptor with loader null
            2014-12-19 12:47:39,497 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.security.AuthenticationInterceptorFactory
            2014-12-19 12:47:39,525 DEBUG [org.jboss.security.integration.JNDIBasedSecurityManagement] (main) Creating SDC for domain=LDAPAuth
            2014-12-19 12:47:39,525 DEBUG [org.jboss.security.plugins.auth.JaasSecurityManagerBase.LDAPAuth] (main) CallbackHandler: org.jboss.security.auth.callback.JBossCallbackHandler@169233d
            2014-12-19 12:47:39,525 DEBUG [org.jboss.security.plugins.auth.JaasSecurityManagerBase.LDAPAuth] (main) CachePolicy set to: org.jboss.util.TimedCachePolicy@1888aed
            2014-12-19 12:47:39,525 DEBUG [org.jboss.security.integration.JNDIBasedSecurityManagement] (main) setCachePolicy, c=org.jboss.util.TimedCachePolicy@1888aed
            2014-12-19 12:47:39,525 DEBUG [org.jboss.ejb3.security.AuthenticationInterceptorFactory] (main) Creating interceptor with authentication manager 'org.jboss.security.plugins.JaasSecurityManager@1590dfe' (security domain 'LDAPAuth')
            2014-12-19 12:47:39,527 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice Basic Authorization
            2014-12-19 12:47:39,529 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.security.RunAsSecurityInterceptorFactory
            2014-12-19 12:47:39,562 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.aspects.tx.TxPropagationInterceptor with loader null
            2014-12-19 12:47:39,601 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
            2014-12-19 12:47:39,676 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.stateless.StatelessInstanceInterceptor with loader null
            2014-12-19 12:47:39,678 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
            2014-12-19 12:47:39,679 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.AllowedOperationsInterceptor with loader null
            2014-12-19 12:47:39,680 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor with loader null
            2014-12-19 12:47:39,712 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory
            2014-12-19 12:47:39,749 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) Adding @Remote interface com.abc.xyz.authenticate.AuthLDAP as specified in metadata
            2014-12-19 12:47:39,760 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation javax.ejb.Remote to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 org.jboss.ejb3.annotation.impl.RemoteImpl@b7ff
            2014-12-19 12:47:39,760 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation javax.ejb.TransactionManagement to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 org.jboss.ejb3.annotation.impl.TransactionManagementImpl@148284e
            2014-12-19 12:47:39,761 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) Adding @RolesAllowed for method *(null) of EJB AuthLDAPBean: [Manager]
            2014-12-19 12:47:39,761 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding javax.annotation.security.RolesAllowed annotation to com.abc.xyz.authenticate.AuthLDAPBean.*
            2014-12-19 12:47:39,762 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation org.jboss.ejb3.annotation.SecurityDomain to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 SecurityDomainImpl[value=LDAPAuth, unauthenticatedPrincipal=anonymous]
            2014-12-19 12:47:39,762 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation org.jboss.ejb3.annotation.LocalBinding to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalBindingImpl@101f0a
            2014-12-19 12:47:39,763 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation org.jboss.ejb3.annotation.LocalHomeBinding to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 org.jboss.ejb3.annotation.impl.LocalHomeBindingImpl@e8a6ac
            2014-12-19 12:47:39,764 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation org.jboss.ejb3.annotation.RemoteHomeBinding to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 [RemoteHomeBindingImpl:, jndi=AuthLDAPBean/home]
            2014-12-19 12:47:39,765 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) adding class annotation org.jboss.ejb3.annotation.RemoteBinding to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 [RemoteBindingImpl:, jndi=AuthLDAPBean/remote, stack=, bindUrl=, proxyFactory=RemoteProxyFactory, constructionPoint=org.jboss.ejb3.Ejb3DescriptorHandler.addRemoteJndiAnnotations(Ejb3DescriptorHandler.java:1796)]
            2014-12-19 12:47:39,765 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] (main) Adding org.jboss.ejb3.annotation.RemoteBinding to jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3: [RemoteBindingImpl:, jndi=AuthLDAPBean/remote, stack=, bindUrl=, proxyFactory=RemoteProxyFactory, constructionPoint=org.jboss.ejb3.Ejb3DescriptorHandler.addRemoteJndiAnnotations(Ejb3DescriptorHandler.java:1796)]
            2014-12-19 12:47:39,766 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] (main) found EJB3: ejbName=AuthLDAPBean, class="com".abc.xyz.authenticate.AuthLDAPBean, type=STATELESS
            2014-12-19 12:47:39,769 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.tx.CMTTxInterceptorFactory
            2014-12-19 12:47:39,770 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (main) Creating advice org.jboss.ejb3.tx.BMTTxInterceptorFactory
            2014-12-19 12:47:39,770 DEBUG [org.jboss.ejb3.Ejb3Registry] (main) Registered container jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3,VMID=a934395c3cdf0e14:5905177f:14a61680d1f:-7ff9
            2014-12-19 12:47:39,771 DEBUG [org.jboss.ejb3.Ejb3Deployment] (main) EJB3 deployment time took: 1044
            2014-12-19 12:47:39,779 DEBUG [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (main) Found default interceptors []
            2014-12-19 12:47:39,780 DEBUG [org.jboss.ejb3.interceptors.registry.InterceptorRegistry] (main) Found class interceptors []
            2014-12-19 12:47:39,783 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) Created KernelDeployment for: TestAuthLDAP.jar
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) installing bean: jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   with dependencies:
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and demands:
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)  jboss.ejb:service=EJBTimerService
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)   and supplies:
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)  Class:com.abc.xyz.authenticate.AuthLDAP
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)  jndi:AuthLDAPBean/remote
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main)  jndi:AuthLDAPBean/remote-com.abc.xyz.authenticate.AuthLDAP
            2014-12-19 12:47:39,786 INFO  [org.jboss.ejb3.deployers.JBossASKernel] (main) Added bean(jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3) to KernelDeployment of: TestAuthLDAP.jar
            2014-12-19 12:47:39,787 DEBUG [org.jboss.ejb3.Ejb3Deployment] (main) Bound ejb3 container jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3
            2014-12-19 12:47:39,788 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 to vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/
            2014-12-19 12:47:39,850 DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData] (main) jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.jca.spi.ComponentStack -> BaseClassLoader@57b4bc{vfsfile:/D:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@23290c{name=cachedConnectionManager value=AbstractInjectionValueMetaData@5c083d{value=null injectionType=BY_CLASS propertyMetaData=cachedConnectionManager}}
            2014-12-19 12:47:39,850 DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData] (main) jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3: Contextual injection usage (class -> classloader): interface javax.transaction.TransactionManager -> BaseClassLoader@57b4bc{vfsfile:/D:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml} defined by AbstractPropertyMetaData@210c2a{name=transactionManager value=AbstractInjectionValueMetaData@1a5a8da{value=null injectionType=BY_CLASS propertyMetaData=transactionManager}}
            2014-12-19 12:47:39,852 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (main) Starting jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3
            2014-12-19 12:47:39,857 DEBUG [org.jboss.ejb3.tx.UserTransactionImpl] (main) new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@120b813
            2014-12-19 12:47:39,857 DEBUG [org.jboss.ejb3.EJBContainer] (main) Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
            2014-12-19 12:47:39,857 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED EJB: com.abc.xyz.authenticate.AuthLDAPBean ejbName: AuthLDAPBean
            2014-12-19 12:47:39,858 DEBUG [org.jboss.ejb3.session.SessionContainer] (main) Registered jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3 with org.jboss.aop.Dispatcher via InvokableContextClassProxyHack at key jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3
            2014-12-19 12:47:39,858 DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar] (main) Returning from name "org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar": org.jboss.ejb3.proxy.jndiregistrar.JndiStatelessSessionRegistrar@df172b
            2014-12-19 12:47:39,859 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Found Session Bean: AuthLDAPBean
            2014-12-19 12:47:39,878 DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar] (main) Returning from name "org.jboss.ejb3.RemotingConnector": org.jboss.remoting.transport.Connector@60e371
            2014-12-19 12:47:39,881 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiStatelessSessionRegistrar] (main) Registering with Remoting Dispatcher under name "ProxyFactory/AuthLDAPBean/AuthLDAPBean/remote": org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionRemoteProxyFactory@1b8b38d
            2014-12-19 12:47:39,881 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Registering org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionRemoteProxyFactory@1b8b38d under key "ProxyFactory/AuthLDAPBean/AuthLDAPBean/remote"...
            2014-12-19 12:47:39,892 DEBUG [org.jboss.ejb3.proxy.factory.ProxyFactoryBase] (main) Started: org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionRemoteProxyFactory@1b8b38d
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.factory.session.SessionProxyFactoryBase] (main) Created Session Bean Business Interface-Specific Proxy Constructor implementing "com.abc.xyz.authenticate.AuthLDAP"
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.factory.session.SessionProxyFactoryBase] (main) Created Session Bean Default EJB3 Business Proxy Constructor implementing [interface org.jboss.ejb3.proxy.intf.SessionProxy, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface com.abc.xyz.authenticate.AuthLDAP]
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar] (main) Installed in AbstractKernelController@ec20b2{null} at "ProxyFactory/AuthLDAPBean/AuthLDAPBean/remote": org.jboss.ejb3.proxy.factory.session.stateless.StatelessSessionRemoteProxyFactory@1b8b38d
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/AuthLDAPBean/AuthLDAPBean/remote"
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3"
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Adding RefAddr to Default Remote Reference: Type "Remote Business Interface", Content "com.abc.xyz.authenticate.AuthLDAP"
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Adding RefAddr to Default Remote Reference: Type "Remoting Host URL", Content "socket://localhost:3873/"
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Default Remote Business View for EJB AuthLDAPBean to be bound into JNDI at "AuthLDAPBean/remote"
            2014-12-19 12:47:39,895 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/AuthLDAPBean/AuthLDAPBean/remote"
            2014-12-19 12:47:39,896 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:jar=TestAuthLDAP.jar,name=AuthLDAPBean,service=EJB3"
            2014-12-19 12:47:39,897 DEBUG [org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JBossSessionPolicyDecorator] (main) Resolved JNDI Name for Interface com.abc.xyz.authenticate.AuthLDAP of type BUSINESS_REMOTE is AuthLDAPBean/remote-com.abc.xyz.authenticate.AuthLDAP
            2014-12-19 12:47:39,897 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Remote Business View for com.abc.xyz.authenticate.AuthLDAP of EJB AuthLDAPBean to be bound into JNDI at "AuthLDAPBean/remote-com.abc.xyz.authenticate.AuthLDAP"
            2014-12-19 12:47:39,897 INFO  [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Binding the following Entries in Global JNDI:

            AuthLDAPBean/remote - EJB3.x Default Remote Business Interface
            AuthLDAPBean/remote-com.abc.xyz.authenticate.AuthLDAP - EJB3.x Remote Business Interface

            2014-12-19 12:47:39,897 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Bound javax.naming.Reference into JNDI at "AuthLDAPBean/remote"
            2014-12-19 12:47:39,897 DEBUG [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] (main) Bound javax.naming.Reference into JNDI at "AuthLDAPBean/remote-com.abc.xyz.authenticate.AuthLDAP"
            2014-12-19 12:47:39,917 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] (main) createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@116e445
            2014-12-19 12:47:39,952 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.jacc:id="vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/",service=jacc to vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/
            2014-12-19 12:47:39,952 DEBUG [org.jboss.system.ServiceCreator] (main) About to create bean: jboss.jacc:service=jacc,id="vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/" with code: org.jboss.deployment.security.EjbJaccPolicy
            2014-12-19 12:47:39,953 DEBUG [org.jboss.system.ServiceCreator] (main) Created mbean: jboss.jacc:service=jacc,id="vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/"
            2014-12-19 12:47:39,953 DEBUG [org.jboss.system.ServiceController] (main) Creating service jboss.jacc:service=jacc,id="vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/"
            2014-12-19 12:47:39,955 DEBUG [org.jboss.system.ServiceController] (main) starting service jboss.jacc:service=jacc,id="vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/"
            2014-12-19 12:47:39,964 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ejb3-interceptors-aop.xml
            2014-12-19 12:47:39,964 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/cache-invalidation-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/connection-factories-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/management/console-mgr.sar/
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/destinations-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ejb2-timer-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/hsqldb-persistence-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/http-invoker.sar/
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jbossweb.sar/
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jbossws.sar/
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-invoker-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-remoting.sar/
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jsr88-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/legacy-invokers-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/legacy-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/mail-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/messaging-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/monitoring-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/properties-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/remoting-bisocket-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/schedule-manager-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/scheduler-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/sqlexception-service.xml
            2014-12-19 12:47:39,965 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/transaction-service.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/uuid-key-generator.sar/
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ejb2-container-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ejb3-connectors-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ejb3-container-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/hdscanner-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jca-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/messaging-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/profileservice-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/remoting-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/security/security-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/security/security-policies-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/transaction-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/vfs-jboss-beans.xml
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/
            2014-12-19 12:47:39,966 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/hsqldb-ds.xml
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/messaging/jms-ds.xml
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/postgres-xa-ds.xml
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/postgresql-ds.xml
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/ROOT.war/
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/D:/jboss-5.0.1.GA/server/default/deploy/jmx-console.war/
            2014-12-19 12:47:39,967 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/TestAuthLDAP.jar/
            2014-12-19 12:47:39,967 DEBUG [org.jboss.bootstrap.microcontainer.ServerImpl] (main) Installing life thread Thread[JBossLifeThread,5,jboss]
            2014-12-19 12:47:39,967 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatService] (main) Saw org.jboss.system.server.started notification, starting connectors
            2014-12-19 12:47:39,980 INFO  [org.apache.coyote.http11.Http11AprProtocol] (main) Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
            2014-12-19 12:47:40,007 INFO  [org.apache.coyote.ajp.AjpAprProtocol] (main) Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
            2014-12-19 12:47:40,009 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 51s:734ms
            2014-12-19 12:47:40,908 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - second pass <Fri, 19 Dec 2014 12:47:40>
            2014-12-19 12:47:40,908 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) AtomicActionRecoveryModule: Second pass
            2014-12-19 12:47:40,908 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
            2014-12-19 12:47:40,908 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
            2014-12-19 12:49:14,652 DEBUG [org.jboss.remoting.transport.socket.ClientSocketWrapper] (WorkerThread#0[127.0.0.1:63217]) reset timeout: 60000
            2014-12-19 12:49:14,664 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (WorkerThread#0[127.0.0.1:63217]) Creating advice org.jboss.ejb3.remoting.IsLocalInterceptor with loader null
            2014-12-19 12:49:14,666 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (WorkerThread#0[127.0.0.1:63217]) Creating advice org.jboss.ejb3.security.client.SecurityClientInterceptor with loader null
            2014-12-19 12:49:14,667 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (WorkerThread#0[127.0.0.1:63217]) Creating advice org.jboss.aspects.tx.ClientTxPropagationInterceptor with loader null
            2014-12-19 12:49:14,670 DEBUG [org.jboss.aop.microcontainer.beans.GenericBeanAspectFactory] (WorkerThread#0[127.0.0.1:63217]) Creating advice org.jboss.aspects.remoting.InvokeRemoteInterceptor with loader null
            2014-12-19 12:49:14,697 DEBUG [org.jboss.remoting.transport.socket.ServerSocketWrapper] (WorkerThread#0[127.0.0.1:63217]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63217,localport=3873].380368] wrote CLOSING
            2014-12-19 12:49:14,697 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] (WorkerThread#0[127.0.0.1:63217]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63217,localport=3873].380368] closing socket
            2014-12-19 12:49:14,697 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] (WorkerThread#0[127.0.0.1:63217]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63217,localport=3873].380368] closed socket
            2014-12-19 12:49:14,697 DEBUG [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#0[127.0.0.1:63217]) WorkerThread#0[127.0.0.1:63217] closed socketWrapper: ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63217,localport=3873].380368]
            2014-12-19 12:49:14,726 DEBUG [org.jboss.remoting.transport.socket.ClientSocketWrapper] (WorkerThread#0[127.0.0.1:63218]) reset timeout: 60000
            2014-12-19 12:49:14,734 DEBUG [org.jboss.ejb3.stateless.StatelessContainer] (WorkerThread#0[127.0.0.1:63218]) Received dynamic invocation for method with hash: -7639018942870506832
            2014-12-19 12:49:14,796 DEBUG [org.jboss.remoting.transport.socket.ServerSocketWrapper] (WorkerThread#0[127.0.0.1:63218]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63218,localport=3873].5212eb] wrote CLOSING
            2014-12-19 12:49:14,796 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] (WorkerThread#0[127.0.0.1:63218]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63218,localport=3873].5212eb] closing socket
            2014-12-19 12:49:14,796 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] (WorkerThread#0[127.0.0.1:63218]) ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63218,localport=3873].5212eb] closed socket
            2014-12-19 12:49:14,796 DEBUG [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#0[127.0.0.1:63218]) WorkerThread#0[127.0.0.1:63218] closed socketWrapper: ServerSocketWrapper[Socket[addr=/127.0.0.1,port=63218,localport=3873].5212eb]
            2014-12-19 12:49:40,842 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - first pass <Fri, 19 Dec 2014 12:49:40>
            2014-12-19 12:49:40,842 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) StatusModule: first pass
            2014-12-19 12:49:40,842 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
            2014-12-19 12:49:40,842 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
            2014-12-19 12:49:50,837 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - second pass <Fri, 19 Dec 2014 12:49:50>
            2014-12-19 12:49:50,837 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) AtomicActionRecoveryModule: Second pass
            2014-12-19 12:49:50,837 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
            2014-12-19 12:49:50,837 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass

            • 3. Re: Re: Not able to connect to LDAP using EJB3
              jaysensharma

              Looks like after enabling the TRACE logging you did not invoke your EJB. That's why we do not see the error [javax.ejb.EJBAccessException: Caller unauthorized]  So please try accessing your EJB in the TRACE enabled mode so that we can get nmore information about the security activities.

               

              Also did you enable the following module option in your  seciroty-doamin configuration, which will generate the exact cause of the underlying issue.

               

              <module-option name="throwValidateError">true</module-option>  
              • 4. Re: Not able to connect to LDAP using EJB3
                srinivasbomm

                Actually I created a simple java class(TestAuthLDAP.java which I added in my 1st comment) from where I am invoking EJB. So when I run, error message is displaying in java console, not in jboss "server.log" file.

                As suggested by you added  <module-option name="throwValidateError">true</module-option> in "jboss-5.0.1.GA\server\default\conf\login-config.xml" file.

                 

                Also enabled TRACE logging.