ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev Jackson <foamd...@gmail.com>
Subject Weblogic Rmic error
Date Mon, 05 Nov 2007 01:09:15 GMT
Hi,

Currently Wlrmic still has a problem on Windows.

 From the full build test:

Error starting WebLogic rmic:

D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmic\rmic.xml:174: 
Error starting WebLogic rmic:
at org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:85)
at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:542)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:354)
at org.apache.tools.ant.Target.performTasks(Target.java:379)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
at org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:313)
at 
org.apache.tools.ant.taskdefs.RmicAdvancedTest.testWlrmic(RmicAdvancedTest.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1328)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:824)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1752)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:774)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at 
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:354)
at org.apache.tools.ant.Target.performTasks(Target.java:379)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1176)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:77)
... 60 more
Caused by: java.lang.Exception: RemoteTimestampImpl must be a remote 
interface implementation and should exist in the classpath
at weblogic.rmi.rmic.Remote2Java.checkIsNotInterface(Remote2Java.java:744)
at weblogic.rmi.rmic.Remote2Java.outputs(Remote2Java.java:509)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
at weblogic.rmic.runBody(rmic.java:77)
at weblogic.utils.compiler.Tool.run(Tool.java:146)
at weblogic.utils.compiler.Tool.run(Tool.java:103)
at weblogic.rmic.main(rmic.java:142)
... 65 more
--- Nested Exception ---
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:77)
at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:542)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:354)
at org.apache.tools.ant.Target.performTasks(Target.java:379)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
at org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:313)
at 
org.apache.tools.ant.taskdefs.RmicAdvancedTest.testWlrmic(RmicAdvancedTest.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1328)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:824)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1752)
at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:774)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at 
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:354)
at org.apache.tools.ant.Target.performTasks(Target.java:379)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1176)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.Exception: RemoteTimestampImpl must be a remote 
interface implementation and should exist in the classpath
at weblogic.rmi.rmic.Remote2Java.checkIsNotInterface(Remote2Java.java:744)
at weblogic.rmi.rmic.Remote2Java.outputs(Remote2Java.java:509)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
at weblogic.rmic.runBody(rmic.java:77)
at weblogic.utils.compiler.Tool.run(Tool.java:146)
at weblogic.utils.compiler.Tool.run(Tool.java:103)
at weblogic.rmic.main(rmic.java:142)
... 65 more


 From D:\eclipse\workspace2\ant-core-trunk>ant -f 
src\etc\testcases\taskdefs\rmic\rmic.xml testWlrmic

[base-rmic] RMI Compiling 1 class to 
D:\eclipse\workspace2\ant-core-trunk\src\et
c\testcases\taskdefs\rmic\build
[base-rmic] java.lang.ClassNotFoundException: RemoteTimestampImpl
[base-rmic]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[base-rmic]     at java.security.AccessController.doPrivileged(Native 
Method)
[base-rmic]     at 
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[base-rmic]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[base-rmic]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[base-rmic]     at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

[base-rmic]     at java.lang.Class.forName0(Native Method)
[base-rmic]     at java.lang.Class.forName(Class.java:169)
[base-rmic]     at 
weblogic.rmi.rmic.Remote2Java.checkIsNotInterface(Remote2Java
.java:732)
[base-rmic]     at 
weblogic.rmi.rmic.Remote2Java.outputs(Remote2Java.java:509)
[base-rmic]     at 
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.
java:258)
[base-rmic]     at weblogic.rmic.runBody(rmic.java:77)
[base-rmic]     at weblogic.utils.compiler.Tool.run(Tool.java:146)
[base-rmic]     at weblogic.utils.compiler.Tool.run(Tool.java:103)
[base-rmic]     at weblogic.rmic.main(rmic.java:142)
[base-rmic]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
[base-rmic]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[base-rmic]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[base-rmic]     at java.lang.reflect.Method.invoke(Method.java:597)
[base-rmic]     at 
org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java

With testRmic:

D:\eclipse\workspace2\ant-core-trunk>ant -f 
src\etc\testcases\taskdefs\rmic\rmic
.xml testRmic
Buildfile: src\etc\testcases\taskdefs\rmic\rmic.xml

probe-rmic:

init:

testRmic:
[base-rmic] RMI Compiling 1 class to 
D:\eclipse\workspace2\ant-core-trunk\src\et
c\testcases\taskdefs\rmic\build

So why does the standard rmic compiler find RemoteTimestampImpl on the 
classpath, but the wl version fail?

NB. This is the last show-stopper, a full test build works (apart from this)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message