Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
György Rácz
jboss-log4j.xml category question
February 27, 2011 6:50 AM
Answer

György Rácz

Rank: Junior Member

Posts: 62

Join Date: July 17, 2010

Recent Posts

Hello All!

Sorry for my bad english!

I am writing simple JSP portlet application, i want to log the details. So i am using the log4j which is in jboss/server/default/conf folder.
The content of jboss-log4j.xml is as follows:
  1
  2<?xml version="1.0" encoding="UTF-8"?>
  3<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  4
  5<!-- ===================================================================== -->
  6<!--                                                                       -->
  7<!--  Log4j Configuration                                                  -->
  8<!--                                                                       -->
  9<!-- ===================================================================== -->
 10
 11<!-- $Id: jboss-log4j.xml 75507 2008-07-08 20:15:07Z stan.silvert@jboss.com $ -->
 12
 13<!--
 14   | For more configuration infromation and examples see the Jakarta Log4j
 15   | owebsite: http://jakarta.apache.org/log4j
 16 -->
 17
 18<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true" threshold="info">
 19
 20   <!-- ================================= -->
 21   <!-- Preserve messages in a local file -->
 22   <!-- ================================= -->
 23
 24   <!-- A time/date based rolling appender -->
 25   <appender name="SERVER_LOG" class="org.jboss.logging.appender.DailyRollingFileAppender">
 26      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
 27      <param name="File" value="${jboss.server.log.dir}/server.log"/>
 28      <param name="Append" value="false"/>
 29
 30      <!-- Rollover at midnight each day -->
 31      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
 32
 33      <!-- Rollover at the top of each hour
 34      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
 35      -->
 36
 37      <layout class="org.apache.log4j.PatternLayout">
 38         <!-- The default pattern: Date Priority [Category] Message\n -->
 39         <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
 40
 41         <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
 42         <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
 43          -->
 44      </layout>
 45   </appender>
 46
 47   <!-- A size based file rolling appender -->
 48   <appender name="LIFERAY" class="org.jboss.logging.appender.DailyRollingFileAppender">
 49     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
 50     <param name="File" value="${jboss.server.log.dir}/liferay.log"/>
 51     <param name="Append" value="false"/>
 52
 53     <!-- Rollover at midnight each day -->
 54     <param name="DatePattern" value="'.'yyyy-MM-dd"/>
 55    
 56     <layout class="org.apache.log4j.PatternLayout">
 57         <!-- The default pattern: Date Priority [Category] Message\n -->
 58         <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
 59
 60         <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
 61         <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
 62          -->
 63     </layout>       
 64   </appender>
 65
 66   <!-- ============================== -->
 67   <!-- Append messages to the console -->
 68   <!-- ============================== -->
 69
 70   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
 71      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
 72      <param name="Target" value="System.out"/>
 73      <param name="Threshold" value="INFO"/>
 74
 75      <layout class="org.apache.log4j.PatternLayout">
 76         <!-- The default pattern: Date Priority [Category] Message\n -->
 77         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
 78      </layout>
 79   </appender>
 80 
 81   <!-- ====================== -->
 82   <!-- More Appender examples -->
 83   <!-- ====================== -->
 84
 85   <!-- Buffer events and log them asynchronously
 86   <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
 87     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
 88     <appender-ref ref="FILE"/>
 89     <appender-ref ref="CONSOLE"/>
 90     <appender-ref ref="SMTP"/>
 91   </appender>
 92   -->
 93
 94   <!-- EMail events to an administrator
 95   <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
 96     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
 97     <param name="Threshold" value="ERROR"/>
 98     <param name="To" value="admin@myhost.domain.com"/>
 99     <param name="From" value="nobody@myhost.domain.com"/>
100     <param name="Subject" value="JBoss Sever Errors"/>
101     <param name="SMTPHost" value="localhost"/>
102     <param name="BufferSize" value="10"/>
103     <layout class="org.apache.log4j.PatternLayout">
104       <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
105     </layout>
106   </appender>
107   -->
108
109   <!-- Syslog events
110   <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
111     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
112     <param name="Facility" value="LOCAL7"/>
113     <param name="FacilityPrinting" value="true"/>
114     <param name="SyslogHost" value="localhost"/>
115     <layout class="org.apache.log4j.PatternLayout">
116       <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
117     </layout>
118   </appender>
119   -->
120
121   <!-- Log events to JMS (requires a topic to be created)
122   <appender name="JMS" class="org.apache.log4j.net.JMSAppender">
123     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
124     <param name="Threshold" value="ERROR"/>
125     <param name="TopicConnectionFactoryBindingName" value="java:/ConnectionFactory"/>
126     <param name="TopicBindingName" value="topic/MyErrorsTopic"/>
127   </appender>
128   -->
129
130   <!-- Log events through SNMP
131   <appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender">
132     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
133     <param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
134     <param name="ManagementHost" value="127.0.0.1"/>
135     <param name="ManagementHostTrapListenPort" value="162"/>
136     <param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
137     <param name="LocalIPAddress" value="127.0.0.1"/>
138     <param name="LocalTrapSendPort" value="161"/>
139     <param name="GenericTrapType" value="6"/>
140     <param name="SpecificTrapType" value="12345678"/>
141     <param name="CommunityString" value="public"/>
142     <param name="ForwardStackTraceWithTrap" value="true"/>
143     <param name="Threshold" value="DEBUG"/>
144     <param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/>
145     <layout class="org.apache.log4j.PatternLayout">
146            <param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/>
147     </layout>
148   </appender>
149   -->
150
151   <!--  Emit events as JMX notifications
152   <appender name="JMX" class="org.jboss.monitor.services.JMXNotificationAppender">
153      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
154      
155      <param name="Threshold" value="WARN"/>
156      <param name="ObjectName" value="jboss.system:service=Logging,type=JMXNotificationAppender"/>
157      
158      <layout class="org.apache.log4j.PatternLayout">
159         <param name="ConversionPattern" value="%d %-5p [%c] %m"/>
160      </layout>
161   </appender>
162   -->
163   
164   <!-- ================ -->
165   <!-- Limit categories -->
166   <!-- ================ -->
167
168   <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
169   <category name="org.apache">
170      <priority value="INFO"/>
171   </category>
172
173   <!-- Limit the jacorb category to WARN as its INFO is verbose -->
174   <category name="jacorb">
175      <priority value="WARN"/>
176   </category>
177   
178   <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
179   <category name="org.jgroups">
180      <priority value="WARN"/>
181   </category>
182   
183   <!-- Limit the org.quartz category to INFO as its DEBUG is verbose -->
184   <category name="org.quartz">
185      <priority value="INFO"/>
186   </category>
187
188   <!-- Limit JSF logging to DEBUG.  FINER and FINEST will not be logged -->
189   <category name="javax.enterprise.resource.webcontainer.jsf">
190      <priority value="WARN" />
191   </category>
192               
193   <!-- Limit JBoss categories -->
194   <category name="org.jboss">
195      <priority value="INFO"/>
196   </category>
197   
198   <!-- Limit the JSR77 categories -->
199   <category name="org.jboss.management">
200      <priority value="INFO"/>
201   </category>
202
203   <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
204   <category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
205     <priority value="TRACE"/>
206   </category>
207   -->
208   
209   <category name="org.jboss.resource.connectionmanager.IdleRemover">
210         <priority value="WARN"/>
211   </category>   
212   
213   <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
214   <category name="org.jboss.serial">
215      <priority value="INFO"/>
216   </category>
217   
218   <category name="com.arjuna.ats">
219         <priority value="WARN"/>
220   </category>   
221   
222   <!-- Decrease the priority threshold for the org.jboss.varia category
223   <category name="org.jboss.varia">
224     <priority value="DEBUG"/>
225   </category>
226   -->
227
228   <!-- Enable JBossWS message tracing
229   <category name="org.jboss.ws.core.MessageTrace">
230    <priority value="TRACE"/>
231   </category>
232   -->
233
234   <!--
235      | An example of enabling the custom TRACE level priority that is used
236      | by the JBoss internals to diagnose low level details. This example
237      | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
238      | subpackages. This will produce A LOT of logging output.
239      |
240      | Note: since jboss AS 4.2.x, the trace level is supported natively by
241      | log4j, so although the custom org.jboss.logging.XLevel priority will
242      | still work, there is no need to use it. The two examples that follow
243      | will both enable trace logging.
244   <category name="org.jboss.system">
245     <priority value="TRACE" class="org.jboss.logging.XLevel"/>
246   </category>
247   <category name="org.jboss.ejb.plugins">
248     <priority value="TRACE"/>
249   </category>
250   -->
251      
252   <!--
253       | Logs these events to SNMP:
254           - server starts/stops
255           - cluster evolution (node death/startup)
256           - When an EJB archive is deployed (and associated verified messages)
257           - When an EAR archive is deployed
258          
259   <category name="org.jboss.system.server.Server">
260     <priority value="INFO" />
261     <appender-ref ref="TRAP_LOG"/>
262   </category>
263 
264   <category name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle">
265     <priority value="INFO" />
266     <appender-ref ref="TRAP_LOG"/>
267   </category>
268
269   <category name="org.jboss.deployment.MainDeployer">
270     <priority value="ERROR" />
271     <appender-ref ref="TRAP_LOG"/>
272   </category>
273   
274   <category name="org.jboss.ejb.EJBDeployer">
275     <priority value="INFO" />
276     <appender-ref ref="TRAP_LOG"/>
277   </category>
278   
279   <category name="org.jboss.deployment.EARDeployer">
280     <priority value="INFO" />
281     <appender-ref ref="TRAP_LOG"/>
282   </category>
283   -->
284
285   <!-- Clustering logging -->
286   <!-- Uncomment the following to redirect the org.jgroups and
287      org.jboss.ha categories to a cluster.log file.
288
289   <appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender">
290     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
291     <param name="File" value="${jboss.server.log.dir}/cluster.log"/>
292     <param name="Append" value="false"/>
293     <param name="MaxFileSize" value="500KB"/>
294     <param name="MaxBackupIndex" value="1"/>
295
296     <layout class="org.apache.log4j.PatternLayout">
297       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
298     </layout>
299   </appender>
300   <category name="org.jgroups">
301     <priority value="DEBUG" />
302     <appender-ref ref="CLUSTER"/>
303   </category>
304   <category name="org.jboss.ha">
305     <priority value="DEBUG" />
306     <appender-ref ref="CLUSTER"/>
307   </category>
308   -->
309
310   <category name="com.liferay">
311     <priority value="INFO" />
312     <appender-ref ref="LIFERAY"/>
313   </category>
314
315   <category name="org.jboss.web.tomcat.service.TomcatDeployer">
316     <priority value="INFO" />
317     <appender-ref ref="LIFERAY"/>
318   </category>   
319   
320   <category name="com.geosoft">
321     <priority value="WARN" />
322     <appender-ref ref="LIFERAY"/>
323   </category>
324   
325   <!-- ======================= -->
326   <!-- Setup the Root category -->
327   <!-- ======================= -->
328
329   <root>
330      <appender-ref ref="CONSOLE"/>
331      <appender-ref ref="SERVER_LOG"/>
332      <appender-ref ref="LIFERAY"/>
333   </root>
334
335</log4j:configuration>

I have inserted a appender and a category (com.geosoft) in the jboss-log4j.xml, but after server started still my data are logged to the console
not in liferay.log file.
 1
 2liferay.log:
 32011-02-27 15:23:13,937 INFO  [org.jboss.ejb3.EJB3Deployer] Starting java:comp multiplexer
 42011-02-27 15:23:15,801 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig] JBoss Web Services - Native
 52011-02-27 15:23:15,801 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
 62011-02-27 15:23:16,499 INFO  [org.apache.catalina.startup.Embedded] Catalina naming disabled
 72011-02-27 15:23:16,622 INFO  [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:\Program Files (x86)\Java\jdk1.6.0_22\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Java\jdk1.6.0_22\bin;d:\apache-ant-1.7.1\bin;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;d:\Axis
 82011-02-27 15:23:16,677 INFO  [org.apache.coyote.http11.Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
 92011-02-27 15:23:16,679 INFO  [org.apache.coyote.ajp.AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
102011-02-27 15:23:16,679 INFO  [org.apache.catalina.startup.Catalina] Initialization processed in 180 ms
112011-02-27 15:23:16,680 INFO  [org.apache.catalina.core.StandardService] Starting service jboss.web
122011-02-27 15:23:16,682 INFO  [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
132011-02-27 15:23:16,724 INFO  [org.apache.catalina.startup.Catalina] Server startup in 44 ms
142011-02-27 15:23:16,807 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
152011-02-27 15:23:16,807 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
162011-02-27 15:23:17,893 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
172011-02-27 15:23:17,893 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
182011-02-27 15:23:18,192 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
192011-02-27 15:23:18,192 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
202011-02-27 15:23:18,443 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
212011-02-27 15:23:18,443 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
222011-02-27 15:23:19,111 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
232011-02-27 15:23:19,111 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
242011-02-27 15:23:19,545 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
252011-02-27 15:23:19,577 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
262011-02-27 15:23:19,718 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
272011-02-27 15:23:19,761 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
282011-02-27 15:23:19,872 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
292011-02-27 15:23:19,904 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
302011-02-27 15:23:19,943 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
312011-02-27 15:23:19,953 INFO  [org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter] start quartz!!!
322011-02-27 15:23:20,012 INFO  [org.quartz.simpl.SimpleThreadPool] Job execution threads will use class loader of thread: main
332011-02-27 15:23:20,034 INFO  [org.quartz.core.QuartzScheduler] Quartz Scheduler v.1.5.2 created.
342011-02-27 15:23:20,037 INFO  [org.quartz.simpl.RAMJobStore] RAMJobStore initialized.
352011-02-27 15:23:20,037 INFO  [org.quartz.impl.StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
362011-02-27 15:23:20,038 INFO  [org.quartz.impl.StdSchedulerFactory] Quartz scheduler version: 1.5.2
372011-02-27 15:23:20,039 INFO  [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
382011-02-27 15:23:20,598 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
392011-02-27 15:23:20,908 INFO  [org.jboss.mq.il.uil2.UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
402011-02-27 15:23:20,951 INFO  [org.jboss.mq.server.jmx.Queue.DLQ] Bound to JNDI name: queue/DLQ
412011-02-27 15:23:21,044 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
422011-02-27 15:23:21,089 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/LiferayPool' to JNDI name 'java:jdbc/LiferayPool'
432011-02-27 15:23:21,223 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/ROOT.war/
442011-02-27 15:23:21,223 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/ROOT.war/
45
46server.log:
472011-02-27 15:23:13,937 INFO  [org.jboss.ejb3.EJB3Deployer] Starting java:comp multiplexer
482011-02-27 15:23:15,801 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig] JBoss Web Services - Native
492011-02-27 15:23:15,801 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
502011-02-27 15:23:16,499 INFO  [org.apache.catalina.startup.Embedded] Catalina naming disabled
512011-02-27 15:23:16,622 INFO  [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:\Program Files (x86)\Java\jdk1.6.0_22\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Java\jdk1.6.0_22\bin;d:\apache-ant-1.7.1\bin;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;d:\Axis
522011-02-27 15:23:16,677 INFO  [org.apache.coyote.http11.Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
532011-02-27 15:23:16,679 INFO  [org.apache.coyote.ajp.AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
542011-02-27 15:23:16,679 INFO  [org.apache.catalina.startup.Catalina] Initialization processed in 180 ms
552011-02-27 15:23:16,680 INFO  [org.apache.catalina.core.StandardService] Starting service jboss.web
562011-02-27 15:23:16,682 INFO  [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
572011-02-27 15:23:16,724 INFO  [org.apache.catalina.startup.Catalina] Server startup in 44 ms
582011-02-27 15:23:16,807 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
592011-02-27 15:23:17,893 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
602011-02-27 15:23:18,192 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
612011-02-27 15:23:18,443 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
622011-02-27 15:23:19,111 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
632011-02-27 15:23:19,545 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
642011-02-27 15:23:19,577 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
652011-02-27 15:23:19,718 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
662011-02-27 15:23:19,761 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
672011-02-27 15:23:19,872 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
682011-02-27 15:23:19,904 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
692011-02-27 15:23:19,943 INFO  [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
702011-02-27 15:23:19,953 INFO  [org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter] start quartz!!!
712011-02-27 15:23:20,012 INFO  [org.quartz.simpl.SimpleThreadPool] Job execution threads will use class loader of thread: main
722011-02-27 15:23:20,034 INFO  [org.quartz.core.QuartzScheduler] Quartz Scheduler v.1.5.2 created.
732011-02-27 15:23:20,037 INFO  [org.quartz.simpl.RAMJobStore] RAMJobStore initialized.
742011-02-27 15:23:20,037 INFO  [org.quartz.impl.StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
752011-02-27 15:23:20,038 INFO  [org.quartz.impl.StdSchedulerFactory] Quartz scheduler version: 1.5.2
762011-02-27 15:23:20,039 INFO  [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
772011-02-27 15:23:20,598 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
782011-02-27 15:23:20,908 INFO  [org.jboss.mq.il.uil2.UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
792011-02-27 15:23:20,951 INFO  [org.jboss.mq.server.jmx.Queue.DLQ] Bound to JNDI name: queue/DLQ
802011-02-27 15:23:21,044 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
812011-02-27 15:23:21,089 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/LiferayPool' to JNDI name 'java:jdbc/LiferayPool'
822011-02-27 15:23:21,223 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/ROOT.war/

After i modified jboss-log4j.xml (insert some enter), i am finding that it is hanging on the line below (via the console):
14:46:49,308 INFO [Log4jService$URLWatchTimerTask:599] Configuring from URL: resource:jboss-log4j.xml

Then liferay.log and server.log file is cleared and WORKS FINE (contains this):
 1
 2server.log:
 32011-02-27 15:26:17,503 WARN  [com.geosoft.log4j.portlet.JSPPortlet] warn: create cookie
 42011-02-27 15:26:17,509 WARN  [com.geosoft.log4j.portlet.JSPPortlet] warn: max age: 31536000
 52011-02-27 15:26:17,509 WARN  [com.geosoft.log4j.portlet.JSPPortlet] warn: finish cookie
 6
 7liferay.log:
 82011-02-27 15:26:17,503 WARN  [com.geosoft.log4j.portlet.JSPPortlet] warn: create cookie
 92011-02-27 15:26:17,509 WARN  [com.geosoft.log4j.portlet.JSPPortlet] warn: max age: 31536000
102011-02-27 15:26:17,509 WARN  [com.geosoft.log4j.portlet.JSPPortlet] warn: finish cookie

I think that, when start jboss as, doesn't load jboss-log4j.xml fully...

Please help me to solve this....

Thanks for you help
Geo
Eric Min
RE: jboss-log4j.xml category question
October 2, 2012 10:25 PM
Answer

Eric Min

LIFERAY STAFF

Rank: Junior Member

Posts: 31

Join Date: October 5, 2009

Recent Posts

You could refer http://www.liferay.com/community/wiki/-/wiki/Main/How%20to%20configure%20the%20logs%20in%20Liferay start from Note for JBoss users