Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6208

RmiInvocationWrapper Stubs and Skels not packaged in org.springframework.remoting.rmi package

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0 M2, 3.0 M3, 3.0 M4, 3.0 RC1
    • Fix Version/s: 3.0 RC3
    • Component/s: Remoting
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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>
      

        Attachments

          Activity

            People

            • Assignee:
              thomas.risberg Thomas Risberg
              Reporter:
              aleksav Aleksa Vukotic
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 44 weeks, 1 day ago