RE: java.lang.NoSuchMethodError: javax.xml.namespace.QName
Make sure that you don't have the weblogic jar in your classpath. Weblogic ships a different version of the QName class From: Anthony Bull [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 1:48 PM To: axis-user@ws.apache.org Subject: Re: java.lang.NoSuchMethodError: javax.xml.namespace.QName Hi Peter, I'm not positive on it, but I seem to remember getting this error when I used a different version of the addressing/rampart modules with a specific version of Axis 2. E.g. Axis 2 1.3 and rampart 1.2 and addressing 1.2. Changing all modules are jars to be for the same release of Axis 2 fixed it up. Rajesh, Peter (CLAIMS, WIP) wrote: Hi, In the java client, to invoke an Axis2 webservice, when we try to create the ConfigurationContext as below, ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("C: /Test/build/client_repository", null); Below exception is thrown, java.lang.NoSuchMethodError: javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Lja va/lang/String;)V Please advice. Thanks & Regards, Peter Rajesh * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * -- Anthony - Anthony Bull Senior Developer Black Coffee Software Ltd PO Box 10-192 The Terrace Wellington, New Zealand [EMAIL PROTECTED] Ph +64 4 472 8818 Fax +64 4 472 8811 - www.bcsoft.co.nz --- This email may contain confidential or privileged information, and is intended for use only by the addressee, or addressees. If you are not the intended recipient please advise the sender immediately and do not copy, use or disclose the contents to any other person or organisation. Black Coffee Software Ltd accepts no responsibility for viruses received with this email, or to any changes made to the original content. Any views or opinions expressed in this email may be personal to the sender and are not necessarily those of Black Coffee Software Ltd. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this message and any accompanying attachments may contain privileged, private and/or confidential information protected by state and federal law. Penalties may be assessed for unauthorized use and/or disclosure. This message and any attachments are intended for the designated recipient only. If you have received this information in error, please notify the sender immediately and return or destroy the information. This e-mail transmission and any attachments are believed to have been sent free of any virus or other defect that might affect any computer system into which it is received and opened. It is, however, the recipient's responsibility to ensure that the e-mail transmission and any attachments are virus free, and the sender accepts no responsibility for any damage that may in any way arise from their use.
RE: getPrefix() problem with axis 1.3?
weblogic.jar. had it. Thanks Jeremy From: jayachandra [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 6:09 AMTo: axis-user@ws.apache.orgSubject: Re: getPrefix() problem with axis 1.3? Hi Cooper, I sense that you don't have a proper QName class available in your classpath. This could be very much the case when some other applications jar file which implemented QName is present ahead in the classpath. Make sure you have the latest jaxrpc.jar and that too first in the classpath than other application jars. Regards Jaya On 12/14/05, Cooper, Jeremy <[EMAIL PROTECTED]> wrote: Hello,I have noticed a few posts regarding the exception below that occurrswhile running WSDL2Java. Is there a resolution or work around for this issue?I have ensured that I have the correct wsdl4j jar, although I can onlyfind the class in the jaxrpc jar.[axis-wsdl2java] java.lang.NoSuchMethodError:javax.xml.namespace.QName.getPrefix()Ljava/lang/String; [axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithDifferentLocal(BackslashUtil.java:62)[axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithBackslashless Local(BackslashUtil.java:39)[axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.SymbolTable.populateServices(SymbolTable.java:3078)[axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.SymbolTable.populate (SymbolTable.java:745)[axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)[axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java :518)[axis-wsdl2java]atorg.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)[axis-wsdl2java]atorg.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) [axis-wsdl2java]at java.lang.Thread.run(Thread.java:534)Any help would be greatly appreciatedThanksJeremy-- -- Jaya
getPrefix() problem with axis 1.3?
Hello, I have noticed a few posts regarding the exception below that occurrs while running WSDL2Java. Is there a resolution or work around for this issue? I have ensured that I have the correct wsdl4j jar, although I can only find the class in the jaxrpc jar. [axis-wsdl2java] java.lang.NoSuchMethodError: javax.xml.namespace.QName.getPrefix()Ljava/lang/String; [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithDifferentLoca l(BackslashUtil.java:62) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithBackslashless Local(BackslashUtil.java:39) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populateServices(SymbolTabl e.java:3078) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:7 45) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5 18) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4 95) [axis-wsdl2java]at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) [axis-wsdl2java]at java.lang.Thread.run(Thread.java:534) Any help would be greatly appreciated Thanks Jeremy