Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 57497 invoked from network); 11 Jul 2008 13:51:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2008 13:51:24 -0000 Received: (qmail 68225 invoked by uid 500); 11 Jul 2008 13:51:22 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 68199 invoked by uid 500); 11 Jul 2008 13:51:22 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 68188 invoked by uid 99); 11 Jul 2008 13:51:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 06:51:22 -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 linsun.unc@gmail.com designates 209.85.142.188 as permitted sender) Received: from [209.85.142.188] (HELO ti-out-0910.google.com) (209.85.142.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 13:50:28 +0000 Received: by ti-out-0910.google.com with SMTP id b6so1829247tic.1 for ; Fri, 11 Jul 2008 06:50:49 -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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=mbvAYEPsWZbe9OUsl38vLclaTLYmb/ZynwCjiLm4HGQ=; b=grWUr+vFUlNResHbe9q/fHnxBehbQ8TN1vuxJ1CEnzYR6bJRl4wHlSjWBde49DdKfZ d/acx8qlBwCRr1RQWMmbM4+bj8/BtDFoxovmna1jOThqb1pyOTqBoAOAqmJbgu5ILfqM +Gxk47VOoVUHjkDZGvo2J8oxSvZI8ss+cxECg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ufLvwlCWIZ8g6kzdVa0BrXxVpo+VwdfO9ixbGUYHrh5v5MzKPVLKJKIse0pZye8mZo Gou+dRdwJkBOP9SkmoHxGH/9PxTriLQSSkeYoGhAKaQkvZe1/ihbektzXE6PxSLwy84A wujckcpxFPGW8PGSoXcy7oCU1LncbUCSK93ow= Received: by 10.150.58.17 with SMTP id g17mr3475373yba.68.1215784248362; Fri, 11 Jul 2008 06:50:48 -0700 (PDT) Received: by 10.150.137.19 with HTTP; Fri, 11 Jul 2008 06:50:48 -0700 (PDT) Message-ID: Date: Fri, 11 Jul 2008 09:50:48 -0400 From: "Lin Sun" To: user@geronimo.apache.org Subject: Re: Re: WSDL-Generation with complexTypes In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi Josef, Thanks for the feedback. The prob below is from Sun's wsgen tool which we don't really have control. I'll investigate why wsdl generation during deployment is different (should have also created the .wsdl and .xsd files) than invoking jaxws-tools wsgen directly. Lin On Fri, Jul 11, 2008 at 9:41 AM, wrote: > > Hi Lin, > > using the command line tool I found the following problems: > > * org.apache.commons.lang.enums.ValuedEnum -> enum (new in Java5) > * java.uti.TreeMap -> Java-Array > * private attributes need at least public accessors > > Now WSDL-Generation is working. Test is ongoing... > > -Josef > > > > Josef.Eisele@bgs-ag.de > > 11.07.2008 09:44 > > Bitte antworten an > user@geronimo.apache.org > An > user@geronimo.apache.org > Kopie > Thema > Antwort: Re: WSDL-Generation with complexTypes > > > > > > Hi Lin, > > we are using Geronimo 2.1.1. Java is: > java version "1.5.0_13" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05) > Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode, sharing) > > .wsdl and .xsd are being generated if we use no arrays, no complex types. > > -Josef > > > "Lin Sun" > > 10.07.2008 16:55 > > Bitte antworten an > user@geronimo.apache.org > > An > user@geronimo.apache.org > Kopie > Thema > Re: WSDL-Generation with complexTypes > > > > > > > Hi, which geronimo server are you using? What JDK are you using? > > Can you try jaxws-tools command (type jaxws-tools.bat|sh wsgen for > usage) in the bin directory to see if the .wsdl & .xsd are generated > for your project? We are invoking Sun's wsgen to generate wsdl. > > Thanks. > > Lin > > On Thu, Jul 10, 2008 at 10:29 AM, wrote: >> >> Hi, >> >> we successfully finished to implement the HalloWorld-Example as a >> JavaEE5-conform Webservice. >> >> Now the real world starts and the problems arise. In fact we would like = to >> have a Webservice like that: >> >> @Stateless >> @WebService >> public class MyWebservice implements MyWebserviceIF { >> >> @WebMethod >> public void readData(MyDataTO data) { >> ... >> } >> >> The TransferObject MyDataTO should be: >> public Long[] keyProtokoll; >> public MyDataProtokollTO[] dataProtokoll; >> public Long[] keyDaten; >> public MyDataDatenTO[] dataDaten; >> >> And the TransferObject MyDataProtokollTO is: >> >> public class MyDataProtokollTO implements Serializable{ >> >> private long id; >> private long otherId; >> private Timestamp when; >> private My1Enum entitaetstyp; >> private long entitaetId; >> private My2Enum funktion; >> >> The Enumerations are from commons-lang - ValuedEnum. >> >> Often we get the result: >> >> 16:08:48,374 ERROR [EjbModuleBuilder] >> JAXWSEJBModuleBuilderExtension.addGBeans() failed: Unable to find the >> service wsdl file >> org.apache.geronimo.common.DeploymentException: Unable to find the servi= ce >> wsdl file >> at >> >> org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGenerat= or.java:314) >> at >> >> org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.j= ava:222) >> at >> >> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configureEJB(JAXWS= ServiceBuilder.java:215) >> at >> >> org.apache.geronimo.jaxws.builder.JAXWSEJBModuleBuilderExtension.addGBea= ns(JAXWSEJBModuleBuilderExtension.java:167) >> at >> >> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbMod= uleBuilder.java:819) >> at >> >> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(= EARConfigBuilder.java:647) >> at >> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254) >> at >> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133) >> at sun.reflect.GeneratedMethodAccessor1196.invoke(Unknown Source= ) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at >> >> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Reflect= ionMethodInvoker.java:34) >> at >> >> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j= ava:124) >> at >> >> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav= a:867) >> at >> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239= ) >> at >> >> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDepl= oy(AbstractDeployCommand.java:116) >> at >> >> org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeploySame= Configuration(RedeployCommand.java:225) >> at >> >> org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(Redeploy= Command.java:101) >> at java.lang.Thread.run(Thread.java:595) >> >> >> I worked a lot with try and error, but I have the impression the more >> complex the more errors. We started with a TreeMap, and now we use simpl= e >> Arrays... >> If I reduce to the max, I can deploy but It seems to be that the generat= ed >> XSD-File doesn't contain all the information. >> >> Thanx in advance for any help. >> >> -Josef >> ________________________________ >> BGS Beratungsgesellschaft >> Software Systemplanung AG >> Niederlassung Rhein/Main >> Robert-Koch-Stra=DFe 41 >> 55129 Mainz >> Fon: +49 (0) 6131 / 914-0 >> Fax: +49 (0) 6131 / 914-400 >> www.bgs-ag.de Gesch=E4ftssitz Mainz >> Registergericht >> Amtsgericht Mainz >> HRB 62 50 >> Aufsichtsratsvorsitzender >> Dr. Wolfgang Trommer >> Vorstand >> Hanspeter Gau >> Hermann Kiefer >> Nils Manegold >> >> > > ________________________________ > BGS Beratungsgesellschaft > Software Systemplanung AG > > Niederlassung Rhein/Main > Robert-Koch-Stra=DFe 41 > 55129 Mainz > Fon: +49 (0) 6131 / 914-0 > Fax: +49 (0) 6131 / 914-400 > www.bgs-ag.deGesch=E4ftssitz Mainz > Registergericht > Amtsgericht Mainz > HRB 62 50 > Aufsichtsratsvorsitzender > Dr. Wolfgang Trommer > Vorstand > Hanspeter Gau > Hermann Kiefer > Nils Manegold > > > > ________________________________ > BGS Beratungsgesellschaft > Software Systemplanung AG > Niederlassung Rhein/Main > Robert-Koch-Stra=DFe 41 > 55129 Mainz > Fon: +49 (0) 6131 / 914-0 > Fax: +49 (0) 6131 / 914-400 > www.bgs-ag.de Gesch=E4ftssitz Mainz > Registergericht > Amtsgericht Mainz > HRB 62 50 > Aufsichtsratsvorsitzender > Dr. Wolfgang Trommer > Vorstand > Hanspeter Gau > Hermann Kiefer > Nils Manegold > >