| Author |
Throwing exception while running client for JAX-RPC
|
Anandha Loganathan
Greenhorn
Joined: Jul 11, 2007
Posts: 13
|
|
I am new to WebSphere and I have creaeted lot of test application in WS but before going for actual implementation. Here I am trying to creaet a WS client side implementation. 1) The Service Endpoint is a WSDL link, and its binding style is "JAX-RPC" and its type is Encoded. 2) I have created the client side dependent file using wscompile 3) The command is : wscompile -gen:client <config.xml> 4) and the content of the config.xml is config.xml ================ <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <wsdl location="<WSDL URL>" packageName="com.test"/> </configuration> ======================== 5) After compilation while executing, the client side to Service ENdpoint URL it is throwing the following exception ---------------------------------------------------------------------------------------------------- Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/internet/MimeMultipart at com.sun.xml.rpc.encoding.soap.StandardSOAPTypeMappings.<init>(StandardSOAPTypeMappings.java:910) at com.sun.xml.rpc.encoding.StandardTypeMappings.getSoap(StandardTypeMappings.java:32) at com.sun.xml.rpc.client.BasicService.createSoapMappings(BasicService.java:230) at com.sun.xml.rpc.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:202) at com.apcc.GoogleSearchService_SerializerRegistry.getRegistry(GoogleSearchService_SerializerRegistry.java:25) at com.apcc.GoogleSearchService_Impl.<init>(GoogleSearchService_Impl.java:28) at com.apcc.APCTest.test1(APCTest.java:24) at com.apcc.APCTest.main(APCTest.java:41) ----------------------------------------------------------------------------------------------------- I am not sure where I am making mistake and why it is throiwng this exception. Can anyone help me to resolve this issue. Any help/suggestion is highly appreciated.
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8208
|
|
The jar which contains this class is not present in your classpath. Place the mailapi_x_x_x.jar (where x_x_x is the appropriate version number) file in the classpath.
|
[My Blog] [JavaRanch Journal]
|
 |
Anandha Loganathan
Greenhorn
Joined: Jul 11, 2007
Posts: 13
|
|
|
Thanks. The problem resolved.
|
 |
 |
|
|
subject: Throwing exception while running client for JAX-RPC
|
|
|