Re: more tutorial problems
"Shash Chatterjee" <[email protected]> Fri, 4 Jun 2004 12:40:35 -0600
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
John, > Sorry for the bombardment of tutorial questions, but I > can never find the answers I'm looking for when I > search the lists. > > I am now at the part in the tutorial (2.0) where I am > testing the PromptMydata and ProcessMydata models. > When I attempt to add data, I get the following error: > > Error accessing table, null, No such schema 'hoj' > defined for PersistentFactory 'default' > > Should the schema name be "hoj" instead of "ids" in > the system.xconf? Do I need to add another schema? You do have to have both the "ids" (used for auto-increment tables), and the "hoj" schema, in addition to the standard "default" schema. The hoj schema should automatially be created for you by the XDoclet configuration. In 2.0, the build process will copy the generated configuration-snippet over, and when the Keel-server is restarted, the config-merge proces should combine that for you. Also, once Keel starts up, you need to rerun the createddb model to create the new tables for the hoj schema. Look in WEB-INF/keel/server/conf/merged.conf and see if the hoj schema is indeed defined in there. If it is, then look in WEB-INF/keel/server/logs/* for clues. HTH, Shash