hi, following issue occured at my app has already been discussed in
http://forum.springframework.org/showthread.php?t=16543 but no solution has been explained.
log is:
is there a fix for this already or what am i doing wrong?Code:INFO (RmiServiceExporter.java:386) - Looking for RMI registry at port '1099' DEBUG (RmiBasedExporter.java:59) - RMI service [tutorial.spring.server.Server@18bbc5a] is an RMI invoker DEBUG (JdkDynamicAopProxy.java:113) - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [tutorial.spring.server.Server@18bbc5a] INFO (RmiServiceExporter.java:271) - Binding service 'serviceName' to RMI registry: RegistryImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.108.8:1099](remote),objID:[0:0:0, 0]]]] INFO (DefaultSingletonBeanRegistry.java:285) - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@166afb3: defining beans [serviceImpl,server]; root of factory hierarchy Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'server' defined in class path resource [spring-config.xml]: Invocation of init method 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)
my spring configuration for rmi remoting is very simple:
i am starting app within eclipse and class org.springframework.remoting.rmi.RmiInvocationWrap per_Stub can be found (-> declaring it directly inside code no error occurs while compiling).Code:<beans> <bean id="serviceImpl" class="tutorial.spring.server.Server"></bean> <bean id="server" class="org.springframework.remoting.rmi.RmiServiceExporter"> <property name="service"> <ref bean="serviceImpl" /> </property> <property name="serviceName"> <value>PayService</value> </property> <property name="serviceInterface"> <value>tutorial.spring.server.IServer</value> </property> </bean> </beans>
thanks for help.


Reply With Quote
