You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by an...@in.ibm.com on 2001/05/28 14:24:27 UTC

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.java:153)


                 at
org.apache.turbine.services.security.DBUserManager.retrieve(DBUserManager.java:230)


                 at
org.apache.turbine.services.security.BaseSecurityService.getAuthenticatedUser(BaseSecurityService.java:279)


                 at
org.apache.turbine.services.security.TurbineSecurity.getAuthenticatedUser(TurbineSecurity.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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


[IMPORTANT] Commiter accounts

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Spoke to Brian Behlendorf, and he clarified what commiters@apache.org
is and why the EZMLM subscription mechanism doesn't apply to it.
Here's a paraphrase:

committers@apache.org isn't an EZMLM list; when a message goes to it, a
message is sent to every address "user@apache.org" where "user" is each
individual in the "apcvs" group on daedalus.  If someone has not set up
offsite forwarding for their user@apache.org email, then their mail is
still on daedalus, in their ~/Mailbox file.  They need to email
root@apache.org to get a new password to get on the machine so they
can read that email, then preferably set up a .forward or .qmail file.

Commiters, please, PLEASE take measures to handle your
[commiter]@apache.org email account.  This is a responsibility that
goes hand in hand with your commiter status.  :)

I handle mail to dlr@apache.org with a .qmail file which directs
messages to another account (much a like a sendmail-esque .forward
file):

dlr@daedalus:dlr$ cat .qmail 
dlr@collab.net

PASSWORDS AND PUBIC KEYS ON APACHE.ORG WERE WIPED (as you'd know had
you been watching your commiters@apache.org email ;).  I have sent
mail to root@apache.org for those of you who responded to my previous
email, requesting that new temporary passwords or installation of SSH
keys.  The following existing commiters were mentioned in my email,
and I have verified to be in the "apcvs" group which receives
commiters@ email:

John Thorhauer
Ilkka Priha
Jeffrey D. Brekke

I have also requested new accounts for the following developers
(as defined at http://jakarta.apache.org/site/roles.html):

Eric Dobbs
Dave Polito
Henning P . Schmiedehausen

The developers mentioned should expect mail within the week (could be
sooner).  If no mail is forthcoming, mail root@apache.org directly,
citing this email.  Those commiters not mentioned above who still
don't have access should mail root@apache.org own their own.

Thanks to everyone for making the ASF great!

Daniel Rall

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: *.apache.org

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Daniel Rall <dl...@finemaltcoding.com> writes:

> Commiters having trouble connecting to *.apache.org, please email
> root@apache.org with your public SSH key, or request a temporary
> password.  Additinoally, you should already be aware of this via mail
> to commiters@apache.org.  If you are not subscribed to
> commiters@apache.org, please send mail to
> commiters-subscribe@apache.org ASAP and read mail coming off this
> list.  Thanks.

Hi guys.  It appears that I've given some erroneous information about
how to subscribe to the commiters@apache.org mailing list (required
for all Apache commiters).  Some investigation by Ed Korthof reveals
that not everyone who should be is in the apcvs group on the
apache.org box.  So, if have not been receiving mail from
commiters@apache.org, please email me directly with a subject of
commiters-subscribe.

Secondly, to the three of you who were recently voted into commit
access, please send me the following:

desired login name
your personal email address


Thanks!
--

Daniel Rall <dl...@finemaltcoding.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


*.apache.org

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Leon Messerschmidt <le...@opticode.co.za> writes:

> Unfortunately for some reason I cannot
> connect to jakarta.apache.org so I cannot submit a patch.

Commiters having trouble connecting to *.apache.org, please email
root@apache.org with your public SSH key, or request a temporary
password.  Additinoally, you should already be aware of this via mail
to commiters@apache.org.  If you are not subscribed to
commiters@apache.org, please send mail to
commiters-subscribe@apache.org ASAP and read mail coming off this
list.  Thanks.

Daniel Rall

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: use of db2 in Turbine

Posted by Leon Messerschmidt <le...@opticode.co.za>.
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: <an...@in.ibm.com>
To: <tu...@jakarta.apache.org>
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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: use of db2 in Turbine

Posted by Jason van Zyl <jv...@apache.org>.
On 5/28/01 8:24 AM, "anshulgoswami@in.ibm.com" <an...@in.ibm.com>
wrote:

> 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.j
> ava:167)
> 
> 
>                at
> org.apache.turbine.services.security.DBUserManager.retrieve(DBUserManager.java
> :153)
> 
> 
>                at
> org.apache.turbine.services.security.DBUserManager.retrieve(DBUserManager.java
> :230)
> 
> 
>                at
> org.apache.turbine.services.security.BaseSecurityService.getAuthenticatedUser(
> BaseSecurityService.java:279)
> 
> 
>                at
> org.apache.turbine.services.security.TurbineSecurity.getAuthenticatedUser(Turb
> ineSecurity.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 ?
> 

The error says "no suitable driver":

1) Are you sure the db2 JDBC drivers are in your classpath?
2) Do you have a simple typo somewhere?

-- 

jvz.

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org