Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

server.log deleted on Jakarta service restart

Posted on 2011-03-08
1
Medium Priority
?
405 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 2000 total points
ID: 35074437
have you checked the startup script
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

879 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