You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Erik Søe Sørensen <Er...@Tietoenator.com> on 2001/03/26 19:07:43 UTC

Ant runs RMIC when not necesarry (looking for wrong stub file)

Hi.
I'm new to Ant, but I think I've found something related to RMIC which could
be improved:

Consider a file like this:
-------RmicTest.java:
  public class RmicTest {
      public class Inner implements java.rmi.Remote {
      }
  }
-------
- which has an inner class to be RMIC'ed.
However, it seems that Ant's RMIC-feature can't deal with inner classes
properly - the following buildfile:
-------build.xml:
<project name="test" default="target" basedir=".">
  <target name="target">
    <javac srcdir="." destdir="." includes="RmicTest.java" />
    <rmic classname="RmicTest.Inner" base="." />
  </target>
</project>
-------
makes Ant say this:
-------Ant verbose output:
Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows NT
parsing buildfile c:\test\build.xml with URI = file:c:/test/build.xml
Project base dir set to: C:\test
Build sequence for target `target' is [target]
Complete build sequence is [target]

target:
    [javac] RmicTest.java omitted as C:\test\RmicTest.class is up to date.
     [rmic] RmicTest\Inner.class added as C:\test\RmicTest\Inner_Stub.class
doesn't exist.
     [rmic] RMI Compiling 1 class to C:\test
     [rmic] Compilation args: -d C:\test -classpath
C:\test;C:\jdk1.3\lib\tools.jar;C:\ant\lib\parser.jar;C:\ant\lib\jaxp.jar;C:
\ant\lib\ant.jar;C:\jdk1.3\jre\lib\rt.jar;C:\Programmer\Jini1_0_1\lib\jini-c
ore.jar;C:\Programmer\Jini1_0_1\lib\jini-ext.jar;C:\Programmer\Jini1_0_1\lib
\sun-util.jar;C:\Programmer\Jini1_0_1\lib\uiapi100.zip RmicTest.Inner

BUILD SUCCESSFUL

Total time: 2 seconds
-------
As you can see, the stub class tested for is
    C:\test\RmicTest\Inner_Stub.class
- but the stub class really built is
    C:\test\RmicTest$Inner_Stub.class
which is a problem (sort of).
It may be different with other JDKs, however.
    Erik Søe Sørensen

Building EJbs and Web logic service packs

Posted by Abhishek Srivastava <ab...@india.hp.com>.
Hello All,

I was successfully building my EJBs by ANT. The ant generated beans were
being deployed successfully on Web Logic.

Now I decided to apply the WebLogic service pack 8 to my Weblogic
installation. When I put the two new jar files in my classpath, my ANT
generated beans no longer get deployed.

But if I remove the SP8 jars then again everything becomes fine.

Has anyone else come across a situation like this? What is going wrong here.

regards,
Abhishek.


Re: Ant runs RMIC when not necesarry (looking for wrong stub file)

Posted by Nico Seessle <ni...@apache.org>.
----- Original Message -----
From: "Erik Søe Sørensen" <Er...@Tietoenator.com>
To: <an...@jakarta.apache.org>
Sent: Monday, March 26, 2001 7:07 PM
Subject: Ant runs RMIC when not necesarry (looking for wrong stub file)


> -------build.xml:
> <project name="test" default="target" basedir=".">
>   <target name="target">
>     <javac srcdir="." destdir="." includes="RmicTest.java" />
>     <rmic classname="RmicTest.Inner" base="." />
>   </target>
> </project>
> -------

Please see http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=165 and
try to use

<rmic ... classname="RmicTest$$Inner" ... />

Nico