Skip to main content

java.lang.NoSuchMethodError: XML11Configuration.getFeature0

1 reply [Last post]
rustamabd
Offline
Joined: 2008-09-29
Points: 0

It seems like there is a compile error in the JAXP RI versions 1.4.1 through 1.4.3, I'm getting the following error:

java.lang.NoSuchMethodError: com.sun.org.apache.xerces.internal.parsers.XML11Configuration.getFeature0(Ljava/lang/String;)Z
at com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.getFeature(XIncludeAwareParserConfiguration.java:314)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.reset(AbstractSAXParser.java:2098)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:147)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:579)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:661)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:300)
at com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube.createDOM(AbstractSchemaValidationTube.java:90)
at com.sun.xml.ws.server.ServerSchemaValidationTube.getSchemaSources(ServerSchemaValidationTube.java:103)
at com.sun.xml.ws.server.ServerSchemaValidationTube.(ServerSchemaValidationTube.java:58)
at com.sun.xml.ws.api.pipe.ServerTubeAssemblerContext.createValidationTube(ServerTubeAssemblerContext.java:214)
at com.sun.xml.ws.assembler.TubelineAssemblyController$ValidationTubeAppender.appendTube(TubelineAssemblyController.java:305)
at com.sun.xml.ws.assembler.CustomTubelineAssemblerFactoryImpl$WsitTubelineAssembler.createServer(CustomTubelineAssemblerFactoryImpl.java:196)
at com.sun.xml.ws.server.WSEndpointImpl.(WSEndpointImpl.java:152)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:218)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:486)
at com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:224)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:154)
at org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter.publishEndpoint(SimpleJaxWsServiceExporter.java:67)
at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.publishEndpoints(AbstractJaxWsServiceExporter.java:125)
at org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter.afterPropertiesSet(AbstractJaxWsServiceExporter.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 39 more

With Xerces 2.9.1 this does not occur...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rustamabd
Offline
Joined: 2008-09-29
Points: 0

A quick search revealed that this is a compatibility issue in Java 5.

However, we're using WAS 6.1 which runs on Java 5. How can we use JAXP 1.4 on it, which is required by JAX-WS ?