7 Replies Latest reply on Mar 13, 2009 6:33 PM by mawa

    Access server.log with JBoss5

    mawa Newbie


      I want to display the content of the server.log within my own web application. With JBoss 4.2.3 I added a new context to the server.xml of the tomcat, so I could access the log file by the URL '/logfiles/server.log'.

      <Context path="/logfiles" docBase="log" debug="0" reloadable="true"/>

      With JBoss 5 this is no longer possible as I get an exception:

      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=WebServer state=Create
      org.jboss.xb.binding.JBossXBException: Failed to parse source: Context not found as a child of Host

      Is there another more smarter way to have access to the content of the logfiles?