ANT JDBC ERROR
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aaron_whitman
Posted On:   Sunday, October 31, 2004 02:41 PM

Operating System:Windows 2000 MySQL:4.1.7 Java:J2EE 1.4 SDK ANT:Apache Ant 1.6 JBoss 4.0 I am trying too build a file, this file enters information creating tables, and data into mysql. When I execute the build I get the following error: Class Not Found: JDBC driver ${database.jdbc.driver} could not be loaded. What does this mean? I installed the MySql Driver and still it wont work. Please could someone help me figure this out? Thanks.    More>>

Operating System:Windows 2000


MySQL:4.1.7


Java:J2EE 1.4 SDK


ANT:Apache Ant 1.6


JBoss 4.0



I am trying too build a file, this file enters information creating tables, and data into mysql. When I execute the build I get the following error: Class Not Found:



JDBC driver ${database.jdbc.driver} could not be loaded.



What does this mean? I installed the MySql Driver and still it wont work. Please could someone help me figure this out? Thanks.
   <<Less

Re: ANT JDBC ERROR

Posted By:   Chris_Wang  
Posted On:   Tuesday, December 7, 2004 10:55 PM

I encountered this exact error. you need to copy the mysql JDBC driver .jar file from the tomcat library into the ant lib directory. This fixed the problem for me

Re: ANT JDBC ERROR

Posted By:   Anonymous  
Posted On:   Tuesday, November 2, 2004 03:44 AM

The Ant buildscript (build.xml) has no hardcoded database settings, it uses properties. If a property is not set, it is represented by its name as used inside the buildscript ${database.jdbc.driver}. So you have to specify the db-settings (I think not only the driver...). Maybe with a property file. Maybe there are more infos in a readme file or at the top of the build.xml.
About | Sitemap | Contact