portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zufeng Huang <huangzuf...@sungoal.com>
Subject Re: "There was no DataSourceFactory ..." error.
Date Thu, 31 Jul 2003 16:23:57 GMT

torque.project=dbpsml     # ---> Is this ok?
torque.targetPackage=org.apache.jetspeed.om.dbpsml  # ---> Is this ok?


torque.databaseUrl = jdbc:mysql://localhost:3306/portal
torque.databaseDriver = org.gjt.mm.mysql.Driver
torque.databaseUser = root
torque.databasePassword = password
torque.databaseHost = localhost


torque.database.url = jdbc:mysql://localhost:3306/portal
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.user = root
torque.database.password = password
torque.database.host = localhost




# The number of database connections to cache per ConnectionPool 
instance (specified per database)

### MySQL
torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.default.connection.url = jdbc:mysql://localhost:3306/portal
torque.dsfactory.default.connection.user =  root
torque.dsfactory.default.connection.password = password

Jason Weiss wrote:

>I'm not sure which file you missed something, but I encountered the same
>error porting to Sybase ASA database on Monday of this week.  I went
>through the code from start to finish in my case, and once I got each of
>these 3 files configured properly, EACH  to properly represent
>User id
>Database name
>my import was able to connect successfully and the exact error you are
>posting went away.  (Getting the data in was another story as I
>encountered some database and primary key issues, and a limitation of
>ASA's ResultSetMetaData functionality).
>I'm not a mySQL user, but perhaps you could post your .properties files
>here and a mySQL guru could double-check you covered each of the configs
>properly and identically.  I'll try to take a gander myself- a 2nd pair of
>eyes never hurts, but no promises.  I installed mySQL once like 3 years
>ago :-) and haven't used it since.
>-----Original Message-----
>From: Zufeng Huang [mailto:huangzufeng@sungoal.com]
>Sent: Thursday, July 31, 2003 10:43 AM
>To: jetspeed-dev@jakarta.apache.org
>Subject: "There was no DataSourceFactory ..." error.
>I am trying to import PSML into MySQL database, but error happens  when I
>run #ant import.
>>    [java] ***** PSML Importer *****
>>    [java] Exception in thread "main" java.lang.Error: Error in
>>BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory
>>configured for the connection default
>I configured three configuration files to support MySQL,
>$JS/build/torque/build.properties $JS/build/torque/dbpsml.properties
>--Is this right?
>and my JDBC driver for MySQL works ok,
>Anybody can explain what the "no DataSourceFactory" means? and how to
>this problem.
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org

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

View raw message