Last modified by Pascal Robert on 2012/07/27 20:28

From version 14.1
edited by Denis Frolov
on 2007/07/17 10:04
Change comment: There is no comment for this version
To version 15.1
edited by Kieran Kelleher
on 2007/10/31 16:14
Change comment: Added MySQL config info and note on missing ec delegate property

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.dfrolov
1 +XWiki.kieran
Content
... ... @@ -2,7 +2,7 @@
2 2  
3 3  ~1. Import the source code folders needed for BugTracker either [[from local Wonder source tree>>http://wiki.objectstyle.org/confluence/display/WONDER/Working+with+Wonder+source+in+Eclipse]] or from Wonder CVS server as discussed below.
4 4  
5 -The next three screenshots are showing the folders that can be found on the CVS server for Wonder. I have split them up because all the folders don't fit on the screen at once! As you can see, the folders that are necessary are found in several different sub-folders.
5 +The next three screenshots are showing the folders that can be found on the CVS server for Wonder. I have split them up because all the folders don't fit on the screen at once As you can see, the folders that are necessary are found in several different sub-folders.
6 6  
7 7  You may need to adjust the exact folders you import depending on the database you plan to use. In this case, I have added the FrontBase plugin as well as all the other frameworks that BugTracker expects to find in its build path.
8 8  
... ... @@ -38,18 +38,26 @@
38 38  
39 39  6. Change the Properties located in the resources folder to match the requirements for your database. Wonder applications need Properties files to manage their configuration correctly. There are a number of different places in the Wonder frameworks that application properties will be read from. In the original example, the Database connection properties are taken from a logged in user's properties file, in this case it is named "Properties.ak". I moved the relevant lines to the Application Properties file that described the Global connection dictionary for BugTracker to access my FrontBase database. Alternatively (a recommended way) you can create your own "Properties.username" file by duplicating "Properties.ak"
40 40  
41 +{{warning title="Missing Properties"}}
42 +
43 +The current Wonder source (Oct 31,2007) requires the addition of this property to he Properties file in BugTracker to run properly (Can someone commit this please?)
44 +
45 +er.extensions.ERXRaiseOnMissingEditingContextDelegate=false
46 +
47 +{{/warning}}
48 +
41 41  You can either set Global properties for your database, or you can set them for a specific model. See the Wonder docs for more information about Properties files and database configuration [[ERXConfigurationManager documentation>>http://webobjects.mdimension.com/wonder/api/er/extensions/ERXConfigurationManager.html]]
42 42  
43 43  Here are the Global database connection settings I used for FrontBase. If you are using a different setup, you may want to ask on the mailing list for guidance:
44 44  
45 -#ERXConfigurationManager properties moved in from Properties.ak
46 -#Original Settings for Postgresql
47 -#Changed to Frontbase
53 +ERXConfigurationManager properties moved in from Properties.ak
54 +Original Settings for Postgresql
55 +Changed to Frontbase
48 48  dbConnectURLGLOBAL=jdbc:frontbase:~/~/localhost/bug
49 49  dbConnectUserGLOBAL=//system
50 50  dbConnectPluginGLOBAL=Frontbase
51 -#dbConnectDriverGLOBAL=org.postgresql.Driver
52 -#dbConnectPasswordGLOBAL =
59 +dbConnectDriverGLOBAL=org.postgresql.Driver
60 +dbConnectPasswordGLOBAL =
53 53  dbEOPrototypesEntityGLOBAL=EOJDBCFrontBasePrototypes
54 54  er.javamail.adminEmail=foo@localhost.com//
55 55  
... ... @@ -57,6 +57,23 @@
57 57  
58 58  [[image:Context-036.jpg]]
59 59  
68 +{{info title="MySQL Configuration for BugTracker"}}
69 +
70 +* Create a database named "bug" in your MySQL development database
71 +* Create a user and password with all privileges for that database (or use your mysql root user and password if you wish)
72 +* Add the following properties to the Properties file in BugTracker using the user and password from the previous step
73 +
74 +dbConnectURLGLOBAL=jdbc:mysql://localhost/bug?capializeTypenames=true
75 +dbConnectUserGLOBAL=user
76 +dbConnectPasswordGLOBAL=password
77 +dbConnectPluginGLOBAL=
78 +dbConnectDriverGLOBAL=
79 +dbEOPrototypesEntityGLOBAL=EOJDBCMySQLPrototypes
80 +er.javamail.adminEmail=foobar@domain.com
81 +
82 +
83 +{{/info}}
84 +
60 60  ----
61 61  
62 62  Make sure that the build path contains the plugin for your database;
... ... @@ -99,4 +99,4 @@
99 99  
100 100  ----
101 101  
102 -12. Explore!!
127 +12. Explore