Community
Participate
Working Groups
Build Identifier: 4.0.0.v20110608-1440 Attempting to run a CDO server with a hibernate store, but without an equinox environment (simple Java main class). Having posted on the forum: http://www.eclipse.org/forums/index.php/m/763125/#msg_763125 I cannot get any further due to the HibernateUtil.createMappingProviderFactory making a static all to get the extension registry, but in my case it is null as I'm not running inside equinox: IExtensionRegistry registry = Platform.getExtensionRegistry(); - Line 193 This code should work outside of Equinox. My original problem in the repositoryConfigurator was solved by manually adding the storeFactory. Possibly a similar technique could be used here to prevent HibernateStoreFactory.getMappingProvider() method going to the registry to find a mapping provider if one has already been configured, or just allowing manual addition of mapping providers and failing gracefully with a null check on the extension point code. Reproducible: Always Steps to Reproduce: 1. Import attached java main and supplied cdo-server.xml configuration file into an eclipse Java project 2. Use attached list of jar files in the class path 2. Run java main file 3. Observe attached stack trace.
Created attachment 208150 [details] Stack trace
Created attachment 208151 [details] List of jar files used
Created attachment 208152 [details] config xml file
Created attachment 208153 [details] Main java file
Solved in 4.0, use the static: HibernateUtil.setMappingProviderFactoryInstance(new TeneoHibernateMappingProviderFactory()); call to set a mapping provider.
Closing.