db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JJ Snyder <j.j.sny...@oracle.com>
Subject Re: ClientDataSource in OSGi
Date Tue, 24 Mar 2009 14:47:55 GMT
It was ClientDataSource but I've changed the code a little.  Now it's 
ClientDataSource40 (also in the derbyclient.jar) but basically the same 
problem.  Maybe I'm not installing the bundles correctly.  I installed 
and started the "derby.jar" bundle.  I also installed and started the 
derbyclient.jar but get the same stack trace.

Here's the trace...thanks,JJ

org.osgi.framework.BundleException: Exception in 
clienttest.Activator.start() of bundle clienttest.
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
        at 
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java
:150)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: 
org/apache/derby/jdbc/ClientDataSource40
        at 
org.osgi.impl.service.jdbc.DerbyDataSourceFactory.createClientDataSource(DerbyDataSourceFactory.java:194)
        at 
org.osgi.impl.service.jdbc.DerbyDataSourceFactory.createDataSource(DerbyDataSourceFactory.java:98)
        at clienttest.Activator.start(Activator.java:37)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
        ... 14 more
Nested Exception:
java.lang.NoClassDefFoundError: org/apache/derby/jdbc/ClientDataSource40
        at 
org.osgi.impl.service.jdbc.DerbyDataSourceFactory.createClientDataSource(DerbyDataSourceFactory.java:194)
        at 
org.osgi.impl.service.jdbc.DerbyDataSourceFactory.createDataSource(DerbyDataSourceFactory.java:98)
        at clienttest.Activator.start(Activator.java:37)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
        at 
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java
:150)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
        at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.lang.NoClassDefFoundError: org/apache/derby/jdbc/ClientDataSource40
        at 
org.osgi.impl.service.jdbc.DerbyDataSourceFactory.createClientDataSource(DerbyDataSourceFactory.java:194)
        at 
org.osgi.impl.service.jdbc.DerbyDataSourceFactory.createDataSource(DerbyDataSourceFactory.java:98)
        at clienttest.Activator.start(Activator.java:37)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
        at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
        at 
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
        at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java
:150)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
        at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
        at java.lang.Thread.run(Unknown Source)

osgi>

Kristian Waagan wrote:
> JJ Snyder wrote:
>> Hi,
>> I am running Equinox standalone and have installed and started the 
>> derby bundle (derby.jar). I am able to access the EmbeddedDataSource 
>> from another bundle successfully.  I then install and start the 
>> derbyclient.jar as a bundle but when I try to access the 
>> ClientDataSource I get a ClassNotFoundException.  It works fine in 
>> eclipse' PDE environment but not standalone.
>>
>> Any ideas?
> Hello,
>
> I don't have much to offer now, but can you please post the stack trace?
> Is it the ClientDataSource class that isn't found, or a different class?
>
>
> Regards,

Mime
View raw message