Hi,

This bug bit me about 24 hours ago.  Unfortunately for some reason I cannot
connect to jakarta.apache.org so I cannot submit a patch.

Basically what happened in my case is that some JVM's does not load the
driver automatically, and you need to call a Class.forName to get the class
loaded.  I added Class.forName(driver) to two of the constructors of
ConnectionPool.  This made my problem (No suitable driver) go away.

~ Leon

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 2:24 PM
Subject: use of db2 in Turbine


> We are using JetSpeed over Turbine to develop our portal. We are trying to
> use DB2 instead of HypersonicSQL in the Turbine. For that we created new
> database in the DB2 and created the tables by running the script files
> provided in JetSpeed. We changed the following settings in
> "TurbineResources.properties" according to our requirements -
>
> database.default.driver=COM.ibm.db2.jdbc.app.DB2Driver
> database.default.url=jdbc:db2:anshuldb
> database.default.username=db2admin
> database.default.password=db2admin
>
> database.adaptor=DBHypersonicSQL
> database.adaptor.DBHypersonicSQL=org.hsql.jdbcDriver
>
> database.adaptor=DBDB2App
> database.adaptor.DBDB2App=COM.ibm.db2.jdbc.app.DB2Driver
>
> The starting page of Jetspeed come up, but when I try to login on the
> turbine login screen, I got the follow error:
>
> Exception: java.lang.Error: Error in
> BasePeer.initTableSchema(TURBINE_USER): No suitable driver
>                  at
> org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:227)
>                  at
> org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:187)
>                  at
>
org.apache.turbine.om.security.peer.TurbineUserPeer.<clinit>(TurbineUserPeer
.java:167)
>
>
>                  at
>
org.apache.turbine.services.security.DBUserManager.retrieve(DBUserManager.ja
va:153)
>
>
>                  at
>
org.apache.turbine.services.security.DBUserManager.retrieve(DBUserManager.ja
va:230)
>
>
>                  at
>
org.apache.turbine.services.security.BaseSecurityService.getAuthenticatedUse
r(BaseSecurityService.java:279)
>
>
>                  at
>
org.apache.turbine.services.security.TurbineSecurity.getAuthenticatedUser(Tu
rbineSecurity.java:193)
>
>
>                  at
> org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:105)
>                  at
> org.apache.turbine.modules.Action.perform(Action.java:91)
>                  at
> org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:121)
>                  at
>
org.apache.jetspeed.modules.actions.JLoginUser.doPerform(JLoginUser.java:224
)
>
>
>                  at
> org.apache.turbine.modules.Action.perform(Action.java:91)
>                  at
> org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:121)
>                  at org.apache.turbine.Turbine.doGet(Turbine.java:326)
>                  at org.apache.turbine.Turbine.doPost(Turbine.java:451)
>
> Can somebody tell me what may be the cause of the problem and the solution
> for that ?
>
> Thanks & Regards,
> Anshul.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to