hibernate problem
Leon Siewert <swimwiththefishes-/[email protected]> Sat, 22 Jan 2005 15:41:09 -0800 (PST)
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am having immense trouble getting hibernate to work. I've successfully used the default persistence mechanism to connect to and create the databases with both postgresql and mysql, but when I switch to hibernate persistence it tells me there are no implementations of org.keel.services.persist.PersistentFactory (below). I'm running the example project 'default-hibernate' which is supposed to work out of the box, right? Unfortunately, the example app doesn't even compile let alone run. I had to drop the commons beanutils jar into the svc-persist-base lib and get rid of a logger category persist-default that was defined svc-persist-base/conf/server/system.xconf before it would compile. Isn't that what the example apps are supposed to demonstrate? I'm a newbie to keel and I like the idea, but if the example apps don't even work what confidence can I have? I've been wrestling with this for two weeks and I don't have any hair left to pull out! thx, --Ron [tomcat@stevieray jakarta-tomcat-5.0.29]$ [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) __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com