2 Replies Latest reply on Mar 3, 2004 3:36 AM by milowe

    Logging.

    tsagovic

      Hi everyone,
      I have an application that hangs after a while, and there are no errors in the server log file, and everything is ok in the "localhost"_access log file. When it hangs, I the access log file don't have entries of the last requests (nor errors in the server log file) , as if JBoss is not receiving any calls (But this all works fine, if I want to access another application, like the jmx-console one, and the access file is updated).

      My question is how do you enable "full" logging, I need to see everything that is happening to be able to trace the problem. Is there are flag to make this happen. ( I don't want at the moment to log everything programmatically with log4j) ??

      Any help will be appreciated.
      Thanks a lot.

        • 1. Re: Logging.
          tsagovic

          Hi again,

          I have tried to log web activities by adding the following to the /conf/log4j.xml

          <category name="org.jboss.web">
          <priority value="TRACE" class="org.jboss.logging.XLevel"/>
          </category>
          


          ANd the following is logged whener I try to access my servlet
          2004-03-03 02:29:33,753 INFO [org.jboss.web.localhost.Engine] StandardContext[/Location]: Mapping contextPath='/Location' with requestURI='/Location/Get' and relativeURI='/Get'
          2004-03-03 02:29:33,753 INFO [org.jboss.web.localhost.Engine] StandardContext[/Location]: Trying exact match
          2004-03-03 02:29:33,753 INFO [org.jboss.web.localhost.Engine] StandardContext[/Location]: Mapped to servlet 'Hi' with servlet path '/Get' and path info 'null' and update=true
          2004-03-03 02:29:33,753 TRACE [org.jboss.web.tomcat.security.SecurityAssociationValve] Hi, runAs: null
          null
          

          But still after some time, the servlet simply does not work, although the same messages are logged as if everything is working and the servlet engine is getting the requests.

          Is there another way to have more log data, and see why my servlet simply hangs??
          BTW, since I added that code in my file I can no longer access any web app from other computers in the network, as if it changed some sec. stuff.
          Any help will be appreciated!
          Thanks!


          • 2. Re: Logging.
            milowe

            Try addding some looging to your servlet as well and you will find out whats wrong.