0 Replies Latest reply on Apr 1, 2012 10:00 AM by David Baddeley

    JBoss AS6 Removing bootstrap log handlers

    David Baddeley Newbie

      Hi,

       

      I have been using JBoss AS 6 Final for my SEAM application happily for the past year, but just today I noticed when I start the server it fails to remove bootstrap log handlers, resulting in no console or file logging? This is strange as I have made no changes to jboss-logging.xml, I did made a few additions to the launch configuration in an attempt to tune the JVM but I have since reverted these changes and the problem still persists, I cannot think of any other changes that would have caused this??

       

      I noticed a few older discussions regarding problems removing log handlers on AS6 but I thought this was resolved in the final release?

       

      Is there anything I can look out for in the boot log? Or can anyone suggest a way to debug this?

       

      Thanks

       

      David

       

       

      UPDATE:

       

      I have found that when I remove the FILE logging handler from <root-logger> the server starts normally with just console logging

       

      I have cleared out all existing logs (except server.log) from the /log directory but that didnt help

       

      Pasted below is the file logger section of jboss-logging.xml, but dont think this is the cause as I have not made any changes to it?

       

      I wonder if it could be a permissions issue on the /log directory?

       

         <periodic-rotating-file-handler

               file-name="${jboss.server.log.dir}/server.log"

               name="FILE"

               autoflush="true"

               append="true"

               suffix=".HH">  <!-- To roll over at the top of each hour, use ".yyyy-MM-dd-HH" instead -->

       

       

            <error-manager>

               <only-once/>

            </error-manager>

       

       

            <formatter>

               <!-- To revert back to simple stack traces without JAR versions, change "%E" to "%e" below. -->

               <!-- Uncomment this to get the class name in the log as well as the category

               <pattern-formatter pattern="%d %-5p [%c] %C{1} (%t) %s%E%n"/>

               -->

               <!-- Uncomment this to log without the class name in the log -->

               <pattern-formatter pattern="%d %-5p [%c] (%t) %s%e%n"/>

            </formatter>

         </periodic-rotating-file-handler>