You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/08/07 07:33:37 UTC

DO NOT REPLY [Bug 11519] New: - Java2WSDL requires mail.jar and activation.jar

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11519>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11519

Java2WSDL requires mail.jar and activation.jar

           Summary: Java2WSDL requires mail.jar and activation.jar
           Product: Axis
           Version: current (nightly)
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: chris.haddad@cobia.net


#1) The code in ParameterDesc that attempts to set the Mime type forces the 
presence of mail.jar or a NoClassDefFoundError is thrown.  The dependancy on 
the jar file should probably be documented, or removed.


C:\home\dev\wsdl>java org.apache.axis.wsdl.Java2WSDL -lhttp://localhost:8081/axi
s/services/UnsignedType wsdl.UnsignedType
java.lang.NoClassDefFoundError: javax.mail.internet.MimeMultipart
        at org.apache.axis.utils.JavaUtils.class$(JavaUtils.java:95)
        at org.apache.axis.utils.JavaUtils.javaToMIME(JavaUtils.java:1100)
        at org.apache.axis.description.ParameterDesc.setJavaType(ParameterDesc.j
ava:242)
        at org.apache.axis.description.OperationDesc.setReturnClass(OperationDes
c.java:166)
        at org.apache.axis.description.ServiceDesc.createOperationForMethod(Serv
iceDesc.java:926)
        at org.apache.axis.description.ServiceDesc.createOperationsForName(Servi
ceDesc.java:857)
        at org.apache.axis.description.ServiceDesc.getSyncedOperationsForName(Se
rviceDesc.java:837)
        at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospectio
nRecursive(ServiceDesc.java:711)


#2) once mail.jar is in place, a NoClassDefFoundError is thrown for 
activation.jar.

C:\home\dev\wsdl>java org.apache.axis.wsdl.Java2WSDL -lhttp://localhost:8081/axi
s/services/UnsignedType wsdl.UnsignedType
java.lang.NoClassDefFoundError: javax/activation/DataSource
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.axis.utils.JavaUtils.class$(JavaUtils.java:95)
        at org.apache.axis.utils.JavaUtils.javaToMIME(JavaUtils.java:1100)
        at org.apache.axis.description.ParameterDesc.setJavaType(ParameterDesc.j