Hi all,
I have GFv3 server with 5 application. Each of them has own client module
with Jersey Client. I am using latest snapshot of Jersey...
My problem is about SAX...
[#|2009-12-29T18:15:09.879+0200|WARNING|glassfishv3.0|com.sun.jersey.core.impl.provider.xml.SAXParserContextProvider|_ThreadID=27;_ThreadName=Thread-1;|JAXP
feature XMLConstants.FEATURE_SECURE_PROCESSING cannot be set on a
SAXParserFactory. External general entity processing is disbaled but other
potential securty related features will not be enabled.
org.xml.sax.SAXNotRecognizedException: Feature
'
http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
1) Is there anyone who has idea about what is causing this exception?
My second attempt to solve problem in my client to prohibit its usage I
tried to use
DefaultClientConfig config = new DefaultClientConfig();
config.getProperties().put(ClientConfig.FEATURE_DISABLE_XML_SECURITY,
"true");
client = Client.create(config);
and
<param-name>com.sun.jersey.config.feature.DisableXmlSecurity</param-name>
<param-value>true</param-value>
But when I am debugging I could sometimes successfully see another Config
which has that feature enabled...
disableXmlSecurity =
fps.getFeature(FeaturesAndProperties.FEATURE_DISABLE_XML_SECURITY);
2 ) Is this behaviour expected?
3 ) How can I fix these errors?
Thanks
--
View this message in context: http://n2.nabble.com/SAXParserContextProvider-and-secure-processing-Exception-tp4228536p4228536.html
Sent from the Jersey mailing list archive at Nabble.com.