Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137412 - [java-migration] Compile error when emerging dev-java/jboss-module-tomcat-4.0.2
Summary: [java-migration] Compile error when emerging dev-java/jboss-module-tomcat-4.0.2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 13:22 UTC by Uwe Klosa
Modified: 2007-05-15 04:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Klosa 2006-06-20 13:22:15 UTC
I had a look into the ebuild file first. But no hint there :)

The error message is:

compile-classes:
    [mkdir] Created dir: /var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/output/classes
    [javac] Compiling 60 source files to /var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/output/classes
    [javac] /var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/src/main/org/jboss/web/tomcat/tc5/StatusServlet.java:240: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.5 to use 'enum' as a keyword)
    [javac]          Enumeration enum = threadPools.elements();
    [javac]                      ^
    [javac] /var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/src/main/org/jboss/web/tomcat/tc5/StatusServlet.java:241: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.5 to use 'enum' as a keyword)
    [javac]          while (enum.hasMoreElements())
    [javac]                 ^
    [javac] /var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/src/main/org/jboss/web/tomcat/tc5/StatusServlet.java:243: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.5 to use 'enum' as a keyword)
    [javac]             ObjectName objectName = (ObjectName) enum.nextElement();
    [javac]                                                  ^
    [javac] /var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/src/main/org/jboss/web/tomcat/tc5/jasper/JspServletOptions.java:49: org.jboss.web.tomcat.tc5.jasper.JspServletOptions is not abstract and does not override abstract method getCache() in org.apache.jasper.Options
    [javac] public class JspServletOptions
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error
    [javac] 3 warnings

BUILD FAILED
/var/tmp/portage/jboss-module-tomcat-4.0.2/work/jboss-4.0.2-src/tomcat/build.xml:154: Compile failed; see the compiler error output for details.


GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.07"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-06-20 15:19:10 UTC
What happens if you downgrade tomcat from 5.5.17 to 5.5.9?
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2006-06-20 21:10:19 UTC
My bet is that older releases of tomcat 5.5 used servlet api 2.4.. and later (as in most recent) use servlet api 2.5. Downgrading should reveal if this is the case.
Comment 3 Uwe Klosa 2006-06-21 02:33:16 UTC
Downgrading to 5.5.9 helped.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-06-21 02:45:41 UTC
Jeez, hope they fix it upstream or something, or we need slots for every minor version :)
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-06-21 06:31:33 UTC
That would be really bad if we had to slot tomcat like that, imo. Hopefully, it can be gotten around by bumping servletapi...
Comment 6 Josh Nichols (RETIRED) gentoo-dev 2006-07-02 19:26:58 UTC
The jboss stuff in our overlays needs updating real bad. There are likely newer versions of jboss that are cool with newer tomcats...
Comment 7 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-05-15 04:56:03 UTC
Closing bug as this is no longer in tree. Ebuild has been moved to java-experimental overlay. It's not been touched in quite a while and I believe current JBoss efforts are not touching this package. Might need to be moved to junkyard.