日期:2014-05-16  浏览次数:21164 次

Jxplorer连接Apache DS的问题(实现LDAP浏览)
各位哥哥姐姐们,

小妹是LDAP的初学者,遇到一个问题,在Jxplorer连接Apache DS的时候,总是报错,内容是:

ERROR ENCONTERED
Error opening connection:
localhost:389
然后ERROR DETAIL显示:javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]。

Apache DS是可以启动的,不过我在ApacheDS的properties中的java virtual machine加入了:F:\Program Files\Java\jdk1.5.0_04\jre\bin\server\jvm.dll.装ApacheDS的时候没自动生成,原来不加的时候是不
能启动ApacheDS的。
localhost,389,User+password,uid=admin,ou=system,secret,

小妹感谢您的回帖,也可以qq:870047577.


1 楼 zlg1985@126.com 2008-05-09  
警告: No property list:
C:\Documents and Settings\小刚\桌面\jndi\jxplorer\search_filters.txt
2008-5-9 11:33:32 com.ca.commons.cbutil.CBUtility readPropertyFile
警告: No property list:
bookmarks.txt
2008-5-9 11:33:32 com.ca.commons.cbutil.CBUtility readPropertyFile
警告: No property list:
quicksearch.txt
2008-5-9 11:33:33 com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay setStartP
age
警告: unable to find locale specific start file: C:\Documents and Settings\小刚\
桌面\jndi\jxplorer\htmldocs\start_zh.html
2008-5-9 11:34:00 com.ca.directory.jxplorer.broker.JNDIBroker openConnection
警告: initial receipt of exception by jndi broker localhost:389
javax.naming.CommunicationException: localhost:389 [Root exception is java.net.C
onnectException: Connection refused: connect]
        at com.sun.jndi.ldap.Connection.<init>(Unknown Source)
        at com.sun.jndi.ldap.LdapClient.<init>(Unknown Source)
        at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)
        at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
        at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
        at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
        at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
        at com.ca.commons.jndi.JNDIOps.openContext(JNDIOps.java:504)
        at com.ca.commons.jndi.JNDIOps.<init>(JNDIOps.java:105)
        at com.ca.commons.jndi.BasicOps.<init>(BasicOps.java:53)
        at com.ca.commons.jndi.AdvancedOps.<init>(AdvancedOps.java:56)
        at com.ca.commons.naming.DXOps.<init>(DXOps.java:39)
        at com.ca.directory.jxplorer.broker.CBGraphicsOps.<init>(CBGraphicsOps.j
ava:45)
        at com.ca.directory.jxplorer.broker.JNDIBroker.openConnection(JNDIBroker
.java:395)