S
Suk
Hi
I was wondering if anyone could shed any light about errors I am
getting when trying to compile Tomcat 5.5.2.3 using ant
I extracted the source tarball and ran ant .. all was ok until I got
the errors below.
I've tried looking for options for providing source compatibility when
using ant, but there doesnt seem to be a way to do it.
Im using Solaris Developer Express (SunOS 5.11)
Has anyone successfully compiled tomcat on this version of Solaris?
downloadgz:
[get] Getting: http://archive.apache.org/dist/jakarta/commons/dbcp/source/commons-dbcp-1.2.1-src.tar.gz
[get] To: /usr/share/java/file.tar.gz
[gunzip] Expanding /usr/share/java/file.tar.gz to /usr/share/java/
file.tar
[untar] Expanding: /usr/share/java/file.tar into /usr/share/java
[delete] Deleting: /usr/share/java/file.tar
[delete] Deleting: /usr/share/java/file.tar.gz
build-tomcat-dbcp:
[mkdir] Created dir: /usr/share/java/tomcat-deps
-build-tomcat-dbcp:
[copy] Copying 62 files to /usr/share/java/tomcat-deps
[mkdir] Created dir: /usr/share/java/tomcat-deps/src/java/org/
apache/tomcat/dbcp
[move] Moving 62 files to /usr/share/java/tomcat-deps/src/java/
org/apache/tomcat/dbcp
[mkdir] Created dir: /usr/share/java/tomcat-deps/classes
[javac] Compiling 62 source files to /usr/share/java/tomcat-deps/
classes
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackKeyedObjectPool.java:238: warning: as of release
5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] Enumeration enum = stack.elements();
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackKeyedObjectPool.java:239: warning: as of release
5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] while(enum.hasMoreElements()) {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackKeyedObjectPool.java:241: warning: as of release
5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac]
_factory.destroyObject(key,enum.nextElement());
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackObjectPool.java:199: warning: as of release 5,
'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] Enumeration enum = _pool.elements();
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackObjectPool.java:200: warning: as of release 5,
'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] while(enum.hasMoreElements()) {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackObjectPool.java:202: warning: as of release 5,
'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac]
_factory.destroyObject(enum.nextElement());
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/BasicDataSource.java:43:
org.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does
not override abstract method isWrapperFor(java.lang.Class) in
java.sql.Wrapper
[javac] public class BasicDataSource implements DataSource {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingStatement.java:45:
org.apache.tomcat.dbcp.dbcp.DelegatingStatement is not abstract and
does not override abstract method isPoolable() in java.sql.Statement
[javac] public class DelegatingStatement extends AbandonedTrace
implements Statement {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingStatement.java:130: isClosed() in
org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot implement
isClosed() in java.sql.Statement; attempting to assign weaker access
privileges; was public
[javac] protected boolean isClosed() {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingPreparedStatement.java:49:
org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement is not
abstract and does not override abstract method
setNClob(int,java.io.Reader) in java.sql.PreparedStatement
[javac] public class DelegatingPreparedStatement extends
DelegatingStatement
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingCallableStatement.java:52:
org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement is not
abstract and does not override abstract method
setNClob(java.lang.String,java.io.Reader) in
java.sql.CallableStatement
[javac] public class DelegatingCallableStatement extends
DelegatingPreparedStatement
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingConnection.java:50:
org.apache.tomcat.dbcp.dbcp.DelegatingConnection is not abstract and
does not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in
java.sql.Connection
[javac] public class DelegatingConnection extends AbandonedTrace
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingResultSet.java:54:
org.apache.tomcat.dbcp.dbcp.DelegatingResultSet is not abstract and
does not override abstract method
updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
[javac] public class DelegatingResultSet extends AbandonedTrace
implements ResultSet {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/PoolablePreparedStatement.java:40:
org.apache.tomcat.dbcp.dbcp.PoolablePreparedStatement is not abstract
and does not override abstract method setNClob(int,java.io.Reader) in
java.sql.PreparedStatement
[javac] public class PoolablePreparedStatement extends
DelegatingPreparedStatement implements PreparedStatement {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/PoolingConnection.java:37:
org.apache.tomcat.dbcp.dbcp.PoolingConnection is not abstract and does
not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in
java.sql.Connection
[javac] public class PoolingConnection extends
DelegatingConnection implements Connection, KeyedPoolableObjectFactory
{
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/PoolingDataSource.java:44:
org.apache.tomcat.dbcp.dbcp.PoolingDataSource is not abstract and does
not override abstract method isWrapperFor(java.lang.Class) in
java.sql.Wrapper
[javac] public class PoolingDataSource implements DataSource {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/cpdsadapter/ConnectionImpl.java:40:
org.apache.tomcat.dbcp.dbcp.cpdsadapter.ConnectionImpl is not abstract
and does not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in
java.sql.Connection
[javac] class ConnectionImpl implements Connection {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/cpdsadapter/PooledConnectionImpl.java:42:
org.apache.tomcat.dbcp.dbcp.cpdsadapter.PooledConnectionImpl is not
abstract and does not override abstract method
removeStatementEventListener(javax.sql.StatementEventListener) in
javax.sql.PooledConnection
[javac] class PooledConnectionImpl
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/cpdsadapter/PoolablePreparedStatementStub.java:33:
isClosed() in org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot
implement isClosed() in java.sql.Statement; attempting to assign
weaker access privileges; was public
[javac] class PoolablePreparedStatementStub extends
PoolablePreparedStatement {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/datasources/PerUserPoolDataSource.java:49:
org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource is not
abstract and does not override abstract method
isWrapperFor(java.lang.Class) in java.sql.Wrapper
[javac] public class PerUserPoolDataSource
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/datasources/SharedPoolDataSource.java:43:
org.apache.tomcat.dbcp.dbcp.datasources.SharedPoolDataSource is not
abstract and does not override abstract method
isWrapperFor(java.lang.Class) in java.sql.Wrapper
[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] 15 errors
[javac] 6 warnings
I was wondering if anyone could shed any light about errors I am
getting when trying to compile Tomcat 5.5.2.3 using ant
I extracted the source tarball and ran ant .. all was ok until I got
the errors below.
I've tried looking for options for providing source compatibility when
using ant, but there doesnt seem to be a way to do it.
Im using Solaris Developer Express (SunOS 5.11)
Has anyone successfully compiled tomcat on this version of Solaris?
downloadgz:
[get] Getting: http://archive.apache.org/dist/jakarta/commons/dbcp/source/commons-dbcp-1.2.1-src.tar.gz
[get] To: /usr/share/java/file.tar.gz
[gunzip] Expanding /usr/share/java/file.tar.gz to /usr/share/java/
file.tar
[untar] Expanding: /usr/share/java/file.tar into /usr/share/java
[delete] Deleting: /usr/share/java/file.tar
[delete] Deleting: /usr/share/java/file.tar.gz
build-tomcat-dbcp:
[mkdir] Created dir: /usr/share/java/tomcat-deps
-build-tomcat-dbcp:
[copy] Copying 62 files to /usr/share/java/tomcat-deps
[mkdir] Created dir: /usr/share/java/tomcat-deps/src/java/org/
apache/tomcat/dbcp
[move] Moving 62 files to /usr/share/java/tomcat-deps/src/java/
org/apache/tomcat/dbcp
[mkdir] Created dir: /usr/share/java/tomcat-deps/classes
[javac] Compiling 62 source files to /usr/share/java/tomcat-deps/
classes
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackKeyedObjectPool.java:238: warning: as of release
5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] Enumeration enum = stack.elements();
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackKeyedObjectPool.java:239: warning: as of release
5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] while(enum.hasMoreElements()) {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackKeyedObjectPool.java:241: warning: as of release
5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac]
_factory.destroyObject(key,enum.nextElement());
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackObjectPool.java:199: warning: as of release 5,
'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] Enumeration enum = _pool.elements();
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackObjectPool.java:200: warning: as of release 5,
'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac] while(enum.hasMoreElements()) {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/pool/impl/StackObjectPool.java:202: warning: as of release 5,
'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 5 or higher to use 'enum' as a keyword)
[javac]
_factory.destroyObject(enum.nextElement());
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/BasicDataSource.java:43:
org.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does
not override abstract method isWrapperFor(java.lang.Class) in
java.sql.Wrapper
[javac] public class BasicDataSource implements DataSource {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingStatement.java:45:
org.apache.tomcat.dbcp.dbcp.DelegatingStatement is not abstract and
does not override abstract method isPoolable() in java.sql.Statement
[javac] public class DelegatingStatement extends AbandonedTrace
implements Statement {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingStatement.java:130: isClosed() in
org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot implement
isClosed() in java.sql.Statement; attempting to assign weaker access
privileges; was public
[javac] protected boolean isClosed() {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingPreparedStatement.java:49:
org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement is not
abstract and does not override abstract method
setNClob(int,java.io.Reader) in java.sql.PreparedStatement
[javac] public class DelegatingPreparedStatement extends
DelegatingStatement
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingCallableStatement.java:52:
org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement is not
abstract and does not override abstract method
setNClob(java.lang.String,java.io.Reader) in
java.sql.CallableStatement
[javac] public class DelegatingCallableStatement extends
DelegatingPreparedStatement
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingConnection.java:50:
org.apache.tomcat.dbcp.dbcp.DelegatingConnection is not abstract and
does not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in
java.sql.Connection
[javac] public class DelegatingConnection extends AbandonedTrace
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/DelegatingResultSet.java:54:
org.apache.tomcat.dbcp.dbcp.DelegatingResultSet is not abstract and
does not override abstract method
updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
[javac] public class DelegatingResultSet extends AbandonedTrace
implements ResultSet {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/PoolablePreparedStatement.java:40:
org.apache.tomcat.dbcp.dbcp.PoolablePreparedStatement is not abstract
and does not override abstract method setNClob(int,java.io.Reader) in
java.sql.PreparedStatement
[javac] public class PoolablePreparedStatement extends
DelegatingPreparedStatement implements PreparedStatement {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/PoolingConnection.java:37:
org.apache.tomcat.dbcp.dbcp.PoolingConnection is not abstract and does
not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in
java.sql.Connection
[javac] public class PoolingConnection extends
DelegatingConnection implements Connection, KeyedPoolableObjectFactory
{
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/PoolingDataSource.java:44:
org.apache.tomcat.dbcp.dbcp.PoolingDataSource is not abstract and does
not override abstract method isWrapperFor(java.lang.Class) in
java.sql.Wrapper
[javac] public class PoolingDataSource implements DataSource {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/cpdsadapter/ConnectionImpl.java:40:
org.apache.tomcat.dbcp.dbcp.cpdsadapter.ConnectionImpl is not abstract
and does not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in
java.sql.Connection
[javac] class ConnectionImpl implements Connection {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/cpdsadapter/PooledConnectionImpl.java:42:
org.apache.tomcat.dbcp.dbcp.cpdsadapter.PooledConnectionImpl is not
abstract and does not override abstract method
removeStatementEventListener(javax.sql.StatementEventListener) in
javax.sql.PooledConnection
[javac] class PooledConnectionImpl
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/cpdsadapter/PoolablePreparedStatementStub.java:33:
isClosed() in org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot
implement isClosed() in java.sql.Statement; attempting to assign
weaker access privileges; was public
[javac] class PoolablePreparedStatementStub extends
PoolablePreparedStatement {
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/datasources/PerUserPoolDataSource.java:49:
org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource is not
abstract and does not override abstract method
isWrapperFor(java.lang.Class) in java.sql.Wrapper
[javac] public class PerUserPoolDataSource
[javac] ^
[javac] /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/
dbcp/dbcp/datasources/SharedPoolDataSource.java:43:
org.apache.tomcat.dbcp.dbcp.datasources.SharedPoolDataSource is not
abstract and does not override abstract method
isWrapperFor(java.lang.Class) in java.sql.Wrapper
[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] 15 errors
[javac] 6 warnings