You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Richard Pöttler <ri...@deri.org> on 2007/04/24 15:46:34 UTC

derby compile problem

hi,

at the moment I'm trying to compile derby, but for some reasons it doesn't work. 
The output of ant is:

Buildfile: build.xml

init:
    [mkdir] Created dir: /home/richi/temp/db-derby-10.2.2.0-src/classes

ensuresanitystate:

setissane:

showenv:
     [echo] 
     [echo] Ant environment:
     [echo]   Base Directory: /home/richi/temp/db-derby-10.2.2.0-src
     [echo]   Build output: /home/richi/temp/db-derby-10.2.2.0-src/classes
     [echo]   Compiler: modern
     [echo]   Sane = false
     [echo]   Proceed = no
     [echo] 

getstate:

state:

shared:

compile:
    [javac] Compiling 11 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
    [javac] Compiling 1 source file to /home/richi/temp/db-derby-10.2.2.0-src/classes

shared:

parsers:

parser:

chkparser:

genParser:

chkparser:

genParser:

parser:

chkparser:

genParser:

engine:

engine_169:

compile_reference:
    [javac] Compiling 11 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
    [javac] Compiling 2 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_authentication:
    [javac] Compiling 1 source file to /home/richi/temp/db-derby-10.2.2.0-src/classes

authentication:

compile_io:
    [javac] Compiling 4 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

storage:

compile_iapi_error_jsr169:

compile_reference:
    [javac] Compiling 4 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_util:

compile_types:
    [javac] Compiling 1 source file to /home/richi/temp/db-derby-10.2.2.0-src/classes
    [javac] Compiling 5 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
    [javac] Compiling 2 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_iapi_services_jsr169:
    [javac] Compiling 26 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_iapi_services_io:
    [javac] Compiling 5 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_iapi_store_jsr169:
    [javac] Compiling 16 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_iapi_sql_jsr169:

compile_iapi_db:
    [javac] Compiling 6 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes

compile_iapi_jdbc_jsr169:
    [javac] Compiling 10 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
    [javac] /home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java:94: org.apache.derby.impl.jdbc.EmbedConnection is not abstract and does not override abstract method setSavepoint(java.lang.String) in java.sql.Connection
    [javac] public class EmbedConnection implements EngineConnection
    [javac]        ^
    [javac] 1 error

BUILD FAILED
/home/richi/temp/db-derby-10.2.2.0-src/build.xml:333: The following error occurred while executing this line:
/home/richi/temp/db-derby-10.2.2.0-src/java/engine/build.xml:77: The following error occurred while executing this line:
/home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/iapi/build.xml:70: The following error occurred while executing this line:
/home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/iapi/jdbc/build.xml:55: Compile failed; see the compiler error output for details.

Total time: 8 seconds

my ~/ant.properties is:
j13lib=/home/richi/programms/jdk1.3/jre/lib
j14lib=/home/richi/programms/jdk1.4/jre/lib
jdk16=/home/richi/programms/jdk1.6

My default jdk is the 1.4 one.
/home/richi/programms/jdk1.3/bin/java -version gives:
java version "1.3.1_20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_20-b03)
Java HotSpot(TM) Client VM (build 1.3.1_20-b03, mixed mode)

and /home/richi/programms/jdk1.4/bin/java -version gives: 
java version "1.4.2_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)

Since I am in Austria i don't have access to the jce of sun, so i got to use the
one from bouncycastle.org. The content of my ${derby.src}/tools/java is:
bcmail-jdk13-136.jar
bcpg-jdk13-136.jar
bcprov-jdk13-136.jar
bctsp-jdk13-136.jar
empty.jar
geronimo-spec-jta-1.0.1B-rc4.jar
geronimo-spec-servlet-2.4-rc4.jar
jakarta-oro-2.0.8.jar
javacc.jar
jce-jdk13-136.jar
jdbc2_0-stdext.jar
xercesImpl.jar
xml-apis.jar


The build process stopps at a jsr169 task, but i don't have the
jsr169compile.classpath property set, so i don't know, why it runs in such a
taks.

Could anyone help me please or point me in the direction how to get the
compilation working?

bye
richi

Re: derby compile problem

Posted by Richard Pöttler <ri...@deri.org>.
On Tue, Apr 24, 2007 at 06:50:37PM -0700, Andrew McIntyre wrote:
> > Richard Pöttler wrote:
> > >
> > > compile_iapi_jdbc_jsr169:
> > >     [javac] Compiling 10 source files to 
> > /home/richi/temp/db-derby-10.2.2.0-src/classes
> > >     [javac] 
> > /home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java:94: 
> > org.apache.derby.impl.jdbc.EmbedConnection is not abstract and does not 
> > override abstract method setSavepoint(java.lang.String) in 
> > java.sql.Connection
> > >     [javac] public class EmbedConnection implements EngineConnection
> > >     [javac]        ^
> > >     [javac] 1 error
> > >
> > > Could anyone help me please or point me in the direction how to get the
> > > compilation working?
> 
>  I would expect to see this error if you have set
>  'compile.classpath=${java14compile.classpath}' in your
>  ~/ant.properties.
> 
>  Please make sure that you have not set compile.classpath anywhere. If
>  you are not attempting to compile the JSR169 classes, then
>  compile.classpath should automatically be set to equal
>  ${java13compile.classpath} in
>  tools/ant/properties/compilepath.properties.

Hi,

thanks for your answers. 

I started with a newly extracted source archive, copied
only the jar files, and kept my old ~/ant.properties, where i only set j13lib,
j14lib and jdk16. The error was the same...

Then i tried out to run to build process with ant 1.6.5 (formerly i was using
ant 1.7.0). After the change it run smoothly, except, that it couldn't find some
javax.crypto.* classes. I had to use bouncycastle as jce implementation, so i
modified jce1_2_1 in tools/ant/properties/compilepath.properties to
${javatools.dir}/jce-jdk13-136.jar, and now everything works fine.

Please don't ask me, why the change of ant from 1.7.0 to 1.6.5 had such big
impact on the build.

Thanks again to you all.

bye
richi

Re: derby compile problem

Posted by Andrew McIntyre <mc...@gmail.com>.
On 4/24/07, Stanley Bradbury <St...@gmail.com> wrote:
> Hi
> Check your ant build properties.  I believe that this should be set to yes:
>
> Proceed = no

Proceed should be set to no. The build shouldn't need to keep going
past any compile error to have a successful build.

> Richard Pöttler wrote:
> >
> > compile_iapi_jdbc_jsr169:
> >     [javac] Compiling 10 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
> >     [javac] /home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java:94: org.apache.derby.impl.jdbc.EmbedConnection is not abstract and does not override abstract method setSavepoint(java.lang.String) in java.sql.Connection
> >     [javac] public class EmbedConnection implements EngineConnection
> >     [javac]        ^
> >     [javac] 1 error
> >
> > Could anyone help me please or point me in the direction how to get the
> > compilation working?

I would expect to see this error if you have set
'compile.classpath=${java14compile.classpath}' in your
~/ant.properties.

Please make sure that you have not set compile.classpath anywhere. If
you are not attempting to compile the JSR169 classes, then
compile.classpath should automatically be set to equal
${java13compile.classpath} in
tools/ant/properties/compilepath.properties.

HTH,
andrew

Re: derby compile problem

Posted by Stanley Bradbury <St...@gmail.com>.
Hi
Check your ant build properties.  I believe that this should be set to yes:

Proceed = no

Also, the folks that regularly build Derby hang out (mostly) on 
derby-dev. If this doesn't work you might want to post to that email list.

Richard Pöttler wrote:
> hi,
>
> at the moment I'm trying to compile derby, but for some reasons it doesn't work. 
> The output of ant is:
>
> Buildfile: build.xml
>
> init:
>     [mkdir] Created dir: /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> ensuresanitystate:
>
> setissane:
>
> showenv:
>      [echo] 
>      [echo] Ant environment:
>      [echo]   Base Directory: /home/richi/temp/db-derby-10.2.2.0-src
>      [echo]   Build output: /home/richi/temp/db-derby-10.2.2.0-src/classes
>      [echo]   Compiler: modern
>      [echo]   Sane = false
>      [echo]   Proceed = no
>      [echo] 
>
> getstate:
>
> state:
>
> shared:
>
> compile:
>     [javac] Compiling 11 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>     [javac] Compiling 1 source file to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> shared:
>
> parsers:
>
> parser:
>
> chkparser:
>
> genParser:
>
> chkparser:
>
> genParser:
>
> parser:
>
> chkparser:
>
> genParser:
>
> engine:
>
> engine_169:
>
> compile_reference:
>     [javac] Compiling 11 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>     [javac] Compiling 2 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_authentication:
>     [javac] Compiling 1 source file to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> authentication:
>
> compile_io:
>     [javac] Compiling 4 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> storage:
>
> compile_iapi_error_jsr169:
>
> compile_reference:
>     [javac] Compiling 4 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_util:
>
> compile_types:
>     [javac] Compiling 1 source file to /home/richi/temp/db-derby-10.2.2.0-src/classes
>     [javac] Compiling 5 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>     [javac] Compiling 2 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_iapi_services_jsr169:
>     [javac] Compiling 26 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_iapi_services_io:
>     [javac] Compiling 5 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_iapi_store_jsr169:
>     [javac] Compiling 16 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_iapi_sql_jsr169:
>
> compile_iapi_db:
>     [javac] Compiling 6 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>
> compile_iapi_jdbc_jsr169:
>     [javac] Compiling 10 source files to /home/richi/temp/db-derby-10.2.2.0-src/classes
>     [javac] /home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java:94: org.apache.derby.impl.jdbc.EmbedConnection is not abstract and does not override abstract method setSavepoint(java.lang.String) in java.sql.Connection
>     [javac] public class EmbedConnection implements EngineConnection
>     [javac]        ^
>     [javac] 1 error
>
> BUILD FAILED
> /home/richi/temp/db-derby-10.2.2.0-src/build.xml:333: The following error occurred while executing this line:
> /home/richi/temp/db-derby-10.2.2.0-src/java/engine/build.xml:77: The following error occurred while executing this line:
> /home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/iapi/build.xml:70: The following error occurred while executing this line:
> /home/richi/temp/db-derby-10.2.2.0-src/java/engine/org/apache/derby/iapi/jdbc/build.xml:55: Compile failed; see the compiler error output for details.
>
> Total time: 8 seconds
>
> my ~/ant.properties is:
> j13lib=/home/richi/programms/jdk1.3/jre/lib
> j14lib=/home/richi/programms/jdk1.4/jre/lib
> jdk16=/home/richi/programms/jdk1.6
>
> My default jdk is the 1.4 one.
> /home/richi/programms/jdk1.3/bin/java -version gives:
> java version "1.3.1_20"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_20-b03)
> Java HotSpot(TM) Client VM (build 1.3.1_20-b03, mixed mode)
>
> and /home/richi/programms/jdk1.4/bin/java -version gives: 
> java version "1.4.2_14"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)
>
> Since I am in Austria i don't have access to the jce of sun, so i got to use the
> one from bouncycastle.org. The content of my ${derby.src}/tools/java is:
> bcmail-jdk13-136.jar
> bcpg-jdk13-136.jar
> bcprov-jdk13-136.jar
> bctsp-jdk13-136.jar
> empty.jar
> geronimo-spec-jta-1.0.1B-rc4.jar
> geronimo-spec-servlet-2.4-rc4.jar
> jakarta-oro-2.0.8.jar
> javacc.jar
> jce-jdk13-136.jar
> jdbc2_0-stdext.jar
> xercesImpl.jar
> xml-apis.jar
>
>
> The build process stopps at a jsr169 task, but i don't have the
> jsr169compile.classpath property set, so i don't know, why it runs in such a
> taks.
>
> Could anyone help me please or point me in the direction how to get the
> compilation working?
>
> bye
> richi
>
>