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 Tommaso <to...@fwctc.com> on 2006/02/08 11:28:52 UTC

Cannot find class in Torque dsfactory

Hi community,

I am trying to set up torque to use the JDBC2PoolDataSourceFactory.
I downloaded torque3.2 and I also configured torque.properties, but the portal 
does not start. My guess is that the class
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
is missing in the torque3.2.jar !

How can I set up this correctly and find the class? Maybe someone has a good 
tutorial?

Here a snippet of the torque.properties:
<Snip-start>
torque.database.default=default
torque.database.default.adapter=mssql

# The interval (in milliseconds) between which the PoolBrokerService logs
# the status of it's ConnectionPools.
#
# Default: No logging = 0 = 0 * 1000
torque.database.logInterval=0


# Determines if the quantity column of the IDBroker's id_table should
# be increased automatically if requests for ids reaches a high
# volume.

torque.idbroker.cleverquantity=true

# Determines whether the managers cache instances of the business objects.
# And also whether the MethodResultCache will really cache results.

torque.manager.useCache = true


## Using Jdbc2Pool
torque.dsfactory.default.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSource
Factory
torque.dsfactory.default.pool.defaultMaxActive=15
torque.dsfactory.default.pool.testOnBorrow=true
torque.dsfactory.default.pool.validationQuery=SELECT 1
torque.dsfactory.default.connection.driver = com.inet.tds.TdsDriver
torque.dsfactory.default.connection.url = jdbc:inetdae7a:server?database=NAME
torque.dsfactory.default.connection.user = user
torque.dsfactory.default.connection.password = pwd
<Snip-end>

Is this correct or can it be optimized?!
I know that the connection settings are correct, cause they worked with the old 
pool. My problem is the increasing connections to the DBMS that let Jetspeed 
crash.

Many thanks in advance.

Ciao,
  Tommaso


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


Re: Cannot find class in Torque dsfactory

Posted by Tommaso <to...@fwctc.com>.
Philip Mark Donaghy <philip.donaghy <at> gmail.com> writes:
> 
> This is all I found hope it helps.
> 
> http://www.ingrid.org/jajakarta/turbine/en/turbine/torque/jdbc2pool-howto.html
> 
> Philip
> 

Hi Philip,

thanks for your help.
But the only problem I have is that the jdbc2poolDataSourceFactory.class is 
missing. I checked all the jars I have, nothing!

I already read alot of tutorials and I know my settings are right, but nobody 
explains where this class comes from. I do not understand, how everybody can 
have this 
torque.dsfactory.default.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSource
in their torque.properties, without any error?!

It drives me nuts.

Ciao,
  Tommaso



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


Re: Cannot find class in Torque dsfactory

Posted by Philip Mark Donaghy <ph...@gmail.com>.
This is all I found hope it helps.

http://www.ingrid.org/jajakarta/turbine/en/turbine/torque/jdbc2pool-howto.html

Philip

On 2/8/06, Tommaso <to...@fwctc.com> wrote:
> Tommaso <tommaso.nuccio <at> fwctc.com> writes:
>
> >
> > Hi community,
> >
> > I am trying to set up torque to use the JDBC2PoolDataSourceFactory.
> > I downloaded torque3.2 and I also configured torque.properties, but the
> portal
> > does not start. My guess is that the class
> > org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
> > is missing in the torque3.2.jar !
> >
> > How can I set up this correctly and find the class? Maybe someone has a good
> > tutorial?
> >
> > Here a snippet of the torque.properties:
> > <Snip-start>
> > torque.database.default=default
> > torque.database.default.adapter=mssql
> >
> > # The interval (in milliseconds) between which the PoolBrokerService logs
> > # the status of it's ConnectionPools.
> > #
> > # Default: No logging = 0 = 0 * 1000
> > torque.database.logInterval=0
> >
> > # Determines if the quantity column of the IDBroker's id_table should
> > # be increased automatically if requests for ids reaches a high
> > # volume.
> >
> > torque.idbroker.cleverquantity=true
> >
> > # Determines whether the managers cache instances of the business objects.
> > # And also whether the MethodResultCache will really cache results.
> >
> > torque.manager.useCache = true
> >
> > ## Using Jdbc2Pool
> >
> torque.dsfactory.default.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSource
> > Factory
> > torque.dsfactory.default.pool.defaultMaxActive=15
> > torque.dsfactory.default.pool.testOnBorrow=true
> > torque.dsfactory.default.pool.validationQuery=SELECT 1
> > torque.dsfactory.default.connection.driver = com.inet.tds.TdsDriver
> > torque.dsfactory.default.connection.url = jdbc:inetdae7a:server?database=NAME
> > torque.dsfactory.default.connection.user = user
> > torque.dsfactory.default.connection.password = pwd
> > <Snip-end>
> >
> > Is this correct or can it be optimized?!
> > I know that the connection settings are correct, cause they worked with the
> old
> > pool. My problem is the increasing connections to the DBMS that let Jetspeed
> > crash.
> >
> > Many thanks in advance.
> >
> > Ciao,
> >   Tommaso
> >
>
> Hi,
>
> I am not sure if I explained my problem well:
> In the torque-3.2.jar, the class
> org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory is not included.
>
> Were can I find this class?
>
> I read through many archives and threads, e.g.
> http://www.opensubscriber.com/message/torque-user@db.apache.org/2254419.html,
> and everybody uses this class. Where from, though?
>
> It would be great, if someone could hlp me out.
>
> Ciao and many thanks,
>   Tommaso
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

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


Re: Cannot find class in Torque dsfactory

Posted by Tommaso <to...@fwctc.com>.
Tommaso <tommaso.nuccio <at> fwctc.com> writes:

> 
> Hi community,
> 
> I am trying to set up torque to use the JDBC2PoolDataSourceFactory.
> I downloaded torque3.2 and I also configured torque.properties, but the 
portal 
> does not start. My guess is that the class
> org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
> is missing in the torque3.2.jar !
> 
> How can I set up this correctly and find the class? Maybe someone has a good 
> tutorial?
> 
> Here a snippet of the torque.properties:
> <Snip-start>
> torque.database.default=default
> torque.database.default.adapter=mssql
> 
> # The interval (in milliseconds) between which the PoolBrokerService logs
> # the status of it's ConnectionPools.
> #
> # Default: No logging = 0 = 0 * 1000
> torque.database.logInterval=0
> 
> # Determines if the quantity column of the IDBroker's id_table should
> # be increased automatically if requests for ids reaches a high
> # volume.
> 
> torque.idbroker.cleverquantity=true
> 
> # Determines whether the managers cache instances of the business objects.
> # And also whether the MethodResultCache will really cache results.
> 
> torque.manager.useCache = true
> 
> ## Using Jdbc2Pool
> 
torque.dsfactory.default.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSource
> Factory
> torque.dsfactory.default.pool.defaultMaxActive=15
> torque.dsfactory.default.pool.testOnBorrow=true
> torque.dsfactory.default.pool.validationQuery=SELECT 1
> torque.dsfactory.default.connection.driver = com.inet.tds.TdsDriver
> torque.dsfactory.default.connection.url = jdbc:inetdae7a:server?database=NAME
> torque.dsfactory.default.connection.user = user
> torque.dsfactory.default.connection.password = pwd
> <Snip-end>
> 
> Is this correct or can it be optimized?!
> I know that the connection settings are correct, cause they worked with the 
old 
> pool. My problem is the increasing connections to the DBMS that let Jetspeed 
> crash.
> 
> Many thanks in advance.
> 
> Ciao,
>   Tommaso
> 

Hi,

I am not sure if I explained my problem well:
In the torque-3.2.jar, the class 
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory is not included.

Were can I find this class?

I read through many archives and threads, e.g. 
http://www.opensubscriber.com/message/torque-user@db.apache.org/2254419.html, 
and everybody uses this class. Where from, though?

It would be great, if someone could hlp me out.

Ciao and many thanks,
  Tommaso


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