Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » jax-ws CFX - java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL
icon9.gif  jax-ws CFX - java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL [message #879170] Wed, 30 May 2012 12:46 Go to next message
pikaso3@ya.ru pikaso3@ya.ru is currently offline pikaso3@ya.ru pikaso3@ya.ru
Messages: 1
Registered: May 2012
Junior Member
I'm trying to generate WebServices CXF 2.6 from wsdl file in Eclipse(Indigo) and getting this.
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -d G:\projects\test_ws_CXF2\.cxftmp/src -classdir G:\projects\test_ws_CXF2\build\classes -p h_t_t_p://mydomain/=mydomain -impl -validate -exsh false -dns true -dex true -wsdlLocation h_t_t_p://localhost:38080/myws/GlobalService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 file:/G:/projects/test_ws_CXF2/WebContent/wsdl/GlobalService.wsdl
wsdl2java - Apache CXF 2.6.0

Exception in thread "main" java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL(Ljavax/wsdl/xml/WSDLLocator;Lorg/w3c/dom/Element;)Ljavax/wsdl/Definition;
	at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:242)
	at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:191)
	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78)
	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:69)
	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:82)
	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:59)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:170)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:139)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:285)
	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)


However, when I tried do it manually in console it worked.

g:\java_libs\apache-cxf-2.6.0\bin>wsdl2java -d G:\projects\test_ws_CFX2\src -classdir G:\projects\test_ws_CFX2\build\classes -p h_t_t_p://mydomain/=mydomain -impl -validate -exsh false -dns tru
e -dex true -wsdlLocation h_t_t_p://localhost:38080/myws/GlobalService?wsdl -verbose -sn GlobalService -defaultValues -fe jaxws -db jaxb -wv 1.1 file:/g:/projects/myws/src/config/xsd/GlobalService.wsdl
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -d G:\projects\test_ws_CFX2\.cxftmp/src -classdir G:\projects\test_ws_CFX2\build\classes -p h_t_t_p://mydomain/=mydomain -impl -validate -exsh false -dns true -dex true -wsdlLocation h_t_t_p://localhost:38080/myws/GlobalService?wsdl -verbose -sn GlobalService -defaultValues -fe jaxws -db jaxb -wv 1.1 file:/g:/projects/myws/src/config/xsd/GlobalService.wsdl 
wsdl2java - Apache CXF 2.6.0


g:\java_libs\apache-cxf-2.6.0\bin>


What is wrong in Eclipse?
Re: jax-ws CFX - java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL [message #882433 is a reply to message #879170] Wed, 06 June 2012 09:04 Go to previous message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Are there any validation errors shown in the wsdl editor or in the problems view for the wsdl file you are using?

How did you end up with underscores in the wsdl location arg h_t_t_p://localhost:38080/myws/GlobalService?wsdl ?

[Updated on: Wed, 06 June 2012 09:09]

Report message to a moderator

Previous Topic:Eclipse misses perspectives and type of projects
Next Topic:Cant get Eclipse Indigo to see Glassfish 3.1.2 open source edition
Goto Forum:
  


Current Time: Sat Aug 30 02:32:42 EDT 2014

Powered by FUDForum. Page generated in 0.01540 seconds