You need mailapi.jar. You can download it from: http://java.sun.com/products/javamail/
you will also need activation.jar which you can download from: http://java.sun.com/products/javabeans/glasgow/jaf.html the problem is that somebody was so smart to throw an exception which the message "No support for attachments" if one of those two jar files are not in the classpath. Regards. > -----Original Message----- > From: Shimon Crown [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 18, 2002 8:49 AM > To: [EMAIL PROTECTED] > Subject: Unable to run attachments demo > > > Axis RC1, Tomcat 4.1, JDK 1.4.1 > > When I run the attachments demo I get the following nasty exception > > C:\axis-1_0>java > samples.attachments.EchoAttachment > -lhttp://shimonc-nt/axis/servlet/AxisServ > let test.txt > > java.io.IOException: No support for attachments > AxisFault > faultCode: {http://xml.apache.org/axis/}Server.userException > faultString: java.io.IOException: No support for attachments > faultActor: null > faultDetail: > stackTrace: java.io.IOException: No support for attachments > at > org.apache.axis.encoding.ser.JAFDataHandlerSerializer.serializ > e(JAFDataHandl > erSerializer.java:119) > at > org.apache.axis.encoding.SerializationContextImpl.serializeAct > ual(Serializat > ionContextImpl.java:1208) > at > org.apache.axis.encoding.SerializationContextImpl.serialize(Se > rializationCon > textImpl.java:753) > > etc. etc. > > test.txt is a simple text file. > > I have checked that I have the latest JARs for activation, > mail, xercesImpl > etc. etc. and I am 90% sure that I have all the latest and > greatest stuff in > the correct classpaths. > > What am I doing wrong ? > > Shimon Crown >