tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Cox" <shakahsha...@gmail.com>
Subject Re: compile failed: Tomcat-6.0.16 with jdk-1.6.0_06 - bcp/BasicDataSource.java:44 error
Date Tue, 29 Jul 2008 00:07:36 GMT
 Alas, poor Yorick! No.

(sorry, couldn't resist).

On Mon, Jul 28, 2008 at 7:56 PM, Poor Yorick <
org.apache.tomcat.users@pooryorick.com> wrote:

> compiling tomcat-6.0.16 on LInux kernel 2.4.21-50.ELhugemem with
> jdk-1.6.0_06,
> I run into the following error:
>
>
> build-tomcat-dbcp:
>     [copy] Copying 63 files to /path/to/apa
> che-tomcat-6.0.16/tomcat6-deps/dbcp
>     [move] Moving 63 files to /path/to/apac
> he-tomcat-6.0.16/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp
>    [javac] Compiling 63 source files to
> /grid/gro/vol/gbl_statcomp_prod/x86-32-
> linux/apache-tomcat-6.0.16/tomcat6-deps/dbcp/classes
>    [javac] /path/to/apache-tomcat-6.0.16/to
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:44:
> or
> g.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] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:46
> : org.apache.tomcat.dbcp.dbcp.DelegatingStatement is not abstract and does
> not o
> verride abstract method isPoolable() in java.sql.Statement
>    [javac] public class DelegatingStatement extends AbandonedTrace
> implements S
> tatement {
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:13
> 1: isClosed() in org.apache.tomcat.dbcp.dbcp.DelegatingStatement cannot
> implemen
> t isClosed() in java.sql.Statement; attempting to assign weaker access
> privilege
> s; was public
>    [javac]     protected boolean isClosed() {
>    [javac]                       ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement
> .java:50: org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement is not
> abstrac
> t and does not override abstract method setNClob(int,java.io.Reader) in
> java.sql
> .PreparedStatement
>    [javac] public class DelegatingPreparedStatement extends
> DelegatingStatement
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement
> .java:53: org.apache.tomcat.dbcp.dbcp.DelegatingCallableStatement is not
> abstrac
> t and does not override abstract method
> setNClob(java.lang.String,java.io.Reader
> ) in java.sql.CallableStatement
>    [javac] public class DelegatingCallableStatement extends
> DelegatingPreparedS
> tatement
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingConnection.java:5
> 1: org.apache.tomcat.dbcp.dbcp.DelegatingConnection is not abstract and
> does not
>  override abstract method createStruct(java.lang.String,java.lang.Object[])
> in j
> ava.sql.Connection
>    [javac] public class DelegatingConnection extends AbandonedTrace
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.java:55
> : org.apache.tomcat.dbcp.dbcp.DelegatingResultSet is not abstract and does
> not o
> verride abstract method updateNClob(java.lang.String,java.io.Reader) in
> java.sql
> .ResultSet
>    [javac] public class DelegatingResultSet extends AbandonedTrace
> implements R
> esultSet {
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.j
> ava:41: org.apache.tomcat.dbcp.dbcp.PoolablePreparedStatement is not
> abstract an
> d does not override abstract method setNClob(int,java.io.Reader) in
> java.sql.Pre
> paredStatement
>    [javac] public class PoolablePreparedStatement extends
> DelegatingPreparedSta
> tement implements PreparedStatement {
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingConnection.java:42:
> org.apache.tomcat.dbcp.dbcp.PoolingConnection is not abstract and does not
> overr
> ide abstract method createStruct(java.lang.String,java.lang.Object[]) in
> java.sq
> l.Connection
>    [javac] public class PoolingConnection extends DelegatingConnection
> implemen
> ts Connection, KeyedPoolableObjectFactory {
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDataSource.java:45:
> org.apache.tomcat.dbcp.dbcp.PoolingDataSource is not abstract and does not
> overr
> ide abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper
>    [javac] public class PoolingDataSource implements DataSource {
>    [javac]        ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/ConnectionImpl.
> java:41: org.apache.tomcat.dbcp.dbcp.cpdsadapter.ConnectionImpl is not
> abstract
> and does not override abstract method
> createStruct(java.lang.String,java.lang.Ob
> ject[]) in java.sql.Connection
>    [javac] class ConnectionImpl implements Connection {
>    [javac] ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/PooledConnectio
> nImpl.java:43: org.apache.tomcat.dbcp.dbcp.cpdsadapter.PooledConnectionImpl
> is n
> ot abstract and does not override abstract method
> removeStatementEventListener(j
> avax.sql.StatementEventListener) in javax.sql.PooledConnection
>    [javac] class PooledConnectionImpl
>    [javac] ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/PoolablePrepare
> dStatementStub.java:34: isClosed() in
> org.apache.tomcat.dbcp.dbcp.DelegatingStat
> ement cannot implement isClosed() in java.sql.Statement; attempting to
> assign we
> aker access privileges; was public
>    [javac] class PoolablePreparedStatementStub extends
> PoolablePreparedStatemen
> t {
>    [javac] ^
>    [javac] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/datasources/PerUserPoolData
> Source.java:52:
> 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] /path/to/apache-tomcat-6.0.16/to
>
> mcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/datasources/SharedPoolDataS
> ource.java:45: org.apache.tomcat.dbcp.dbcp.datasources.SharedPoolDataSource
> is n
> ot 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] Note: Some input files use unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 15 errors
>
> BUILD FAILED
> /path/to/src/apache-tomcat-6.0.16/apache-tom
> cat-6.0.16-src/build.xml:690: The following error occurred while executing
> this
> line:
> /path/to/src/apache-tomcat-6.0.16/apache-tom
> cat-6.0.16-src/build.xml:754: Compile failed; see the compiler error output
> for
> details.
>
> Total time: 14 seconds
> Command Error:  ant download
>
>
>
>
>
> Any ideas how to work around this?  I found some mention on the net that
> Tomcat-6 won't build with jdk-6, but they were old, and Tomcat
> documentation
> currently doesn't mention anything like this.
>
> --
> Yorick
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message