hibernate persistence
Ron Siewert <[email protected]> Sat, 22 Jan 2005 18:08:26 -0500
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <200512218826.682414@JIMIH> |
Hi,
I'm trying to get hibernate to work but the example hibernate app doesn't even compile let alone run. I fixed the compile problems (by dropping into svc-persist-hibernate/lib: commons-beanutils-1.6.1.jar and removing the logging attribute for postgres and mysql in svc-persist-base/conf/server/system.xconf which was referring to logging category 'persist-default' which apparently wasn't defined). I've successfully run using default persistence connected to both postgresql and mysql. However, when I switch to hibernate nothing has worked. I'm getting the following stack trace:
[KeelContainerFactory] Setting system property 'java.security.auth.login.config' to '/home/rsie/distributions/keel-cvs/keel-build/example-projects/default-hibernate/webapp/WEB-INF/keel/server/conf/jaas.config'
[KeelContainerFactory] Setting system property 'java.security.krb5.realm' to 'YOUR.REALM'
[KeelContainerFactory] Setting system property 'java.security.krb5.kdc' to 'YOUR.KDC'
[KeelContainerFactory] Setting system property 'model.timeout' to '60'
[DEBUG] No cookies returned
[ERROR] No elements in response from server
[ERROR] Stack for error from createdb, Key: 'Exception during model execution Message: Role 'org.keel.services.persist.PersistentFactory' has no implementations at all. (hint '*' requested) (Key='org.keel.services.persist.PersistentFactory/*')
org.keel.services.model.ModelException: Role 'org.keel.services.persist.PersistentFactory' has no implementations at all. (hint '*' requested) (Key='org.keel.services.persist.PersistentFactory/*')
at org.keel.services.model.defaultmodel.DefaultModelRequest.getService(DefaultModelRequest.java:417)
at org.keel.models.util.CreateDB.execute(CreateDB.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
at $Proxy3.execute(Unknown Source)
at org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:182)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
at $Proxy1.execute(Unknown Source)
at org.keel.servers.direct.KeelDirectServer.execute(KeelDirectServer.java:230)
at org.keel.servers.direct.KeelDirectServer$MultiThreadedProcessor.run(KeelDirectServer.java:273)
-----------------------------------------
org.keel.core.container.NoSuchImplementationException: Role 'org.keel.services.persist.PersistentFactory' has no implementations at all. (hint '*' requested) (Key='org.keel.services.persist.PersistentFactory/*')
at org.keel.core.container.KeelContainer.validateRoleAndHint(KeelContainer.java:269)
at org.keel.core.container.KeelServiceManager.validate(KeelServiceManager.java:80)
at org.keel.core.container.KeelServiceManager.lookup(KeelServiceManager.java:97)
at org.keel.core.container.AbstractKeelServiceable.getService(AbstractKeelServiceable.java:113)
at org.keel.services.model.defaultmodel.DefaultModelRequest.getService(DefaultModelRequest.java:415)
at org.keel.models.util.CreateDB.execute(CreateDB.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
at $Proxy3.execute(Unknown Source)
at org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:182)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
at $Proxy1.execute(Unknown Source)
at org.keel.servers.direct.KeelDirectServer.execute(KeelDirectServer.java:230)
at org.keel.servers.direct.KeelDirectServer$MultiThreadedProcessor.run(KeelDirectServer.java:273)
Jan 22, 2005 5:47:17 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.logic.LocalStrings', returnNull=true
telling me that no implementations are available for the interface PersistentFactory. Shouldn't this example app work out of the box? Has this been tested? Please help I've been munching on this for two weeks now and am starting to pull out what little hair I have left...
--Ron