Announcement Announcement Module
Collapse
No announcement yet.
RmiInvocationWrapper_Stub not found Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    set the codebase for the rmiregistry and the problem is fiuxed.

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

    Comment


    • #3
      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

      Comment


      • #4
        Tomcat installed in path that contains white space

        http://issues.apache.org/bugzilla/show_bug.cgi?id=39619

        Comment

        Working...
        X