Right now the resin-3.0.21.ebuild has the following RDEPEND: RDEPEND=">=virtual/jdk-1.5 >=dev-java/iso-relax-20050331" If a 1.6 JDK is installed, it will try to compile resin with it, which will cause the following errors: module: [mkdir] Created dir: /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/classes [copy] Copying 58 files to /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/classes [javac] Compiling 2692 source files to /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/classes [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/amber/query/ResultSetImpl.java:63: com.caucho.amber.query.ResultSetImpl is not abstract and does not override abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet [javac] public class ResultSetImpl implements ResultSet { [javac] ^ [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/amber/jdbc/AmberConnectionImpl.java:40: com.caucho.amber.jdbc.AmberConnectionImpl is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection [javac] public class AmberConnectionImpl implements Connection { [javac] ^ [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/amber/jdbc/AmberStatementImpl.java:36: com.caucho.amber.jdbc.AmberStatementImpl is not abstract and does not override abstract method isPoolable() in java.sql.Statement [javac] public class AmberStatementImpl implements java.sql.Statement { [javac] ^ [javac] /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/modules/resin/src/com/caucho/db/jdbc/GeneratedKeysResultSet.java:56: com.caucho.db.jdbc.GeneratedKeysResultSet is not abstract and does not override abstract method updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet [javac] public class GeneratedKeysResultSet extends AbstractResultSet { [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] 41 errors BUILD FAILED /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/build.xml:206: The following error occurred while executing this line: /var/tmp/portage/resin-3.0.21/work/resin-3.0.21/build.xml:265: Compile failed; see the compiler error output for details. Total time: 2 minutes 29 seconds !!! ERROR: www-servers/resin-3.0.21 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile resin-3.0.21.ebuild, line 67: Called eant java-utils-2.eclass, line 1324: Called die !!! eant failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.0_beta95" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac" and of course, the output of emerge --info Clearly, this is caused by the newer 1.6 classes having additional abstract methods not implemented by resin. The following change to the ebuild fixes this: # diff /usr/portage/www-servers/resin/resin-3.0.21.ebuild resin-3.0.21.ebuild 16c16 < RDEPEND=">=virtual/jdk-1.5 --- > RDEPEND="=virtual/jdk-1.5*
Created attachment 98333 [details, diff] resin-3.0.21_jdk-1.5-fix.patch
Created attachment 98334 [details, diff] resin-3.0.21_jdk-1.5-fix.patch
Applied to 3.0.21
Thanks, appreciate that.