Generally, I keep my JDBC jar in the libraries folder of the app and add it to the build path from there.
The error says it successfully loaded the Driver class, but then later states
it can't find a suitable driver… weird. Check the Configure Build Path window
for the LibraryAddition framework and see if the jar is checked off as exported
in the "Order and Export" tab. It might pay to check /Library/Java/Extensions/
for anything that might be providing a conflict too.
Ramsey
On Sep 17, 2011, at 12:59 PM, James Cicenia wrote:
> Still no cigar, though now I can't log in....
>
> More background.
>
> I am using three frameworks. First time doing it this way.
>
> 1) Application
> 2) App Model Framework
> 3) User Model Framework
> 4) LibraryAddition Framework (has my mysql adaptor)
>
> When I open my App Model Framework, it also has the ERAttachments framework
> (the Application has it also).
> IF I try to "Generate SQL", I get this error:
>
> java.lang.RuntimeException: java.lang.ClassNotFoundException:
> com.webobjects.eoaccess.EODatabase
> at
> org.objectstyle.wolips.eomodeler.core.sql.WOUtils.version(WOUtils.java:22)
> at
> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory.sqlGenerator(EOFSQLGeneratorFactory.java:18)
> at
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
> at
> org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: java.lang.ClassNotFoundException:
> com.webobjects.eoaccess.EODatabase
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at
> org.objectstyle.wolips.eomodeler.core.sql.WOUtils.version(WOUtils.java:14)
> ... 4 more
>
>
> Using the properties settings, when I try to log into my app I get this
> error. I was always able to log in before when i set those properties in the
> "Launch Arguments of Eclipse"
>
> Sep 17 14:52:51 BlessingsApp[6789] INFO er.transaction.adaptor.Exceptions -
> Database Exception occured: java.lang.IllegalStateException:
> _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext
> com.webobjects.eoaccess.EODatabaseContext@7379567c: failed to open database
> channel. Check your connection dictionary, and ensure your database is
> correctly configured.
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.extensions.eof.ERXDatabaseContextDelegate - UserModel: {driver =
> "com.mysql.jdbc.Driver"; password = "roots3rv1ce"; username = "root"; URL =
> "=jdbc:mysql://localhost:3306/Blessings"; }
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Checking JDBC connection with
> information {driver = "com.mysql.jdbc.Driver"; password = "<password deleted
> for log>"; username = "root"; URL = "=jdbc:mysql://localhost:3306/Blessings";
> }
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Trying to create JDBCAdaptor...
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Successfully created adaptor
> com.webobjects.jdbcadaptor.JDBCAdaptor
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Trying to create plugin...
> Sep 17 14:52:51 BlessingsApp[6789] DEBUG NSLog - Using JDBCPlugIn
> 'com.webobjects.jdbcadaptor._MySQLPlugIn' for JDBCAdaptor@2082867241
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Created plugin
> com.webobjects.jdbcadaptor._MySQLPlugIn
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Trying to load JDBC driver
> com.mysql.jdbc.Driver...
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Successfully loaded JDBC driver
> com.mysql.jdbc.Driver
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - JDBC driver and plugin are
> loaded, trying to connect...
> Sep 17 14:52:51 BlessingsApp[6789] DEBUG NSLog - connecting with
> dictionary: {driver = "com.mysql.jdbc.Driver"; password = "<password deleted
> for log>"; username = "root"; URL = "=jdbc:mysql://localhost:3306/Blessings";
> }
> Sep 17 14:52:51 BlessingsApp[6789] INFO
> er.transaction.adaptor.ConnectionAnalyzer - Error: Exception thrown while
> connecting.
> Check exception message carefully.
> Sep 17 14:52:51 BlessingsApp[6789] ERROR
> er.transaction.adaptor.ConnectionAnalyzer - No suitable driver found for
> =jdbc:mysql://localhost:3306/Blessings.
> Sep 17 14:52:51 BlessingsApp[6789] INFO NSLog - The user is null
>
>
>
>
>
>
>
> On Sep 17, 2011, at 2:04 PM, Ramsey Gurley wrote:
>
>> #dbEOPrototypesEntityGLOBAL=EOJDBCMySQLPrototypes
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com
>
> This email sent to [email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
