Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 21374 invoked from network); 19 Aug 2009 18:11:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Aug 2009 18:11:09 -0000 Received: (qmail 78934 invoked by uid 500); 19 Aug 2009 18:11:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 78874 invoked by uid 500); 19 Aug 2009 18:11:26 -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 78865 invoked by uid 99); 19 Aug 2009 18:11:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 18:11:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andreas.veithen@gmail.com designates 209.85.218.216 as permitted sender) Received: from [209.85.218.216] (HELO mail-bw0-f216.google.com) (209.85.218.216) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 18:11:16 +0000 Received: by bwz12 with SMTP id 12so4109238bwz.16 for ; Wed, 19 Aug 2009 11:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=riyGkvyfvNHERaR8xwtLB6tSaVOEplV7hpeYha6U6SQ=; b=eRj2tz1qQqGEsB0RHtyUvB5mx3zjdk5Mq1rwUrgr62xJ6wBro7xzi+ZEnAMbYnsG1u NwAS5EO9Ku41Av8Yra87QL5JUQ743+g3Iwu9FhgtRdLfDoQlbRypalM1DIdWDOBKH5zd PHA8nbP5xTwYf4MXhdU2Yw1I19wLr1EcL4JXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=tS7oibhyXIXTx0x7CM/6xirBnOLbSz1Hz4bLc4tuqPGmrKcZAnju8vLYzX/nuyFBxT YUaKFP0gbyL+FzeetBPexwAaLjY7efjJLLZ+UxdDORn3uuLpP6XGF0VEvzK+fcNoZ4eh 6012tZKWMS+ZvAEofj/myLc1thMl4Na0dZgug= MIME-Version: 1.0 Received: by 10.239.179.99 with SMTP id c35mr609089hbg.161.1250705456109; Wed, 19 Aug 2009 11:10:56 -0700 (PDT) In-Reply-To: <669198.40252.qm@web57616.mail.re1.yahoo.com> References: <669198.40252.qm@web57616.mail.re1.yahoo.com> From: Andreas Veithen Date: Wed, 19 Aug 2009 20:10:36 +0200 Message-ID: Subject: Re: Help! Error when testing Axis2 client To: axis-user@ws.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Which classloader is the xmlbeans JAR loaded from (i.e. where is the xmlbeans JAR located)? Idem for the TypeSystemHolder class. Andreas On Wed, Aug 19, 2009 at 11:43, Clara wrote: > > Hi Andreas, > Thank you for your very helpful response. You are right, my jar files fro= m 2 > different axis2 versions got mixed up. I was using axis2 v1.4 but i used > axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5. > However, when I tried running my sample client code, I got the below erro= r > during runtime: > > [17:10:23.500] java.lang.ExceptionInInitializerError > [17:10:23.500]=A0 at com.sample.LoginRequestDocument$Factory > .parse(LoginRequestDocument.java:86) > [17:10:23.500]=A0 at com.sample.Axis2SampleMessageR > eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540) > . > . > . > [17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load > SchemaTypeSyst > em. Unable to load class with name > schemaorg_apache_xmlbeans.system.s23B9B2646D7 > 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary fi= les > are > =A0on the classpath. > [17:10:23.500]=A0 at > org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean > s.java:783) > [17:10:23.500]=A0 at com.sample.LoginRequestDocument.>(LoginRequestDocument.java:19) > [17:10:23.500]=A0 ... 21 more > [17:10:23.500] Caused by: java.lang.ClassNotFoundException: > schemaorg_apache_xml > beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder > [17:10:23.500]=A0 at > com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo > ader.java:1133) > [17:10:23.500]=A0 at > com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo > ader.java:1113) > [17:10:23.500]=A0 at > org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean > s.java:769) > [17:10:23.500]=A0 ... 22 more > I already placed the schemaorg_apache_xml > beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the > classpath. Is there something that I might be missing? > > thanks, > > Clara > --- On Tue, 8/18/09, Andreas Veithen wrote: > > From: Andreas Veithen > Subject: Re: Help! Error when testing Axis2 client > To: axis-user@ws.apache.org > Date: Tuesday, August 18, 2009, 2:45 AM > > This probably means that you have a mix of JARs from different Axis2 > versions (maybe at different locations in the class loader hierarchy). > > Andreas > > >