geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenji Nakamura <ken...@clazzsoft.com>
Subject RMI stub class not visible from RMI registry
Date Thu, 15 Dec 2005 18:32:21 GMT
Hi,

I'm trying to launch spring remote service within a custom GBean, but
I got ClassNotFoundException.

How can I make the dependency jars that are defined in the plan file
recognized by the RMI registry?

Thanks,

16:32:21,123 INFO  [RmiServiceExporter] Looking for RMI registry at port '1099'
16:32:21,349 INFO  [DefaultAopProxyFactory] CGLIB2 available:
proxyTargetClass feature enabled
16:32:21,577 INFO  [RmiServiceExporter] Binding RMI service
'dispatcher' to registry at port '1099'
16:32:21,698 INFO  [DefaultListableBeanFactory] Destroying singletons
in factory {org.springframework.beans.factory.support.DefaultL
istableBeanFactory defining beans
[workspaceDataDao,dispatcher,dispatcherExporter]; root of BeanFactory
hierarchy}
16:32:21,708 ERROR [GBeanInstanceState] Error while starting; GBean is
now in the FAILED state: objectName="geronimo.server:J2EEAppl
ication=null,J2EEModule=com/example/ipamp/Dispatcher,J2EEServer=geronimo,j2eeType=GBean,name=Dispatcher"
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dispatcherExporter' defined in file [/Users/
kenjin/example/dev1/engineering/ipamp/trunk/assembly/assembly-server/target/assembly/var/ipamp/config/dispatcherContext.xml]:
Initi
alization of bean failed; nested exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception
is:
	java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
	java.lang.ClassNotFoundException:
org.springframework.remoting.rmi.RmiInvocationWrapper_Stub (no
security manager: RMI class loader
 disabled)
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
	java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
	java.lang.ClassNotFoundException:
org.springframework.remoting.rmi.RmiInvocationWrapper_Stub (no
security manager: RMI class loader
 disabled)
	at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:352)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
	at sun.rmi.transport.Transport$1.run(Transport.java:148)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
	at java.lang.Thread.run(Thread.java:552)
	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
	at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
	at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:246)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactor
y.java:1058)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
363)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:27
5)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
	at com.example.dispatcher.DispatcherGBean.<init>(DispatcherGBean.java:71)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:901)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:325)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:132)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:537)
	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:210)
	at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans(Configuration.java:326)
	at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f4b4a9b.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:180)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:175)
	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start(ConfigurationManagerImpl.java:142)
	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClassByCGLIB$$fbed85d2.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:180)
	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:125)
	at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:180)
	at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
	at mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:219)
	at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:99)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:31)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:90)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:86)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:80)
	at $Proxy0.invoke(Unknown Source)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:221)
	at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
	at sun.rmi.transport.Transport$1.run(Transport.java:148)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
	at java.lang.Thread.run(Thread.java:552)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is:
	java.lang.ClassNotFoundException:
org.springframework.remoting.rmi.RmiInvocationWrapper_Stub (no
security manager: RMI class loader
 disabled)
	at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
	at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
	... 6 more
Caused by: java.lang.ClassNotFoundException:
org.springframework.remoting.rmi.RmiInvocationWrapper_Stub (no
security manager: RMI cl
ass loader disabled)
	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
	at org.apache.geronimo.system.rmi.RMIClassLoaderSpiImpl.loadClass(RMIClassLoaderSpiImpl.java:48)
	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
	at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
	... 9 more

--
Kenji Nakamura

Mime
View raw message