wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes How to view http requests log in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to view http requests log in JBoss" Watch "How to view http requests log in JBoss" New topic
Author

How to view http requests log in JBoss

Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
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?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

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


[My Blog] [JavaRanch Journal]
Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
It works (on version 4.2.3)

Thank You!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to view http requests log in JBoss
 
Similar Threads
Which one is the correct answer ( HFS) please clear
Is it guaranteed that web server will initialize all web application on the server startup time
Response Contained No Data Exception
Chapter 2 (HFSJ) notes , may be useful for anyone
IBM HttpServer and websphere Appserver