Discussion:
[openjms-developer] JMS CTS Build problems
Arunvijai
2003-07-09 11:59:36 UTC
Permalink
Hello All,

While trying to compile JMS CTS , i got the following error,

============================================

# ./build.sh
src/etc:lib/xml-apis-1.0.b2.jar:lib/xerces-2.3.0.jar:lib/ant_optional_1.5.1.jar:lib/ant_1.5.1.jar:/opt/java1.4/lib/tools.jar
Buildfile: src/build.xml

clean:
[delete] Deleting directory /home/ars/jmscts/build
[delete] Deleting directory /home/ars/jmscts/dist

prepare:
[mkdir] Created dir: /home/ars/jmscts/build/classes
[mkdir] Created dir: /home/ars/jmscts/build/generated-src
[mkdir] Created dir: /home/ars/jmscts/dist

schemas:

prepare:

castor.uptodate:

castor:
[java] -- Suppressing non fatal warnings.

BUILD FAILED
file:/home/ars/jmscts/src/build.xml:172: java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl

Total time: 4 seconds

===================================================

Any helps would be really appreciated.

Regards
- Arun


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003
Tim Anderson
2003-07-09 13:30:50 UTC
Permalink
Try changing the castor target in src/build.xml, to add a fork="true", i.e:

<java className="org.exolab.castor.builder.SourceGenerator"
failonerror="true"
fork="true">
....

-----Original Message-----
From: openjms-developer-***@lists.sourceforge.net
[mailto:openjms-developer-***@lists.sourceforge.net]On Behalf Of Arunvijai
Sent: Wednesday, 9 July 2003 10:00 PM
To: openjms-***@lists.sourceforge.net
Cc: openjms-***@lists.sourceforge.net
Subject: [openjms-developer] JMS CTS Build problems


Hello All,

While trying to compile JMS CTS , i got the following error,

============================================

# ./build.sh

src/etc:lib/xml-apis-1.0.b2.jar:lib/xerces-2.3.0.jar:lib/ant_optional_1.5.1.
jar:lib/ant_1.5.1.jar:/opt/java1.4/lib/tools.jar
Buildfile: src/build.xml

clean:
[delete] Deleting directory /home/ars/jmscts/build
[delete] Deleting directory /home/ars/jmscts/dist

prepare:
[mkdir] Created dir: /home/ars/jmscts/build/classes
[mkdir] Created dir: /home/ars/jmscts/build/generated-src
[mkdir] Created dir: /home/ars/jmscts/dist

schemas:

prepare:

castor.uptodate:

castor:
[java] -- Suppressing non fatal warnings.

BUILD FAILED
file:/home/ars/jmscts/src/build.xml:172: java.lang.NoClassDefFoundError:
sun/reflect/MethodAccessorImpl

Total time: 4 seconds

===================================================

Any helps would be really appreciated.

Regards
- Arun


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003
Christian Sell
2003-07-09 13:31:02 UTC
Permalink
find below my mail from a few days ago:
...

BTW, building via ant got me this mysterious error:

BUILD FAILED
file:/home/cse/dell/work/openjms/cvs-src/openjms/src/build.xml:190:
java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl

I was able to get around it after reading the following in the ant docs
for the java task:

"If odd things go wrong when you run this task, set fork='true' to use a
new JVM."

Odd indeed. I am using JDK 1.4.1_01 under Linux.

regards,
Christian
Post by Arunvijai
Hello All,
While trying to compile JMS CTS , i got the following error,
============================================
# ./build.sh
src/etc:lib/xml-apis-1.0.b2.jar:lib/xerces-2.3.0.jar:lib/ant_optional_1.5.1.jar:lib/ant_1.5.1.jar:/opt/java1.4/lib/tools.jar
Buildfile: src/build.xml
[delete] Deleting directory /home/ars/jmscts/build
[delete] Deleting directory /home/ars/jmscts/dist
[mkdir] Created dir: /home/ars/jmscts/build/classes
[mkdir] Created dir: /home/ars/jmscts/build/generated-src
[mkdir] Created dir: /home/ars/jmscts/dist
[java] -- Suppressing non fatal warnings.
BUILD FAILED
sun/reflect/MethodAccessorImpl
Total time: 4 seconds
===================================================
Any helps would be really appreciated.
Regards
- Arun
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003
Ray Hixson
2003-07-09 15:01:42 UTC
Permalink
set the attribute fork="true" in the <java> tag on that line in the
build.xml file

Ray
Post by Arunvijai
Hello All,
 
While trying to compile JMS CTS , i got the following error,
 
============================================
 
# ./build.sh
src/etc:lib/xml-apis-1.0.b2.jar:lib/xerces-2.3.0.jar:lib/
ant_optional_1.5.1.jar:lib/ant_1.5.1.jar:/opt/java1.4/lib/tools.jar
Buildfile: src/build.xml
 
   [delete] Deleting directory /home/ars/jmscts/build
   [delete] Deleting directory /home/ars/jmscts/dist
 
    [mkdir] Created dir: /home/ars/jmscts/build/classes
    [mkdir] Created dir: /home/ars/jmscts/build/generated-src
    [mkdir] Created dir: /home/ars/jmscts/dist
 
 
 
 
     [java] -- Suppressing non fatal warnings.
 
BUILD FAILED
java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl
 
Total time: 4 seconds
===================================================
 
Any helps would be really appreciated.
 
Regards
- Arun
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003
Loading...