clientgen in WL 81 giving problems for stub generation from WL91 WSDL - weblogic.developer.interest.webservices.general(Archived)

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] 

did you get a solution for this issue. I am trying to generate a stub to connect to a webservice i created by exposing my stateless session EJB as a web service, using annotations. I want to create a client stub using the clientgen from weblogic 81. I am unable to do this, do you have any solution to this.

Related

Clientgen ant task throwing errors in Weblogic 8.1 SP4

When I try to run clientgen ant task for a WSDL (pertaining to a .NET webservice on a non-weblogic server) in Weblogic 8.1 SP4, I'm getting the following errors. I'm running setEnv command, clientgen ant task from command prompt in WLS_HOME/user_projects/domains/mydomain folder. What am I missing? Any help is highly appreciated.
My build.xml is
<project name="buildWebservice" default="generate-client">
<target name="generate-client">
<taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask" />
<clientgen wsdl="http://abcd.efgh.com/testwebservice/TestWebService.asmx?WSDL" packageName="portal.testwebservice.client" clientJar="C:/Documents and Settings/usxspsw/Desktop/docutrakwebservice_client.jar" />
</target>
</project>
C:\bea\user_projects\domains\mydomain>ant generate-client
Buildfile: build.xml
generate-client:
[clientgen] Generating client jar for C:/Documents and Settings/dlauser/Desktop/Test.wsdl ...
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTypes
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTypesResponse getTestTypes(TestWebService.GetTestTypes parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTypesResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTypesResponse getTestTypes(TestWebService.GetTestTypes parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class UpdateTestTicketStatus
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.UpdateTestTicketStatusResponse updateTestTicketStatus(TestWebService.UpdateTestTicketStatus parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class UpdateTestTicketStatusResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.UpdateTestTicketStatusResponse updateTestTicketStatus(TestWebService.UpdateTestTicketStatus parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTicketsByID
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByIDResponse getTestTicketsByID(TestWebService.GetTestTicketsByID parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTicketsByIDResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByIDResponse getTestTicketsByID(TestWebService.GetTestTicketsByID parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTicket
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketResponse getTestTicket(TestWebService.GetTestTicket parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTicketResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketResponse getTestTicket(TestWebService.GetTestTicket parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTicketsByName
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByNameResponse getTestTicketsByName(TestWebService.GetTestTicketsByName parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap.java:
[clientgen] symbol : class GetTestTicketsByNameResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByNameResponse getTestTicketsByName(TestWebService.GetTestTicketsByName parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTypes
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTypesResponse getTestTypes(TestWebService.GetTestTypes parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTypesResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTypesResponse getTestTypes(TestWebService.GetTestTypes parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class UpdateTestTicketStatus
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.UpdateTestTicketStatusResponse updateTestTicketStatus(TestWebService.UpdateTestTicketStatus parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class UpdateTestTicketStatusResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.UpdateTestTicketStatusResponse updateTestTicketStatus(TestWebService.UpdateTestTicketStatus parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByID
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByIDResponse getTestTicketsByID(TestWebService.GetTestTicketsByID parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByIDResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByIDResponse getTestTicketsByID(TestWebService.GetTestTicketsByID parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicket
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketResponse getTestTicket(TestWebService.GetTestTicket parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketResponse getTestTicket(TestWebService.GetTestTicket parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByName
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByNameResponse getTestTicketsByName(TestWebService.GetTestTicketsByName parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByNameResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] public TestWebService.GetTestTicketsByNameResponse getTestTicketsByName(TestWebService.GetTestTicketsByName parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTypesResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] return (TestWebService.GetTestTypesResponse)_result;
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTypes
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTypes _input =
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTypes
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] new TestWebService.GetTestTypes();
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTypesResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTypesResponse result = getTestTypes( input );
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class UpdateTestTicketStatusResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] return (TestWebService.UpdateTestTicketStatusResponse)_result;
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class UpdateTestTicketStatus
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.UpdateTestTicketStatus _input =
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class UpdateTestTicketStatus
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] new TestWebService.UpdateTestTicketStatus();
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class UpdateTestTicketStatusResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.UpdateTestTicketStatusResponse result = updateTestTicketStatus( input );
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByIDResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] return (TestWebService.GetTestTicketsByIDResponse)_result;
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByID
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTicketsByID _input =
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByID
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] new TestWebService.GetTestTicketsByID();
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByIDResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTicketsByIDResponse result = getTestTicketsByID( input );
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] return (TestWebService.GetTestTicketResponse)_result;
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicket
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTicket _input =
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicket
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] new TestWebService.GetTestTicket();
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTicketResponse result = getTestTicket( input );
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByNameResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] return (TestWebService.GetTestTicketsByNameResponse)_result;
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByName
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTicketsByName _input =
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByName
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] new TestWebService.GetTestTicketsByName();
[clientgen] ^
[clientgen] C:\Documents and Settings\dlauser\Local Settings\Temp\Testwebservice_client.jar167246560\portal\Testwebservice\client\TestWebServiceSoap_Stub.
[clientgen] symbol : class GetTestTicketsByNameResponse
[clientgen] location: interface portal.Testwebservice.client.TestWebService
[clientgen] TestWebService.GetTestTicketsByNameResponse result = getTestTicketsByName( input );
[clientgen] ^
[clientgen] 40 errors
[clientgen] java.io.IOException: Compiler failed executable.exec
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
[clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:409)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(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:/bea/user_projects/domains/mydomain/build.xml:15: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
[java.io.IOException: Compiler failed executable.exec]

Error with clientgen

I'm getting an error trying to generate the client for a web service WLS 8.1/sp5, MS Windows. I started with XML Schema and used the autotypes ant task to generate types.xml I then use servicegen to generate a webservice. The schema files we are using do exist in multiple directories and use includes /imports.
I saw a similar post saying that multiple directory problems have been fixed in 8.1 sp4. I can send more files if that might help.
Thanks,
Glen
[clientgen] --------------- nested within: ------------------
[clientgen] weblogic.xml.schema.model.XSDException: error parsing external schema from schemaLocation http://ei.directv.com:7001/schemas/wsdl/billingServices/v3_0/createProperty - with nested exception:
[clientgen] [weblogic.xml.stream.XMLStreamException: Unbalanced ELEMENT got:PRE expected:HR - with nested exception:
[clientgen] [Error at Line:15, token:[CLOSETAGBEGIN]Unbalanced ELEMENT got:PRE expected:HR]]
[clientgen] at weblogic.xml.schema.model.SimpleSchemaResolver.doExternalLookup(SimpleSchemaResolver.java:108)
[clientgen] at weblogic.xml.schema.model.SimpleSchemaResolver.resolveSchemaLocation(SimpleSchemaResolver.java:70)
[clientgen] at weblogic.xml.schema.model.XSDSchema.resolveInclusion(XSDSchema.java:546)
[clientgen] at weblogic.xml.schema.model.XSDSchema.resolveInclusion(XSDSchema.java:537)
[clientgen] at weblogic.xml.schema.model.XSDSchema.getSchemaForName(XSDSchema.java:1082)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTopLevelObjectImpl(XSDSchema.java:905)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTypeImpl(XSDSchema.java:893)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupType(XSDSchema.java:884)
[clientgen] at weblogic.xml.schema.model.XSDObject.lookupType(XSDObject.java:324)
[clientgen] at weblogic.xml.schema.model.XSDElement.getTypeObject(XSDElement.java:75)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.createDescriptorsFromElement(SchemaInspector.java:327)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.createDescriptorForElement(SchemaInspector.java:185)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.createDescriptors(SchemaInspector.java:132)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:281)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.addTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.processSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTypeMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WSDL2JavaImpl.java:240)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTypeMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:364) 
i got the similar error too,hope someone's help..
null; nested exception is:
     javax.xml.rpc.soap.SOAPFaultException: Internal Error: unable to process your request: javax.xml.soap.SOAPException: java.io.IOException: error:weblogic.xml.stream.XMLStreamException: Unbalanced ELEMENT got:acceptOrg expected:contact - with nested exception:
[Error at Line:1, token:[OPENTAGBEGIN]Unbalanced ELEMENT got:acceptOrg expected:contact]

Error while using client gen

Hi,
I have a webservice that accepts and returns buildt-in java data types(String
and int) and I use clientgen with useServerTypes=True attribute to generate the
client jar file but I get the following error :
Generating client jar for WorkflowInteraction.ear(WorkflowInteraction) ...
[clientgen] Error generating client from WSDL
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.java:217)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
[clientgen] --- Nested Exception ---
[clientgen] java.io.IOException: Failed to locate start element type-mapping
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMappingBase.java:771)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.<init>(TypeMappingBuilderBase.java:85)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.<init>(XSDTypeMappingBuilder.java:67)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderFactoryBase.createTypeMappingBuilder(TypeMappingBuilderFactoryBase.java:30)
[clientgen] at weblogic.ant.taskdefs.webservices.autotype.AutoTyper.createTypeMappingBuilder(AutoTyper.java:266)
[clientgen] at weblogic.ant.taskdefs.webservices.autotype.AutoTyper.setTypeMappingFile(AutoTyper.java:190)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGen.setTypeMapppingFile(ClientGen.java:55)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.java:197)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
Any help in this issue will be appreciated.
Thanks,
AA.
Is there a reason to set useServerTypes=true?
Since you dont have any custom types i think it
does not make any diff. Can you try setting it
to false?
Regards,
-manoj
--
http://manojc.com
"Anu Alwar" <anualwar#hotmail.com> wrote in message
news:3f315334#newsgroups.bea.com...
>
Hi,
I have a webservice that accepts and returns buildt-in java datatypes(String
and int) and I use clientgen with useServerTypes=True attribute togenerate the
client jar file but I get the following error :
Generating client jar for WorkflowInteraction.ear(WorkflowInteraction) ...
[clientgen] Error generating client from WSDL
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
va:217)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
ask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
[clientgen] --- Nested Exception ---
[clientgen] java.io.IOException: Failed to locate start elementtype-mapping
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMappingBase
.java:771)
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderBase.<init>(TypeMappi
ngBuilderBase.java:85)
[clientgen] atweblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.<init>(XSDTypeMap
pingBuilder.java:67)
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderFactoryBase.createTyp
eMappingBuilder(TypeMappingBuilderFactoryBase.java:30)
[clientgen] atweblogic.ant.taskdefs.webservices.autotype.AutoTyper.createTypeMappingBuilde
r(AutoTyper.java:266)
[clientgen] atweblogic.ant.taskdefs.webservices.autotype.AutoTyper.setTypeMappingFile(Auto
Typer.java:190)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGen.setTypeMapppingFile(Cl
ientGen.java:55)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
va:197)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
ask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
Any help in this issue will be appreciated.
Thanks,
AA.
Hi,
I probably didnt explain the complete scenario. We have a business application
that includes multiple webservices. While this particular webservice has only
built-in data types, the other ones that are part of our build use custom data
types. After some experimenting , this is what I found . If I add a dummy method
that returns a custom data type then the corresponding web-services.xml file has
a type-mapping entry and this error goes away. The error indicates that it cannot
find a type-mapping entry which will be the case for ones without custom data
types. But I cannot set useServerTypes = false since I have other webservices
being built along with this one and I need to maintain the same definition of
the custom data types (i.e generated Java type list the parameters of the constructor
in a different order).
"manoj cheenath" <manojc#bea.com> wrote:
Is there a reason to set useServerTypes=true?
Since you dont have any custom types i think it
does not make any diff. Can you try setting it
to false?
Regards,
-manoj
--
http://manojc.com
"Anu Alwar" <anualwar#hotmail.com> wrote in message
news:3f315334#newsgroups.bea.com...
Hi,
I have a webservice that accepts and returns buildt-in java datatypes(String
and int) and I use clientgen with useServerTypes=True attribute togenerate the
client jar file but I get the following error :
Generating client jar for WorkflowInteraction.ear(WorkflowInteraction)...
[clientgen] Error generating client from WSDL
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
va:217)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
ask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
[clientgen] --- Nested Exception ---
[clientgen] java.io.IOException: Failed to locate start elementtype-mapping
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMappingBase
..java:771)
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderBase.<init>(TypeMappi
ngBuilderBase.java:85)
[clientgen] atweblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.<init>(XSDTypeMap
pingBuilder.java:67)
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderFactoryBase.createTyp
eMappingBuilder(TypeMappingBuilderFactoryBase.java:30)
[clientgen] atweblogic.ant.taskdefs.webservices.autotype.AutoTyper.createTypeMappingBuilde
r(AutoTyper.java:266)
[clientgen] atweblogic.ant.taskdefs.webservices.autotype.AutoTyper.setTypeMappingFile(Auto
Typer.java:190)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGen.setTypeMapppingFile(Cl
ientGen.java:55)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
va:197)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
ask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
Any help in this issue will be appreciated.
Thanks,
AA.
Ok! this sounds like a bug.
Please contact support for a fix.
Regards,
-manoj
--
http://manojc.com
"Anu Alwar" <anualwar#hotmail.com> wrote in message
news:3f325b74$1#newsgroups.bea.com...
>
Hi,
I probably didnt explain the complete scenario. We have a businessapplication
that includes multiple webservices. While this particular webservice hasonly
built-in data types, the other ones that are part of our build use customdata
types. After some experimenting , this is what I found . If I add a dummymethod
that returns a custom data type then the corresponding web-services.xmlfile has
a type-mapping entry and this error goes away. The error indicates that itcannot
find a type-mapping entry which will be the case for ones without customdata
types. But I cannot set useServerTypes = false since I have otherwebservices
being built along with this one and I need to maintain the same definitionof
the custom data types (i.e generated Java type list the parameters of theconstructor
in a different order).
"manoj cheenath" <manojc#bea.com> wrote:
Is there a reason to set useServerTypes=true?
Since you dont have any custom types i think it
does not make any diff. Can you try setting it
to false?
Regards,
-manoj
--
http://manojc.com
"Anu Alwar" <anualwar#hotmail.com> wrote in message
news:3f315334#newsgroups.bea.com...
Hi,
I have a webservice that accepts and returns buildt-in java datatypes(String
and int) and I use clientgen with useServerTypes=True attribute togenerate the
client jar file but I get the following error :
Generating client jar for WorkflowInteraction.ear(WorkflowInteraction)...
[clientgen] Error generating client from WSDL
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
va:217)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
ask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
[clientgen] --- Nested Exception ---
[clientgen] java.io.IOException: Failed to locate start elementtype-mapping
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMappingBase
..java:771)
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderBase.<init>(TypeMappi
ngBuilderBase.java:85)
[clientgen] atweblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.<init>(XSDTypeMap
pingBuilder.java:67)
[clientgen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderFactoryBase.createTyp
eMappingBuilder(TypeMappingBuilderFactoryBase.java:30)
[clientgen] atweblogic.ant.taskdefs.webservices.autotype.AutoTyper.createTypeMappingBuilde
r(AutoTyper.java:266)
[clientgen] atweblogic.ant.taskdefs.webservices.autotype.AutoTyper.setTypeMappingFile(Auto
Typer.java:190)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGen.setTypeMapppingFile(Cl
ientGen.java:55)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.EARClientGen.run(EARClientGen.ja
va:197)
[clientgen] atweblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenT
ask.java:270)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:217)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:164)
[clientgen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[clientgen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[clientgen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:153)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:176)
Any help in this issue will be appreciated.
Thanks,
AA.

Clientgen and user defined Type giving problems

While generating the client jar using Clientgen I am getting the following errors.
The WSDL contains the User Defined Data type but the definition is also given in the WSDL.
I tried giving the parameter autotype="True". Even then same problem.
Can any one help me
generate-client:
[autotype] Autotyping for wsdl http://omzbts03.mcilink.com/OneView_OptyQry_Orchestrations_Proxy/OneView_OptyQry_Orchest
rations_OneView_OptyQry_Orch_OneView_OptyQry.asmx?WSDL
[clientgen] Generating client jar for http://omzbts03.mcilink.com/OneView_OptyQry_Orchestrations_Proxy/OneView_OptyQry_O
rchestrations_OneView_OptyQry_Orch_OneView_OptyQry.asmx?WSDL ...
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:122: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] private static java.lang.Object typedInvokeGetter(OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req my_obj,
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:146: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] private static void typedInvokeSetter(OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req my_obj,
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:67: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] return new OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req();
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:78: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req typed_obj = (OptyQry_Req.OneView_OptyQry_Schemas.OptyQry
Req) myobj;
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:78: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req typed_obj = (OptyQry_Req.OneView_OptyQry_Schemas.OptyQry
Req) myobj;
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:98: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req typed_obj = (OptyQry_Req.OneView_OptyQry_Schemas.OptyQry
Req) myobj;
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:98: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req typed_obj = (OptyQry_Req.OneView_OptyQry_Schemas.OptyQry
Req) myobj;
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:106: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req typed_obj = (OptyQry_Req.OneView_OptyQry_Schemas.OptyQry
Req) myobj;
[clientgen] ^
[clientgen] C:\DOCUME~1\135178\LOCALS~1\Temp\OneViewClient.jar-2060976648\OptyQry_Req\OneView_OptyQry_Schemas\OptyQry_Re
qCodec.java:106: cannot resolve symbol
[clientgen] symbol : class OneView_OptyQry_Schemas
[clientgen] location: class OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req
[clientgen] OptyQry_Req.OneView_OptyQry_Schemas.OptyQry_Req typed_obj = (OptyQry_Req.OneView_OptyQry_Schemas.OptyQry
Req) myobj;
[clientgen] ^
Thanks in advance
Kamal

Use a class customization to resolve this conflict error for JAXWS

I'm generating a WS proxy from an existing wsdl. Below is my code in an ant build script
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask"/>
<target name="generate-build">
<clientgen type="JAXWS"
wsdl="C:\e900\DV900\java\TEST\integrationevent.wsdl"
destDir="C:\e900\DV900\java\TEST\output"
packageName="com.abc"/>
</target>
This wsdl file references 2 external xsd files and these xsd files reside in the same directory as the wsdl file.
I got the below error. Do you have any ideas?
I'm using jdk160_14_R27.6.5-32, weblogic 10.3.2, jdeveloper 11.1.1.2
[clientgen] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
[clientgen] parsing WSDL...
[clientgen]
[clientgen]
[clientgen] [ERROR] A class/interface with the same name "com.abc.ListOfOpportunity" is already in use. Use a class customization to resolve this conflict.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Contact.xsd
[clientgen]
[clientgen] [ERROR] (Relevant to above error) another "ListOfOpportunity" is generated from here.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Opportunity.xsd
[clientgen]
[clientgen] [ERROR] A class/interface with the same name "com.abc.Book" is already in use. Use a class customization to resolve this conflict.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Contact.xsd
[clientgen]
[clientgen] [ERROR] (Relevant to above error) another "Book" is generated from here.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Opportunity.xsd
[clientgen]
[clientgen] [ERROR] A class/interface with the same name "com.abc.ListOfContact" is already in use. Use a class customization to resolve this conflict.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Contact.xsd
[clientgen]
[clientgen] [ERROR] (Relevant to above error) another "ListOfContact" is generated from here.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Opportunity.xsd
[clientgen]
[clientgen] [ERROR] A class/interface with the same name "com.abc.Attachment" is already in use. Use a class customization to resolve this conflict.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Contact.xsd
[clientgen]
[clientgen] [ERROR] (Relevant to above error) another "Attachment" is generated from here.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Opportunity.xsd
[clientgen]
[clientgen] [ERROR] A class/interface with the same name "com.abc.SiebelXmlAttachmentType" is already in use. Use a class customization to resolve this conflict.
[clientgen] line 1 of file:/C:/e900/DV900/java/TEST/Contact.xsd
[clientgen]
...etc.

Categories

Resources