[jboss-jira] [JBoss JIRA] Commented: (JBAS-6532) TCLFilter doesn't work in jboss 5 with war's in any documented way
Jochen (JIRA)
jira-events at lists.jboss.org
Wed Nov 11 06:29:06 EST 2009
[ https://jira.jboss.org/jira/browse/JBAS-6532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12494122#action_12494122 ]
Jochen commented on JBAS-6532:
------------------------------
The TCLFilter doesn't even work with EAR files in JBoss 5.1.0.GA (EAP 5.0.0.GA).
If you take a look on the code you see that the methods "getURLs" or "getClasspath" are called via reflection, but none of these methods are available in the new classloader (the EAR is loaded by "org.jboss.classloader.spi.base.BaseClassLoader")
An idea could be to use the method BaseClassLoader.getClassLoaderDomain().toString ......
> TCLFilter doesn't work in jboss 5 with war's in any documented way
> ------------------------------------------------------------------
>
> Key: JBAS-6532
> URL: https://jira.jboss.org/jira/browse/JBAS-6532
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Logging
> Affects Versions: JBossAS-5.0.0.GA
> Environment: jdk 6, linux
> Reporter: robert lazarski
> Assignee: jaikiran pai
> Attachments: JBAS-6532.patch, jboss-logging-log4j.jar
>
>
> Reading this doc:
> http://www.jboss.org/community/docs/DOC-12203
> Indicates a *-exp.war syntax is needed for TCLFilter war use, but there are no files of that type on my system running jboss 5. I've tried all the possible combinations I can think of, posted the problem to the forum, and the result is always that the file sizes and contents of the log files generated are exactly the same for the different war's, ie, no separated content. Here's my current config:
> <appender name="penguinLog" class="org.apache.log4j.FileAppender">
> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"></errorHandler>
> <param name="Append" value="false"/>
> <param name="File" value="${jboss.server.home.dir}/log/penguinLog.log"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern" value="%d %-5p %c{1} %m%n"/>
> </layout>
> <filter class="org.jboss.logging.filter.TCLFilter">
> <param name="AcceptOnMatch" value="true"/>
> <param name="DeployURL" value="penguin"/>
> </filter>
> </appender>
> <appender name="wtfLog" class="org.apache.log4j.FileAppender">
> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"></errorHandler>
> <param name="Append" value="false"/>
> <param name="File" value="${jboss.server.home.dir}/log/wtfLog.log"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern" value="%d %-5p %c{1} %m%n"/>
> </layout>
> <filter class="org.jboss.logging.filter.TCLFilter">
> <param name="AcceptOnMatch" value="true"/>
> <param name="DeployURL" value="wtf-exp.war"/>
> </filter>
> </appender>
> <root>
> <appender-ref ref="CONSOLE"/>
> <appender-ref ref="FILE"/>
> <appender-ref ref="penguinLog"/>
> <appender-ref ref="wtfLog"/>
> </root>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list