论坛首页 Java企业应用论坛

Jxplorer连接Apache DS的问题(实现LDAP浏览)

浏览 2529 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2008-05-09  
各位哥哥姐姐们,

小妹是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.


   发表时间: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)
        at com.ca.directory.jxplorer.broker.JNDIBroker.processRequest(JNDIBroker
.java:360)
        at com.ca.directory.jxplorer.broker.Broker.processQueue(Broker.java:158)

        at com.ca.directory.jxplorer.broker.JNDIBroker.processQueue(JNDIBroker.j
ava:829)
        at com.ca.directory.jxplorer.broker.Broker.run(Broker.java:124)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at com.sun.jndi.ldap.Connection.createSocket(Unknown Source)
        ... 26 more
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics