[ACCEPTED]-What happened to: org.apache.ws.commons.schema.XmlSchemaCollection.read(InputSource)?-maven

Accepted answer
Score: 54

The correct dependency is



Score: 8

Please change your dependency to 2.0.1 or 1 2.0.2

legacy 1.4.7 don't have the method defined

public XmlSchema read(Source source) {
    if (source instanceof SAXSource) {
        return read(((SAXSource)source).getInputSource());

check the 1.4.x javadoc and 2.x javadoc

Score: 1

Check the most recent version of Apache 1 XmlSchema in the repository http://mvnrepository.com/artifact/org.apache.ws.xmlschema/xmlschema-core

Score: 0

First you need to remove the cxf-bundle-xxx.jar(if present) from 5 your project class path . Then search for 4 latest xmlschema-core.jar and add in your class path.

In my 3 case I have removed the cxf-bundle-2.3.1.jar 2 from class path and added xmlschema-core-2.0.1 in class path 1 and this is working fine.

Hope it will help.

Score: 0

These steps won't necessarily work in WebLogic 4 as it has its own implementation classes. After 3 updating your dependency as shown by Anshul, you 2 will also need to tell WebLogic to prefer 1 that package in the weblogic-application.xml


More Related questions