This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am facing the following error when trying to generate stubs using WSDL4Java. I am using Axis 1.4 and the IDE is WSAD 5.1. I have also included the QName class in the class path. Can anyone please help me with this?
java.lang.NoSuchMethodError: javax.xml.namespace.QName: method getPrefix()Ljava/lang/String; not found at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithDifferentLocal(BackslashUtil.java:62) at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithBackslashlessLocal(BackslashUtil.java:39) at org.apache.axis.wsdl.symbolTable.SymbolTable.populateServices(SymbolTable.java:3078) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:745) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) at java.lang.Thread.run(Thread.java:513)
make sure you have all the appropriate jar files in your classpath
i wasnt sure which jar files it needed from the axis/lib directory so i just included all of them, and it works fine
Joined: Sep 12, 2006
Thanks a lot for all your suggestions. I am not facing the problem anymore. The main cause of the problem was that I was using a different version of the QName class. After inclusion of the axis-jaxrpc-1.4.jar in the classpath, the problem was resolved.