Bug#427677: gcj-4.1: rmic fails: no resource templates/Stub.jav
tag 427677 + moreinfo
thanks
please recheck with gcj-4.2 from unstable.
Marcus Better writes:
> Package: gcj-4.1
> Version: 4.1.2-8
> Severity: normal
>
> rmic fails with the following error:
>
> ~$ grmic-4.1 -d classes/core -classpath /home/marcus/src/debian/build-area/libmx4j-java-3.0.2/classes/core:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/lib:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/dist/lib/mx4j-impl.jar:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/dist/lib/mx4j-jmx.jar:/home/marcus/src/debian/build-area/libmx4j-java-3.0.2/dist/lib/mx4j.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/commons-logging.jar:/usr/share/java/servlet-api-2.4.jar:/usr/share/java/bcel.jar:/usr/share/java/jython.jar:/usr/share/java/gnumail.jar:/usr/share/java/activation.jar:/usr/share/java/axis.jar:/usr/share/java/jaxrpc.jar:/usr/share/java/saaj.jar:/usr/lib/jvm/java-gcj/lib/tools.jar --iiop -g -always -verbose javax.management.remote.rmi.RMIServerImpl
> Package javax.management.remote.rmi, name RMIServer impl RMIServerImpl
> Exception in thread "main" java.lang.InternalError: gnu.classpath.tools.rmic.SourceGiopRmicCompiler: no resource templates/Stub.jav
> at gnu.classpath.tools.rmic.Generator.getResource(libgcj-tools.so.71)
> at gnu.classpath.tools.rmic.SourceGiopRmicCompiler.generateStub(libgcj-tools.so.71)
> at gnu.classpath.tools.rmic.SourceGiopRmicCompiler.run(libgcj-tools.so.71)
> at gnu.classpath.tools.rmic.Main.run(libgcj-tools.so.71)
> at gnu.classpath.tools.rmic.Main.main(libgcj-tools.so.71)
>
> Looking at the source file
> libjava/classpath/tools/gnu/classpath/tools/rmic/SourceGiopRmicCompiler.java,
> it does try to load the resource:
>
> public String generateStub()
> {
> String template = getResource("Stub.jav");
>
> There is a templates/Stub.jav resource in the sources as well.
>
> (Note: the -force option to rmic above is needed in my case as a
> workaround for PR32198.)
Reply to: