• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
failed to open database channel with mysql
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

failed to open database channel with mysql


  • Subject: failed to open database channel with mysql
  • From: Corin Lawson <email@hidden>
  • Date: Wed, 24 Aug 2005 15:02:51 +1000

Hi all,

I have trying to upgrade (from 4.0.17 to 4.1.12) the mysql database that eomodel connects to and have encountered a few problems...

The first of which is that eof connects to the old db when the driver and plugin is left unspecified in the connection dictionary. When I specify those options, however, the following exception is thrown:

java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@312942: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured.

Dictionary before:

    connectionDictionary = {
        URL = "jdbc:mysql://[host]/[dbname]";
        driver = "";
        password = "[password]";
        plugin = "";
        username = [username];
    };

and after

    connectionDictionary = {
        URL = "jdbc:mysql://[host]/[dbname]";
        driver = "org.gjt.mm.mysql.Driver";
        password = "[password]";
        plugin = "mm.mysql-2.0.14-bin.jar";
        username = [username];
    };

the generated classpath in both instances is:

Generated classpath:
/Library/WebObjects/Applications/BDERS.woa/Contents/Resources/Java/ bders.jar
/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/ javafoundation.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/ javaeocontrol.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ javaeoaccess.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ javawebobjects.jar
/System/Library/Frameworks/JavaWOExtensions.framework/Resources/ Java/JavaWOExtensions.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/ javaxml.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/ Java/javajdbcadaptor.jar
/System/Library/Frameworks/JavaWebServicesClient.framework/ Resources/Java/javawebservicesclient.jar
/System/Library/Frameworks/JavaWebServicesSupport.framework/ Resources/Java/javawebservicessupport.jar
/Library/Frameworks/WOUnitTest.framework/Resources/Java/ wounittest.jar
/Users/admin/Library/Java
/Library/Java/
/System/Library/Java/
/Network/Library/Java
/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
/Library/WebObjects/Extensions/aaxerces-1_4_3.jar
/Library/WebObjects/Extensions/ant-1.6.0.jar
/Library/WebObjects/Extensions/ant-junit-1.6.0.jar
/Library/WebObjects/Extensions/ant-launcher-1.6.0.jar
/Library/WebObjects/Extensions/avalon-framework-4.1.2.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-collections-2.1.jar
/Library/WebObjects/Extensions/commons-discovery.jar
/Library/WebObjects/Extensions/commons-httpclient-2.0-rc2.jar
/Library/WebObjects/Extensions/commons-logging.jar
/Library/WebObjects/Extensions/commons-pool-1.1.jar
/Library/WebObjects/Extensions/epp-namestore.jar
/Library/WebObjects/Extensions/epp-toolkit-mod.jar
/Library/WebObjects/Extensions/epp-toolkit.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/log4j-1.2.4.jar
/Library/WebObjects/Extensions/logicboxes-sfnb-v2.3.jar
/Library/WebObjects/Extensions/logkit-1.0.1.jar
/Library/WebObjects/Extensions/mm.mysql-2.0.14-bin.jar
/Library/WebObjects/Extensions/poolman-2.1-b1.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/servlet-api.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/xercesImpl-2.6.0.jar
/Library/WebObjects/Extensions/xmlParserAPIs-2.6.0.jar
/Library/WebObjects/Extensions/


there are not classes in the dirs above.

Obviously eof is not using the driver I think it is the first time, so my question is which is it using?

Much thanks

Corin.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: WOComponent api inheritance?
  • Next by Date: failed to open database channel with mysql
  • Previous by thread: WO Builder - binding to superclass
  • Next by thread: failed to open database channel with mysql
  • Index(es):
    • Date
    • Thread