Changes for page JDBC and Entity Modeler

Last modified by Theodore Petrosky on 2017/04/02 18:37

From version 17.1
edited by Lachlan Scott
on 2007/07/10 20:12
Change comment: There is no comment for this version
To version 14.1
edited by Johan Henselmans
on 2008/01/17 15:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.lachlan_scott
1 +XWiki.johanhenselmans
Content
... ... @@ -1,27 +1,33 @@
1 -==== Problem: You encounter the 'JDBC connection failed for driver ...' error message when trying to generate SQL in Entity Modeler.   ====
1 +====  Problem: You encounter the 'JDBC connection failed for driver ...' error message when trying to generate SQL in Entity Modeler.   ====
2 2  
3 3  [[image:JDBC connection failed.jpg||]]
4 4  
5 5  ==== **Discussion** ====
6 6  
7 -either the JDBC driver genuinely cannot be found, or more likely perhaps, your JDBC settings in Entity Modeler are incorrect.
7 +Either the JDBC driver genuinely cannot be found, or more likely perhaps, your JDBC settings in Entity Modeler are incorrect.
8 8  
9 -==== **Solution: Check that the JDBC driver is in your CLASSPATH:**
10 - ====
9 +On Mac OS X, the /Library/Java/Extensions directory is provided for extensions to the core Java API, and is thus the appropriate place for JDBC drivers.
11 11  
12 -On the Mac, if JDBC drivers are added to /Library/Java/Extensions they should be picked up automatically by Eclipse. Check your classpath settings in Eclipse as follows: [[image:Checking_CLASSPATH.jpg||]]
11 +Put your JDBC drivers into the /Library/Java/Extensions then, and they should be picked up automatically by Eclipse.
13 13  
13 +==== **Solution - check that your JDBC driver is in your CLASSPATH:** ====
14 +
15 +Check your classpath settings in Eclipse as follows:
16 +[[image:Checking_CLASSPATH.jpg||]]
17 +
14 14  * Right-click the project in Package Explorer
15 15  * Select Java Build Path from the left hand list, and Libraries from the tabs in the main field
16 -* Open the JRE System Library list, and you should see your available JDBC driver see screenshot
20 +* Open the JRE System Library list, and you should see your available JDBC driver (see screenshot)
17 17  * If you cannot see your driver listed, you must add it. instructions required
18 18  
19 -==== **Check JDBC settings in Entity Modeler** ====
23 +==== **Solution - check JDBC settings in Entity Modeler** ====
20 20  
21 -Check that the settings for your JDBC driver are correct. Details should be provided by the suppliers. MySQL settings are shown in the screenshot see screenshot. Note that drivers have peculiar use of upper and lower case and that these must be correct for the driver to function. [[image:JDBC_correct_settings_mysql.jpg||]]
25 +Check that the settings for your JDBC driver are correct; these details are provided by the suppliers. MySQL settings are shown in the screenshot (see screenshot). Note that drivers have peculiar use of capitalization, and that //this must be correct// for the driver to function
26 +
27 + [[image:JDBC_correct_settings_mysql.jpg||]]
22 22   
23 23  
24 -==== List of JDBC settings  ====
30 +==== List of JDBC driver settings  ====
25 25  
26 26  **MySQL JDBC driver settings:**
27 27  
... ... @@ -31,5 +31,15 @@
31 31  **OpenBase JDBC driver settings:**
32 32  
33 33  URL: jdbc:openbase:~/~/<hostname>/<database//name>. eg. jdbc:openbase:~/~/localhost/authors
34 -Driver: com.openbase.jdbc.ObDriver
40 +Driver: com.openbase.jdbc.ObDriver//
41 +
42 +**FrontBase JDBC driver settings:**
43 +
44 +URL: jdbc:FrontBase:~/~/<hostname>/<database//name>. eg. jdbc:FrontBase:~/~/localhost/authors
45 +Driver:
35 35  \\//
47 +
48 +**Postgresql JDBC driver settings:**
49 +URL: jdbc:postgresql:~/~/<hostname>/<databasename> eg. jdbc:postgresql:~/~/localhost/authors
50 +Driver: org.postgresql.Driver
51 +Plugin: Postgresql