Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482068 - www-servers/tomcat-7.0.32 fails: xml-rewrite2 failed: ./webapps/ROOT/build.xml
Summary: www-servers/tomcat-7.0.32 fails: xml-rewrite2 failed: ./webapps/ROOT/build.xml
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-22 09:11 UTC by John L. Poole
Modified: 2013-08-22 13:47 UTC (History)
0 users

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


Attachments
environment (environment,156.15 KB, text/plain)
2013-08-22 09:17 UTC, John L. Poole
Details
build.log (build.log,3.04 KB, text/plain)
2013-08-22 09:17 UTC, John L. Poole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2013-08-22 09:11:57 UTC
emerge www-servers/tomcat
...
 * ERROR: www-servers/tomcat-7.0.32 failed (configure phase):
 *   xml-rewrite2 failed: ./webapps/ROOT/build.xml
 *


Reproducible: Always

Steps to Reproduce:
1.emerge www-servers/tomcat

Actual Results:  
>>> Failed to emerge www-servers/tomcat-7.0.32, Log file:

>>>  '/var/tmp/portage/www-servers/tomcat-7.0.32/temp/build.log'

 * Messages for package www-servers/tomcat-7.0.32:

 * ERROR: www-servers/tomcat-7.0.32 failed (configure phase):
 *   xml-rewrite2 failed: ./webapps/ROOT/build.xml
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 4131:  Called java-ant-2_src_configure
 *   environment, line 1845:  Called java-ant_bsfix
 *   environment, line 1867:  Called java-ant_bsfix_files './modules/jdbc-pool/build.xml' './build.xml' './res/deployer/build.xml' './webapps/ROOT/build.xml'
 *   environment, line 1959:  Called _bsfix_die 'xml-rewrite2 failed: ./webapps/ROOT/build.xml'
 *   environment, line  228:  Called die
 * The specific snippet of code:
 *           die ${1};
 *
 * If you need support, post the output of `emerge --info '=www-servers/tomcat-7.0.32'`,
 * the complete build log and the output of `emerge -pqv '=www-servers/tomcat-7.0.32'`.
 * The complete build log is located at '/var/tmp/portage/www-servers/tomcat-7.0.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/tomcat-7.0.32/temp/environment'.
 * Working directory: '/var/tmp/portage/www-servers/tomcat-7.0.32/work/apache-tomcat-7.0.32-src'
 * S: '/var/tmp/portage/www-servers/tomcat-7.0.32/work/apache-tomcat-7.0.32-src'

Expected Results:  
successful install

log files to follow.

# emerge -pqv '=www-servers/tomcat-7.0.32'

[ebuild   R   ] www-servers/tomcat-7.0.32  USE="doc -extra-webapps -source {-test}"
Comment 1 John L. Poole 2013-08-22 09:12:31 UTC
 emerge --info '=www-servers/tomcat-7.0.32'
Portage 2.1.12.2 (default/linux/x86/13.0, gcc-4.4.5, glibc-2.15-r3, 3.3.8-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-i686-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3113436 total,    497432 free
KiB Swap:     530140 total,    529792 free
Timestamp of tree: Tue, 20 Aug 2013 08:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.6-r2, 2.7.5, 3.1.4-r3, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.5, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://plug/gentoo-portage"
USE="X aac aalib acl alsa apache2 audiofile bash berkdb branding bzip2 cli cracklib crypt cups curl cxx dbus dbx djvu doc dri emacs fastcgi fbcon ffmpeg flac fortran ftp gd gdbm gif gphoto2 gps graphviz gsm hal iconv imagemagick imap ipv6 java java6 javascript jpeg jpeg2k latex libwww maildir mime modules mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl odbc ogg opengl openmp oss pam pcre pdf perl php png postgres radius readline samba sasl session setup smp spell sqlite ssl subversion svg svga tcpd thunar tiff tk truetype unicode usb vhosts vorbis wifi wmf x86 xml xpm xsl zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="brightness menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-servers/tomcat-7.0.32 was built with the following:
USE="doc -extra-webapps -source -test"
Comment 2 John L. Poole 2013-08-22 09:15:12 UTC
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-6  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-6.1.12.6"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =tomcat-7.0.32
Comment 3 John L. Poole 2013-08-22 09:17:11 UTC
Created attachment 356672 [details]
environment
Comment 4 John L. Poole 2013-08-22 09:17:36 UTC
Created attachment 356674 [details]
build.log
Comment 5 John L. Poole 2013-08-22 09:26:42 UTC
The heart of the matter is revealed in the build log:
Rewriting attributes
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py-2.6", line 30, in <module>
    from javatoolkit.xml.DomRewriter import DomRewriter
ImportError: No module named javatoolkit.xml.DomRewriter

The above was in a python 3.2 environment, the same problem occurs in a python 2.7 environment.  I am switching back to python 2.7 and now "running python-updater"
Comment 6 John L. Poole 2013-08-22 13:47:01 UTC
after the completion of the "python-updater" I successfully built TomCat.  

Conclusion: the failure was a result of python not being up to date.