Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDO Server unknown DB adapter hsqldb
[CDO] CDO Server unknown DB adapter hsqldb [message #1449354] Tue, 21 October 2014 08:19 Go to next message
Daniel Seybold is currently offline Daniel SeyboldFriend
Messages: 14
Registered: October 2014
Junior Member
Hi guys,

I'm quite new to the EMF.

I'm trying to set up a CDO Server with the release 4.3 which is available here:
http://www.eclipse.org/cdo/downloads/index.php#releases

If I start the server with the h2 database everything works fine.

But if I change the dbadapter in the cdo-server.xml to hsqldb:
<dbAdapter name="hsqldb"/>
<dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
database="jdbc:hsqldb:file:/temp/repo1"
user="sa"/>

I get the java.lang.IllegalArgumentException: Unknown DB adapter: hsqldb

Are there some packages missing?

thanks for your help!

Cheers,
Daniel
Re: [CDO] CDO Server unknown DB adapter hsqldb [message #1451330 is a reply to message #1449354] Thu, 23 October 2014 17:19 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6447
Registered: July 2009
Senior Member
Hi Daniel,

You must make sure that the org.eclipse.net4j.db.hsqldb is deployed. When you enter "ss" on the OSGi console, is it listed?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 21.10.2014 um 14:44 schrieb Daniel Seybold:
> Hi guys,
>
> I'm quite new to the EMF.
>
> I'm trying to set up a CDO Server with the release 4.3 which is available here:
> http://www.eclipse.org/cdo/downloads/index.php#releases
>
> If I start the server with the h2 database everything works fine.
>
> But if I change the dbadapter in the cdo-server.xml to hsqldb:
> <dbAdapter name="hsqldb"/>
> <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
> database="jdbc:hsqldb:file:/temp/repo1" user="sa"/>
> I get the java.lang.IllegalArgumentException: Unknown DB adapter: hsqldb
>
> Are there some packages missing?
>
> thanks for your help!
>
> Cheers,
> Daniel


Re: [CDO] CDO Server unknown DB adapter hsqldb [message #1460403 is a reply to message #1451330] Mon, 03 November 2014 14:31 Go to previous messageGo to next message
Daniel Seybold is currently offline Daniel SeyboldFriend
Messages: 14
Registered: October 2014
Junior Member
Hi Eike,

thanks for your hint with the OSGi console.

I've checked the available bundles and I just have the following bundles installed (but no HSQLDB bundle):

1       RESOLVED    org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907
                    Master=0
2       ACTIVE      org.eclipse.equinox.simpleconfigurator_1.1.0.v20131217-1203
3       ACTIVE      org.apache.felix.gogo.command_0.10.0.v201209301215
4       ACTIVE      org.apache.felix.gogo.runtime_0.10.0.v201209301036
5       ACTIVE      org.apache.felix.gogo.shell_0.10.0.v201212101605
6       ACTIVE      org.eclipse.core.contenttype_3.4.200.v20140207-1251
7       STARTING    org.eclipse.core.expressions_3.4.600.v20140128-0851
8       ACTIVE      org.eclipse.core.jobs_3.6.0.v20140424-0053
9       ACTIVE      org.eclipse.core.runtime_3.10.0.v20140318-2214
10      STARTING    org.eclipse.core.variables_3.2.800.v20130819-1716
11      ACTIVE      org.eclipse.emf.cdo_4.3.0.v20140520-1823
12      ACTIVE      org.eclipse.emf.cdo.common_4.3.0.v20140309-0644
13      ACTIVE      org.eclipse.emf.cdo.server_4.3.0.v20140309-0644
14      ACTIVE      org.eclipse.emf.cdo.server.db_4.2.100.v20140526-0840
15      ACTIVE      org.eclipse.emf.cdo.server.net4j_4.1.100.v20140308-0604
16      STARTING    org.eclipse.emf.cdo.server.product_4.1.200.v20140323-1856
17      ACTIVE      org.eclipse.emf.common_2.10.0.v20140514-1158
18      ACTIVE      org.eclipse.emf.ecore_2.10.0.v20140514-1158
19      STARTING    org.eclipse.emf.ecore.change_2.10.0.v20140514-1158
20      ACTIVE      org.eclipse.emf.ecore.xmi_2.10.0.v20140514-1158
21      ACTIVE      org.eclipse.equinox.app_1.3.200.v20130910-1609
22      ACTIVE      org.eclipse.equinox.common_3.6.200.v20130402-1505
23      ACTIVE      org.eclipse.equinox.console_1.1.0.v20140131-1639
24      ACTIVE      org.eclipse.equinox.ds_1.4.200.v20131126-2331
25      RESOLVED    org.eclipse.equinox.launcher_1.3.0.v20140415-2008
                    Fragments=26
26      RESOLVED    org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744
                    Master=25
27      ACTIVE      org.eclipse.equinox.preferences_3.5.200.v20140224-1527
28      ACTIVE      org.eclipse.equinox.registry_3.5.400.v20140428-1507
29      ACTIVE      org.eclipse.equinox.util_1.0.500.v20130404-1337
30      ACTIVE      org.eclipse.net4j_4.3.0.v20140308-0604
31      ACTIVE      org.eclipse.net4j.db_4.3.0.v20140114-0640
32      ACTIVE      org.eclipse.net4j.db.h2_4.2.100.v20140114-0640
33      ACTIVE      org.eclipse.net4j.db.jdbc_4.3.0.v20140114-0640
34      STARTING    org.eclipse.net4j.jvm_4.1.200.v20140114-0640
35      ACTIVE      org.eclipse.net4j.tcp_4.1.200.v20140114-0640
36      ACTIVE      org.eclipse.net4j.util_3.4.0.v20140308-0604
37      RESOLVED    org.eclipse.osgi.services_3.4.0.v20140312-2051
38      RESOLVED    org.h2_1.3.168.v201212121212


So I assume I have to add and install the hsqldb bundles Wink

But how can I add/install the required bundles for the CDO-Server without eclipse because I'm using the CDOServer-Linux.zip (build 4.3) which you can find under the link in my first post.

So where do I have to put the additional packages and where do I have to change the configuration in order to install autoamtically HSQLDB when the CDO-Server is started.

Thank you for your help in advance!

Cheers,
Daniel
Re: [CDO] CDO Server unknown DB adapter hsqldb [message #1460464 is a reply to message #1460403] Mon, 03 November 2014 15:48 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6447
Registered: July 2009
Senior Member
Hi Daniel,

I would probably copy the .product file, adjust it to my needs and export a custom server executable from there. You
could also play with using a dropins folder or adding link file locations (aka eclipse product extensions).

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 03.11.2014 um 15:31 schrieb Daniel Seybold:
> Hi Eike,
>
> thanks for your hint with the OSGi console.
> I've checked the available bundles and I just have the following bundles installed (but no HSQLDB bundle):
>
>
> 1 RESOLVED org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907
> Master=0
> 2 ACTIVE org.eclipse.equinox.simpleconfigurator_1.1.0.v20131217-1203
> 3 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
> 4 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
> 5 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
> 6 ACTIVE org.eclipse.core.contenttype_3.4.200.v20140207-1251
> 7 STARTING org.eclipse.core.expressions_3.4.600.v20140128-0851
> 8 ACTIVE org.eclipse.core.jobs_3.6.0.v20140424-0053
> 9 ACTIVE org.eclipse.core.runtime_3.10.0.v20140318-2214
> 10 STARTING org.eclipse.core.variables_3.2.800.v20130819-1716
> 11 ACTIVE org.eclipse.emf.cdo_4.3.0.v20140520-1823
> 12 ACTIVE org.eclipse.emf.cdo.common_4.3.0.v20140309-0644
> 13 ACTIVE org.eclipse.emf.cdo.server_4.3.0.v20140309-0644
> 14 ACTIVE org.eclipse.emf.cdo.server.db_4.2.100.v20140526-0840
> 15 ACTIVE org.eclipse.emf.cdo.server.net4j_4.1.100.v20140308-0604
> 16 STARTING org.eclipse.emf.cdo.server.product_4.1.200.v20140323-1856
> 17 ACTIVE org.eclipse.emf.common_2.10.0.v20140514-1158
> 18 ACTIVE org.eclipse.emf.ecore_2.10.0.v20140514-1158
> 19 STARTING org.eclipse.emf.ecore.change_2.10.0.v20140514-1158
> 20 ACTIVE org.eclipse.emf.ecore.xmi_2.10.0.v20140514-1158
> 21 ACTIVE org.eclipse.equinox.app_1.3.200.v20130910-1609
> 22 ACTIVE org.eclipse.equinox.common_3.6.200.v20130402-1505
> 23 ACTIVE org.eclipse.equinox.console_1.1.0.v20140131-1639
> 24 ACTIVE org.eclipse.equinox.ds_1.4.200.v20131126-2331
> 25 RESOLVED org.eclipse.equinox.launcher_1.3.0.v20140415-2008
> Fragments=26
> 26 RESOLVED org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744
> Master=25
> 27 ACTIVE org.eclipse.equinox.preferences_3.5.200.v20140224-1527
> 28 ACTIVE org.eclipse.equinox.registry_3.5.400.v20140428-1507
> 29 ACTIVE org.eclipse.equinox.util_1.0.500.v20130404-1337
> 30 ACTIVE org.eclipse.net4j_4.3.0.v20140308-0604
> 31 ACTIVE org.eclipse.net4j.db_4.3.0.v20140114-0640
> 32 ACTIVE org.eclipse.net4j.db.h2_4.2.100.v20140114-0640
> 33 ACTIVE org.eclipse.net4j.db.jdbc_4.3.0.v20140114-0640
> 34 STARTING org.eclipse.net4j.jvm_4.1.200.v20140114-0640
> 35 ACTIVE org.eclipse.net4j.tcp_4.1.200.v20140114-0640
> 36 ACTIVE org.eclipse.net4j.util_3.4.0.v20140308-0604
> 37 RESOLVED org.eclipse.osgi.services_3.4.0.v20140312-2051
> 38 RESOLVED org.h2_1.3.168.v201212121212
>
>
> So I assume I have to add and install the hsqldb bundles ;)
>
> But how can I add/install the required bundles for the CDO-Server without eclipse because I'm using the
> CDOServer-Linux.zip (build 4.3) which you can find under the link in my first post.
>
> So where do I have to put the additional packages and where do I have to change the configuration in order to install
> autoamtically HSQLDB when the CDO-Server is started.
>
> Thank you for your help in advance!
>
> Cheers, Daniel


Re: [CDO] CDO Server unknown DB adapter hsqldb [message #1461263 is a reply to message #1460464] Tue, 04 November 2014 11:33 Go to previous messageGo to next message
Daniel Seybold is currently offline Daniel SeyboldFriend
Messages: 14
Registered: October 2014
Junior Member
Hi Eike,

thanks again for your helpful hints.

I've managed to install the necessary bundles (org.eclipse.net4j.db.hsqldb and org.hsqldb) by copying the bundles in the plugins folder und updating the bundles.info file.

But now I'm facing an new error when I start the cdo-server with the hsqldb:
[ERROR] org/hsqldb/jdbc/JDBCDataSource
java.lang.NoClassDefFoundError: org/hsqldb/jdbc/JDBCDataSource

Here the complete startup logging info:

Start VM: /usr/bin/java
-Xms256M
-Xmx1024M
-Ddebug=true
-Dnet4j.config=.
-XX:MaxPermSize=128M
-jar /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/cdo-server
-name Cdo-server
--launcher.library /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744/eclipse_1605.so
-startup /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.overrideVmargs
-exitdata 2f801e
-debug
-console
-vm /usr/bin/java
-vmargs
-Xms256M
-Xmx1024M
-Ddebug=true
-Dnet4j.config=.
-XX:MaxPermSize=128M
-jar /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 
Install location:
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/
Configuration file:
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/configuration/config.ini loaded
Configuration location:
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/configuration/
Framework located:
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/org.eclipse.osgi_3.10.0.v20140528-2014.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar
        eclipse.properties not found
Framework classpath:
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/org.eclipse.osgi_3.10.0.v20140528-2014.jar
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar
Splash location:
    null
Debug options:
    file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/.options loaded
Time to load bundles: 30
Starting application: 1792
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.util
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle] Activating PluginContainer
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle] Activating {}
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump] DUMP  PluginFactoryRegistry
  ShareableLifecycle.refCount = null
  Registry.autoCommit = true
  Registry.transaction = null
  HashMapRegistry.map = 
    org.eclipse.net4j.acceptors[jvm]=Factory[org.eclipse.net4j.acceptors, jvm]
    org.eclipse.net4j.acceptors[ssl]=Factory[org.eclipse.net4j.acceptors, ssl]
    org.eclipse.net4j.connectors[ssl]=Factory[org.eclipse.net4j.connectors, ssl]
    org.eclipse.net4j.connectors[jvm]=Factory[org.eclipse.net4j.connectors, jvm]
    org.eclipse.net4j.randomizers[default]=Factory[org.eclipse.net4j.randomizers, default]
    org.eclipse.net4j.userManagers[file]=Factory[org.eclipse.net4j.userManagers, file]
    org.eclipse.net4j.serverProtocols[failover-client]=Factory[org.eclipse.net4j.serverProtocols, failover-client]
    org.eclipse.net4j.serverProtocols[cdo]=Factory[org.eclipse.net4j.serverProtocols, cdo]
    org.eclipse.net4j.serverProtocols[heartbeat]=Factory[org.eclipse.net4j.serverProtocols, heartbeat]
    org.eclipse.net4j.authenticators[file]=Factory[org.eclipse.net4j.authenticators, file]
    org.eclipse.net4j.bufferProviders[default]=Factory[org.eclipse.net4j.bufferProviders, default]
    org.eclipse.emf.cdo.server.browserPages[db]=Factory[org.eclipse.emf.cdo.server.browserPages, db]
    org.eclipse.net4j.acceptors[tcp]=Factory[org.eclipse.net4j.acceptors, tcp]
    org.eclipse.net4j.Negotiators[challenge]=Factory[org.eclipse.net4j.Negotiators, challenge]
    org.eclipse.net4j.connectors[tcp]=Factory[org.eclipse.net4j.connectors, tcp]
    org.eclipse.net4j.executorServices[default]=Factory[org.eclipse.net4j.executorServices, default]
    org.eclipse.emf.cdo.server.browsers[default]=Factory[org.eclipse.emf.cdo.server.browsers, default]
    org.eclipse.net4j.serverProtocols[failover]=Factory[org.eclipse.net4j.serverProtocols, failover]
    org.eclipse.net4j.util.confirmationProviders[default]=Factory[org.eclipse.net4j.util.confirmationProviders, default]
    org.eclipse.net4j.util.timers[daemon]=Factory[org.eclipse.net4j.util.timers, daemon]
    org.eclipse.net4j.selectors[tcp]=Factory[org.eclipse.net4j.selectors, tcp]
    org.eclipse.emf.cdo.server.net4j.failoverMonitors[net4j]=Factory[org.eclipse.emf.cdo.server.net4j.failoverMonitors, net4j]
  container = PluginContainer
  extensionRegistryListener = org.eclipse.net4j.internal.util.factory.PluginFactoryRegistry$1@1fa817a7

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle] Activating []
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.emf.cdo.server
osgi> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.emf.cdo.common
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.tcp
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump] DUMP  PluginElementProcessorList
  processors = 
    org.eclipse.net4j.util.security.ChallengeNegotiatorConfigurer@126dae3b
    org.eclipse.emf.cdo.spi.server.RepositoryUserManager$RepositoryInjector@5ec9acf0
    org.eclipse.net4j.TransportInjector@a78f12e
    org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol$Server$TimerInjector@a220861
    org.eclipse.net4j.internal.tcp.TCPSelectorInjector@40541d79
  extensionRegistryListener = org.eclipse.net4j.internal.util.container.PluginElementProcessorList$1@525b13ed

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump] DUMP  PluginContainer
  ManagedContainer.factoryRegistry = 
    org.eclipse.net4j.acceptors[jvm]=Factory[org.eclipse.net4j.acceptors, jvm]
    org.eclipse.net4j.acceptors[ssl]=Factory[org.eclipse.net4j.acceptors, ssl]
    org.eclipse.net4j.connectors[ssl]=Factory[org.eclipse.net4j.connectors, ssl]
    org.eclipse.net4j.connectors[jvm]=Factory[org.eclipse.net4j.connectors, jvm]
    org.eclipse.net4j.randomizers[default]=Factory[org.eclipse.net4j.randomizers, default]
    org.eclipse.net4j.userManagers[file]=Factory[org.eclipse.net4j.userManagers, file]
    org.eclipse.net4j.serverProtocols[failover-client]=Factory[org.eclipse.net4j.serverProtocols, failover-client]
    org.eclipse.net4j.serverProtocols[cdo]=Factory[org.eclipse.net4j.serverProtocols, cdo]
    org.eclipse.net4j.serverProtocols[heartbeat]=Factory[org.eclipse.net4j.serverProtocols, heartbeat]
    org.eclipse.net4j.authenticators[file]=Factory[org.eclipse.net4j.authenticators, file]
    org.eclipse.net4j.bufferProviders[default]=Factory[org.eclipse.net4j.bufferProviders, default]
    org.eclipse.emf.cdo.server.browserPages[db]=Factory[org.eclipse.emf.cdo.server.browserPages, db]
    org.eclipse.net4j.acceptors[tcp]=Factory[org.eclipse.net4j.acceptors, tcp]
    org.eclipse.net4j.Negotiators[challenge]=Factory[org.eclipse.net4j.Negotiators, challenge]
    org.eclipse.net4j.connectors[tcp]=Factory[org.eclipse.net4j.connectors, tcp]
    org.eclipse.net4j.executorServices[default]=Factory[org.eclipse.net4j.executorServices, default]
    org.eclipse.emf.cdo.server.browsers[default]=Factory[org.eclipse.emf.cdo.server.browsers, default]
    org.eclipse.net4j.serverProtocols[failover]=Factory[org.eclipse.net4j.serverProtocols, failover]
    org.eclipse.net4j.util.confirmationProviders[default]=Factory[org.eclipse.net4j.util.confirmationProviders, default]
    org.eclipse.net4j.util.timers[daemon]=Factory[org.eclipse.net4j.util.timers, daemon]
    org.eclipse.net4j.selectors[tcp]=Factory[org.eclipse.net4j.selectors, tcp]
    org.eclipse.emf.cdo.server.net4j.failoverMonitors[net4j]=Factory[org.eclipse.emf.cdo.server.net4j.failoverMonitors, net4j]
  ManagedContainer.postProcessors = 
    org.eclipse.net4j.util.security.ChallengeNegotiatorConfigurer@126dae3b
    org.eclipse.emf.cdo.spi.server.RepositoryUserManager$RepositoryInjector@5ec9acf0
    org.eclipse.net4j.TransportInjector@a78f12e
    org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol$Server$TimerInjector@a220861
    org.eclipse.net4j.internal.tcp.TCPSelectorInjector@40541d79
  ManagedContainer.elementRegistry = 

app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Plugin container created: PluginContainer
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting application org.eclipse.emf.cdo.server.app
[INFO] CDO server starting
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.emf.cdo.server.db
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.db
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.db.hsqldb
[ERROR] org/hsqldb/jdbc/JDBCDataSource
java.lang.NoClassDefFoundError: org/hsqldb/jdbc/JDBCDataSource
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
        at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:311)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:386)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
        at org.eclipse.osgi.internal.loader.buddy.RegisteredPolicy.loadClass(RegisteredPolicy.java:73)
        at org.eclipse.osgi.internal.loader.buddy.PolicyHandler.doBuddyClassLoading(PolicyHandler.java:141)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:411)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.java:447)
        at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:365)
        at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:358)
        at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:353)
        at org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDataSource(DBStoreFactory.java:128)
        at org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.createStore(DBStoreFactory.java:53)
        at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.createStore(RepositoryConfigurator.java:405)
        at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.getRepository(RepositoryConfigurator.java:204)
        at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:136)
        at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:108)
        at org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication.doStart(CDOServerApplication.java:61)
        at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplication.java:63)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbc.JDBCDataSource cannot be found by org.eclipse.net4j.db.hsqldb_4.2.100.v20140114-0640
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 34 more
Framework stop [debug.om] Stopping bundle org.eclipse.emf.cdo.server.db
Framework stop [debug.om] Stopping bundle org.eclipse.emf.cdo.server
Framework stop [debug.om] Stopping bundle org.eclipse.emf.cdo.common
Framework stop [debug.om] Stopping bundle org.eclipse.net4j.tcp
Framework stop [debug.om] Stopping bundle org.eclipse.net4j
Framework stop [debug.om] Stopping bundle org.eclipse.net4j.db.hsqldb
Framework stop [debug.om] Stopping bundle org.eclipse.net4j.db
Framework stop [debug.om] Stopping bundle org.eclipse.net4j.util
Framework stop [debug.lifecycle] Deactivating PluginContainer
Framework stop [debug.lifecycle] Deactivating {org.eclipse.net4j.acceptors[jvm]=Factory[org.eclipse.net4j.acceptors, jvm], org.eclipse.net4j.acceptors[ssl]=Factory[org.eclipse.net4j.acceptors, ssl], org.eclipse.net4j.connectors[ssl]=Factory[org.eclipse.net4j.connectors, ssl], org.eclipse.net4j.connectors[jvm]=Factory[org.eclipse.net4j.connectors, jvm], org.eclipse.net4j.randomizers[default]=Factory[org.eclipse.net4j.randomizers, default], org.eclipse.net4j.userManagers[file]=Factory[org.eclipse.net4j.userManagers, file], org.eclipse.net4j.serverProtocols[failover-client]=Factory[org.eclipse.net4j.serverProtocols, failover-client], org.eclipse.net4j.serverProtocols[cdo]=Factory[org.eclipse.net4j.serverProtocols, cdo], org.eclipse.net4j.serverProtocols[heartbeat]=Factory[org.eclipse.net4j.serverProtocols, heartbeat], org.eclipse.net4j.authenticators[file]=Factory[org.eclipse.net4j.authenticators, file], org.eclipse.net4j.bufferProviders[default]=Factory[org.eclipse.net4j.bufferProviders, default], org.eclipse.emf.cdo.server.browserPages[db]=Factory[org.eclipse.emf.cdo.server.browserPages, db], org.eclipse.net4j.acceptors[tcp]=Factory[org.eclipse.net4j.acceptors, tcp], org.eclipse.net4j.Negotiators[challenge]=Factory[org.eclipse.net4j.Negotiators, challenge], org.eclipse.net4j.connectors[tcp]=Factory[org.eclipse.net4j.connectors, tcp], org.eclipse.net4j.executorServices[default]=Factory[org.eclipse.net4j.executorServices, default], org.eclipse.emf.cdo.server.browsers[default]=Factory[org.eclipse.emf.cdo.server.browsers, default], org.eclipse.net4j.serverProtocols[failover]=Factory[org.eclipse.net4j.serverProtocols, failover], org.eclipse.net4j.util.confirmationProviders[default]=Factory[org.eclipse.net4j.util.confirmationProviders, default], org.eclipse.net4j.util.timers[daemon]=Factory[org.eclipse.net4j.util.timers, daemon], org.eclipse.net4j.selectors[tcp]=Factory[org.eclipse.net4j.selectors, tcp], org.eclipse.emf.cdo.server.net4j.failoverMonitors[net4j]=Factory[org.eclipse.emf.cdo.server.net4j.failoverMonitors, net4j]}
Framework stop [debug.lifecycle] Deactivating [org.eclipse.net4j.util.security.ChallengeNegotiatorConfigurer@126dae3b, org.eclipse.emf.cdo.spi.server.RepositoryUserManager$RepositoryInjector@5ec9acf0, org.eclipse.net4j.TransportInjector@a78f12e, org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol$Server$TimerInjector@a220861, org.eclipse.net4j.internal.tcp.TCPSelectorInjector@40541d79] 


Here a snippet of the the used bundles (when I start the server without an exception by using the h2 database):

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.10.0.v20140528-2014
                    Fragments=1
1       RESOLVED    org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907
                    Master=0
2       ACTIVE      org.eclipse.equinox.simpleconfigurator_1.1.0.v20131217-1203
3       ACTIVE      org.apache.felix.gogo.command_0.10.0.v201209301215
4       ACTIVE      org.apache.felix.gogo.runtime_0.10.0.v201209301036
5       ACTIVE      org.apache.felix.gogo.shell_0.10.0.v201212101605
6       ACTIVE      org.eclipse.core.contenttype_3.4.200.v20140207-1251
7       STARTING    org.eclipse.core.expressions_3.4.600.v20140128-0851
8       ACTIVE      org.eclipse.core.jobs_3.6.0.v20140424-0053
9       ACTIVE      org.eclipse.core.runtime_3.10.0.v20140318-2214
10      STARTING    org.eclipse.core.variables_3.2.800.v20130819-1716
11      ACTIVE      org.eclipse.emf.cdo_4.3.0.v20140520-1823
12      ACTIVE      org.eclipse.emf.cdo.common_4.3.0.v20140309-0644
13      ACTIVE      org.eclipse.emf.cdo.server_4.3.0.v20140309-0644
14      ACTIVE      org.eclipse.emf.cdo.server.db_4.2.100.v20140526-0840
15      ACTIVE      org.eclipse.emf.cdo.server.net4j_4.1.100.v20140308-0604
16      STARTING    org.eclipse.emf.cdo.server.product_4.1.200.v20140323-1856
17      ACTIVE      org.eclipse.emf.common_2.10.0.v20140514-1158
18      ACTIVE      org.eclipse.emf.ecore_2.10.0.v20140514-1158
19      STARTING    org.eclipse.emf.ecore.change_2.10.0.v20140514-1158
20      ACTIVE      org.eclipse.emf.ecore.xmi_2.10.0.v20140514-1158
21      ACTIVE      org.eclipse.equinox.app_1.3.200.v20130910-1609
22      ACTIVE      org.eclipse.equinox.common_3.6.200.v20130402-1505
23      ACTIVE      org.eclipse.equinox.console_1.1.0.v20140131-1639
24      ACTIVE      org.eclipse.equinox.ds_1.4.200.v20131126-2331
25      RESOLVED    org.eclipse.equinox.launcher_1.3.0.v20140415-2008
                    Fragments=26
26      RESOLVED    org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744
                    Master=25
27      ACTIVE      org.eclipse.equinox.preferences_3.5.200.v20140224-1527
28      ACTIVE      org.eclipse.equinox.registry_3.5.400.v20140428-1507
29      ACTIVE      org.eclipse.equinox.util_1.0.500.v20130404-1337
30      ACTIVE      org.eclipse.net4j_4.3.0.v20140308-0604
31      ACTIVE      org.eclipse.net4j.db_4.3.0.v20140114-0640
32      ACTIVE      org.eclipse.net4j.db.h2_4.2.100.v20140114-0640
33      ACTIVE      org.eclipse.net4j.db.jdbc_4.3.0.v20140114-0640
34      STARTING    org.eclipse.net4j.jvm_4.1.200.v20140114-0640
35      ACTIVE      org.eclipse.net4j.tcp_4.1.200.v20140114-0640
36      ACTIVE      org.eclipse.net4j.util_3.4.0.v20140308-0604
37      RESOLVED    org.eclipse.osgi.services_3.4.0.v20140312-2051
38      RESOLVED    org.h2_1.3.168.v201212121212
39      ACTIVE      org.eclipse.net4j.db.hsqldb_4.2.100.v20140114-0640
40      ACTIVE      org.hsqldb_2.2.8


If created the org.hsqldb_2.2.8 bundle by mself with eclipse.
But I also tried it with the already bundled version 1.8.0.10_2 from the org.apache.servicemix repository and I got the same error.

Do you have any hints why I get the java.lang.NoClassDefFoundError: org/hsqldb/jdbc/JDBCDataSource error?

Thanks in adavance for your help!

Greetings,
Daniel
Re: [CDO] CDO Server unknown DB adapter hsqldb [message #1471442 is a reply to message #1461263] Thu, 13 November 2014 04:46 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6447
Registered: July 2009
Senior Member
Hi Daniel,

The org.eclipse.net4j.db.hsqldb plugin's manifest needs these packages:

Import-Package: org.hsqldb;version="[2.0.0,3.0.0)";resolution:=optional,
org.hsqldb.jdbc;version="[2.0.0,3.0.0)";resolution:=optional

We can't ship the hsqldb driver bundle for legal reasons but our build consumes it from
http://www.elver.org/eclipse/2.0.0/update

Would it work with that bundle?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 04.11.2014 um 12:33 schrieb Daniel Seybold:
> Hi Eike,
>
> thanks again for your helpful hints.
>
> I've managed to install the necessary bundles (org.eclipse.net4j.db.hsqldb and org.hsqldb) by copying the bundles in
> the plugins folder und updating the bundles.info file.
>
> But now I'm facing an new error when I start the cdo-server with the hsqldb:
> [ERROR] org/hsqldb/jdbc/JDBCDataSource
> java.lang.NoClassDefFoundError: org/hsqldb/jdbc/JDBCDataSource
>
> Here the complete startup logging info:
>
>
> Start VM: /usr/bin/java
> -Xms256M
> -Xmx1024M
> -Ddebug=true
> -Dnet4j.config=.
> -XX:MaxPermSize=128M
> -jar /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
> -os linux
> -ws gtk
> -arch x86_64
> -showsplash
> -launcher /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/cdo-server
> -name Cdo-server
> --launcher.library
> /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744/eclipse_1605.so
> -startup
> /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
> --launcher.overrideVmargs
> -exitdata 2f801e
> -debug
> -console
> -vm /usr/bin/java
> -vmargs
> -Xms256M
> -Xmx1024M
> -Ddebug=true
> -Dnet4j.config=.
> -XX:MaxPermSize=128M
> -jar
> /media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
> Install location:
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/
> Configuration file:
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/configuration/config.ini loaded
> Configuration location:
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/configuration/
> Framework located:
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/org.eclipse.osgi_3.10.0.v20140528-2014.jar
> Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar
> eclipse.properties not found
> Framework classpath:
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/org.eclipse.osgi_3.10.0.v20140528-2014.jar
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/plugins/org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar
> Splash location:
> null
> Debug options:
> file:/media/sf_kubuntu_13.10_shared/cdo_4.3_clean/CDOServer/.options loaded
> Time to load bundles: 30
> Starting application: 1792
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.util
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle] Activating PluginContainer
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle] Activating {}
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump] DUMP PluginFactoryRegistry
> ShareableLifecycle.refCount = null
> Registry.autoCommit = true
> Registry.transaction = null
> HashMapRegistry.map = org.eclipse.net4j.acceptors[jvm]=Factory[org.eclipse.net4j.acceptors, jvm]
> org.eclipse.net4j.acceptors[ssl]=Factory[org.eclipse.net4j.acceptors, ssl]
> org.eclipse.net4j.connectors[ssl]=Factory[org.eclipse.net4j.connectors, ssl]
> org.eclipse.net4j.connectors[jvm]=Factory[org.eclipse.net4j.connectors, jvm]
> org.eclipse.net4j.randomizers[default]=Factory[org.eclipse.net4j.randomizers, default]
> org.eclipse.net4j.userManagers[file]=Factory[org.eclipse.net4j.userManagers, file]
> org.eclipse.net4j.serverProtocols[failover-client]=Factory[org.eclipse.net4j.serverProtocols, failover-client]
> org.eclipse.net4j.serverProtocols[cdo]=Factory[org.eclipse.net4j.serverProtocols, cdo]
> org.eclipse.net4j.serverProtocols[heartbeat]=Factory[org.eclipse.net4j.serverProtocols, heartbeat]
> org.eclipse.net4j.authenticators[file]=Factory[org.eclipse.net4j.authenticators, file]
> org.eclipse.net4j.bufferProviders[default]=Factory[org.eclipse.net4j.bufferProviders, default]
> org.eclipse.emf.cdo.server.browserPages[db]=Factory[org.eclipse.emf.cdo.server.browserPages, db]
> org.eclipse.net4j.acceptors[tcp]=Factory[org.eclipse.net4j.acceptors, tcp]
> org.eclipse.net4j.Negotiators[challenge]=Factory[org.eclipse.net4j.Negotiators, challenge]
> org.eclipse.net4j.connectors[tcp]=Factory[org.eclipse.net4j.connectors, tcp]
> org.eclipse.net4j.executorServices[default]=Factory[org.eclipse.net4j.executorServices, default]
> org.eclipse.emf.cdo.server.browsers[default]=Factory[org.eclipse.emf.cdo.server.browsers, default]
> org.eclipse.net4j.serverProtocols[failover]=Factory[org.eclipse.net4j.serverProtocols, failover]
> org.eclipse.net4j.util.confirmationProviders[default]=Factory[org.eclipse.net4j.util.confirmationProviders, default]
> org.eclipse.net4j.util.timers[daemon]=Factory[org.eclipse.net4j.util.timers, daemon]
> org.eclipse.net4j.selectors[tcp]=Factory[org.eclipse.net4j.selectors, tcp]
> org.eclipse.emf.cdo.server.net4j.failoverMonitors[net4j]=Factory[org.eclipse.emf.cdo.server.net4j.failoverMonitors,
> net4j]
> container = PluginContainer
> extensionRegistryListener = org.eclipse.net4j.internal.util.factory.PluginFactoryRegistry$1@1fa817a7
>
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle] Activating []
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.emf.cdo.server
> osgi> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.emf.cdo.common
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.tcp
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump] DUMP PluginElementProcessorList
> processors = org.eclipse.net4j.util.security.ChallengeNegotiatorConfigurer@126dae3b
> org.eclipse.emf.cdo.spi.server.RepositoryUserManager$RepositoryInjector@5ec9acf0
> org.eclipse.net4j.TransportInjector@a78f12e
> org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol$Server$TimerInjector@a220861
> org.eclipse.net4j.internal.tcp.TCPSelectorInjector@40541d79
> extensionRegistryListener = org.eclipse.net4j.internal.util.container.PluginElementProcessorList$1@525b13ed
>
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump] DUMP PluginContainer
> ManagedContainer.factoryRegistry = org.eclipse.net4j.acceptors[jvm]=Factory[org.eclipse.net4j.acceptors, jvm]
> org.eclipse.net4j.acceptors[ssl]=Factory[org.eclipse.net4j.acceptors, ssl]
> org.eclipse.net4j.connectors[ssl]=Factory[org.eclipse.net4j.connectors, ssl]
> org.eclipse.net4j.connectors[jvm]=Factory[org.eclipse.net4j.connectors, jvm]
> org.eclipse.net4j.randomizers[default]=Factory[org.eclipse.net4j.randomizers, default]
> org.eclipse.net4j.userManagers[file]=Factory[org.eclipse.net4j.userManagers, file]
> org.eclipse.net4j.serverProtocols[failover-client]=Factory[org.eclipse.net4j.serverProtocols, failover-client]
> org.eclipse.net4j.serverProtocols[cdo]=Factory[org.eclipse.net4j.serverProtocols, cdo]
> org.eclipse.net4j.serverProtocols[heartbeat]=Factory[org.eclipse.net4j.serverProtocols, heartbeat]
> org.eclipse.net4j.authenticators[file]=Factory[org.eclipse.net4j.authenticators, file]
> org.eclipse.net4j.bufferProviders[default]=Factory[org.eclipse.net4j.bufferProviders, default]
> org.eclipse.emf.cdo.server.browserPages[db]=Factory[org.eclipse.emf.cdo.server.browserPages, db]
> org.eclipse.net4j.acceptors[tcp]=Factory[org.eclipse.net4j.acceptors, tcp]
> org.eclipse.net4j.Negotiators[challenge]=Factory[org.eclipse.net4j.Negotiators, challenge]
> org.eclipse.net4j.connectors[tcp]=Factory[org.eclipse.net4j.connectors, tcp]
> org.eclipse.net4j.executorServices[default]=Factory[org.eclipse.net4j.executorServices, default]
> org.eclipse.emf.cdo.server.browsers[default]=Factory[org.eclipse.emf.cdo.server.browsers, default]
> org.eclipse.net4j.serverProtocols[failover]=Factory[org.eclipse.net4j.serverProtocols, failover]
> org.eclipse.net4j.util.confirmationProviders[default]=Factory[org.eclipse.net4j.util.confirmationProviders, default]
> org.eclipse.net4j.util.timers[daemon]=Factory[org.eclipse.net4j.util.timers, daemon]
> org.eclipse.net4j.selectors[tcp]=Factory[org.eclipse.net4j.selectors, tcp]
> org.eclipse.emf.cdo.server.net4j.failoverMonitors[net4j]=Factory[org.eclipse.emf.cdo.server.net4j.failoverMonitors,
> net4j]
> ManagedContainer.postProcessors = org.eclipse.net4j.util.security.ChallengeNegotiatorConfigurer@126dae3b
> org.eclipse.emf.cdo.spi.server.RepositoryUserManager$RepositoryInjector@5ec9acf0
> org.eclipse.net4j.TransportInjector@a78f12e
> org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol$Server$TimerInjector@a220861
> org.eclipse.net4j.internal.tcp.TCPSelectorInjector@40541d79
> ManagedContainer.elementRegistry =
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Plugin container created: PluginContainer
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting application org.eclipse.emf.cdo.server.app
> [INFO] CDO server starting
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.emf.cdo.server.db
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.db
> app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle org.eclipse.net4j.db.hsqldb
> [ERROR] org/hsqldb/jdbc/JDBCDataSource
> java.lang.NoClassDefFoundError: org/hsqldb/jdbc/JDBCDataSource
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
> at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
> at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
> at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
> at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
> at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
> at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:311)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:386)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
> at org.eclipse.osgi.internal.loader.buddy.RegisteredPolicy.loadClass(RegisteredPolicy.java:73)
> at org.eclipse.osgi.internal.loader.buddy.PolicyHandler.doBuddyClassLoading(PolicyHandler.java:141)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:411)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
> at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.java:447)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:365)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:358)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:353)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDataSource(DBStoreFactory.java:128)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.createStore(DBStoreFactory.java:53)
> at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.createStore(RepositoryConfigurator.java:405)
> at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.getRepository(RepositoryConfigurator.java:204)
> at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:136)
> at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:108)
> at org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication.doStart(CDOServerApplication.java:61)
> at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplication.java:63)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbc.JDBCDataSource cannot be found by
> org.eclipse.net4j.db.hsqldb_4.2.100.v20140114-0640
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
> at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> ... 34 more
> Framework stop [debug.om] Stopping bundle org.eclipse.emf.cdo.server.db
> Framework stop [debug.om] Stopping bundle org.eclipse.emf.cdo.server
> Framework stop [debug.om] Stopping bundle org.eclipse.emf.cdo.common
> Framework stop [debug.om] Stopping bundle org.eclipse.net4j.tcp
> Framework stop [debug.om] Stopping bundle org.eclipse.net4j
> Framework stop [debug.om] Stopping bundle org.eclipse.net4j.db.hsqldb
> Framework stop [debug.om] Stopping bundle org.eclipse.net4j.db
> Framework stop [debug.om] Stopping bundle org.eclipse.net4j.util
> Framework stop [debug.lifecycle] Deactivating PluginContainer
> Framework stop [debug.lifecycle] Deactivating {org.eclipse.net4j.acceptors[jvm]=Factory[org.eclipse.net4j.acceptors,
> jvm], org.eclipse.net4j.acceptors[ssl]=Factory[org.eclipse.net4j.acceptors, ssl],
> org.eclipse.net4j.connectors[ssl]=Factory[org.eclipse.net4j.connectors, ssl],
> org.eclipse.net4j.connectors[jvm]=Factory[org.eclipse.net4j.connectors, jvm],
> org.eclipse.net4j.randomizers[default]=Factory[org.eclipse.net4j.randomizers, default],
> org.eclipse.net4j.userManagers[file]=Factory[org.eclipse.net4j.userManagers, file],
> org.eclipse.net4j.serverProtocols[failover-client]=Factory[org.eclipse.net4j.serverProtocols, failover-client],
> org.eclipse.net4j.serverProtocols[cdo]=Factory[org.eclipse.net4j.serverProtocols, cdo],
> org.eclipse.net4j.serverProtocols[heartbeat]=Factory[org.eclipse.net4j.serverProtocols, heartbeat],
> org.eclipse.net4j.authenticators[file]=Factory[org.eclipse.net4j.authenticators, file],
> org.eclipse.net4j.bufferProviders[default]=Factory[org.eclipse.net4j.bufferProviders, default],
> org.eclipse.emf.cdo.server.browserPages[db]=Factory[org.eclipse.emf.cdo.server.browserPages, db],
> org.eclipse.net4j.acceptors[tcp]=Factory[org.eclipse.net4j.acceptors, tcp],
> org.eclipse.net4j.Negotiators[challenge]=Factory[org.eclipse.net4j.Negotiators, challenge],
> org.eclipse.net4j.connectors[tcp]=Factory[org.eclipse.net4j.connectors, tcp],
> org.eclipse.net4j.executorServices[default]=Factory[org.eclipse.net4j.executorServices, default],
> org.eclipse.emf.cdo.server.browsers[default]=Factory[org.eclipse.emf.cdo.server.browsers, default],
> org.eclipse.net4j.serverProtocols[failover]=Factory[org.eclipse.net4j.serverProtocols, failover],
> org.eclipse.net4j.util.confirmationProviders[default]=Factory[org.eclipse.net4j.util.confirmationProviders, default],
> org.eclipse.net4j.util.timers[daemon]=Factory[org.eclipse.net4j.util.timers, daemon],
> org.eclipse.net4j.selectors[tcp]=Factory[org.eclipse.net4j.selectors, tcp],
> org.eclipse.emf.cdo.server.net4j.failoverMonitors[net4j]=Factory[org.eclipse.emf.cdo.server.net4j.failoverMonitors,
> net4j]}
> Framework stop [debug.lifecycle] Deactivating [org.eclipse.net4j.util.security.ChallengeNegotiatorConfigurer@126dae3b,
> org.eclipse.emf.cdo.spi.server.RepositoryUserManager$RepositoryInjector@5ec9acf0,
> org.eclipse.net4j.TransportInjector@a78f12e,
> org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol$Server$TimerInjector@a220861,
> org.eclipse.net4j.internal.tcp.TCPSelectorInjector@40541d79]
>
> Here a snippet of the the used bundles (when I start the server without an exception by using the h2 database):
>
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.10.0.v20140528-2014
> Fragments=1
> 1 RESOLVED org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907
> Master=0
> 2 ACTIVE org.eclipse.equinox.simpleconfigurator_1.1.0.v20131217-1203
> 3 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
> 4 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
> 5 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
> 6 ACTIVE org.eclipse.core.contenttype_3.4.200.v20140207-1251
> 7 STARTING org.eclipse.core.expressions_3.4.600.v20140128-0851
> 8 ACTIVE org.eclipse.core.jobs_3.6.0.v20140424-0053
> 9 ACTIVE org.eclipse.core.runtime_3.10.0.v20140318-2214
> 10 STARTING org.eclipse.core.variables_3.2.800.v20130819-1716
> 11 ACTIVE org.eclipse.emf.cdo_4.3.0.v20140520-1823
> 12 ACTIVE org.eclipse.emf.cdo.common_4.3.0.v20140309-0644
> 13 ACTIVE org.eclipse.emf.cdo.server_4.3.0.v20140309-0644
> 14 ACTIVE org.eclipse.emf.cdo.server.db_4.2.100.v20140526-0840
> 15 ACTIVE org.eclipse.emf.cdo.server.net4j_4.1.100.v20140308-0604
> 16 STARTING org.eclipse.emf.cdo.server.product_4.1.200.v20140323-1856
> 17 ACTIVE org.eclipse.emf.common_2.10.0.v20140514-1158
> 18 ACTIVE org.eclipse.emf.ecore_2.10.0.v20140514-1158
> 19 STARTING org.eclipse.emf.ecore.change_2.10.0.v20140514-1158
> 20 ACTIVE org.eclipse.emf.ecore.xmi_2.10.0.v20140514-1158
> 21 ACTIVE org.eclipse.equinox.app_1.3.200.v20130910-1609
> 22 ACTIVE org.eclipse.equinox.common_3.6.200.v20130402-1505
> 23 ACTIVE org.eclipse.equinox.console_1.1.0.v20140131-1639
> 24 ACTIVE org.eclipse.equinox.ds_1.4.200.v20131126-2331
> 25 RESOLVED org.eclipse.equinox.launcher_1.3.0.v20140415-2008
> Fragments=26
> 26 RESOLVED org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744
> Master=25
> 27 ACTIVE org.eclipse.equinox.preferences_3.5.200.v20140224-1527
> 28 ACTIVE org.eclipse.equinox.registry_3.5.400.v20140428-1507
> 29 ACTIVE org.eclipse.equinox.util_1.0.500.v20130404-1337
> 30 ACTIVE org.eclipse.net4j_4.3.0.v20140308-0604
> 31 ACTIVE org.eclipse.net4j.db_4.3.0.v20140114-0640
> 32 ACTIVE org.eclipse.net4j.db.h2_4.2.100.v20140114-0640
> 33 ACTIVE org.eclipse.net4j.db.jdbc_4.3.0.v20140114-0640
> 34 STARTING org.eclipse.net4j.jvm_4.1.200.v20140114-0640
> 35 ACTIVE org.eclipse.net4j.tcp_4.1.200.v20140114-0640
> 36 ACTIVE org.eclipse.net4j.util_3.4.0.v20140308-0604
> 37 RESOLVED org.eclipse.osgi.services_3.4.0.v20140312-2051
> 38 RESOLVED org.h2_1.3.168.v201212121212
> 39 ACTIVE org.eclipse.net4j.db.hsqldb_4.2.100.v20140114-0640
> 40 ACTIVE org.hsqldb_2.2.8
>
>
> If created the org.hsqldb_2.2.8 bundle by mself with eclipse.
> But I also tried it with the already bundled version 1.8.0.10_2 from the org.apache.servicemix repository and I got
> the same error.
>
> Do you have any hints why I get the java.lang.NoClassDefFoundError: org/hsqldb/jdbc/JDBCDataSource error?
>
> Thanks in adavance for your help!
>
> Greetings,
> Daniel


Re: [CDO] CDO Server unknown DB adapter hsqldb [message #1479256 is a reply to message #1471442] Wed, 19 November 2014 09:35 Go to previous message
Daniel Seybold is currently offline Daniel SeyboldFriend
Messages: 14
Registered: October 2014
Junior Member
Hi Eike,

thanks for your great help!

The hint to install hsqldb using your provided link was the solution.

Cheers,
Daniel
Previous Topic:ECore generated from XSD includes Type suffix in class names
Next Topic:Element names in the generated XSD file
Goto Forum:
  


Current Time: Tue Oct 22 19:16:16 GMT 2019

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

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

Back to the top