[ http://issues.apache.org/jira/browse/AXIS2-622?page=comments#action_12376507 ]
Davanum Srinivas commented on AXIS2-622: ---------------------------------------- Please try nightly: http://cvs.apache.org/dist/axis2/nightly/ I just ran this on the command line and that works: C:\AXIS2-622>java org.apache.axis2.wsdl.WSDL2Java -d xmlbeans -uri DLExternalInformation.wsdl Retrieving schema at 'externalInformationRequestTypes.xsd', relative to 'file:/C:/AXIS2-622/'. Retrieving schema at 'externalInformationCommonTypes.xsd', relative to 'file:/C:/AXIS2-622/externalInformationRequestTypes.xsd'. Retrieving schema at 'externalInformationCommonTypes.xsd', relative to 'file:/C:/AXIS2-622/'. Retrieving schema at 'externalInformationResponseTypes.xsd', relative to 'file:/C:/AXIS2-622/'. Retrieving schema at 'externalInformationCommonTypes.xsd', relative to 'file:/C:/AXIS2-622/externalInformationResponseTypes.xsd'. - Jalopy not found - unable to pretty print .\src\org\apache\axis2\DLExternalInformationServiceCallbackHandler.java - Jalopy not found - unable to pretty print .\src\org\apache\axis2\DLExternalInformationServiceStub.java thanks, dims > 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..): > <java-snip> > 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 { > </java-snip> > <exception-snip> > [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 = [EMAIL PROTECTED] > [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.<init>(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.<init>(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] > ------------------------------------------------------------------------ > </exception-snip> -- 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
