Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100387 - struts fails to compile (Java problem)
Summary: struts fails to compile (Java problem)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-26 11:35 UTC by Marcos
Modified: 2005-12-15 02:19 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 Marcos 2005-07-26 11:35:29 UTC
Compiling tomcat 5.0.28 and as a dependency struts-1.1-r3, it fails to compile
with an error about a non-overrided method on a non-abstract class.

Reproducible: Always
Steps to Reproduce:
1. emerge =dev-java/struts-1.1.3
2.
3.

Actual Results:  
compile.library:
    [javac] Compiling 276 source files to
/var/tmp/portage/struts-1.1-r3/work/jakarta-struts-1.1-src/target/library/classes
    [javac]
/var/tmp/portage/struts-1.1-r3/work/jakarta-struts-1.1-src/src/share/org/apache/struts/upload/MultipartRequestWrapper.java:95:
org.apache.struts.upload.MultipartRequestWrapper is not abstract and does not
override abstract method getLocalName() in javax.servlet.ServletRequest
    [javac] public class MultipartRequestWrapper implements HttpServletRequest {
    [javac]        ^


Expected Results:  
Clean compile ;)

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-rc4-nitro1 i686)
=================================================================
System uname: 2.6.11-rc4-nitro1 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.7.1
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 17 2005, 20:18:43)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ca_ES@euro"
LC_ALL="ca_ES@euro"
LINGUAS="ca"
MAKEOPTS="-j2"
PKGDIR="/mnt/backup/pkg"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="x86 3dnow X aalib acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups curl
directfb dvd dvdr eds emboss encode esd fam fbcon flac foomaticdb fortran gd
gdbm gif gnome gpm gstreamer gtk gtk2 i8x0 imagemagick imap imlib innodb ipv6
java javascript jpeg jpg junit libg++ libwww mad maildir mikmod mmx motif
mozilla mp3 mpeg mysql ncurses nls nptl odbc ogg oggvorbis opengl oss pam pdflib
perl png posix python quicktime readline samba sasl sdl slang spell sse ssl svga
tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis
xine xml xml2 xmms xv zlib video_cards_i810 linguas_ca userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2005-07-26 13:09:33 UTC
are you using 1.5 ?
Comment 2 Marcos 2005-07-26 13:26:55 UTC
(In reply to comment #1)
> are you using 1.5 ?

$ java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 10:09:25 UTC
If you still have the problem could you provide the compile emerge output

and see if emerge -uD struts wants too update any of the java deps of it, and 
update those

Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 10:09:55 UTC
err i mean complete, not compile
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2005-12-14 21:33:27 UTC
Waiting for input from user.
Comment 6 Marcos 2005-12-15 02:19:48 UTC
(In reply to comment #5)
> Waiting for input from user.

Now I'm unable to install struts-1.1.3 because it's not on my tree:
# emerge =dev-java/struts-1.1.3 -pv

These are the packages that I would merge, in order:

Calculating dependencies   
emerge: there are no ebuilds to satisfy "=dev-java/struts-1.1.3".

I have installed struts-1.1.3-r1:
# eix struts
* dev-java/struts 
     Available versions:  1.1-r3[1]  1.1-r4 1.2.2-r2 1.2.4-r2 1.2.8
     Installed:           1.1-r3
     Homepage:            http://jakarta.apache.org/struts/index.html
     Description:         A powerful Model View Controller Framework for
JSP/Servlets

Sorry for that, but I don't know how installed it. Apologizes