AW: Problems with the model implementation
"Vidakovic Aleksandar" <[email protected]> Thu, 27 May 2004 14:55:56 +0200
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Anne,
by default this model is secured. Only users in group "root" have the permission to create a database. The exception is triggered, because keel wants to check your permissions; for that reason it needs the database which is not there... (chicken and egg problem).
Workaround: disable the security settings for the createdb model. In the directory svc-persist-base/conf/server you find the file system.xconf. Look for a section that resembles this:
<default-persistent id="default">
<schemas id="default">
<schema id="component-security">
<persistent id="componentsecurity">
<default-data id="component-security.componentsecurity">
<!-- disable this part START -->
<record operationsallowed="*"
component="org.keel.models.util.CreateDB"
groupname="root"/>
<!-- disable this part END -->
<record operationsallowed="*"
component="org.keel.models.util.DisplayConfig"
groupname="root"/>
</default-data>
</persistent>
</schema>
</schemas>
</default-persistent>
Disable (remove or comment out) the part that I marked above and rebuild keel (maybe run clean before). Now you should be able to create the database without authentication.
BTW: your second problem seems to be related to your first. I guess that you tried that right after you encountered the first problem...
Hope this helps.
Cheers,
Aleks
-----Ursprüngliche Nachricht-----
Von: Liu, Anne I [mailto:[email protected]]
Gesendet: Montag, 24. Mai 2004 23:13
An: 'user-keelframework.org-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org'
Betreff: [Keel User] Problems with the model implementation
Hi all,
I'm hoping you can offer some insight into my problem. I'm running keel2.1
and going through the 2.1 Hand's On tutorial and getting stuck at the first
part. I get Tomcat to startup, but as soon as I try to access
<http://localhost:8080/struts/model.do?model=createdb>, I get the following
error.
<<< begin error >>>
SEVERE: Stack for error 'Exception during model execution' (null, Could not
return a reference to the Component
(Key='org.keel.services.persist.PersistentFactory/*'))
<<< end error >>>
If I try to access <http://localhost:8080/struts/model.do?model=app.hoj>, I
get the following error
<<< begin error >>>
SEVERE: No elements in response from server
May 24, 2004 4:07:24 PM org.keel.clients.struts.StrutsClientConnector
handleErrors
SEVERE: Stack for error 'model' (Could not run model 'app.hoj' for role
'org.keel.services.model.Model', null, Unable to provide implementation for
org.keel.services.model.Model/app.hoj
(Key='org.keel.services.model.Model/app.hoj'))
org.keel.services.model.ModelException: Could not run model 'app.hoj' for
role 'org.keel.services.model.Model', null, Unable to provide implementation
for org.keel.services.model.Model/app.hoj
(Key='org.keel.services.model.Model/app.hoj')
<<< end error >>>
I can get to the home page fine (<http://localhost:8080/struts>).
Any help would be greatly appreciated!
Thanks,
Anne
_______________________________________________
User mailing list
[email protected]
http://lists.keelframework.org/listinfo.cgi/user-keelframework.org