[jboss-jira] [JBoss JIRA] (WFLY-3968) access log doesn't support %{r, xxx}
Stuart Douglas (JIRA)
issues at jboss.org
Fri Oct 10 18:40:13 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010841#comment-13010841 ]
Stuart Douglas commented on WFLY-3968:
--------------------------------------
This is actually a wildfly issues, the servlet support is provided via the service loader pattern, and the wrong class loader was used to initialise the access log handler.
You should be able to work around this by adding an dependency that imports services on the io.undertow.servlet module in the io.undertow.core module.
> access log doesn't support %{r,xxx}
> -----------------------------------
>
> Key: WFLY-3968
> URL: https://issues.jboss.org/browse/WFLY-3968
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.1.0.Final, 9.0.0.Alpha1
> Environment: Wildfly 8.1.0.Final
> Reporter: Vsevolod Golovanov
> Assignee: Stuart Douglas
>
> AccessLogHandler's javadoc mentions:
> {quote}
> {{%\{r,xxx\}}} xxx is an attribute in the ServletRequest
> {quote}
> But adding the following to access log pattern
> {code}
> %{r,javax.servlet.error.status_code}
> {code}
> results in a server log message:
> {code}
> 19:55:55,432 ERROR [undertow] (MSC service thread 1-6) UT005017: Unknown variable %{r,javax.servlet.error.status_code}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list