tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albretch Mueller <lbrt...@gmail.com>
Subject BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) ...
Date Tue, 25 Oct 2011 21:44:03 GMT
 I have both JAVA_HOME and ANT_HOME set (I have tried the same thing
as regular user with no root permissions and as root)

# echo $JAVA_HOME
/media/sda7/inst/java/jdk/jdk1.7.0_01

# echo $ANT_HOME
/media/sda7/inst/java/ant/apache-ant-1.8.2

# java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Server VM (build 21.1-b02, mixed mode)

# ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

 but I am getting build errors I don't quite understand.

 What do those errors mean? How can I fix them?

 lbrtchx


# ant -v -f build.xml > REF_20111025172851_servlets_build.txt  2>&1




    [javac]
/media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/pool/impl/StackKeyedObjectPoolFactory.java
    [javac]
/media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/pool/impl/StackObjectPool.java
    [javac]
/media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/pool/impl/StackObjectPoolFactory.java
    [javac] warning: [options] bootstrap class path not set in
conjunction with -source 1.6
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/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] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:46:
error: DelegatingStatement is not abstract and does not override
abstract method isCloseOnCompletion() in Statement
    [javac] public class DelegatingStatement extends AbandonedTrace
implements Statement {
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement.java:57:
error: DelegatingPreparedStatement is not abstract and does not
override abstract method isCloseOnCompletion() in Statement
    [javac] public class DelegatingPreparedStatement extends DelegatingStatement
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement.java:58:
error: DelegatingCallableStatement is not abstract and does not
override abstract method <T>getObject(String,Class<T>) in
CallableStatement
    [javac] public class DelegatingCallableStatement extends
DelegatingPreparedStatement
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>getObject(String,Class<T>)
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingConnection.java:65:
error: DelegatingConnection is not abstract and does not override
abstract method getNetworkTimeout() in Connection
    [javac] public class DelegatingConnection extends AbandonedTrace
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingDatabaseMetaData.java:41:
error: DelegatingDatabaseMetaData is not abstract and does not
override abstract method generatedKeyAlwaysReturned() in
DatabaseMetaData
    [javac] public class DelegatingDatabaseMetaData extends AbandonedTrace
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.java:61:
error: DelegatingResultSet is not abstract and does not override
abstract method <T>getObject(String,Class<T>) in ResultSet
    [javac] public class DelegatingResultSet extends AbandonedTrace
implements ResultSet {
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>getObject(String,Class<T>)
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolableCallableStatement.java:38:
error: PoolableCallableStatement is not abstract and does not override
abstract method <T>getObject(String,Class<T>) in CallableStatement
    [javac] public class PoolableCallableStatement extends
DelegatingCallableStatement implements CallableStatement {
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>getObject(String,Class<T>)
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.java:41:
error: PoolablePreparedStatement is not abstract and does not override
abstract method isCloseOnCompletion() in Statement
    [javac] public class PoolablePreparedStatement extends
DelegatingPreparedStatement implements PreparedStatement {
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingConnection.java:45:
error: PoolingConnection is not abstract and does not override
abstract method getNetworkTimeout() in Connection
    [javac] public class PoolingConnection extends
DelegatingConnection implements Connection, KeyedPoolableObjectFactory
{
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDataSource.java:45:
error: PoolingDataSource is not abstract and does not override
abstract method getParentLogger() in CommonDataSource
    [javac] public class PoolingDataSource implements DataSource {
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDriver.java:52:
error: PoolingDriver is not abstract and does not override abstract
method getParentLogger() in Driver
    [javac] public class PoolingDriver implements Driver {
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/DriverAdapterCPDS.java:87:
error: DriverAdapterCPDS is not abstract and does not override
abstract method getParentLogger() in CommonDataSource
    [javac] public class DriverAdapterCPDS
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/datasources/PerUserPoolDataSource.java:60:
error: PerUserPoolDataSource is not abstract and does not override
abstract method getParentLogger() in CommonDataSource
    [javac] public class PerUserPoolDataSource
    [javac]        ^
    [javac] /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/datasources/SharedPoolDataSource.java:52:
error: SharedPoolDataSource is not abstract and does not override
abstract method getParentLogger() in CommonDataSource
    [javac] public class SharedPoolDataSource
    [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
  [antcall] Exiting
/media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/build.xml.

BUILD FAILED
/media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/build.xml:2211:
The following error occurred while executing this line:
/media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/build.xml:2313:
Compile failed; see the compiler error output for details.
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.Main.runBuild(Main.java:809)
	at org.apache.tools.ant.Main.startAnt(Main.java:217)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 4 seconds

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


Mime
View raw message