Author Topic: 400 Bad Request  (Read 6103 times)

ben2.0

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
400 Bad Request
« on: November 08, 2009, 20:05:41 »
Hello,

I recently made a fresh install of Queuemetrics 1.5.4 on debian following the guide at ast-recipies.  I used tomcat 5.5 which uses port 8180 instead of 8080.  Now when I go to http://myserver:8180 I get nothing.  No error message but just a blank page.  If I were to guess I'd say might have wrong permissions or put it in the wrong web root.  I looked through the tomcat configs and couldn't find where it was serving from.   I did a dump and a traffic and saw:

T y.y.y.y:58168 -> x.x.x.x:8180 [AP]
  GET / HTTP/1.1..Host: x.x.x.x:8180..User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815 Iceweasel/3.0.6 (Debian-3.0.6-3)..Acc
  ept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8..Accept-Language: en-us,en;q=0.5..Accept-Encoding: gzip,deflate..Accept-Charset: ISO-8859-1,
  utf-8;q=0.7,*;q=0.7..Keep-Alive: 300..Connection: keep-alive..Cookie: PHPSESSID=3a6df6cb3ea522e58d20502a0f3321c5....                                             
##
T x.x.x.x:8180 -> y.y.y.y:58168 [AP]
  HTTP/1.1 400 Bad Request..Server: Apache-Coyote/1.1..Transfer-Encoding: chunked..Date: Sun, 08 Nov 2009 18:59:06 GMT..Connection: close....0....   


Any help would greatly be appreciated.


Ben

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: 400 Bad Request
« Reply #1 on: November 09, 2009, 09:50:38 »
This is strange - Tomcat usually ships with a welcome page installed as a root package. is it present/available? also look for the contents of its webapps directory and try those urls as well...

ben2.0

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: 400 Bad Request
« Reply #2 on: November 09, 2009, 20:35:05 »
If tomcat5.5 serves out of the webapps folder then, i'm missing the default page or something.  I didn't know which webapps directory was used so I put queuemetrics in  both of them.  If an answer isn't obvious then I might just downgrade to tomcat 5.0 and see if that solves, at least a few of my problems.  I 755ed the queuemetrics directories but as you can see they're not owned by tomcat..

# ls -l `find / | egrep 'webapps$'`
lrwxrwxrwx 1 root     root  26 2009-11-06 14:40 /usr/share/tomcat5.5/webapps -> /var/lib/tomcat5.5/webapps

/usr/local/tomcat/webapps:
total 1
drwxr-sr-x 13 root staff 688 2009-11-08 13:13 queuemetrics-1.5.4

/var/lib/tomcat5.5/webapps:
total 1
drwxr-xr-x 12 root root 648 2009-11-06 15:15 queuemetrics-1.5.4

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: 400 Bad Request
« Reply #3 on: November 09, 2009, 20:58:10 »
Just to set things up, run everything as root while you are installing.