1 Reply Latest reply on Mar 4, 2004 3:00 PM by 3004

    clientgen error

    3004

      Here is a snippet of build.xml:

      <target name="buildClient">
      <clientgen
      ear="${webservice_ear}"
      warName="${service_war}"
      serviceName="${service_name}"
      packageName="service"
      useServerTypes="True"
      clientJar="${client_jar}"/>
      </target>

      Here is the stacktrace when build target is called.

      buildClient:
      [clientgen] Generating client jar for C:\WebService\Service.xml ...
      [clientgen] C:\WINNT\Temp\ServiceClient.jar1502243763\service\ServicePort_Stub.java:26:
      unreported exception java.lang.Throwa
      ble; must be caught or declared to be thrown
      [clientgen] java.lang.Object result = invoke( "service", _args );
      [clientgen] ^
      [clientgen] 1 error
      [clientgen] java.io.IOException: Compiler failed executable.exec
      [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
      ilerInvoker.java:505)
      [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
      er.java:364)
      [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
      er.java:372)
      [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
      leFiles(CompilerHelper.java:74)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
      eStubs(ClientGenImpl.java:582)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
      teStub(ClientGenImpl.java:530)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
      ntGenFromWsdl(ClientGenImpl.java:407)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
      ientGenImpl.java:338)
      [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
      lientGen(ClientGenTask.java:351)
      [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
      cute(ClientGenTask.java:208)
      [clientgen] at org.apache.tools.ant.Task.perform(Task.java:317)
      [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
      [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
      [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)

      [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
      )
      [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
      [clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
      [clientgen] at org.apache.tools.ant.Main.main(Main.java:235)

      BUILD FAILED

      file:E:/wsclient/new/build.xml:283: weblogic.webservice.tools.build.WSBuildExcep
      tion: Compiler failed executable.exec - with nested exception:
      [java.io.IOException: Compiler failed executable.exec]

      Any suggestions will be appreciated.
        • 1. Re: clientgen error
          3004
          Hi Vineet,

          This problem could be that you have previously generated stubs in your
          build area, possibly from an earlier version of clientgen. If you could
          try starting from a clean build, or you could add something like [1] to
          your existing port stub below the invoke.

          Hope this helps,
          Bruce

          [1]
          } catch (java.lang.Throwable e) {
          throw new java.rmi.RemoteException( e.getMessage(), e );


          Vineet Kapoor wrote:
          >
          Here is a snippet of build.xml:

          <target name="buildClient">
          <clientgen
          ear="${webservice_ear}"
          warName="${service_war}"
          serviceName="${service_name}"
          packageName="service"
          useServerTypes="True"
          clientJar="${client_jar}"/>
          </target>

          Here is the stacktrace when build target is called.

          buildClient:
          [clientgen] Generating client jar for C:\WebService\Service.xml ...
          [clientgen] C:\WINNT\Temp\ServiceClient.jar1502243763\service\ServicePort_Stub.java:26:
          unreported exception java.lang.Throwa
          ble; must be caught or declared to be thrown
          [clientgen] java.lang.Object result = invoke( "service", _args );
          [clientgen] ^
          [clientgen] 1 error
          [clientgen] java.io.IOException: Compiler failed executable.exec
          [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
          ilerInvoker.java:505)
          [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
          er.java:364)
          [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
          er.java:372)
          [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
          leFiles(CompilerHelper.java:74)
          [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
          eStubs(ClientGenImpl.java:582)
          [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
          teStub(ClientGenImpl.java:530)
          [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
          ntGenFromWsdl(ClientGenImpl.java:407)
          [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
          ientGenImpl.java:338)
          [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
          lientGen(ClientGenTask.java:351)
          [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
          cute(ClientGenTask.java:208)
          [clientgen] at org.apache.tools.ant.Task.perform(Task.java:317)
          [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
          [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:334)
          [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)

          [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1250
          )
          [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:610)
          [clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
          [clientgen] at org.apache.tools.ant.Main.main(Main.java:235)

          BUILD FAILED

          file:E:/wsclient/new/build.xml:283: weblogic.webservice.tools.build.WSBuildExcep
          tion: Compiler failed executable.exec - with nested exception:
          [java.io.IOException: Compiler failed executable.exec]

          Any suggestions will be appreciated.