Results 1 to 4 of 4

Thread: RmiInvocationWrapper_Stub not found

  1. #1
    Join Date
    Apr 2006
    Posts
    28

    Angry RmiInvocationWrapper_Stub not found

    Hi,

    I try to register a bean to the RMI-Registry. I am using this configuration:

    <bean
    id="RMIRegistry" class="org.springframework.remoting.rmi.RmiService Exporter">
    <property name="serviceName">
    <value>UserService</value>
    </property>
    <property name="service">
    <ref bean="userService"/>
    </property>
    <property name="serviceInterface"> <value>com.geccodummy.security.service.UserAuthent icationService</value>
    </property>
    <property name="registryPort">
    <value>1099</value>
    </property>
    </bean>
    and this code:

    Resource res = new FileSystemResource(
    "src/userapplication.xml");
    BeanFactory factory =
    new XmlBeanFactory(res);

    RmiServiceExporter rmiregistryExporter =
    (RmiServiceExporter)factory.
    getBean("RMIRegistry");
    When I run this class I get a ClassNotFoundException. So I checked if the spring.jar is included within my eclipse project and it was. I also added spring-remoting.jar to the project and got still this exception. I am using java 5.

    2704 [main] INFO org.springframework.remoting.rmi.RmiServiceExporte r - Binding RMI service 'UserService' to registry at port '1099'
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'RMIRegistry' defined in file [D:\projekte\java\spring\GeccoDummy\src\userapplica tion.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.RmiInvocationWrap per_Stub
    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.RmiInvocationWrap per_Stub
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unicas tServerRef.java:385)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 53)
    Had anyone the same problems or can check if he can register this class?

    Thank you

  2. #2
    Join Date
    Apr 2006
    Posts
    28

    Default

    set the codebase for the rmiregistry and the problem is fiuxed.

    -Djava.rmi.server.codebase="file:\\\D:/.../spring.jar"

  3. #3

    Default

    Quote Originally Posted by nort
    set the codebase for the rmiregistry and the problem is fiuxed.

    -Djava.rmi.server.codebase="file:\\\D:/.../spring.jar"
    This does not work. The root cause of the problem is that
    there is a space in the path name that the Classloader (Tomcat
    in my case) barfs on.

    I am still looking for a solution...

    Thanks,

    Uma

  4. #4
    Join Date
    Jul 2006
    Posts
    1

    Default Tomcat installed in path that contains white space


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •