You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2014/04/15 03:25:26 UTC

Can't build Tomcat 7.0.x trunk deps (dbcp)

All,

While back-porting r1587378 to Tomcat 7.0, it appears that I can't build
Tomcat 7.0.x trunk:

$ echo $JAVA_HOME
/usr/local/java-7

$ ant deploy
Buildfile: /home/cschultz/projects/apache-tomcat/tomcat-7.0/build.xml

[...]

    [javac] Compiling 64 source files to
/home/cschultz/projects/apache-tomcat/downloaded-libs/tomcat7-deps/dbcp/classes
    [javac] warning: [options] bootstrap class path not set in
conjunction with -source 1.6
    [javac]
/home/cschultz/projects/apache-tomcat/downloaded-libs/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:53:
error: BasicDataSource is not abstract and does not override abstract
method getParentLogger() in CommonDataSource
    [javac] public class BasicDataSource implements DataSource {
    [javac]        ^

[...]
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 15 errors
    [javac] 1 warning

BUILD FAILED
/home/cschultz/projects/apache-tomcat/tomcat-7.0/build.xml:2687: The
following error occurred while executing this line:
/home/cschultz/projects/apache-tomcat/tomcat-7.0/build.xml:2791: Compile
failed; see the compiler error output for details.


Am I missing something in my environment?

The only thing I have set in build.properties is my "base.path".
Everything else came directly from svn.

Thanks,
-chris


Re: Can't build Tomcat 7.0.x trunk deps (dbcp)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Konstantin,

On 4/15/14, 2:59 AM, Konstantin Kolinko wrote:
> 2014-04-15 5:25 GMT+04:00 Christopher Schultz <ch...@christopherschultz.net>:
>> All,
>>
>> While back-porting r1587378 to Tomcat 7.0, it appears that I can't build
>> Tomcat 7.0.x trunk:
>>
>> $ echo $JAVA_HOME
>> /usr/local/java-7
> 
> JAVA_HOME should point to a Java 6 JDK for Tomcat 7.
> 
> java.7.home in build.properties should point to Java 7 JDK.
> 
> It requires both (if you wanna build WebSocket classes), the main being Java 6.

Wow, how did I never notice that? I was compiling both Tomcat 8 and
Tomcat 7 (serially) in the same terminal, so perhaps I've just always
used by default JVM (Java 6) in the past.

Thanks. The build works fine, now.

-chris


Re: Can't build Tomcat 7.0.x trunk deps (dbcp)

Posted by Konstantin Kolinko <kn...@gmail.com>.
2014-04-15 5:25 GMT+04:00 Christopher Schultz <ch...@christopherschultz.net>:
> All,
>
> While back-porting r1587378 to Tomcat 7.0, it appears that I can't build
> Tomcat 7.0.x trunk:
>
> $ echo $JAVA_HOME
> /usr/local/java-7

JAVA_HOME should point to a Java 6 JDK for Tomcat 7.

java.7.home in build.properties should point to Java 7 JDK.

It requires both (if you wanna build WebSocket classes), the main being Java 6.

> $ ant deploy
> Buildfile: /home/cschultz/projects/apache-tomcat/tomcat-7.0/build.xml
>

(...)

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