I believe that class was bundled in the jvm starting with 1.4.2 (though I could easily be mistaken). It is also available in the xml-apis.jar, which I believe is part of the axis1 distro -- if it isn't is should be in available from the xerces project.

Steve Hall

Hetal Desai wrote:
Hello,
I am stuck. Can someone please provide some pointers ?
Thanks a bunch,
Hetal
--- On *Thu, 6/11/09, Hetal Desai /<desa...@yahoo.com>/* wrote:


    From: Hetal Desai <desa...@yahoo.com>
    Subject: Unable to find required classes
    (javax.activation.DataHandler and javax.mail...
    To: axis-user@ws.apache.org
    Date: Thursday, June 11, 2009, 11:47 AM

    Hello,
    I am getting following error when I try to convert WSDL to Java. I
    already checked the urn in the contact.wsdl and it seems to match
    fine.

    I have attached the WSDL and the batch file I used to run this .

    I appreciate your help ,
    Thanks,
    Hetal


java -cp .;c:\axis\lib\wsdl4j-1.5.1.jar;c:\axis\lib\saaj.jar;c:\axis\li
    
b\jaxrpc.jar;c:\axis\lib\axis-ant.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis\lib\co
    
mmons-discovery-0.2.jar;c:\axis\lib\commons-logging-1.0.4.jar;c:\axis\lib\axis.j
    ar;c:\axis\lib\activation.jar;c:\axis\lib\mailapi.jar
    org.apache.axis.wsdl.WSDL2
    Java
    -N"urn:crmondemand/ws/contact/10/2004"="crmondemand.ws.contact"
    -N"urn:/crm
    ondemand/xml/contact"="crmondemand.xml.contact" contact.wsdl
    - Unable to find required classes (javax.activation.DataHandler
    and javax.mail.i
    nternet.MimeMultipart). Attachment support is disabled.
    Exception in thread "main" java.lang.NoClassDefFoundError:
    org/xml/sax/helpers/D
    efaultHandler
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at
    org.apache.axis.encoding.ser.HexDeserializerFactory.class$(HexDeseria
    lizerFactory.java:27)
            at
    org.apache.axis.encoding.ser.HexDeserializerFactory.<init>(HexDeseria
    lizerFactory.java:27)
            at
    org.apache.axis.encoding.DefaultTypeMappingImpl.initMappings(DefaultT
    ypeMappingImpl.java:130)
            at
    org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMap
    pingImpl.java:91)
            at
    org.apache.axis.encoding.DefaultTypeMappingImpl.getSingletonDelegate(
    DefaultTypeMappingImpl.java:85)
            at
    org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRe
    gistryImpl.java:155)
            at
    org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRe
    gistryImpl.java:149)
            at
    org.apache.axis.wsdl.toJava.Emitter.<init>(Emitter.java:144)
            at
    org.apache.axis.wsdl.WSDL2Java.createParser(WSDL2Java.java:209)
            at org.apache.axis.wsdl.gen.WSDL2.<init>(WSDL2.java:96)
            at org.apache.axis.wsdl.WSDL2Java.<init>(WSDL2Java.java:194)
            at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:371)




Reply via email to