File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Apache Axis error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache Axis error" Watch "Apache Axis error" New topic

Apache Axis error

naveen chinthakunta

Joined: Sep 26, 2005
Posts: 16
Hi all,

I am running a sample webservice over apache axis on a linux platform. I am getting the following error. Can somebody plz tell me where I am going wrong? Are there some environment setup issues? Thanking you in advance.

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" AxisFault
faultCode: {}Server.userException
faultString: /var/lib/tomcat5/webapps/axis/WEB-INF/jwsClasses/ (No such file or directory)

Tom George
Ranch Hand

Joined: Jan 28, 2004
Posts: 41
Normally this error shouldnt interrupt your thing. It pops up in the logs for me all the time. Anyway, to remove it, set the classpath as follows
javax.activation.DataHandler - Activation.jar from Sun's site
javax.mail.internet.MimeMultipart - j2ee.jar (if you're using Websphere) or weblogic.jar (if using BEA weblogic)

naveen chinthakunta

Joined: Sep 26, 2005
Posts: 16
Hi Tom,

Thank u so much for the timely help. The missing jars did not make any impact on the application. The axis error I was getting was due to a missing class file. For a .jws file in /axis dir, it expects a .class file in /axis/WEB-INF/jwsClasses. Putting the class file in that directory, solves that problem.

I agree. Here's the link:
subject: Apache Axis error
jQuery in Action, 3rd edition