Title: Remove warning: org.apache.axis.utils.JavaUtils isAttachmentSupported
To avoid the warning by having the classes present, you need activation.jar and mail.jar (for the javax.activation classes and javax.mail classes respectively).  The axis documentation points to where you can get them (and you can also find them through java.sun.com, I believe).  While they are freely available and useable, *presumably* there is some license issue about redistribution, which is why, *presumably*,  they must be downloaded separately for each use in an installation and don't come built into the axis package.  (*Presumably* means I'm speculating...)  You should check the licenses that go with them to make sure they are suitable for your use if you download them.  If you're using axis inside a servlet container like Tomcat, you may find that there are copies of mail.jar and/or activation.jar already present in some common library directories of the servlet container and you can do some classpath tweaking, or copy them into the axis subtree, to avoid the warning.  If you use axis inside a J2EE application server, the needed classes are already present in the application server, as they are part of the J2EE specification.
 
Jeff
----- Original Message -----
Sent: Monday, May 23, 2005 7:57 AM
Subject: Remove warning: org.apache.axis.utils.JavaUtils isAttachmentSupported

Hi

Does anyone know how to remove the following warning without
downloading the specified classes:

  2005-05-23 16:22:50 org.apache.axis.utils.JavaUtils isAttachmentSupported
  WARNING: Unable to find required classes (javax.activation.DataHandler and
  javax.mail.internet.MimeMultipart). Attachment support is disabled.

Is there a configuration file where I can disable the warning - our
application works fine without them.

If it is not possible to remove the warning, can someone please point me
to where I can download the classes on the net?

We use Axis 1.2 and the warning occurs when executing the following line:
  Service service = new Service(in, new QName(tns, "mswsreport"));

Thanks in advance

Cheers
Rune Schmidt Jensen

Reply via email to