This looks like you have an older version of the XmlSchema jar on the classpath someplace. Definitely look for that and make sure you only have the xmlschema-core-2.0.1.jar version and not the older XmlSchema-1.4.7.jar.
Dan On Friday, December 09, 2011 6:51:57 AM [email protected] wrote: > I am using Apache CXF for developing Webservices . > > When i tried to generate the wsdl file for my Webservice , it started giving > me this Exception > > javax.servlet.ServletException: Servlet execution threw an exception root > cause > * > java.lang.NoSuchMethodError: > org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/dom/Docum > ent; org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:109) > > org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java: > 267) > > org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:188) > > org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148) > > org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandle > r.java:138) > > org.apache.cxf.transport.servlet.ServletController.invoke(ServletController. > java:169) > > org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServle > t.java:163) > > org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet > .java:145) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)* > > > Please tell me how to resolve the error ?? > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-c > ommons-schema-XmlSchema-getSchemaDocument-tp5061983p5061983.html Sent from > the cxf-user mailing list archive at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
