[
https://issues.apache.org/jira/browse/SLING-8328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16802831#comment-16802831
]
Radu Cotescu commented on SLING-8328:
-------------------------------------
Fixed inĀ [commit
a0df026|https://github.com/apache/sling-org-apache-sling-xss/commit/a0df026]
and [commit
022410d|https://github.com/apache/sling-org-apache-sling-xss/commit/022410d].
> The XSSFilterImpl component cannot start on Jboss 7 deployments
> ---------------------------------------------------------------
>
> Key: SLING-8328
> URL: https://issues.apache.org/jira/browse/SLING-8328
> Project: Sling
> Issue Type: Bug
> Components: XSS Protection API
> Affects Versions: XSS Protection API 2.0.8
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Priority: Major
> Fix For: XSS Protection API 2.1.6
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> When deploying the {{org.apache.sling.xss}} bundle on Jboss the following
> error is logged:
> {noformat}
> 25.03.2019 20:59:06.101 *ERROR* [FelixStartLevel]
> org.apache.sling.xss.impl.XSSFilterImpl Unable to load policy from
> /libs/cq/xssprotection/config.xml
> java.lang.ClassCastException: __redirected.__DocumentBuilderFactory cannot be
> cast to javax.xml.parsers.DocumentBuilderFactory
> at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
> [org.apache.sling.xss:2.1.4]
> at org.owasp.validator.html.Policy.getTopLevelElement(Policy.java:285)
> [org.apache.sling.xss:2.1.4]
> at org.owasp.validator.html.Policy.getTopLevelElement(Policy.java:280)
> [org.apache.sling.xss:2.1.4]
> at org.owasp.validator.html.Policy.getInstance(Policy.java:170)
> [org.apache.sling.xss:2.1.4]
> at
> org.apache.sling.xss.impl.PolicyHandler.<init>(PolicyHandler.java:45)
> [org.apache.sling.xss:2.1.4]
> at
> org.apache.sling.xss.impl.XSSFilterImpl.updatePolicy(XSSFilterImpl.java:245)
> [org.apache.sling.xss:2.1.4]
> at
> org.apache.sling.xss.impl.XSSFilterImpl.activate(XSSFilterImpl.java:219)
> [org.apache.sling.xss:2.1.4]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43){noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)