• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
6 views

Problem :

I wrote and deployed a CXF web service into a Tomcat server but getting bellow error
java.lang.runtimeexception cannot create a secure xmlinputfactory
by (6.9k points)  

1 Answer

0 votes

Solution :

I also had the same issue when I tried to upgraded CXF to 2.7.x. I resolved the issue by adding bellow dependencies in my POM.xml

<dependency>
    <groupId>org.codehaus.woodstox</groupId>
    <artifactId>stax2-api</artifactId>
    <version>4.0.0</version>
</dependency>
<dependency>
    <groupId>org.codehaus.woodstox</groupId>
    <artifactId>woodstox-core-asl</artifactId>
    <version>4.4.1</version>
</dependency>

Further Readings:

by (20.3k points)  
...