tomcat 5 has errors on Snow Leopard

Aaron Boxer boxerab at gmail.com
Fri Sep 4 13:47:09 PDT 2009


Hello,

The install chokes on commons-dbcp:



--->  Building commons-dbcp
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src"
&& ant dist -Djunit.jar=/opt/local/share/java/junit.jar
-Dcommons-collections.jar=/opt/local/share/java/commons-collections.jar
-Dcommons-pool.jar=/opt/local/share/java/commons-pool.jar " returned
error 1
Command output:     [javac]        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/PoolingConnection.java:42:
org.apache.commons.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] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java:45:
org.apache.commons.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] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/cpdsadapter/ConnectionImpl.java:41:
org.apache.commons.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] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java:43:
org.apache.commons.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] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/cpdsadapter/PoolablePreparedStatementStub.java:34:
isClosed() in org.apache.commons.dbcp.DelegatingStatement cannot
implement isClosed() in java.sql.Statement; attempting to assign
weaker access privileges; was public
    [javac] class PoolablePreparedStatementStub extends
PoolablePreparedStatement {
    [javac] ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java:52:
org.apache.commons.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] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_commons-dbcp/work/commons-dbcp-1.2.2-src/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java:45:
org.apache.commons.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


Thanks!!


More information about the macports-users mailing list