Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 901276 (JBPAPP6-1736)

Summary: Defining non-existing logging profile excludes deployment configuration
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: unspecifiedAssignee: James Perkins <jperkins>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: jperkins, pkremens
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1736
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 07:11:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
jboss-logging-test.war
none
jboss-logging.properties none

Description Petr Kremensky 2012-12-18 13:23:36 UTC
project_key: JBPAPP6

According to PRODMGT-200 precedences should be deployment configuration -> profile configuration -> default configuration, but whenever I specify logging profile in deployment, per-deploy configuration is excluded. This happened even if I define non-existing logging profile.
I prepared some simple deployment for demonstration.

* Make sure that "jboss-logging.properties" is inside archive jboss-logging-test.war#/WEB-INF/classes/ 
* Make sure that "Logging-Profile: dummy " line is presented in "MANIFEST.MF" 
* run server
* deploy jboss-logging-test.war
* go to http://localhost:8080/jboss-logging-test/home.jsf
* click on Log button

observe console:
INFO [stdout] (http-/127.0.0.1:8080-1) TEST
INFO [class jboss.logging.properties.LoggingBean] (http-/127.0.0.1:8080-1) Info
WARN [class jboss.logging.properties.LoggingBean] (http-/127.0.0.1:8080-1) Warn
ERROR [class jboss.logging.properties.LoggingBean] (http-/127.0.0.1:8080-1) Error
FATAL [class jboss.logging.properties.LoggingBean] (http-/127.0.0.1:8080-1) Fatal

log level specified in jboss-logging.properties is WARN so INFO [class jboss.logging.properties.LoggingBean] (http-/127.0.0.1:8080-1) Info message should not be there. (INFO [stdout] (http-/127.0.0.1:8080-1) TEST is just System.out.println output, that is OK)

Comment 1 Petr Kremensky 2012-12-18 13:24:17 UTC
Attachment: Added: jboss-logging-test.war
Attachment: Added: jboss-logging.properties


Comment 2 James Perkins 2012-12-18 17:31:46 UTC
Pull request sent https://github.com/jbossas/jboss-as/pull/3702

Comment 3 James Perkins 2013-01-03 18:39:58 UTC
Pull request merged.