Bug 840579 - Unwanted to log message
Summary: Unwanted to log message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: Documentation, SOA-P
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: BRMS 5.3.1 GA
Assignee: Julian Coleman
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 867350
TreeView+ depends on / blocked
 
Reported: 2012-07-16 15:45 UTC by Prakash Aradhya
Modified: 2013-03-06 04:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 867350 (view as bug list)
Environment:
Last Closed: 2013-03-06 04:21:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Prakash Aradhya 2012-07-16 15:45:24 UTC
Description of problem:
WE should remove these log messages continuously being displayed...
11:43:12,394 INFO  [TransientRepository] Session closed
11:43:12,396 INFO  [TransientRepository] Session opened
11:43:12,397 INFO  [TransientRepository] Session closed
11:43:22,400 INFO  [TransientRepository] Session opened
11:43:22,402 INFO  [TransientRepository] Session closed
11:43:22,404 INFO  [TransientRepository] Session opened
11:43:22,405 INFO  [TransientRepository] Session closed
11:43:32,409 INFO  [TransientRepository] Session opened



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Toni Rikkola 2012-08-27 10:16:08 UTC
Didn't do any changes for this.

This message is not coming from our code. It comes from JackRabbit.
It might be possible to edit the logger configurations to silence it, but I'm not sure if we are the ones that should be doing it.

Comment 2 Lukáš Petrovický 2012-08-27 10:19:05 UTC
Closing, since there's nothing to do. If the customers want to get rid of the message, they are free to modify their logging configs.

Comment 3 Prakash Aradhya 2012-08-27 14:31:20 UTC
Toni,
I can understand that this is coming from Jackrabbit.  It is an embedded component inside our product.  We can configure it to behave the way we like it.
The scrolling logs with no real value out of the box is very annonying.
Lets get this fixed in Guvnor by default to not spit this out.  Users can go to logs to change it if they need.

Comment 4 Julian Coleman 2012-08-29 14:11:06 UTC
We can configure the logging in the BRMS-P standalone to avoid this logging.  Example jboss-log4j.xml snippet:

   <!-- Limit the verbose JackRabbit TransientRepository -->
   <category name="org.apache.jackrabbit.core.TransientRepository">
      <priority value="WARN"/>
   </category>

but we could only document this step for the BRMS-P deployable.

Comment 6 lcarlon 2012-08-29 21:12:35 UTC
Hi Julian, 

To make sure I understand what needs to happen with this one:

1. Standalone will be configured by default.

2. We need to document how customers configure themselves for the deployable package. For containers that have jboss-log4j.xml (EAP 5 and SAO)they add the above snippet to the file.

How would customers deploying to EWS and Tomcat do this? The installation procedure already tells them to copy log4j*jar to the app server's lib directory, but where do they add the xml that goes into jboss-log4j.xml?

Thanks
Lee

Comment 7 lcarlon 2012-08-29 21:15:48 UTC
Ugh it's early here.

Configure this for themselves* and SOA*

Comment 8 Julian Coleman 2012-09-03 16:35:46 UTC
Resolved with revision  of:

  common/resources/log4j-conf/default/jboss-log4j.xml
  common/resources/log4j-conf/production/jboss-log4j.xml

Commit message:

  BZ-840579
  Limit logging for the verbose JackRabbit TransientRepository.

Comment 9 Julian Coleman 2012-09-03 16:38:43 UTC
It seems that we should provide a log4j configuration file if we are asking users to add log4j to their deployments.

Comment 10 lcarlon 2012-09-06 23:51:42 UTC
Hi Julian, when the configuration file has been added can you update with details and instructions?

Thanks
Lee

Comment 11 lcarlon 2012-09-11 20:20:35 UTC
Moving back to modified. Julian I still need configuration instructions, please update the bug with a comment with the instructions.

Thanks
Lee

Comment 12 lcarlon 2012-09-12 10:42:31 UTC
After email discussion with Julian, I'm moving this back to ON-QA so that QE can test the implementation, with a note that we still need to update the documentation for the deployable package.

Thanks
Lee

Comment 13 Lukáš Petrovický 2012-09-18 07:14:38 UTC
These log messages still occur when clicking inside Guvnor. The frequency is roughly the same as before (= the log is quickly full of these.)

Tested with the default Standalone config on 5.3.1 ER1.

Comment 14 Julian Coleman 2012-09-27 14:41:25 UTC
Resolved with revision 11532 of:
  brms-p/src/main/assembly/brms-standalone.zip.xml

BZ 840579
Use our log4j configuration instead of EAP's.

Comment 15 Julian Coleman 2012-09-27 15:45:57 UTC
Hi Lee,

Yes.  For EAP 5 and for SOA-P 5, the above XML snippet needs to be added to the
appropriate configuration file "jboss-as/server/<profile>/conf/jboss-log4j.xml".

EWS uses java property-style configuration, so after following "Procedure 5.7. Configuring log4j" in the EWS Installation Guide to add log4j to Tomcat, adding the following snippet to log4j.properties should work:

  log4j.logger.org.apache.jackrabbit.core.TransientRepository=WARN

However, I see that jboss-brms.war tries to uses log4j XML configuration, when
tomcat is not configured that way:

  INFO: Deploying web application directory jboss-brms.war
  log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.
  log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by 
  log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@1c86be5] whereas object of type 
  log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [WebappClassLoader
    context: /jboss-brms.war
    delegate: false
    repositories:
      /WEB-INF/classes/
  ----------> Parent Classloader:
  org.apache.catalina.loader.StandardClassLoader@1c86be5
  ].
  log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].
  log4j:WARN No appenders could be found for logger (org.drools.repository.RulesRepositoryConfigurator).
  log4j:WARN Please initialize the log4j system properly.

Comment 16 Lukáš Petrovický 2012-10-16 08:26:22 UTC
VERIFIED in ER3 that the log message no longer appears.


Note You need to log in before you can comment on or make changes to this bug.