1 Reply Latest reply on Apr 28, 2008 10:28 PM by 666705

    clientgen in WL 81 giving problems for stub generation from WL91 WSDL

    666705
      Hi,

      I am very new to this forum and new to Weblogic too.

      Here is my problem. I generated a webservice from a Stateless Session bean using annotation in WebLogic 91. Used the "jwsc"/"wldeploy" to generate and deploy the webservice. Also generated the client stubs using "clientgen" in weblogic 91.

      Created a small web application using a single jsp and servlet (the servlet is where i invoke the service).

      Everything works fine till its weblogic 91.

      Now the problem. I need to make the jsp work from Weblogic 81. So I am trying to create the client stubs from the service endpoint WSDL on WebLogic 91 by using the deployed webservice URL.
      The clientgen in WL 81 is complaining that the "parameters" is already defined (Please see the error below".

      I would assume that BEA would have tested this scenario as it should be a no-brainer. So why does the cleintgen in WL 81 complain. Is there any other step or way that I am missing. I have tried all sorts of things before posting to this forum (like 1. generating the stubs using WSDL2JAVA using axis -- WebLogic 81 gives a null pointer exception 2. generating the client stubs using "clientgen" in WL 91 and trying to compile using the jdk 1.4 and using in WL 81 -- complains that the couldnot find something like jax-rpc._._.ServiceImpl

      Will be realy helpful if someone who had this kind of experience of someone from BEA can help me a little bit.

      Thanks in advance to all for your time.

      ERROR WHILE using CLIENGEN

      build-client:
      [clientgen] Generating client jar for http://localhost:7001/webservice/MAC/Metho
      dsAccessControl?WSDL ...
      [clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfint_literal i
      ncompliantly with JAX-RPC, mapping to a Java array of .int
      [clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfMethodUserTO_
      literal incompliantly with JAX-RPC, mapping to a Java array of com.bah.elexnet.s
      erver.to.MethodUserTO
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:15: par
      ameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchiveUse
      r,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
      [clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
      rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
      )
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:21: par
      ameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUserRole
      s,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
      [clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
      rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
      )
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:27: par
      ameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com.bah.
      elexnet.methods.holders.GetUsersResponseHolder)
      [clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
      com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:33: par
      ameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserRoles,
      com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
      [clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
      meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:39: par
      ameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUser,co
      m.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
      [clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
      ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:45: par
      ameters is already defined in changeSystemPassword(com.bah.elexnet.methods.Chang
      eSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordResponseHold
      er)
      [clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
      temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
      onseHolder parameters)
      [clientgen]

      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:51: par
      ameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUser,com.
      bah.elexnet.methods.holders.DeleteUserResponseHolder)
      [clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
      rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:57: par
      ameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUserRoles,
      com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
      [clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
      meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:20
      : parameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchi
      veUser,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
      [clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
      rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
      )
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:39
      : parameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUse
      rRoles,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
      [clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
      rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
      )
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:58
      : parameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com
      .bah.elexnet.methods.holders.GetUsersResponseHolder)
      [clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
      com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:77
      : parameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserR
      oles,com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
      [clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
      meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:96
      : parameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUs
      er,com.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
      [clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
      ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:11
      5: parameters is already defined in changeSystemPassword(com.bah.elexnet.methods
      .ChangeSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordRespon
      seHolder)
      [clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
      temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
      onseHolder parameters)
      [clientgen]

      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:13
      4: parameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUse
      r,com.bah.elexnet.methods.holders.DeleteUserResponseHolder)
      [clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
      rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
      198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:15
      3: parameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUser
      Roles,com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
      [clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
      meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
      [clientgen]
      ^
      [clientgen] 16 errors
      [clientgen] java.io.IOException: Compiler failed executable.exec
      [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
      ilerInvoker.java:470)
      [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
      er.java:328)
      [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
      er.java:336)
      [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
      leFiles(CompilerHelper.java:80)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
      eStubs(ClientGenImpl.java:627)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
      teStub(ClientGenImpl.java:572)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
      ntGenFromWsdl(ClientGenImpl.java:409)
      [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
      ientGenImpl.java:340)
      [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:341)
      [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
      [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
      [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

      [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
      )
      [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
      [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:C:/Projects/OtherProjects/WL/soaws/build/build.xml:122: weblogic.webservice
      .tools.build.WSBuildException: Compiler failed executable.exec - with nested exc
      eption:
      [java.io.IOException: Compiler failed executable.exec]