Tried to install DN 2.0.0 from scratch on Eclipse RCP 3.4.2 development env.
org.datanucleus.ide.eclipse_2.0.1 was installed via eclipse updates
datanucleus-core-2.0.0-release.jar datanucleus-enhancer-2.0.0-release.jar datanucleus-rdbms-2.0.0-release.jar were added to the CLASSPATH.
HERE is the project MANIFEST
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: RCPcolibri Plug-in Bundle-SymbolicName: RCPcolibri; singleton:=true Bundle-Version: 5.0 Bundle-Activator: rcpcolibri.RCPcolibri Bundle-Vendor: Projecto Colibri Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.core.expressions, org.eclipse.help, org.eclipse.birt.core, org.eclipse.birt.report.engine, org.eclipse.birt.report.viewer, org.eclipse.birt.report.engine.emitter.html, org.eclipse.birt.report.engine.emitter.pdf, org.eclipse.birt.report.engine.emitter.postscript, org.eclipse.birt.report.engine.emitter.ppt, org.eclipse.birt.report.engine.emitter.prototype.excel, org.eclipse.birt.report.engine.emitter.wpml, org.eclipse.birt.report.designer.core, org.eclipse.birt.report.designer.ui, org.eclipse.birt.report.designer.ui.editors, org.eclipse.birt.report.designer.ui.lib, org.eclipse.birt.report.designer.ui.lib.explorer, org.eclipse.birt.report.designer.ui.views, org.eclipse.ui.intro, org.eclipse.core.runtime.compatibility.auth, org.eclipse.core.databinding, org.eclipse.core.databinding.beans, org.eclipse.jface.databinding, org.eclipse.ui.editors, javax.jdo;bundle-version="2.2.0", org.eclipse.birt;bundle-version="2.3.0" Eclipse-LazyStart: true Bundle-ClassPath: ., libs/datanucleus-core-2.0.0-release.jar, libs/datanucleus-enhancer-2.0.0-release.jar, libs/datanucleus-rdbms-2.0.0-release.jar, libs/mysql-connector-java-5.1.11-bin.jar, libs/postgresql-8.2-505.jdbc2.jar, libs/sqljdbc.jar, libs/asm-3.1.jar, libs/hsqldb.jar, libs/jsr173_api.jar, libs/xbean.jar, libs/itext-1.1.jar, libs/log4j-1.2.14.jar, libs/licencas.jar, libs/icu4j-3.4.4.jar Export-Package: com.swtdesigner, org.apache.xmlbeans,
...
PMF initialization CODE
HashMap map = new HashMap(); map.put("javax.jdo.PersistenceManagerFactoryClass","org.datanucleus.jdo.JDOPersistenceManagerFactory"); map.put("javax.jdo.option.ConnectionDriverName",driver); map.put("javax.jdo.option.ConnectionURL",url); map.put("javax.jdo.option.ConnectionUserName",empresa.getDbcolibri().getUtilizador()); map.put("javax.jdo.option.ConnectionPassword",empresa.getDbcolibri().getPassword()); map.put("datanucleus.primaryClassLoader", Platform.getBundle(RCPcolibri.PLUGIN_ID).loadClass(driver).getClassLoader()); map.put("datanucleus.autoCreateSchema",new Boolean(validateschema).toString()); map.put("datanucleus.autoCreateTables",new Boolean(validateschema).toString()); map.put("datanucleus.validateConstraints",new Boolean(validateschema).toString()); map.put("datanucleus.rdbms.dateTimezone", "JDK_DEFAULT_TIMEZONE"); //Whether to ignore the cache for queries map.put("datanucleus.IgnoreCache","true"); //This option allows you to turn off that check when you know you are detaching and attaching using the same datastore. map.put("datanucleus.attachSameDatastore","true"); //delaying datastore operations until flush()/commit() map.put("datanucleus.manageRelationships","false"); //Whether to run the "persistence-by-reachability" algorithm at commit() time. map.put("datanucleus.persistenceByReachabilityAtCommit","false"); //Whether to use Optimistic transactions map.put("datanucleus.Optimistic","false"); //http://www.datanucleus.org/products/accessplatform_1_1/jdo/orm/cascading.html map.put("datanucleus.deletionPolicy","DataNucleus");
if(empresa.getDbcolibri().getDriver().equals(GlobalVARS.DRIVER_SQLServer)) { map.put("javax.jdo.mapping.Schema","dbo"); }
ClassLoader clrDN = Platform.getBundle("org.datanucleus").loadClass("org.datanucleus.ObjectManager").getClassLoader();
pmf = JDOHelper.getPersistenceManagerFactory(map, clrDN);
PROBLEM:
"org.datanucleus" bundle not found. Returns NULL.
Previous version of the DN Core, enhancer and RDBMS where configured via PLUGIN (copied to the \eclipse\plugins folder) and recognised by ecplipse to be imported via DEPENDENCIES - Requiered Plugins.
What am i missing?
Thanks a lot.
marco