tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Building With OpenJDK 1.7.0
Date Sun, 19 Oct 2008 21:20:32 GMT
Ole Ersoy wrote:
> Hi,
> 
> I attempted to build Tomcat 6.0.18 with OpenJDK.  I get all sorts of
> error messages (Pasted Below).  Just wondering whether OpenJDK is not
> supported, or whether there is a simple workaround to this (Besides not
> using OpenJDK :-) ).  I checked on the users list and was told that
> Tomcat only builds with JDK 1.5, but the documentation says 1.5.x and
> above...
> 
> Thoughts?

It has to be 1.5 if you want DBCP. Unfortunately Sun keeps changing the
JDBC API in non-compatible ways. You can build with a later JDK if you skip
DBCP.

Mark

> 
> Thanks,
> - Ole
> 
> BUILD ATTEMPT:
> 
> build-tomcat-dbcp:
>    [copy] Copying 63 files to /usr/share/java/tomcat6-deps/dbcp
>    [move] Moving 63 files to
> /usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp
>   [javac] Compiling 63 source files to
> /usr/share/java/tomcat6-deps/dbcp/classes
>   [javac]
> /usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:44:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:46:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingStatement.java:131:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingPreparedStatement.java:50:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingCallableStatement.java:53:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingConnection.java:51:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/DelegatingResultSet.java:55:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolablePreparedStatement.java:41:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingConnection.java:42:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/PoolingDataSource.java:45:
> 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/tomcat6-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.Object[]) in java.sql.Connection
>   [javac] class ConnectionImpl implements Connection {
>   [javac] ^
>   [javac]
> /usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/PooledConnectionImpl.java:43:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/cpdsadapter/PoolablePreparedStatementStub.java:34:
> 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/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/datasources/PerUserPoolDataSource.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]
> /usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/datasources/SharedPoolDataSource.java:45:
> 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] Note: Some input files use unchecked or unsafe operations.
>   [javac] Note: Recompile with -Xlint:unchecked for details.
>   [javac] 15 errors
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 
> 



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


Mime
View raw message