Are you using Class.forName()? not really my field - but doesn't ant have its own classloader? I'm guessing its the same issue as using junit in ant...
cheers dim ----- Original Message ----- From: "tek1" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002 5:27 AM Subject: [Xdoclet-devel] postgresql jdbc driver ClassNotFound when using from xdoclet subtask > i've nearly finished a new castor subtask for xdoclet and part of it > actually makes a connection to the database and creates the tables for you. > > however, i'm getting the below error when i execute the subtask, even > though the (postgresql) jdbc driver is on the classpath: > > [ejbdoclet] (XDocletMain.start 51 ) Running XDoclet failed. > [ejbdoclet] (XDocletMain.start 52 ) <<Class Not Found: JDBC driver > org.postgresql.Driver could not be loaded>> > > however, when i place the jdbc driver .jar (pg73jdbc3.jar) in ant's lib > directory, it works. > > anyone know why? > > thanks. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Xdoclet-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-devel ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
