Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 44742 invoked from network); 18 Feb 2007 18:08:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2007 18:08:22 -0000 Received: (qmail 762 invoked by uid 500); 18 Feb 2007 18:08:20 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 738 invoked by uid 500); 18 Feb 2007 18:08:20 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 725 invoked by uid 99); 18 Feb 2007 18:08:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Feb 2007 10:08:19 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of csethil@gmail.com designates 64.233.162.226 as permitted sender) Received: from [64.233.162.226] (HELO nz-out-0506.google.com) (64.233.162.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Feb 2007 10:08:09 -0800 Received: by nz-out-0506.google.com with SMTP id m7so1372462nzf for ; Sun, 18 Feb 2007 10:07:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jegwEUyfGNLqJnPjI6qRuV4lYqw6Kral7keFgY4HFSAS70XnAVYPGQXhIOzqZoFBq7u2lKPyypc4JxUjILbFuFxWbG/jQwc/moXRIwHBMURGCjGrBzmLwQxMBhjeyYMhDb8Mo5fJD2Y2yt4ca+FPf0tACrANY3sOFNGCc+3vevo= Received: by 10.65.97.18 with SMTP id z18mr8094742qbl.1171822068333; Sun, 18 Feb 2007 10:07:48 -0800 (PST) Received: by 10.49.67.16 with HTTP; Sun, 18 Feb 2007 10:07:48 -0800 (PST) Message-ID: Date: Mon, 19 Feb 2007 00:07:48 +0600 From: "Thilina Gunarathne" To: axis-user@ws.apache.org Subject: Re: No such method error? In-Reply-To: <365abf5c0702180202y62e4eb61he41d56280eb4015c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8971850.post@talk.nabble.com> <365abf5c0702180202y62e4eb61he41d56280eb4015c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes.. Please upgrade.. We did the Axis2 1.1 release with Axiom 1.2.1... I recommend you to upgrade to Axis2 1.1.1 & to Axiom 1.2.2 as well as your other dependencies.. You can use the "Versions of dependencies" section of this [1] as your reference.. thanks, Thilina [1] http://svn.apache.org/viewvc/webservices/axis2/tags/java/v1.1.1/etc/project.properties?revision=494782&view=markup On 2/18/07, Tony Ambrozie wrote: > I can only suspect that this is a version mismatch between axis2 and > axiom-api. The default constructor for Attachments seem to have been added > in revision 442132 on Sep 11 2005. For axiom-api, I am using: > > > org.apache.ws.commons.axiom > axiom-api > 1.2.2 > > > and is working just fine for me, you may want to give it a try. You may > also want to upgrade axiom-impl. > > Thanks' > > > > On 2/14/07, maskkkk wrote: > > > > Do I have the wrong dependencies for Axis2? > > > > When I run my JUnit test I get the following error > > > > > > > > > java.lang.NoSuchMethodError: > org.apache.axiom.attachments.Attachments: > > > method ()V not found > > > at > org.apache.axis2.context.MessageContext.(MessageContext.java:71) > > > at > > > > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:575) > > > at > > > org.apache.axis2.client.ServiceClient.sendReceive > (ServiceClient.java:508) > > > at > com.mooo.mv.demo.ws.AppTest.testServiceClient(AppTest.java:79) > > > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > > > at > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > at > junit.framework.TestCase.runTest(TestCase.java:154) > > > at > junit.framework.TestCase.runBare(TestCase.java:127) > > > at > junit.framework.TestResult$1.protect(TestResult.java:106) > > > at junit.framework.TestResult.runProtected > (TestResult.java:124) > > > at junit.framework.TestResult.run(TestResult.java:109) > > > at junit.framework.TestCase.run(TestCase.java:118) > > > at > junit.framework.TestSuite.runTest(TestSuite.java :208) > > > at junit.framework.TestSuite.run(TestSuite.java:203) > > > at > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) > > > at > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run > (RemoteTestRunner.java:344) > > > at > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > > > > > > > > > > dependencies: wrote: > > > > > > > > > > > > junit > > > junit > > > 3.8.1 > > > > > > > > > org.apache.axis2 > > > axis2 > > > 1.1 > > > > > > > > > ws-commons > > > axiom-impl > > > 1.0 > > > > > > > > > ws-commons > > > axiom-api > > > 1.0 > > > > > > > > > stax > > > stax-api > > > 1.0.1 > > > > > > > > > org.codehaus.woodstox > > > wstx-asl > > > 3.0.1 > > > > > > > > > commons-logging > > > commons-logging > > > 1.1 > > > > > > > > > axis > > > axis-wsdl4j > > > 1.5.1 > > > > > > > > > org.apache.ws.commons.schema > > > XmlSchema > > > 1.2 > > > > > > > > > javamail > > > javamail > > > 1.3.1 > > > > > > > > > javax.activation > > > activation > > > 1.0.2 > > > > > > > > > > > > > Thank you, > > Andrew J. Leer > > -- > > View this message in context: > http://www.nabble.com/No-such-method-error--tf3229185.html#a8971850 > > Sent from the Axis - User mailing list archive at Nabble.com. > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > -- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org