File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Throwing exception while running client for JAX-RPC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Throwing exception while running client for JAX-RPC" Watch "Throwing exception while running client for JAX-RPC" New topic
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: 10266
    
168

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.


[My Blog] [JavaRanch Journal]
Anandha Loganathan
Greenhorn

Joined: Jul 11, 2007
Posts: 13
Thanks. The problem resolved.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Throwing exception while running client for JAX-RPC