• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Throwing exception while running client for JAX-RPC

 
Anandha Loganathan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/internet/MimeMultipart


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.
 
Anandha Loganathan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. The problem resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic