There is nothing wrong with using the org.hsqldb.jdbc.JDBCDriver class.

Asier: have you packaged HSQLDB as an OSGi bundle, or have you added
it to your bundle classpath using the Bundle-Classpath header? Note
that it is not enough to simply put a copy of hsqldb.jar inside your
bundle. However, I strongly recommend "bundleizing" HSQLDB so that it
can be used by multiple client bundles. I have successfuly used the
following bnd script to achieve this bundleization:

-----8<------
Bundle-SymbolicName: org.hsqldb
Bundle-Version: 1.8.0.v09
Export-Package: org.hsqldb*;version=${Bundle-Version}
Import-Package: javax.servlet*;resolution:=optional,\
        javax.swing*;resolution:=optional,\
        javax.security.cert;resolution:=optional,\
        sun*;resolution:=optional,\
        *
Bundle-RequiredExecutionEnvironment: J2SE-1.4
-----8<------

On Mon, Feb 22, 2010 at 11:31 AM, Miguel <[email protected]> wrote:
> hi, I guess org.hsqldb.JDBCDriver is not the correct route ;), isn't it? ,
> at least the class you are pointing at can be found here:
> org/hsqldb/jdbc/JDBCDriver.class within the  hsqldb.jar
> Miguel
> Sent from Madrid, Spain
>
> On Mon, Feb 22, 2010 at 12:10 PM, Asier Aranbarri Beldarrain
> <[email protected]> wrote:
>>
>> Hi Miguel:
>>
>> Thanks for the answer. Yes, I set up the classpath correctly. The odd
>> thing is that I also have a .jar included in an osgi bundle
>> (mysqlconnector.jar) the same exact way and works perfect.
>>
>>
>>
>> On 22 February 2010 11:43, Miguel <[email protected]> wrote:
>>>
>>> you should not include libraries inside bundles. It is better to "bundle"
>>> then.
>>> However, if you made that other way, did you set up the correct classpath
>>> in the manifest and import the correct package?
>>> Miguel
>>>
>>>
>>> On Mon, Feb 22, 2010 at 11:32 AM, Asier Aranbarri Beldarrain
>>> <[email protected]> wrote:
>>>>
>>>> Hi:
>>>>
>>>> I made a new Db using  HSQLDB  (http://hsqldb.org/) and imported it to
>>>> my eclipse framework, making a Java program work with it(actually it does
>>>> correctly).
>>>>
>>>> Now mi issue is that I need to export that to an Osgi bundle (using
>>>> equinox). HSQLDB uses the hsqldb.jar library, which is necessary so that
>>>> hsqldb driver can be found. My problem is that equinox is not finding it
>>>> (org.hsqldb.JDBCDriver not found exception all the time).
>>>>
>>>> When I export the package I include the hsqldb.jar in the Build
>>>> Configuration, but somehow, when I run equinox, it does not recognize it.
>>>>
>>>> Any possible solution?
>>>>
>>>> Thanks in advance,
>>>>
>>>> Asier
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> OSGi Developer Mail List
>>>> [email protected]
>>>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>>
>>>
>>> _______________________________________________
>>> OSGi Developer Mail List
>>> [email protected]
>>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> [email protected]
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to