Can't run EmbeddedClient sample for 3.0-SNAPSHOT

5 views
Skip to first unread message

Stian Soiland-Reyes

unread,
Jul 6, 2008, 6:03:41 PM7/6/08
to OpenAnzo
Hello again!

I'm trying to migrate to 3.0-SNAPSHOT from 2.5, but I can't figure out
how to start an embedded client.



I tried running org.openanzo.client.sample.EmbeddedClient from
openanzo-sample from within Eclipse. I had to remove the "Plugin
dependencies" as it failed due to some issues with the build path of
com.ibm.db2.jcc - but I figured it should have enough when running
from the Maven dependencies given from the m2eclipse plugin.


However, it fails with some connection error:



Exception in thread "main"
org.openanzo.common.exceptions.AnzoException: ErrorCode[66176:32772]
[SECURITY_ERROR] [INTERNAL_ERROR] Unknown user error:sysadmin. Root
Cause: javax.naming.CommunicationException localhost:10389
at
org.openanzo.server.security.LdapAuthenticationProvider.searchForUser(LdapAuthenticationProvider.java:
358)
at
org.openanzo.server.security.LdapAuthenticationProvider.connect(LdapAuthenticationProvider.java:
257)
at
org.openanzo.server.security.LdapAuthenticationProvider.start(LdapAuthenticationProvider.java:
236)
at
org.openanzo.servicecontainer.ServiceContainer.start(ServiceContainer.java:
396)
at org.openanzo.client.AnzoClient.connect(AnzoClient.java:263)
at org.openanzo.client.sample.EmbeddedClient.main(EmbeddedClient.java:
66)
Caused by: javax.naming.CommunicationException: localhost:10389 [Root
exception is java.net.ConnectException: Connection refused]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:204)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1578)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2596)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:
175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:
193)
at
com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:
136)
at
com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:
66)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:
667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:
247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at
javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:
82)
at
org.openanzo.server.security.LdapAuthenticationProvider.searchForUser(LdapAuthenticationProvider.java:
326)
... 5 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:180)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:346)
at com.sun.jndi.ldap.Connection.<init>(Connection.java:181)
... 19 more


It seems it's trying to connect to an LDAP server on a funky port.


How can I run the embedded client without having an LDAP server?


--
Stian Soiland-Reyes

b...@cambridgesemantics.com

unread,
Jul 6, 2008, 6:46:21 PM7/6/08
to open...@googlegroups.com
Hi Stian,
Unforunately you must have an ldap server running even for an embedded client. In the openanzo-server project there is a standalone ldap server launcher.

This is a consequence of the new design in 3.0 where all user and role information has been moved to ldap.

- Ben

Sent from my BlackBerry® wireless device

-----Original Message-----
From: Stian Soiland-Reyes <st...@soiland-reyes.com>

Date: Sun, 6 Jul 2008 15:03:41
To: OpenAnzo<open...@googlegroups.com>
Subject: [OpenAnzo:115] Can't run EmbeddedClient sample for 3.0-SNAPSHOT

Sean Martin

unread,
Jul 6, 2008, 9:14:13 PM7/6/08
to open...@googlegroups.com
Hi Stian,
Further to Ben's reply, this migration guide may be also useful:

http://www.openanzo.org/projects/openanzo/wiki/V3MigrationGuide

Kindest regards, Sean


--
Sean Martin,
CTO, Cambridge Semantics Inc.
email/XMPP: se...@cambridgesemantics.com
phone: +1 617 606 3411
FOAF: http://www.cambridgesemantics.com/people/sean




> -----Original Message-----
> From: open...@googlegroups.com [mailto:open...@googlegroups.com] On
> Behalf Of Stian Soiland-Reyes
> Sent: Sunday, July 06, 2008 6:04 PM
> To: OpenAnzo
> Subject: [OpenAnzo:115] Can't run EmbeddedClient sample for 3.0-SNAPSHOT
>
>

Reply all
Reply to author
Forward
0 new messages