I got around this by changing the class
org.apache.turbine.util.db.pool.DBInstantDB.class by recompilng it with the following
change:

    public void init(String url, String username, String password) throws Exception {
        DB_CONNECTION = "jdbc:idb=" + url;
        Class.forName("org.enhydra.instantdb.jdbc.idbDriver").newInstance();
//        Class.forName("jdbc.idbDriver").newInstance();
    }

But, as we type in the driver name in the property file, why is it hard coded in this
class (or visa versa)?

brian


Patrick Hess wrote:

> Hi everybody!
>
> I'm trying to get JetSpeed working together with InstantDB, the
> primary setup is done - now I'm getting this exception:
>
> Exception: java.lang.Error: Error in BasePeer.initTableSchema(Visitor):
> Database type org.enhydra.instantdb.jdbc.idbDriver not implemented.
>         at
> org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java,
> Compiled Code)
>         at
> org.apache.turbine.om.user.peer.TurbineUserPeer.<clinit>(TurbineUserPeer.java:139)
>         at
> org.apache.turbine.om.user.TurbineUser.setUserName(TurbineUser.java,
> Compiled Code)
>
> Database setup in TurbineResources.properties:
>
>       database.default.driver=org.enhydra.instantdb.jdbc.idbDriver
>       database.default.url=/path/to/my/properties-file
>       database.default.username=
>       database.default.password=
>
> In the InstantDB Readme.txt you can find the following:
>
> ----
>   To conform with Java naming standards, all InstantDB classes have
>   been put in the org.enhydra.instantdb package.
>
>   Classes                      Old Package  New Package
>   -------                      -----------  -----------
>   Core InstantDB and           db           org.enhydra.instantdb.db
>   user-defined functions
>
>   JDBC                         jdbc         org.enhydra.instantdb.jdbc
>
>   Examples                     (none)       org.enhydra.instantdb.
>
>   This has the following implications:
>
>   1. You must change code to load the JDBC driver to load
>         org.enhydra.instantdb.jdbc.idbDriver
>      instead of
>         jdbc.idbDriver
> ----
>
> I changed the database.default.driver to "jdbc.idbDriver" but
> then I got an ClassNotFound exception.
>
> I think the changes in InstandDB are not make in the turbine
> package in jetspeed 1.2b1 - is this right? How can I get it
> working? Or is there another point..?
>
> Patrick Hess
>
> | metazoa GmbH        | fon   +49-211-175447-14 |
> | Hohenzollernstr. 34 | fax   +49-211-175447-27 |
> | 40211 D�sseldorf    | mail  [EMAIL PROTECTED] |
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to