0 Replies Latest reply on May 5, 2011 1:59 PM by 859822

    Getting java.lang.AssertionError: No endpoints build for /wsdls/WSDLFile.ws

    859822
      I am using Weblogic Workshop 9.2

      I have to create a new Web Service in which need to use XML over HTTP binding. I have done the following:

      1. I have created my own Schema and validated it.
      2. Created my WSDL file and validated it - No issue in WSDL

      but while I creating Web Service using WSDL, I am getting following Error:

      org.eclipse.core.runtime.CoreException[4]: com.bea.wlw.webservices.core.gen.WebServicesException: Buildfile: D:/beaWebServ/user_projects/w4WP_workspaces/WebService/FirstProject/build/jws/buildWSDL/build.xml
      Trying to override old definition of task wsgen
      parsing buildfile D:\beaWebServ\user_projects\w4WP_workspaces\WebService\FirstProject\build\jws\buildWSDL\build.xml with URI = file:///D:/beaWebServ/user_projects/w4WP_workspaces/WebService/FirstProject/build/jws/buildWSDL/build.xml
      Project base dir set to: D:\beaWebServ\user_projects\w4WP_workspaces\WebService\FirstProject\build\jws\buildWSDL
      Arguments: -verbose -logfile D:\beaWebServ\user_projects\w4WP_workspaces\WebService\FirstProject\build\jws\buildWSDL\JWSGenAnt.log
      Build sequence for target `build' is [build]
      Complete build sequence is [build, ]

      build:
      [compile.wsdl] DEPRECATED - Use of srcBindingName is deprecated. Use srcPortName instead.
      [compile.wsdl] Using wsdl "/wsdls/WSDLFile.wsdl"
      [compile.wsdl] Generating for binding "{http://www.example.org/WSDLFile/}WSDLFileHTTP"
      [compile.wsdl] Building compiled wsdl to "D:\beaWebServ\user_projects\w4WP_workspaces\WebService\FirstProject\WebContent\WEB-INF\lib\generated"
      [compile.wsdl] Using package name as "com"
      [compile.wsdl] Generating jws implementation to "D:\beaWebServ\user_projects\w4WP_workspaces\WebService\FirstProject\src"
      [compile.wsdl] Setting autoDetectWrapped to "true"
      [compile.wsdl] Setting jaxRPCWrappedArrayStyle to "true"
      [compile.wsdl] Using type family "id='TYLAR', builderClass='weblogic.wsee.bind.buildtime.internal.TylarS2JBindingsBuilderImpl'"

      BUILD FAILED
      java.lang.AssertionError: No endpoints build for /wsdls/WSDLFile.wsdl
           at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
           at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:704)
           at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
           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:585)
           at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
           at com.bea.wlw.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:160)
           at com.bea.wlw.webservices.core.gen.GenerationScript.createJWS(GenerationScript.java:106)
           at com.bea.wlw.webservices.core.gen.JwsFromWsdlBuilder.buildJws0(JwsFromWsdlBuilder.java:130)
           at com.bea.wlw.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:95)
           at com.bea.wlw.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:109)
           at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
           at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1721)
           at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
           at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
      Caused by: java.lang.AssertionError: No endpoints build for /wsdls/WSDLFile.wsdl
           at weblogic.wsee.tools.wsdlc.Wsdl2JwsBuilder.buildJsClass(Wsdl2JwsBuilder.java:349)
           at weblogic.wsee.tools.wsdlc.Wsdl2JwsBuilder.buildJwsGenInfo(Wsdl2JwsBuilder.java:394)
           at weblogic.wsee.tools.wsdlc.Wsdl2JwsBuilder.generate(Wsdl2JwsBuilder.java:218)
           at weblogic.wsee.tools.anttasks.WsdlcTask.generateJws(WsdlcTask.java:251)
           at weblogic.wsee.tools.anttasks.WsdlcTask.execute(WsdlcTask.java:203)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
           at org.apache.tools.ant.Task.perform(Task.java:364)
           at org.apache.tools.ant.Target.execute(Target.java:341)
           at org.apache.tools.ant.Target.performTasks(Target.java:369)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
           ... 17 more
      --- Nested Exception ---
      java.lang.AssertionError: No endpoints build for /wsdls/WSDLFile.wsdl
           at weblogic.wsee.tools.wsdlc.Wsdl2JwsBuilder.buildJsClass(Wsdl2JwsBuilder.java:349)
           at weblogic.wsee.tools.wsdlc.Wsdl2JwsBuilder.buildJwsGenInfo(Wsdl2JwsBuilder.java:394)
           at weblogic.wsee.tools.wsdlc.Wsdl2JwsBuilder.generate(Wsdl2JwsBuilder.java:218)
           at weblogic.wsee.tools.anttasks.WsdlcTask.generateJws(WsdlcTask.java:251)
           at weblogic.wsee.tools.anttasks.WsdlcTask.execute(WsdlcTask.java:203)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
           at org.apache.tools.ant.Task.perform(Task.java:364)
           at org.apache.tools.ant.Target.execute(Target.java:341)
           at org.apache.tools.ant.Target.performTasks(Target.java:369)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
           at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:704)
           at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
           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:585)
           at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
           at com.bea.wlw.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:160)
           at com.bea.wlw.webservices.core.gen.GenerationScript.createJWS(GenerationScript.java:106)
           at com.bea.wlw.webservices.core.gen.JwsFromWsdlBuilder.buildJws0(JwsFromWsdlBuilder.java:130)
           at com.bea.wlw.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:95)
           at com.bea.wlw.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:109)
           at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
           at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1721)
           at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
           at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

      Total time: 5 seconds

           at com.bea.wlw.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:163)
           at com.bea.wlw.webservices.core.gen.GenerationScript.createJWS(GenerationScript.java:106)
           at com.bea.wlw.webservices.core.gen.JwsFromWsdlBuilder.buildJws0(JwsFromWsdlBuilder.java:130)
           at com.bea.wlw.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:95)
           at com.bea.wlw.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:109)
           at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:98)
           at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1721)
           at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:110)
           at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
      Caused by: org.eclipse.core.runtime.CoreException: java.lang.AssertionError: No endpoints build for /wsdls/WSDLFile.wsdl
           at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:430)
           at org.eclipse.ant.core.AntRunner.run(AntRunner.java:362)
           at com.bea.wlw.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:160)
           ... 8 more



      Note: If I use Soap over HTTP binding, then I am able to create Web Service easily.

      Please help to resolve the same.

      Thanks in Advance.
      Nafe Singh

      Edited by: 856819 on May 5, 2011 6:59 AM