CXF部署到weblogic,客户端访问报错:Cannot create a secure XMLInputFactory
2018-01-05 00:00
519 查看
这应该是一个终极解决方案,在查遍各种资料无果后可采用……
加监听器:
public class SealManageListener implements ServletContextListener {
@Override
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void contextInitialized(ServletContextEvent arg0) {
// TODO Auto-generated method stub
Properties props = System.getProperties();
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
props.setProperty("UseSunHttpHandler", "true");
}
}
web.xml的配置
<listener>
<listener-class>xxx.xxx.xxx.filter.SealManageListener</listener-class>
</listener>
转自:http://blog.csdn.net/wangchuankun1/article/details/78047957
加监听器:
public class SealManageListener implements ServletContextListener {
@Override
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void contextInitialized(ServletContextEvent arg0) {
// TODO Auto-generated method stub
Properties props = System.getProperties();
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
props.setProperty("UseSunHttpHandler", "true");
}
}
web.xml的配置
<listener>
<listener-class>xxx.xxx.xxx.filter.SealManageListener</listener-class>
</listener>
转自:http://blog.csdn.net/wangchuankun1/article/details/78047957
相关文章推荐
- weblogic10 部署 spring+cxf ,调用时报:cannot create a secure XmlInputFactory
- 在weblogic中部署CXF-webservice调用提示错误:Cannot create a secure XMLInputFactory
- weblogic下部署cxf服务端Cannot create a secure XMLInputFactory
- CXF 客户端异常 javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- Cannot create a secure XMLInputFactory cxf写的服务端 客户端调用出异常
- CXF webService 调用报错: “Cannot create a secure XMLInputFactory”
- Cannot create a secure XMLInputFactory --CXF调用出错
- CXF 2.7.1 Tomcat web service client: “Cannot create a secure XMLInputFactory”
- webservcie生成客户端代码报错----javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- CXF2.7.7 java.lang.RuntimeException: Cannot create a secure XMLInputFactory
- CXF java.lang.RuntimeException: Cannot create a secure XMLInputFactory
- cxf和spring的整合出现的问题:javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- CXF报安全性错误 Cannot create a secure XMLInputFactory
- CXF java.lang.RuntimeException: Cannot create a secure XMLInputFactory
- Web Service 客户端报 javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- 解决CXF webService 调用报错: “Cannot create a secure XMLInputFactory”
- webservcie生成客户端代码报错----javax.xml.ws.soap.SOAPFaultException: Cannot create a secure XMLInputFactory
- CXF-Spring发布 Cannot create a secure XMLInputFactory
- CXF java.lang.RuntimeException: Cannot create a secure XMLInputFactory
- Cannot create a secure XMLInputFactory