Solution to DVFactoryException for wsdl2java

If you’re seeing this error when using cxf-codegen-plugin, there is an easy solution: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <dependencies> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.8.1</version> </dependency> </dependencies> … </plugin><plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <dependencies> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.8.1</version> </dependency> </dependencies> … </plugin> The key part is to add the […]

Building SalesForce client stubs using CXF and Maven

As part of a project at work we’ve been migrating from using ANT scripts and maintaining our libraries manually to using maven both for the build and for library/dependency management.  As part of that project we have also been updating our libraries which some haven’t been updated in 4 years.  We have also decided to […]