Skip to main content



      Home
Home » Modeling » EMF » CDO : Factory not found: org.eclipse.net4j.connectors[tcp]
CDO : Factory not found: org.eclipse.net4j.connectors[tcp] [message #1733421] Fri, 27 May 2016 06:43 Go to next message
Eclipse UserFriend
Hi,

I try to connect to CDO server to write an instance of my model, but i have the folowing problem :

org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found: org.eclipse.net4j.connectors[tcp]
at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:572)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at gds_interface.Cdo_db.openSession(Cdo_db.java:79)
at gds_interface.Main_interface.main(Main_interface.java:26)




below the code i used to open a session:

public static CDONet4jSession openSession(String repoName) {
final IConnector connector = (IConnector) IPluginContainer.INSTANCE
.getElement( //
"org.eclipse.net4j.connectors", // Product group
"tcp", // Type
"localhost"); // Description

CDONet4jSessionConfiguration config = CDONet4jUtil
.createNet4jSessionConfiguration();
config.setConnector(connector);
config.setRepositoryName(repoName);

CDONet4jSession session = config.openNet4jSession();

session.addListener(new LifecycleEventAdapter() {
@Override
protected void onDeactivated(ILifecycle lifecycle) {
connector.close();
}
});

return session;
}


thank you for your help.
Re: CDO : Factory not found: org.eclipse.net4j.connectors[tcp] [message #1733433 is a reply to message #1733421] Fri, 27 May 2016 08:18 Go to previous messageGo to next message
Eclipse UserFriend
Am 27.05.2016 um 12:43 schrieb DJAMEL KHEBAB:
> Hi,
>
> I try to connect to CDO server to write an instance of my model, but i have the folowing problem :
>
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found: org.eclipse.net4j.connectors[tcp]
Did you deploy the org.eclipse.net4j.tcp plugin to both your clients and your server?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: CDO : Factory not found: org.eclipse.net4j.connectors[tcp] [message #1733523 is a reply to message #1733433] Sun, 29 May 2016 13:11 Go to previous message
Eclipse UserFriend
HI,
I already deploy it.
Previous Topic:[CDO] CDOQuery returns very rarely no object although it exists
Next Topic:Running QVTo in a standalone JAVA project
Goto Forum:
  


Current Time: Wed Oct 29 13:01:23 EDT 2025

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top