Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88278 - "HTTP/1.1 400 No Host matches server name localhost" on Tomcat 5.0.28-r2
Summary: "HTTP/1.1 400 No Host matches server name localhost" on Tomcat 5.0.28-r2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jan Brinkmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 10:32 UTC by Piojo
Modified: 2005-04-07 22:22 UTC (History)
1 user (show)

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 Piojo 2005-04-07 10:32:56 UTC
Since I upgraded tomcat from 5.0.27 to 5.0.28-r2 I can't access to its main page.
When I enter http://localhost:8080 I get a 400 error: No Host matches server name localhost . Konqueror will wait for ages, Mozilla will show a blank page and lynx will show the actual error.
My server.xml is the default one. I even restored the default tomcat-users.xml. Without success.
And, there is this line on my /etc/hosts:
127.0.0.1       localhost


Reproducible: Always
Steps to Reproduce:
1. emerge '=www-servers/tomcat-5.0.28-r2"
2. /etc/init.d/tomcat-5 start
3. Enter localhost:8080 on your favourite browser.

Actual Results:  
Error 400:  No Host matches server name localhost 

Expected Results:  
Tomcat's welcome page on my browser. 

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, 
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r5 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(tm) XP 2800+ 
Gentoo Base System version 1.6.10 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr  4 2005, 22:56:12)] 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.5 
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-r8 
sys-devel/libtool:   1.5.14 
virtual/os-headers:  2.6.8.1-r4 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -pipe -mmmx -m3dnow -ffast-math 
-fomit-frame-pointer -msse -mfpmath=sse,387 -maccumulate-outgoing-args" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/conf.d/net /etc/conf.d/rc /etc/fstab /etc/gconf /etc/make.conf /etc/rc.conf /etc/services /etc/sudoers /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O3 -march=athlon-xp -pipe -mmmx -m3dnow -ffast-math 
-fomit-frame-pointer -msse -mfpmath=sse,387 -maccumulate-outgoing-args" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig candy distlocks sandbox sfperms userpriv 
usersandbox" 
GENTOO_MIRRORS="http://gentoo.inode.at/" 
LANG="es_ES@euro" 
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 3dnow 3dnowex X aalib alsa apm arts avi bash-completion berkdb 
bitmap-fonts cdparanoia cdr crypt cups curl dvd emacs emboss encode esd fam 
flac foomaticdb fortran gdbm gif glut gmail gmp gphoto2 gtk gtk2 imagemagick 
imlib java jpeg jpeg2k junit kde ldap libg++ libwww mad mikmod mmx mmx2 monkey 
motif moznocompose moznoirc moznomail mp3 mpeg mplayer ncurses nls 
no-old-linux nptl nvidia oggvorbis opengl pam pdflib perl png postgres python 
qt quicktime readline scanner sdl slang spell sse ssl svga symlink tcltk tcpd 
tetex tiff truetype truetype-fonts type1-fonts usb xml2 xmms xv xvid zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-07 10:35:54 UTC
you have to set the examples useflag if you merge tomcat to see the examples page from a default installation. have you done this?
Comment 2 Bart Frackiewicz 2005-04-07 14:23:22 UTC
i am wondering about the examples USE flag, i have no such flag here??

earth2 scripts # emerge tomcat -pv

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

Calculating dependencies ...done!
[ebuild   R   ] www-servers/tomcat-5.0.28  -doc -jikes 0 kB

Total size of downloads: 0 kB
Comment 3 Piojo 2005-04-07 15:16:07 UTC
Allright.
The "examples" USE flag did the trick.

However, it is a _big_ behaviour change. And it's undocumented. The flag description says "example code", not "web administration disabling". And there's no warning message about it when you emerge this ebuild. And no comments on the wiki.
Comment 4 Bart Frackiewicz 2005-04-07 15:52:01 UTC
sorry, after emerge sync the USE flag examples appears.
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-07 22:22:18 UTC
hey, no problem. if in doubt file a bug, it's much better to say if something goes wrong. thanks for reporting and for using gentoo.