I do have "SooperSeekrit.eogen" in the Resources folder. I right-clicked and chose "EOGenerate..." but I'm not sure anything happened. Not sure where i would find the User and _User classes. They are not in any of the project folders.
Apologies for being so clueless. Thanks for the help. Kevin On Nov 11, 2011, at 9:43 AM, Pascal Robert wrote: > Do you have the User class in the "com.sooperseekrit.model" package? If not, > probably the eo generation was not done. You should have a > YourModelName.eogen file in the Resources folder. If you don't have it, > right-click on the model and select WOLips Tools -> Create EOGenerator file. > After that, right-click on the .eogen file and select EOGenerate… That will > create two Java classes for User, one called "_User.java", the other > "User.java". You can edit User, _User will always be regenerated when you run > EOGenerator. > >> Yes, the username and password are in the model. You were right, the >> "er.migration" lines in the properties were commented out. I removed the # >> signs and ran it again. This time I received the following errors in the >> console: >> >> Nov 11 08:48:16 SooperSeekrit[62878] ERROR >> er.extensions.appserver.ERXApplication - SooperSeekrit failed to start. >> Nov 11 08:48:16 SooperSeekrit[62878] WARN NSLog - A fatal exception >> occurred: Invalid class name 'com.sooperseekrit.model.user' for entity >> 'User'. >> [2011-11-11 8:48:16 PST] <main> java.lang.RuntimeException: Invalid class >> name 'com.sooperseekrit.model.user' for entity 'User'. >> at >> er.extensions.eof.ERXEntityClassDescription$Factory.registerDescriptionForEntity(ERXEntityClassDescription.java:582) >> >> Thanks, >> >> Kevin >> >> >> On Nov 11, 2011, at 8:35 AM, Pascal Robert wrote: >> >>> Hi Kevin, >>> >>> Did you specify the username and password in the model? And in Eclipse's >>> console, you should see if the migration worked to create the table. Make >>> sure that those two properties: >>> >>> er.migration.migrateAtStartup=true >>> er.migration.createTablesIfNecessary=true >>> >>> are set to true in the Properties file, and they are not commented out >>> (e.g., they don't have a # in front). >>> >>>> I'm trying to go through the "WebObjects, WOLips and Wonder Tutorial, Part >>>> 1" screencast at http://www.wocommunity.org/webobjects_screencasts.html. >>>> The first attempt to run the project occurs at 12 minutes into the video. >>>> When I run the project, I get no error messages AFAICT, and the "Hello >>>> "World" window opens up, but the table "t_user" is not created. >>>> >>>> I'm using postgresql. I have created a database called "sooper", and a >>>> role (ie user) "demo" with a password of "demo". >>>> >>>> in the EOModel under Default: >>>> Prototype = EOJDBCPostgresqlPrototypes >>>> url: jdbc:postgresql://localhost/sooper >>>> Driver: org.postgresql.Driver >>>> Plugin: PostgresqlPlugIn >>>> >>>> Any suggestions of where I should look? >>>> _______________________________________________ >>>> 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/probert%40macti.ca >>>> >>>> This email sent to [email protected] >>> >> > _______________________________________________ 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]
