AW: hibernate persistence

"Vidakovic Aleksandar" <[email protected]> Mon, 24 Jan 2005 10:08:05 +0100
Newsgroups gmane.comp.java.keel.user
Message-ID <7440600321F19B40B01B38AC516A082501505BFF@kingofvolke.volke-muc.de>
Ron,

do you really have all necessary jars included? Apparently, the hibernate=
 persistent factory couldn't be instantiated... and that is probably beca=
use one/some libs are missing... can you send your build.properties? I'll=
 try that at home...

Cheers,

Aleks

-----Urspr=FCngliche Nachricht-----
Von: Ron Siewert [mailto:[email protected]]
Gesendet: Sonntag, 23. Januar 2005 00:08
An: user-keelframework.org-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org
Betreff: [Keel User] hibernate persistence


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 i=
nto svc-persist-hibernate/lib: commons-beanutils-1.6.1.jar and removing t=
he logging attribute for postgres and mysql in svc-persist-base/conf/serv=
er/system.xconf which was referring to logging category 'persist-default'=
 which apparently wasn't defined). I've successfully run using default pe=
rsistence 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' t=
o '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 execu=
tion Message: Role 'org.keel.services.persist.PersistentFactory' has no i=
mplementations at all. (hint '*' requested) (Key=3D'org.keel.services.per=
sist.PersistentFactory/*')
org.keel.services.model.ModelException: Role 'org.keel.services.persist.P=
ersistentFactory' has no implementations at all. (hint '*' requested) (Ke=
y=3D'org.keel.services.persist.PersistentFactory/*')
        at org.keel.services.model.defaultmodel.DefaultModelRequest.getSe=
rvice(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(NativeMethodAccess=
orImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth=
odAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.avalon.fortress.impl.factory.PassThroughInvocationH=
andler.invoke(PassThroughInvocationHandler.java:68)
        at $Proxy3.execute(Unknown Source)
        at org.keel.services.model.defaultmodel.DefaultModelRequest.execu=
te(DefaultModelRequest.java:182)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess=
orImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth=
odAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.avalon.fortress.impl.factory.PassThroughInvocationH=
andler.invoke(PassThroughInvocationHandler.java:68)
        at $Proxy1.execute(Unknown Source)
        at org.keel.servers.direct.KeelDirectServer.execute(KeelDirectSer=
ver.java:230)
        at org.keel.servers.direct.KeelDirectServer$MultiThreadedProcesso=
r.run(KeelDirectServer.java:273)

-----------------------------------------
org.keel.core.container.NoSuchImplementationException: Role 'org.keel.ser=
vices.persist.PersistentFactory' has no implementations at all. (hint '*'=
 requested) (Key=3D'org.keel.services.persist.PersistentFactory/*')
        at org.keel.core.container.KeelContainer.validateRoleAndHint(Keel=
Container.java:269)
        at org.keel.core.container.KeelServiceManager.validate(KeelServic=
eManager.java:80)
        at org.keel.core.container.KeelServiceManager.lookup(KeelServiceM=
anager.java:97)
        at org.keel.core.container.AbstractKeelServiceable.getService(Abs=
tractKeelServiceable.java:113)
        at org.keel.services.model.defaultmodel.DefaultModelRequest.getSe=
rvice(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(NativeMethodAccess=
orImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth=
odAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.avalon.fortress.impl.factory.PassThroughInvocationH=
andler.invoke(PassThroughInvocationHandler.java:68)
        at $Proxy3.execute(Unknown Source)
        at org.keel.services.model.defaultmodel.DefaultModelRequest.execu=
te(DefaultModelRequest.java:182)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess=
orImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth=
odAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.avalon.fortress.impl.factory.PassThroughInvocationH=
andler.invoke(PassThroughInvocationHandler.java:68)
        at $Proxy1.execute(Unknown Source)
        at org.keel.servers.direct.KeelDirectServer.execute(KeelDirectSer=
ver.java:230)
        at org.keel.servers.direct.KeelDirectServer$MultiThreadedProcesso=
r.run(KeelDirectServer.java:273)



Jan 22, 2005 5:47:17 PM org.apache.struts.util.PropertyMessageResources <=
init>
INFO: Initializing, config=3D'org.apache.struts.taglib.html.LocalStrings'=
, returnNull=3Dtrue
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <=
init>
INFO: Initializing, config=3D'org.apache.struts.util.LocalStrings', retur=
nNull=3Dtrue
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <=
init>
INFO: Initializing, config=3D'org.apache.struts.taglib.html.LocalStrings'=
, returnNull=3Dtrue
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <=
init>
INFO: Initializing, config=3D'org.apache.struts.taglib.html.LocalStrings'=
, returnNull=3Dtrue
Jan 22, 2005 5:47:18 PM org.apache.struts.util.PropertyMessageResources <=
init>
INFO: Initializing, config=3D'org.apache.struts.taglib.logic.LocalStrings=
', returnNull=3Dtrue

telling me that no implementations are available for the interface Persis=
tentFactory. Shouldn't this example app work out of the box? Has this bee=
n 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

_______________________________________________
User mailing list
[email protected]
http://lists.keelframework.org/listinfo.cgi/user-keelframework.org