Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

How to view http requests log in JBoss

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a request to some application that runs on JBOss that return with error 404. So I'd like to see who throw this error in the server side.
First suspect in the chain of the server side is the Web Container.
So I am looking for the log file that prints the HTTP requests that the server gets in order to figure it does with them.
I found in the following documentation http://docs.jboss.org/jbossas/getting_started/v4/html/tour.html
The line:

You will notice that the log directory also contains HTTP request logs which are produced by the web container.



But I still didn't find in Jboss file-system any log file that prints those messages

Anyone knows where and how to find it?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of JBoss AS do you use? For JBoss 4.2.x edit the server.xml in JBOSS_HOME/server/<servername>/deploy/jbossweb.deployer to uncomment the "Access Log valve":


For AS-5, the server.xml will be in JBOSS_HOME/server/<servername>/deploy/jbossweb.sar
 
Guy Roth
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It works (on version 4.2.3)

Thank You!
 
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic