Solved

server.log deleted on Jakarta service restart

Posted on 2011-03-08
1
398 Views
Last Modified: 2012-05-11
server.log deleted on Jakarta service restart / system reboot

I have an old Old JBOSS server (4.0.2) running on a Windows 2003 server

The complaint is that the Jakarta server.log is deleted each time the server is rebooted or the service restarted.

So, I have found what I believe is the configuration file and relevant portion: log4j.xml

Perhaps a conflict below?  The append value is set to true.  Any recommended steps to get it to properly append / rollover?

 
<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
      <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
      <param name="Append" value="true"/>
      <param name="Threshold" value="INFO"/>

      <!-- Rollover at midnight each day -->
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>

      <layout class="org.apache.log4j.PatternLayout">
         <!-- The default pattern: Date Priority [Category] Message\n -->
         <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>

        <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
         <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
          -->

      </layout>
   </appender>

Open in new window

0
Comment
Question by:Marketing_Insists
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 35074437
have you checked the startup script
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
more than one jdk and one jre 1 50
factorial example 4 47
throw exception 21 58
Delphi Firemonkey: if the Sms contain special characters it won't send it 3 43
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question