You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by lu...@sorma.com on 2003/01/09 18:23:12 UTC

Problem with second db

Hi all!

I took a look at all the email about "using secondary db".....
if i use only Hypersonic, it's ok, but if i add a second db, this is what i
see in the home page:

Horrible Exception: java.lang.Error: Error in
BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory
configured for the connection default
           at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTurbineUserPeer.java:169)

           at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.<clinit>(BaseTurbineUserPeer.java:143)

...

My configuration is similar to default with a second db in
Torque.properties.

torque.database.default=default
torque.database.default.adapter=hypersonic
torque.dsfactory.default.connection.driver = org.hsqldb.jdbcDriver
torque.dsfactory.default.connection.url = jdbc:hsqldb:
${webappRoot}/WEB-INF/db/jetspeed
torque.dsfactory.default.connection.user = sa
torque.dsfactory.default.connection.password =
torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.default.pool.defaultMaxConnections=10
torque.dsfactory.default.pool.maxExpiryTime=3600
torque.dsfactory.default.pool.connectionWaitTimeout=10

torque.database.icaro400.adapter=db2400
torque.dsfactory.icaro400.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.icaro400.pool.defaultMaxConnections=10
torque.dsfactory.icaro400.pool.maxExpiryTime=3600
torque.dsfactory.icaro400.pool.connectionWaitTimeout=10
torque.dsfactory.icaro400.connection.driver =
com.ibm.as400.access.AS400JDBCDriver
torque.dsfactory.icaro400.connection.url = jdbc:as400://system/collection
torque.dsfactory.icaro400.connection.user = user
torque.dsfactory.icaro400.connection.password = password

It seems to lost the configuration for default db.

Thanx.

Luca Forni


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>