ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev Jackson <foamd...@gmail.com>
Subject Rmic & WebLogic failure more info
Date Fri, 02 Nov 2007 02:06:25 GMT
Hi,

Here's the -debug output of executing testWlrmic in isolation:

D:\eclipse\workspace2\ant-core-trunk>ant -debug -f 
src\etc\testcases\taskdefs\rm
ic\rmic.xml testWlrmic
Apache Ant version 1.8.0alpha compiled on November 2 2007
Buildfile: src\etc\testcases\taskdefs\rmic\rmic.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.6 in: C:\Program Files\Java\jdk1.6.0_02\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> 
D:\eclipse\workspace2\ant-core-trunk\sr
c\etc\testcases\taskdefs\rmic\rmic.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdef
s\rmic\rmic.xml with URI = 
file:/D:/eclipse/workspace2/ant-core-trunk/src/etc/te
stcases/taskdefs/rmic/rmic.xml
Setting ro project property: ant.project.name -> rmic
Adding reference: rmic
Setting ro project property: ant.file.rmic -> 
D:\eclipse\workspace2\ant-core-tru
nk\src\etc\testcases\taskdefs\rmic\rmic.xml
Project base dir set to: 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\
taskdefs\rmic
  +Target:
  +Target: teardown
  +Target: init
  +Target: probe-rmic
  +Target: testDefault
  +Target: testEmpty
  +Target: testVersion11
  +Target: testVersion12
  +Target: testVersionCompat
  +Target: testRmic
  +Target: testRmicJArg
  +Target: testKaffe
  +Target: testWlrmic
  +Target: testWlrmicJArg
  +Target: testForking
  +Target: testBadName
  +Target: testExplicitClass
  +Target: testWrongClass
  +Target: testNoBase
  +Target: testBaseDoesntExist
  +Target: testBaseIsntDir
  +Target: testFailingAdapter
  +Target: compileAntTimestamp
  +Target: testAntClasspath
  +Target: testForkingAntClasspath
  +Target: testDefaultBadClass
  +Target: testMagicProperty
  +Target: testMagicPropertyOverridesEmptyString
  +Target: testMagicPropertyIsEmptyString
  +Target: testXnew
  +Target: testXnewForked
  +Target: testXnewCompiler
  +Target: testIDL
  +Target: testIIOP
parsing buildfile 
jar:file:/D:/eclipse/workspace2/ant-core-trunk/dist/lib/ant.ja
r!/org/apache/tools/ant/antlib.xml with URI = 
jar:file:/D:/eclipse/workspace2/an
t-core-trunk/dist/lib/ant.jar!/org/apache/tools/ant/antlib.xml
Setting project property: rmic.dir -> 
D:\eclipse\workspace2\ant-core-trunk\src\e
tc\testcases\taskdefs\rmic
Setting project property: src.dir -> 
D:\eclipse\workspace2\ant-core-trunk\src\et
c\testcases\taskdefs\rmic\src
Setting project property: build.dir -> 
D:\eclipse\workspace2\ant-core-trunk\src\
etc\testcases\taskdefs\rmic\build
Attempting to create object of type 
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `testWlrmic' is [probe-rmic, init, testWlrmic]
Complete build sequence is [probe-rmic, init, testWlrmic, teardown, 
testWlrmicJA
rg, testFailingAdapter, testDefault, testXnewCompiler, testWrongClass, 
testEmpty
, testBaseIsntDir, testRmic, testKaffe, compileAntTimestamp, 
testForkingAntClass
path, testVersion12, testVersion11, testMagicProperty, 
testVersionCompat, testXn
ewForked, testIIOP, testExplicitClass, testRmicJArg, 
testMagicPropertyIsEmptyStr
ing, testBaseDoesntExist, testDefaultBadClass, testAntClasspath, 
testBadName, te
stMagicPropertyOverridesEmptyString, testNoBase, testXnew, testForking, 
testIDL,
  ]

probe-rmic:
[available] class "jkaffe.rmi.rmic.RMIC" was not found
[available] Unable to load class jkaffe.rmi.rmic.RMIC to set property 
kaffe.pres
ent
Setting project property: rmic.present -> true
Setting project property: wlrmic.present -> true
Condition true; setting rmic5.present to true
Setting project property: rmic5.present -> true
Condition true; setting rmic6.present to true
Setting project property: rmic6.present -> true

init:
     [mkdir] Skipping 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\task
defs\rmic\build because it already exists.
fileset: Setup scanner in dir 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testc
ases\taskdefs\rmic\src with patternSet{ includes: [Remote*.java] 
excludes: [] }
     [javac] RemoteTimestamp.java omitted as 
D:\eclipse\workspace2\ant-core-trunk
\src\etc\testcases\taskdefs\rmic\build\RemoteTimestamp.class is up to date.
     [javac] RemoteTimestampImpl.java omitted as 
D:\eclipse\workspace2\ant-core-t
runk\src\etc\testcases\taskdefs\rmic\build\RemoteTimestampImpl.class is 
up to da
te.
  +Datatype base-rmic org.apache.tools.ant.taskdefs.Rmic
[presetdef] defining preset base-rmic
  +Datatype rmic-bad-class org.apache.tools.ant.taskdefs.Rmic
[presetdef] defining preset rmic-bad-class
  +Datatype assertFileCreated org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertFileCreated
  +Datatype assertFileAbsent org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertFileAbsent
  +Datatype assertStubCompiled org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertStubCompiled
  +Datatype assertSkelCompiled org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertSkelCompiled
  +Datatype assertSkelAbsent org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertSkelAbsent
  +Datatype assertBaseCompiled org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertBaseCompiled
  +Datatype assertAntStubCompiled 
org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertAntStubCompiled
  +Datatype assertAntSkelCompiled 
org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertAntSkelCompiled
  +Datatype assertAntCompiled org.apache.tools.ant.taskdefs.MacroInstance
  [macrodef] creating macro  assertAntCompiled

testWlrmic:
[base-rmic] Verify has been turned on.
fileset: Setup scanner in dir 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testc
ases\taskdefs\rmic\build with patternSet{ includes: [**/*.class] 
excludes: [] }
Finding class RemoteTimestamp
Loaded from 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmic
\build RemoteTimestamp.class
Class java.rmi.Remote loaded from parent loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class RemoteTimestamp loaded from ant loader (parentFirst)
[base-rmic] 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmic
\build\RemoteTimestamp.class skipped - don't know how to handle it
Finding class RemoteTimestampImpl
Loaded from 
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmic
\build RemoteTimestampImpl.class
Class RemoteTimestampImpl loaded from ant loader (parentFirst)
[base-rmic] RemoteTimestampImpl.class added as 
RemoteTimestampImpl_WLStub.class
doesn't exist.
[base-rmic] RMI Compiling 1 class to 
D:\eclipse\workspace2\ant-core-trunk\src\et
c\testcases\taskdefs\rmic\build
[base-rmic] Using WebLogic rmic
[base-rmic] Compilation arguments:
[base-rmic] '-noexit'
[base-rmic] '-d'
[base-rmic] 
'D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmi
c\build'
[base-rmic] '-classpath'
[base-rmic] 
'D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmi
c\build;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-launcher.jar;D:\eclips
e\workspace2\ant-core-trunk;C:\Program 
Files\Java\jre1.6.0_02\lib\ext\QTJava.zip
;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-antlr.jar;D:\eclipse\workspac
e2\ant-core-trunk\dist\lib\ant-apache-bcel.jar;D:\eclipse\workspace2\ant-core-tr
unk\dist\lib\ant-apache-bsf.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\an
t-apache-log4j.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-apache-oro.
jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-apache-regexp.jar;D:\eclip
se\workspace2\ant-core-trunk\dist\lib\ant-apache-resolver.jar;D:\eclipse\workspa
ce2\ant-core-trunk\dist\lib\ant-commons-logging.jar;D:\eclipse\workspace2\ant-co
re-trunk\dist\lib\ant-commons-net.jar;D:\eclipse\workspace2\ant-core-trunk\dist\
lib\ant-jai.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-javamail.jar;D
:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-jdepend.jar;D:\eclipse\workspac
e2\ant-core-trunk\dist\lib\ant-jmf.jar;D:\eclipse\workspace2\ant-core-trunk\dist
\lib\ant-jsch.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-junit.jar;D:
\eclipse\workspace2\ant-core-trunk\dist\lib\ant-netrexx.jar;D:\eclipse\workspace
2\ant-core-trunk\dist\lib\ant-nodeps.jar;D:\eclipse\workspace2\ant-core-trunk\di
st\lib\ant-stylebook.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-swing
.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\ant-testutil.jar;D:\eclipse\w
orkspace2\ant-core-trunk\dist\lib\ant-trax.jar;D:\eclipse\workspace2\ant-core-tr
unk\dist\lib\ant.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\weblogic.jar;
D:\eclipse\workspace2\ant-core-trunk\dist\lib\weblogicaux.jar;D:\eclipse\workspa
ce2\ant-core-trunk\dist\lib\weblogicclasses.jar;D:\eclipse\workspace2\ant-core-t
runk\dist\lib\xercesImpl.jar;D:\eclipse\workspace2\ant-core-trunk\dist\lib\xml-a
pis.jar;C:\Program Files\Java\jdk1.6.0_02\lib\tools.jar'
[base-rmic] '-vcompat'
[base-rmic]
[base-rmic] The ' characters around the executable and arguments are
[base-rmic] not part of the command.
[base-rmic] File to be compiled:    RemoteTimestampImpl

BUILD FAILED
D:\eclipse\workspace2\ant-core-trunk\src\etc\testcases\taskdefs\rmic\rmic.xml:17
4: Error starting WebLogic rmic:
         at 
org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:84)
         at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:542)
         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a: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(DefaultExe
cutor.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(DelegatingMethodAcces
sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at 
org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:76)
         ... 17 more
Caused by: java.lang.IllegalArgumentException: Unrecognized option or 
flag, -vco
mpat
         at weblogic.utils.Getopt2.grok(Getopt2.java:164)
         at weblogic.utils.compiler.Tool.run(Tool.java:117)
         at weblogic.utils.compiler.Tool.run(Tool.java:103)
         at weblogic.rmic.main(rmic.java:142)
         ... 22 more

It's seems that this has been a problem for a while:

http://mail-archives.apache.org/mod_mbox/ant-dev/200611.mbox/%3C20061103161122.100620@gmx.net%3E

This is the list of options supported by weblogic rmic:

http://edocs.bea.com/wls/docs81/rmi/rmi_rmic.html#662053

-vcompat is absent - so can we prevent this being passed in this test?

Thanks,
Kev

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


Mime
View raw message