Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 17675 invoked from network); 26 Apr 2006 15:36:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 15:36:43 -0000 Received: (qmail 9661 invoked by uid 500); 26 Apr 2006 15:36:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 9595 invoked by uid 500); 26 Apr 2006 15:36:31 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 9546 invoked by uid 99); 26 Apr 2006 15:36:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 08:36:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 08:36:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 10A787142C8 for ; Wed, 26 Apr 2006 15:36:07 +0000 (GMT) Message-ID: <99493022.1146065767066.JavaMail.root@brutus> Date: Wed, 26 Apr 2006 15:36:07 +0000 (GMT+00:00) From: "Tore Larsen (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-622) wsdl2java: Service not found while creating XmlBeans In-Reply-To: <34835847.1146065402912.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-622?page=all ] Tore Larsen updated AXIS2-622: ------------------------------ Attachment: externalInformationResponseTypes.xsd > wsdl2java: Service not found while creating XmlBeans > ---------------------------------------------------- > > Key: AXIS2-622 > URL: http://issues.apache.org/jira/browse/AXIS2-622 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: databinding > Versions: 0.96 > Environment: JSE 1.4.2_10 and WinXP > Reporter: Tore Larsen > Priority: Critical > Attachments: DLExternalInformation.wsdl, externalInformationCommonTypes.xsd, externalInformationRequestTypes.xsd, externalInformationResponseTypes.xsd > > I was trying to verify that bug AXIS2-547 was solved. I did not get as far as that this time. Instead the XmlBeans generation stranded before any beans where in sight. The details of my wsdl were not properly read or not available to the java method "org.apache.axis2.description.WSDL2AxisServiceBuilder.findBinding" as can be seen in the Maven2 -trace below. The wsdl and accompanying type schema worked fine with Axis2 built by me on march 31. I see that there has been a lot of changes since then. I have tried 1.0-RC2 and 1.0-RC3. Both fails in the code (line 252..): > > private Binding findBinding(Definition dif) throws AxisFault { > Map services = dif.getServices(); > Service service; > Binding binding = null; > Port port = null; > if (serviceName != null) { > ---> service = (Service) services.get(serviceName); > if (service == null) { > throw new AxisFault("Service not found the WSDL " > + serviceName.getLocalPart()); > } > } else { > > > [DEBUG] Configuring mojo 'com.incatel.maven.plugins:incatel-maven-wsdl2java-plugin:5.0-SNAPSHOT:axis2wsdl2java' --> > [DEBUG] (f) asynconly = false > [DEBUG] (f) databindingtype = xmlbeans > [DEBUG] (f) deleteDirectory = * > [DEBUG] (f) generateall = true > [DEBUG] (f) output = C:\work\nims\main\j2ee\incatel-nims\nims-soa\nims-soa-outbound-services\nims-soa-outbound-externalinformation/src/main/java > [DEBUG] (f) packagename = com.incatel.nims.webservice.externalinformation > [DEBUG] (f) portname = dlexternalinformation > [DEBUG] (f) project = org.apache.maven.project.MavenProject@d44909da > [DEBUG] (f) serverside = false > [DEBUG] (f) servicedescriptor = true > [DEBUG] (f) servicename = dlexternalinformation > [DEBUG] (f) synconly = true > [DEBUG] (f) testcase = false > [DEBUG] (f) wsdluri = C:\work\nims\main\j2ee\incatel-nims\nims-soa\nims-soa-outbound-services\nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/DLExternalInformation.wsdl > [DEBUG] -- end configuration -- > [INFO] ======= Axis2 WSDL2JavaAntMojo settings ======= > [INFO] output[C:\work\nims\main\j2ee\incatel-nims\nims-soa\nims-soa-outbound-services\nims-soa-outbound-externalinformation/src/main/java] > [INFO] generateall[true] > [INFO] serverside[false] > [INFO] servicedescriptor[true] > [INFO] portname[dlexternalinformation] > [INFO] servicename[dlexternalinformation] > [INFO] databindingtype[xmlbeans] > [INFO] testcase[false] > [INFO] asynconly[false] > [INFO] synconly[true] > [INFO] packagename[com.incatel.nims.webservice.externalinformation] > [INFO] wsdluri[C:\work\nims\main\j2ee\incatel-nims\nims-soa\nims-soa-outbound-services\nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/DLExternalInformation.wsdl] > [INFO] ======= STARTING Running Ant wsdl2java task ======= > [INFO] args[0] = -d > [INFO] args[1] = xmlbeans > [INFO] args[2] = -o > [INFO] args[3] = C:\work\nims\main\j2ee\incatel-nims\nims-soa\nims-soa-outbound-services\nims-soa-outbound-externalinformation/src/main/java > [INFO] args[4] = -p > [INFO] args[5] = com.incatel.nims.webservice.externalinformation > [INFO] args[6] = -pn > [INFO] args[7] = dlexternalinformation > [INFO] args[8] = -sn > [INFO] args[9] = dlexternalinformation > [INFO] args[10] = -uri > [INFO] args[11] = C:\work\nims\main\j2ee\incatel-nims\nims-soa\nims-soa-outbound-services\nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/DLExternalInformation.wsdl > [INFO] args[12] = -s > Retrieving schema at 'externalInformationRequestTypes.xsd', relative to 'file:/C:/work/nims/main/j2ee/incatel-nims/nims-soa/nims-soa-outbound-services/nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/'. > Retrieving schema at 'externalInformationCommonTypes.xsd', relative to 'file:/C:/work/nims/main/j2ee/incatel-nims/nims-soa/nims-soa-outbound-services/nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/externalInformationRequestTypes.xsd'. > Retrieving schema at 'externalInformationCommonTypes.xsd', relative to 'file:/C:/work/nims/main/j2ee/incatel-nims/nims-soa/nims-soa-outbound-services/nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/'. > Retrieving schema at 'externalInformationResponseTypes.xsd', relative to 'file:/C:/work/nims/main/j2ee/incatel-nims/nims-soa/nims-soa-outbound-services/nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/'. > Retrieving schema at 'externalInformationCommonTypes.xsd', relative to 'file:/C:/work/nims/main/j2ee/incatel-nims/nims-soa/nims-soa-outbound-services/nims-soa-outbound-externalinformation/src/main/descriptions/externalinformation/externalInformationResponseTypes.xsd'. > [WARNING] Error generating classes from wsdl > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] Error generating classes from wsdl > > Embedded error: Error parsing WSDL > Service not found the WSDL dlexternalinformation > [INFO] ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error generating classes from wsdl > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > 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:324) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error generating classes from wsdl > at com.incatel.maven.plugin.wsdl2java.Axis2WSDL2JavaAntMojo.execute(Axis2WSDL2JavaAntMojo.java:171) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > ... 16 more > Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:94) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > at com.incatel.maven.plugin.wsdl2java.Axis2WSDL2JavaAntMojo.execute(Axis2WSDL2JavaAntMojo.java:165) > ... 18 more > Caused by: org.apache.axis2.AxisFault: Service not found the WSDL dlexternalinformation; nested exception is: > org.apache.axis2.AxisFault: Service not found the WSDL dlexternalinformation > at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:87) > ... 21 more > Caused by: org.apache.axis2.AxisFault: Service not found the WSDL dlexternalinformation > at org.apache.axis2.description.WSDL2AxisServiceBuilder.findBinding(WSDL2AxisServiceBuilder.java:260) > at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:224) > ... 22 more > [INFO] ------------------------------------------------------------------------ > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira