Announcement Announcement Module
No announcement yet.
RMI / UnicastRemoteObject / RmiServiceExporter Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RMI / UnicastRemoteObject / RmiServiceExporter


    I want export in rmiregistry a service named "service" with spring 1.2.6 and access to this in with simple traditional client method (not with spring)

    The configuration is :
    <bean id="serviceImpl" singleton="false" class="xxx.ServiceImpl" />
    <bean class="org.springframework.remoting.rmi.RmiService Exporter">
    <property name="serviceName" value="service" />
    <property name="service" ref="serviceImpl" />
    <property name="serviceInterface" value="xxx.ServiceIntf" />
    <property name="registryPort" value="1099" />

    The classe Impl is :
    public class ServiceImpl extends UnicastRemoteObject implements ServiceIntf
    public void addI(int i)throws RemoteException { ... }

    The interface is :
    public interface ServiceIntf extends Remote {
    public void addI(int i) throws RemoteException;

    The stub are create with a rmi eclipse plugin.

    The error is :
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExport er' defined in class path resource [beansServeur.xml]: Initialization of bean failed; nested exception is java.rmi.StubNotFoundException: Stub class not found: $Proxy0_Stub; nested exception is:
    java.lang.ClassNotFoundException: $Proxy0_Stub

    What can i do ?

    Thank you.

    (sorry for my english)
    Last edited by lsmadja; Sep 7th, 2006, 07:45 AM.