Placing the configurations regarding *DSFactory*
in place of the *Database* seemed to work for me:

http://jakarta.apache.org/turbine/torque/jdbc2pool-howto.html

I don't know why the developers of the tutorial
provide the link to 3.0-b3 and permit this error to
stand.  the 3.0-b4 reverts back to the use of the
Database configuration.

--- Slava Zimine <[EMAIL PROTECTED]> wrote:
> Hi,
> In my wish to upgrade to a new Torque30-b3 i've
> tried to set up its
> usual Bookstore project on a mysql db.
> 
> 
> Beyond the torque-3.0-b3 distrib Exceptions lead me
> to  download  from
> jakarta.apache.org/jars
> commons-beanutils-1.4-dev.jar 
> ommons-jdbc2pool-1.0-dev.jar
> commons-logging-1.1-dev.jar
> 
> and put them in the torque's lib dir
> 
> running the Tutorial's bookstore  gives:
> #######################
> ava.lang.NullPointerException
>         at
>
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:117)
>         at
>
org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:103)
>         at
>
org.apache.torque.Torque.initDataSourceFactories(Torque.java:305)
>         at
> org.apache.torque.Torque.initialize(Torque.java:229)
>         at
> org.apache.torque.Torque.init(Torque.java:388)
>         at
> org.apache.torque.Torque.init(Torque.java:368)
>         at
>
com.slava.bookstore.Bookstore.main(Bookstore.java:17)
> rethrown as org.apache.torque.TorqueException
>         at
>
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:129)
>         at
>
org.apache.torque.dsfactory.TorqueDataSourceFactory.initialize(TorqueDataSourceFactory.java:103)
>         at
>
org.apache.torque.Torque.initDataSourceFactories(Torque.java:305)
>         at
> org.apache.torque.Torque.initialize(Torque.java:229)
>         at
> org.apache.torque.Torque.init(Torque.java:388)
>         at
> org.apache.torque.Torque.init(Torque.java:368)
>         at
>
com.slava.bookstore.Bookstore.main(Bookstore.java:17)
> Caused by: java.lang.NullPointerException
>         at
>
org.apache.torque.dsfactory.TorqueDataSourceFactory.initCPDS(TorqueDataSourceFactory.java:117)
>         ... 6 more
> 
> 
> ######################
> the snippet from Torque.propeties
> --------------------------
> torque.database.default=bookstore
> torque.database.default.adapter=mysql
> 
> ## Using torque's old pool
>
torque.dsfactory.bookstore.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.dsfactory.default.connection.driver =
> org.gjt.mm.mysql.Driver
> torque.dsfactory.default.connection.url =
> jdbc:mysql://localhost:3306/bookstore
> torque.dsfactory.default.connection.user = admin
> torque.dsfactory.default.connection.password = pass
> #
> 
> Any opinion will be appreciated. 
> 
> 
> regads,
> 
> slava
> 
> 
> 
> --
> To unsubscribe, e-mail:  
>
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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

Reply via email to