Opened 15 years ago

Closed 14 years ago

#22498 closed defect (fixed)

tomcat6 on snow leopard does not compile, appears to be Java version problem

Reported by: gary@… Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: scooper@…
Port: tomcat6

Description (last modified by jmroot (Joshua Root))

Hello,

I tried to install tomcat6 on my new mac with snow leopard, but it fails in org.apache.commons.dbcp. The errors are listed below, and it appears that the dbcp code was never built against java 6, and this is the only version of Java on the machine. I notice that macports does not include loading Java versions. So, I am not sure how you will fix this dependency, except to include some kind of a note in the install process. By the way, I compared the version 5 and 6 of java and it appears that the dbcp code will compile just fine in java 5.

Sincerely yours,

Gary Griswold

P.S. The actual error messages follow:

org.apache.commons.dbcp.PoolingConnection is not abstract and does not override abstruse method createStruct(String, Object[]) in java.sql.Connection

org.apache.commons.dbcp.PoolingDataSource is not abstract and does not override abstract method isWrapperFor(Class) in java.sql.Wrapper

org.apache.commons.dbcp.cpdsadapter.ConnectionImpl is not abstract and does not override abstract method createStruct(String,Object[])

org.apache.commons.dbcp.cpdsadapter.PooledConnectionImpl is not abstract and does not override abstract method removeStatementEventListener(StatementEventListener)  in javax.sql.PooledConnection 

org.apache.commons.bcp.DelegatingStatement cannot implement isClosed() in java.sql.Statement; attempting to assign weaker access privileges; was public

org.apache.commons.dbcp.datasources.PerUserPoolDataSource is not abstract and does not override abstract method isWrapperFor(Class)

org.apache.commons.dbcp.datasources.SharedPoolDataSource is not abstract and does not override abstract method isWrapperFor(Class)

Change History (8)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: java version 5 required removed
Owner: changed from macports-tickets@… to ricci@…
Priority: HighNormal
Summary: tomcat6 on snow leopard does not compile appears to be Java version problemtomcat6 on snow leopard does not compile, appears to be Java version problem

comment:2 Changed 15 years ago by scooper@…

Cc: scooper@… added

Cc Me!

comment:3 Changed 15 years ago by scooper@…

I'm using the fix for commons-dbcp #21037 which was recently added to macports, and the fix #21309 for dom4j. I get all the way to this step and get the exact same error message. Also running Snow Leopard.

comment:4 Changed 15 years ago by arto.bendiken@…

Cc: arto.bendiken@… added

Cc Me!

comment:5 Changed 15 years ago by arto.bendiken@…

Cc: arto.bendiken@… removed

Cc Me!

comment:6 Changed 15 years ago by arto.bendiken@…

Note that #22498 is marked as a duplicate of this, but appears to be a separate problem and should probably be reopened.

comment:7 Changed 15 years ago by arto.bendiken@…

Duh, I meant #22787.

comment:8 Changed 14 years ago by ghosthound

Resolution: fixed
Status: newclosed

tomcat 6.0.28 appears to build fine on SL, committed in r69689.

Note: See TracTickets for help on using tickets.