Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
javax.naming.NamingException:LDAP响应读取超时_Java_Spring_Jboss - Fatal编程技术网

javax.naming.NamingException:LDAP响应读取超时

javax.naming.NamingException:LDAP响应读取超时,java,spring,jboss,Java,Spring,Jboss,我使用的是Spring3.1.2、JBoss6.4和JDK1.7.80。 登录时出现错误: javax.naming.NamingException:LDAP响应读取超时。 我使用了以下代码,但不起作用 <bean id="contextSourceTargetApp" class="org.springframework.ldap.core.support.LdapContextSource"> <property

我使用的是Spring3.1.2、JBoss6.4和JDK1.7.80。 登录时出现错误: javax.naming.NamingException:LDAP响应读取超时。 我使用了以下代码,但不起作用

    <bean id="contextSourceTargetApp" 
         class="org.springframework.ldap.core.support.LdapContextSource">
                <property name="baseEnvironmentProperties">
                       <map>
                              <entry key="com.sun.jndi.ldap.connect.timeout"                        value="5000" />          
                        </map>  
                 </property>
     </bean>


提前谢谢

请发布您的LDAP配置。我使用的是“org.springframework.security.LDAP.DefaultSpringSecurityContextSource”