Christopher,
I am glad you like Cayenne :-). And thanks for sharing your troubles. We
may need to document this somewhere in the FAQ.
Do you think your original problem may be related to the one described here?
http://objectstyle.org/cayenne/lists/cayenne-user/2003/01/0010.html
Cause the script works for me as is (but I guess my machine is far away
from a clean test environment since lots of Cayenne code was written on it,
and I may have all kinds of settings that I configured in the past and
forgot long time ago :-))
Andrus
At 07:27 PM 2/12/2003 -0800, Christopher Day wrote:
>Hi Ladies and Gentlemen.
>
>I've just downloaded Cayenne and am excited to be using it with Struts for a
>potential new job.
>
>I am in the process of configuring the cayenne-web-app tutorial and hit a snag
>when I needed to generate primary key support in the database. I am on a
>Win2k
>SP3 machine, and attempted to use "com.mysql.jdbc.Driver" and subsequently
>"org.gjt.mm.mysql.Driver" (after locating the latter!)
>
>When I would go to click `Generate` I kept receiving an error saying that the
>JDBC driver (either of them) could not be found.
>
>My valiant attempts included:
>
> a) putting the respective JAR files in %JAVA_HOME%\jre\lib\ext
>
> b) removing them from %JAVA_HOME%\jre\lib\ext and explicitly setting their
> full path in the system CLASSPATH.
>
>I finally found success when I edited the modeler startup script (modeler.bat)
>at the :check_cp section to read:
>
>set OPTIONS=-classpath
>%CAYENNE_HOME%\lib\modeler\cayenne-modeler.jar;%CAYENNE_HOME%\lib\modeler\mysql_2_uncomp.jar
>
>I am assuming this is because the -classpath option of JAVAW overrides the
>environment but if that were true then the following two lines which check for
>CLASSPATH existence and append it to the local OPTIONS variable *should* have
>also provided success n'est-ce pas? This was unfortunately not the case.
>
>Anyhoo I just thought I'd pass this along in case anyone else has
>experienced a
>similar snafu.
>
>Thankful for an excellent product,
>
>Chris
This archive was generated by hypermail 2.0.0 : Thu Feb 13 2003 - 00:06:56 EST