Skip to content

RmiInvocationWrapper Stubs and Skels not packaged in org.springframework.remoting.rmi package [SPR-6208] #10876

@spring-projects-issues

Description

@spring-projects-issues

Aleksa Vukotic opened SPR-6208 and commented

We have RMI services exposed using Spring 2.5.6 RmiServiceExporter and currenly developing clients which will consume these services, but using Spring 3.0 RmiProxyFactoryBean.

org.springframework.remoting.rmi.RmiInvocationWrapper_Skel.class and org.springframework.remoting.rmiRmiInvocationWrapper_Stub.class are not found in spring-context module in Spring 3.0 jars

This causes class not found exceptions on client RMI calls.

We fixed it temporarily by using our custom Spring 3 build, changing the org.springframework.context/build.xml to overrire do-compile macro (with rmic calls included)

<project name="org.springframework.context" xmlns:s="antlib:org.springframework.build">
        <property file="${basedir}/../build.properties"/>
        <import file="${basedir}/../build-spring-framework/package-bundle.xml"/>
        <import file="${basedir}/../spring-build/standard/default.xml"/>
 
	<macrodef name="do-compile">
		<attribute name="classpath.id"/>
		<attribute name="input.dir"/>
		<attribute name="output.dir"/>
		<attribute name="resources.dir"/>
		<sequential>
			<s:javac destdir="@{output.dir}" source="${source.version}" target="${target.version}"
					debug="${compile.debug}" debugLevel="${compile.debug.level}">
				<compilerarg line="${compiler.args}"/>
				<src path="@{input.dir}"/>
				<include name="**/*.java"/>
				<include name="*.java"/>
				<classpath refid="@{classpath.id}"/>
			</s:javac>
	
			<rmic base="@{output.dir}" classname="org.springframework.remoting.rmi.RmiInvocationWrapper"/>
	
			<rmic base="@{output.dir}" classname="org.springframework.remoting.rmi.RmiInvocationWrapper" iiop="true">
				<classpath refid="@{classpath.id}"/>
			</rmic>
	
			<copy todir="@{output.dir}">
				<fileset dir="@{input.dir}">
					<exclude name="**/*.java"/>
					<exclude name="*.java"/>
				</fileset>
			</copy>
			<copy todir="@{output.dir}">
				<fileset dir="@{resources.dir}"/>
			</copy>
		</sequential>
    </macrodef>

</project>

Affects: 3.0 M2, 3.0 M3, 3.0 M4, 3.0 RC1

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions