Hello-

A heads up for those maybe having difficulty with building from the
source:

This may be a little verbose, so here is the quick-and-dirty.  The ant
build script does not seem to want to fully work for me.  It is
expecting an 'ant.home' property not present in build.xml. When I add
such a property, it still cannot do a full build.  In both cases, the
build appears to crash during the javadocs target.  I remove that target
from the dist-tgz dependencies and it works ok.  What is up?

I have downloaded the source via CVS, am using IBM jdk1.3.

Full transcript (Note: this is after having done a build main, so
classes had compiled, etc.):

[jbonevic@localhost] cd /usr/local/jboss_cvs/src/build/
[jbonevic@localhost] ./build.sh dist-tgz
Buildfile: build.xml
Project base dir set to: /usr/local/jboss_cvs
Executing Target: init
Executing Target: prepare
Executing Target: compile
Compiling 3 source files to /usr/local/jboss_cvs/build/classes
Executing Target: xmlbeans
Executing Target: jar
Building jar: /usr/local/jboss_cvs/build/lib/ext/jboss.jar
Building jar: /usr/local/jboss_cvs/build/client/jboss-client.jar
Building jar: /usr/local/jboss_cvs/build/client/deploy.jar
Building jar: /usr/local/jboss_cvs/build/client/stop.jar
Executing Target: ejx
Executing Target: main
Copying 1 files to /usr/local/jboss_cvs/dist/lib/ext
Copying 3 files to /usr/local/jboss_cvs/dist/client
Executing Target: javadocs
Generating Javadoc
Javadoc execution
BUILD FATAL ERROR: Property 'ant.home' not found

So I add the following to build.xml:
    <property name="ant.home" value="/usr/local/jakarta-ant"/>
which is where I have a recent version of ant installed.  I get the
above output but no fatal error, just continues into javadoc execution
(*lots* of warnings that it cannot find javax.management.* classes from
imports, wbhich is odd since the jmxri.jar is put in the classpath by
ant) and then:

<snip>
[exec] 35 warnings
Executing Target: dist
Copying 116 files to /usr/local/jboss_cvs/dist/docs/api
SIGSEGV 11 (*) segmentation violation
        stackpointer=0xbffc0d08
Full thread dump Classic VM (J2RE 1.3.0 IBM build cxdev-20000502, native
threads):
    "Finalizer" (TID:0x402e8708, sys_thread_t:0x80d3ca0, state:CW,
native ID:0xc04) prio=8
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:114)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:129)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:168)
    "Reference Handler" (TID:0x402e8750, sys_thread_t:0x80d00a8,
state:CW, native ID:0x803) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:421)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    "Signal dispatcher" (TID:0x402e8798, sys_thread_t:0x80cc5a0,
state:CW, native ID:0x402) prio=5
    "main" (TID:0x402e87e0, sys_thread_t:0x804f940, state:R, native
ID:0x400) prio=5
        at org.apache.tools.ant.Project.copyFile(Project.java:584)
        at org.apache.tools.ant.Project.copyFile(Project.java:526)
        at
org.apache.tools.ant.taskdefs.Copydir.execute(Copydir.java:108)
        at org.apache.tools.ant.Target.execute(Target.java:120)
        at org.apache.tools.ant.Project.runTarget(Project.java:658)
        at org.apache.tools.ant.Project.executeTarget(Project.java:407)
        at org.apache.tools.ant.Main.runBuild(Main.java:240)
        at org.apache.tools.ant.Main.main(Main.java:191)
Monitor pool info:
  Initial monitor count: 32
  Minimum number of free monitors before expansion: 5
  Pool will next be expanded by: 16
  Current total number of monitors: 32
  Current number of free monitors: 24

Monitor Pool Dump (inflated object-monitors):
  sys_mon_t:0x0804ef70 infl_mon_t: 0x0804eb68:
    java.lang.ref.Reference$Lock@402F0188/402F0190: owner "main"
(0x804f940) 1 entry
        Waiting to be notified:
            "Reference Handler" (0x80d00a8)
  sys_mon_t:0x0804efb0 infl_mon_t: 0x0804eb88:
    java.lang.ref.ReferenceQueue$Lock@402EFDD8/402EFDE0: <unowned>
        Waiting to be notified:
            "Finalizer" (0x80d3ca0)
JVM System Monitor Dump (registered monitors):
    ACS Heap lock: owner "main" (0x804f940) 1 entry
    System Heap lock: owner "main" (0x804f940) 1 entry
    Sleep lock: <unowned>
    Method trace lock: <unowned>
    UTF8 Cache lock: <unowned>
    Heap lock: owner "main" (0x804f940) 1 entry
    Rewrite Code lock: <unowned>
    Monitor Cache lock: owner "main" (0x804f940) 2 entries
    JNI Pinning lock: owner "main" (0x804f940) 1 entry
    JNI Global Reference lock: owner "main" (0x804f940) 1 entry
    Classloader lock: <unowned>
    Linking class lock: owner "main" (0x804f940) 1 entry
    Binclass lock: owner "main" (0x804f940) 1 entry
    Monitor Registry lock: owner "main" (0x804f940) 1 entry
    Thread queue lock: owner "main" (0x804f940) 2 entries
Thread identifiers (as used in flat monitors):
    ident 5 "Finalizer" (0x80d3ca0) ee 0x080d3ad0
    ident 4 "Reference Handler" (0x80d00a8) ee 0x080cfed8
    ident 3 "Signal dispatcher" (0x80cc5a0) ee 0x080cc3d0
    ident 2 "main" (0x804f940) ee 0x0804f770
Java Object Monitor Dump (flat & inflated object-monitors):
    java.lang.ref.ReferenceQueue$Lock@402EFDD8/402EFDE0
        locknflags 80000200 Monitor inflated infl_mon 0x0804eb88
    java.lang.ref.Reference$Lock@402F0188/402F0190
        locknflags 80000100 Monitor inflated infl_mon 0x0804eb68
SIGABRT 6 (*) abort process
        stackpointer=0xbffc09bc

Full thread dump Classic VM (J2RE 1.3.0 IBM build cxdev-20000502, native
threads):
    "Finalizer" (TID:0x402e8708, sys_thread_t:0x80d3ca0, state:CW,
native ID:0xc04) prio=8
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:114)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:129)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:168)
    "Reference Handler" (TID:0x402e8750, sys_thread_t:0x80d00a8,
state:CW, native ID:0x803) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:421)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    "Signal dispatcher" (TID:0x402e8798, sys_thread_t:0x80cc5a0,
state:CW, native ID:0x402) prio=5
    "main" (TID:0x402e87e0, sys_thread_t:0x804f940, state:R, native
ID:0x400) prio=5
        at org.apache.tools.ant.Project.copyFile(Project.java:584)
        at org.apache.tools.ant.Project.copyFile(Project.java:526)
        at
org.apache.tools.ant.taskdefs.Copydir.execute(Copydir.java:108)
        at org.apache.tools.ant.Target.execute(Target.java:120)
        at org.apache.tools.ant.Project.runTarget(Project.java:658)
        at org.apache.tools.ant.Project.executeTarget(Project.java:407)
        at org.apache.tools.ant.Main.runBuild(Main.java:240)
        at org.apache.tools.ant.Main.main(Main.java:191)
Monitor pool info:
  Initial monitor count: 32
  Minimum number of free monitors before expansion: 5
  Pool will next be expanded by: 16
  Current total number of monitors: 32
  Current number of free monitors: 24
Monitor Pool Dump (inflated object-monitors):
  sys_mon_t:0x0804ef70 infl_mon_t: 0x0804eb68:
    java.lang.ref.Reference$Lock@402F0188/402F0190: owner "main"
(0x804f940) 1 entry
        Waiting to be notified:
            "Reference Handler" (0x80d00a8)
  sys_mon_t:0x0804efb0 infl_mon_t: 0x0804eb88:
    java.lang.ref.ReferenceQueue$Lock@402EFDD8/402EFDE0: <unowned>
        Waiting to be notified:
            "Finalizer" (0x80d3ca0)
JVM System Monitor Dump (registered monitors):
    ACS Heap lock: owner "main" (0x804f940) 1 entry
    System Heap lock: owner "main" (0x804f940) 1 entry
    Sleep lock: <unowned>
    Method trace lock: <unowned>
    UTF8 Cache lock: <unowned>
    Heap lock: owner "main" (0x804f940) 1 entry
    Rewrite Code lock: <unowned>
    Monitor Cache lock: owner "main" (0x804f940) 2 entries
    JNI Pinning lock: owner "main" (0x804f940) 1 entry
    JNI Global Reference lock: owner "main" (0x804f940) 1 entry
    Classloader lock: <unowned>
    Linking class lock: owner "main" (0x804f940) 1 entry
    Binclass lock: owner "main" (0x804f940) 1 entry
    Monitor Registry lock: owner "main" (0x804f940) 1 entry
    Thread queue lock: owner "main" (0x804f940) 2 entries

Thread identifiers (as used in flat monitors):
    ident 5 "Finalizer" (0x80d3ca0) ee 0x080d3ad0
    ident 4 "Reference Handler" (0x80d00a8) ee 0x080cfed8
    ident 3 "Signal dispatcher" (0x80cc5a0) ee 0x080cc3d0
    ident 2 "main" (0x804f940) ee 0x0804f770
Java Object Monitor Dump (flat & inflated object-monitors):
    java.lang.ref.ReferenceQueue$Lock@402EFDD8/402EFDE0
        locknflags 80000200 Monitor inflated infl_mon 0x0804eb88
    java.lang.ref.Reference$Lock@402F0188/402F0190
        locknflags 80000100 Monitor inflated infl_mon 0x0804eb68


After all this, I just removed javadocs as a dependency of dist and
everything worked nicely.

Is this a problem with the version of ant I have installed?  Why is the
javadocs target requiring an ant.home property?  What does it truly want
and if it is just the ant.jar being sought, why is it not finding it
despite being in the classpath?

-- 
Jeffrey & Nikole Bonevich
Maxmillian Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to