Hi,

Setup: RH Linux 6.2, mySQL 3.2, torque-3.0-b3

This is regarding the following URL:
http://jakarta.apache.org/turbine/torque/tutorial.html

I've cleared all directions until I execute:
% java com.kazmier.Bookstore
which gives me the error:

java.lang.NullPointerException: There was no
DataSourceFactory configured for the connection
bookstore at org.apache.torque.Torque.getConnection
(Torque.java:900) at org.apache.torque.util.BasePeer.
beginTransaction(BasePeer.java:368) at com.kazmier.
om.BasePublisher.save(BasePublisher.java:460) at
com.kazmier.om.BasePublisher.save(BasePublisher.java:
444)at com.kazmier.Bookstore.main(Bookstore.java:26)

Some quirks:
1) I had to modify the build-torque.xml by forcing the
<sql-template> and <om-template> targets (in place of
the <sql-classpath> and <om-classpath> targets).

2) I couldn't execute the line:
% ant -f build-torque.xml insert-sql 

and therefore had to execute
project-schema-idtable-init.sql manually.  The other
two sql files (project-schema.sql,
id-table-schema.sql) executed fine, as evidenced by
logging into mySQL.

Thanks,
Parox



__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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

Reply via email to