[ 
https://issues.apache.org/jira/browse/CXF-8429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17296951#comment-17296951
 ] 

Andriy Redko commented on CXF-8429:
-----------------------------------

[~ffang] I was able to resolve most of the issues but there is a blocking one 
with SAAJ (SOAPDocumentImpl), coming from saaj-impl-1.5.2:
{code:java}
private Document createDocument() {
        DocumentBuilderFactory docFactory = 
DocumentBuilderFactory.newInstance("com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl",
 SAAJUtil.getSystemClassLoader());
        try {
            final DocumentBuilder documentBuilder = 
docFactory.newDocumentBuilder();
            return documentBuilder.newDocument();
        } catch (ParserConfigurationException e) {
            throw new RuntimeException("Error creating xml document", e);
        }
    } {code}
It does reference 
`com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl` which 
later causes cast issues. I will keep it as the dedicated profile for now 
(xerces) but we could not make it the default one yet. Any objections?

> Illegal reflective access in XercesSchemaValidationUtils
> --------------------------------------------------------
>
>                 Key: CXF-8429
>                 URL: https://issues.apache.org/jira/browse/CXF-8429
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.2, 3.4.2
>            Reporter: Johannes Renoth
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 3.5.0, 3.4.3, 3.3.10
>
>
> We are getting the following warning in our application:
> {code:java}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by 
> org.apache.cxf.wsdl.service.factory.XercesSchemaValidationUtils 
> (file:/xxx/WEB-INF/lib/cxf-rt-wsdl-3.3.2.jar) to method 
> com.sun.org.apache.xerces.internal.impl.xs.XSImplementationImpl.createXSLoader(com.sun.org.apache.xerces.internal.xs.StringList)
> WARNING: Please consider reporting this to the maintainers of 
> org.apache.cxf.wsdl.service.factory.XercesSchemaValidationUtils
> WARNING: Use --illegal-access=warn to enable warnings of further illegal 
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to