[jboss-jira] [JBoss JIRA] (JBRULES-3572) Logging is not working on JbossAS 7.1

Cristiano Nicolai (JIRA) jira-events at lists.jboss.org
Thu Jul 19 02:00:07 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706690#comment-12706690 ] 

Cristiano Nicolai commented on JBRULES-3572:
--------------------------------------------

I think I got it figured out, from Jboss 7.1.2 a per-deployment logging configuration has been introduced. Jboss detects if there is any logging config file in the classpath, if so, it creates a separated log context. As explained on this thread: https://community.jboss.org/thread/199923

In order to make Guvnor use the main Jboss logging subsystem I had to do the following steps:
1- Remove all logging jars from WEB-INF\lib. (slf4j*, log4j-1.2.12.jar and commons-logging-1.0.4.jar)
2- Remove log4j.xml from WEB-INF\classes
3- Upgrade webdav-servlet dependency from 2.0 to 2.0.1 because the current version includes a log4j.xml
                
> Logging is not working on JbossAS 7.1
> -------------------------------------
>
>                 Key: JBRULES-3572
>                 URL: https://issues.jboss.org/browse/JBRULES-3572
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-guvnor
>    Affects Versions: 5.4.0.Final
>         Environment: JbossAS 7.1.2
> guvnor-distribution-wars-5.4.0.Final-jboss-as-7.0.war
>            Reporter: Cristiano Nicolai
>            Assignee: Mark Proctor
>              Labels: jboss-as7, jboss-logging, log4j, logging, slf4j
>
> Hi,
> I'm trying to get the Guvnor logging to be managed by Jboss Logging (logging subsystem) on AS 7.1.2.
> I tried to play around with
> jboss-deployment-structure.xml to include and exclude the logging libraries
> from Jboss and also removing the logging jar's from WEB-INF/lib without
> success. Also tried to tweak the log4j.xml on WEB-INF/classes.
> Here are some documentation that I have tried:
> https://docs.jboss.org/author/display/AS71/How+To#HowTo-HowdoIuselog4j.propertiesorlog4j.xmlinsteadofusingtheloggingsubsystemconfiguration%3F
> https://docs.jboss.org/author/display/AS71/Logging+Configuration
> Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list