db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siddharth srivastava <akssps...@gmail.com>
Subject Unable to build tests
Date Fri, 17 Dec 2010 15:00:50 GMT
Hi

I am building derby from trunk. I followed the instructions on
http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co but
when I run
ant -quiet all, I get the following errors: (I am using JUnit 3.8.2. The
count of errors with JUnit 4.8.1 was 100 )


   1. [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:26:
   cannot find symbol
   2.     [javac] symbol  : class JMXServiceURL
   3.     [javac] location: package javax.management.remote
   4.     [javac] import javax.management.remote.JMXServiceURL;
   5.     [javac]                               ^
   6.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:93:
   cannot find symbol
   7.     [javac] symbol  : class JMXServiceURL
   8.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
   9.     [javac]     private JMXServiceURL getJmxUrl() throws
   MalformedURLException {
   10.     [javac]             ^
   11.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:27:
   cannot find symbol
   12.     [javac] symbol  : class JMXConnector
   13.     [javac] location: package javax.management.remote
   14.     [javac] import javax.management.remote.JMXConnector;
   15.     [javac]                               ^
   16.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:28:
   cannot find symbol
   17.     [javac] symbol  : class JMXConnectorFactory
   18.     [javac] location: package javax.management.remote
   19.     [javac] import javax.management.remote.JMXConnectorFactory;
   20.     [javac]                               ^
   21.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:29:
   cannot find symbol
   22.     [javac] symbol  : class JMXServiceURL
   23.     [javac] location: package javax.management.remote
   24.     [javac] import javax.management.remote.JMXServiceURL;
   25.     [javac]                               ^
   26.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:38:
   cannot find symbol
   27.     [javac] symbol  : class JMXConnector
   28.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   29.     [javac]     static final
   ThreadLocal<Map<MBeanServerConnection,JMXConnector>> connections =
   30.     [javac]                                                        ^
   31.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:41:
   cannot find symbol
   32.     [javac] symbol  : class JMXServiceURL
   33.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   34.     [javac]     private final JMXServiceURL url;
   35.     [javac]                   ^
   36.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:43:
   cannot find symbol
   37.     [javac] symbol  : class JMXServiceURL
   38.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   39.     [javac]     RemoteConnectionGetter(JMXServiceURL url) {
   40.     [javac]                            ^
   41.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
   cannot find symbol
   42.     [javac] symbol  : class JMXServiceURL
   43.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
   44.     [javac]         JMXServiceURL url = new JMXServiceURL(
   45.     [javac]         ^
   46.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
   cannot find symbol
   47.     [javac] symbol  : class JMXServiceURL
   48.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
   49.     [javac]         JMXServiceURL url = new JMXServiceURL(
   50.     [javac]                                 ^
   51.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:39:
   cannot find symbol
   52.     [javac] symbol  : class JMXConnector
   53.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   54.     [javac]         new
   ThreadLocal<Map<MBeanServerConnection,JMXConnector>>();
   55.     [javac]                                                   ^
   56.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
   cannot find symbol
   57.     [javac] symbol  : class JMXConnector
   58.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   59.     [javac]         JMXConnector jmxc =
   JMXConnectorFactory.connect(url, env);
   60.     [javac]         ^
   61.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
   cannot find symbol
   62.     [javac] symbol  : variable JMXConnectorFactory
   63.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   64.     [javac]         JMXConnector jmxc =
   JMXConnectorFactory.connect(url, env);
   65.     [javac]                             ^
   66.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:60:
   cannot find symbol
   67.     [javac] symbol  : class JMXConnector
   68.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   69.     [javac]         Map<MBeanServerConnection,JMXConnector> conns =
   connections.get();
   70.     [javac]                                   ^
   71.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:62:
   cannot find symbol
   72.     [javac] symbol  : class JMXConnector
   73.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   74.     [javac]             conns = new
   HashMap<MBeanServerConnection,JMXConnector>();
   75.     [javac]                                                       ^
   76.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:72:
   cannot find symbol
   77.     [javac] symbol  : class JMXConnector
   78.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   79.     [javac]         Map<MBeanServerConnection,JMXConnector> conns =
   connections.get();
   80.     [javac]                                   ^
   81.     [javac]
   /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:73:
   cannot find symbol
   82.     [javac] symbol  : class JMXConnector
   83.     [javac] location: class
   org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
   84.     [javac]         JMXConnector jmxc = conns.remove(jmxConnection);
   85.     [javac]         ^
   86.     [javac] 17 errors
   87.
   88. BUILD FAILED
   89. /home/siddharth/der/build.xml:584: The following error occurred while
   executing this line:
   90. /home/siddharth/der/java/testing/build.xml:80: The following error
   occurred while executing this line:
   91. /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/build.xml:53:
   Compile failed; see the compiler error output for details.
   92.
   93. Total time: 15 seconds


The output of java -jar jars/sane/derbyrun.jar sysinfo is:

------------------ Java Information ------------------
> Java Version:    1.6.0_20
> Java Vendor:     Sun Microsystems Inc.
> Java home:       /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
> Java classpath:  jars/sane/derbyrun.jar
> OS name:         Linux
> OS architecture: amd64
> OS version:      2.6.35.9-64.fc14.x86_64
> Java user name:  siddharth
> Java user home:  /home/siddharth
> Java user dir:   /home/siddharth/der
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: 1.6.0_20-b20
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [/home/siddharth/der/jars/sane/derby.jar] 10.8.0.0 alpha - (1050393)
> [/home/siddharth/der/jars/sane/derbytools.jar] 10.8.0.0 alpha - (1050393)
> [/home/siddharth/der/jars/sane/derbynet.jar] 10.8.0.0 alpha - (1050393)
> [/home/siddharth/der/jars/sane/derbyclient.jar] 10.8.0.0 alpha - (1050393)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale :  [English/United States [en_US]]
> Found support for locale: [cs]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [de_DE]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [es]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [fr]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [hu]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [it]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [ja_JP]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [ko_KR]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [pl]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [pt_BR]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [ru]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [zh_CN]
>          version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [zh_TW]
>          version: 10.8.0.0 alpha - (1050393)
>
>
How can I solve this ?

Thanks
-- 
Siddharth Srivastava

When you have learned to snatch the error code from the trap frame, it will
be time for you to leave.

Mime
View raw message