Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 50171 invoked from network); 24 Jun 2008 16:06:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 16:06:27 -0000 Received: (qmail 99951 invoked by uid 500); 24 Jun 2008 16:06:20 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 99917 invoked by uid 500); 24 Jun 2008 16:06: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 99906 invoked by uid 99); 24 Jun 2008 16:06:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 09:06:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrew.clegg@gmail.com designates 209.85.132.240 as permitted sender) Received: from [209.85.132.240] (HELO an-out-0708.google.com) (209.85.132.240) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 16:05:28 +0000 Received: by an-out-0708.google.com with SMTP id c36so794234ana.22 for ; Tue, 24 Jun 2008 09:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=NOyZsV5eXsganSyo3aTM/DTaZf6pvNRjj8oxYU3YRDY=; b=Nc5M7bYKeVltOUqnFVIiL1s0kvN+PMj4wJudGgynqgjjjCOo/sRqTsELJ5dVS3CMcr tFG2Ix82GP3kfleeQFrkzTvpeTaJU/v0qcCvLI9EEbV/h4srimKaeKsHDqLm2n0qgvF3 SZy5dLjOhY8aGCgJVUAUPnkIgwLSBJEtuW1j4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=a3aCPHVkAFdc1ZZszZF54P2tkTizMapmxJ7+NmoE5dGzly9aBi8xZ0iuyBYu3UxyzU b6snuUj7NkvabHoel/Z9HuXTo14Nqo5R0V34LaPLhapFNrTBehrvc91kgghxgIhr+MZ4 hRhEfBcEuc+EYwh4J+DRKjLoACRjOr51QOKAg= Received: by 10.100.229.14 with SMTP id b14mr16118087anh.43.1214323547189; Tue, 24 Jun 2008 09:05:47 -0700 (PDT) Received: by 10.100.214.7 with HTTP; Tue, 24 Jun 2008 09:05:47 -0700 (PDT) Message-ID: Date: Tue, 24 Jun 2008 17:05:47 +0100 From: "Andrew Clegg" To: axis-user@ws.apache.org Subject: SOAP fault "Could not initialize class ..." MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Afternoon all, I'm trying to get some XMLBeans-based service stubs in place and I'm hitting an odd problem which I can't find any reference to via Google. The services deploy to the server fine, with no error messages, and I can see them in http://localhost:8080/axis2/services/ and view the WSDLs. Everything looks okay. The built-in Version service works okay, but whenever I try to run one of mine (e.g. via SoapUI), I get a response like this: soapenv:Server Could not initialize class info.cathdb.ws.types.TestEchoDocument (This is for a service called Test with a TestEcho operation, the classic 'hello world' for request/response services.) I have checked in my repository and TestEchoDocument.class is exactly where it should be, in info.cathdb.ws.types, having compiled with no errors. The Java code in TestSkeleton.java looks like this: public info.cathdb.ws.types.TestEchoResponseDocument TestEcho( info.cathdb.ws.types.TestEchoDocument testEcho0) { TestEchoResponseDocument rDoc = TestEchoResponseDocument.Factory.newInstance(); TestEchoResponse r = rDoc.addNewTestEchoResponse(); r.setOutputText( testEcho0.getTestEcho().getInputText() ); return rDoc; } Please let me know if I'm doing something completely wrong! I can post the WSDL and XSD (or the relevant parts) if that would help. Also, on a related note, if I change the TestEcho method to throw back an exception instead, the text of the exception isn't reflected in the soap message returned. It just says: soapenv:Server unknown Is there a way to have Axis2 pass the exception text back to the client? This would be quite helpful for debugging. Thanks in advance for any suggestions, and sorry if any of these questions have obvious answers, I'm a complete Axis newbie. Cheers, Andrew. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org