david wrote:
In this case you will require a remoting api, for example, CORBA, EJB, Javaspaces, JINI etc. You will not need to have (or should ever have as you have noted) any hibernate installed included with each of the clients.
Sorry but I do not understand what you mean.
If you're saying that I don't need any Hibernate jar, I'm sorry to tell you that it doesn't work ... I get this exception:
9-set-2003 18.50.13 net.sf.hibernate.proxy.CGLIBLazyInitializer getProxy
GRAVE: CGLIB Enhancement failed
net.sf.cglib.CodeGenerationException: net.sf.cglib.ReflectUtils
at net.sf.cglib.CodeGenerator.defineDependancy(CodeGenerator.java:254)
at net.sf.cglib.CodeGenerator.defineResource(CodeGenerator.java:216)
at net.sf.cglib.CodeGenerator.<init>(CodeGenerator.java:102)
at net.sf.cglib.EnhancerGenerator.<init>(EnhancerGenerator.java:100)
at net.sf.cglib.Enhancer.enhanceClassHelper(Enhancer.java:224)
at net.sf.cglib.Enhancer.enhanceHelper(Enhancer.java:206)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:162)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:139)
at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxy(CGLIBLazyInitializer.java:26)
at net.sf.hibernate.proxy.SerializableProxy.readResolve(SerializableProxy.java:36)
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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:896)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1645)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at com.evermind.server.rmi.RMIInputStream.readType(RMIInputStream.java:118)
at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1638)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:532)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:536)
Caused by: net.sf.cglib.CodeGenerationException: net.sf.cglib.ReflectUtils
at net.sf.cglib.CodeGenerator.defineDependancy(CodeGenerator.java:236)
... 27 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.ReflectUtils
... 28 more
9-set-2003 18.50.13 net.sf.hibernate.proxy.SerializableProxy readResolve
GRAVE: Exception deserializing proxy
net.sf.cglib.CodeGenerationException: net.sf.cglib.ReflectUtils
at net.sf.cglib.CodeGenerator.defineDependancy(CodeGenerator.java:254)
at net.sf.cglib.CodeGenerator.defineResource(CodeGenerator.java:216)
at net.sf.cglib.CodeGenerator.<init>(CodeGenerator.java:102)
at net.sf.cglib.EnhancerGenerator.<init>(EnhancerGenerator.java:100)
at net.sf.cglib.Enhancer.enhanceClassHelper(Enhancer.java:224)
at net.sf.cglib.Enhancer.enhanceHelper(Enhancer.java:206)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:162)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:139)
at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxy(CGLIBLazyInitializer.java:26)
at net.sf.hibernate.proxy.SerializableProxy.readResolve(SerializableProxy.java:36)
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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:896)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1645)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at com.evermind.server.rmi.RMIInputStream.readType(RMIInputStream.java:118)
at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1638)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:532)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:536)
Caused by: net.sf.cglib.CodeGenerationException: net.sf.cglib.ReflectUtils
at net.sf.cglib.CodeGenerator.defineDependancy(CodeGenerator.java:236)
... 27 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.ReflectUtils
... 28 more
rethrown as net.sf.hibernate.HibernateException: CGLIB Enhancement failed: net.sf.cglib.ReflectUtils
at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxy(CGLIBLazyInitializer.java:37)
at net.sf.hibernate.proxy.SerializableProxy.readResolve(SerializableProxy.java:36)
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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:896)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1645)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at com.evermind.server.rmi.RMIInputStream.readType(RMIInputStream.java:118)
at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1638)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:532)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:536)
Caused by: net.sf.cglib.CodeGenerationException: net.sf.cglib.ReflectUtils
at net.sf.cglib.CodeGenerator.defineDependancy(CodeGenerator.java:254)
at net.sf.cglib.CodeGenerator.defineResource(CodeGenerator.java:216)
at net.sf.cglib.CodeGenerator.<init>(CodeGenerator.java:102)
at net.sf.cglib.EnhancerGenerator.<init>(EnhancerGenerator.java:100)
at net.sf.cglib.Enhancer.enhanceClassHelper(Enhancer.java:224)
at net.sf.cglib.Enhancer.enhanceHelper(Enhancer.java:206)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:162)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:139)
at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxy(CGLIBLazyInitializer.java:26)
... 19 more
Caused by: net.sf.cglib.CodeGenerationException: net.sf.cglib.ReflectUtils
at net.sf.cglib.CodeGenerator.defineDependancy(CodeGenerator.java:236)
... 27 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.ReflectUtils
... 28 more
Regards
Alessandro Rizzi