By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

axis library not found?

P: 5
I am setting-up an experimental web service using Apache Axis but I'm having problems. AXIS can't find a library that I've verified exists on my computer and that CLASSPATH points to it.

I'm using a simple service for testing purposes (1 string IN, 1 string OUT) and I've found where the exception occures but not why.

But I've exhausted my own attempts.

I've researched the web for Axis issues and here is a brief description of the results of the debugging steps taken. I can provide any details you need.

Does anybody have an idea what I'm missing?




1. Run-time exception when trying to establish a Server Connection in a servlet. (java.lang.NoClassDefFoundError: org/apache/axis/client/Service)

2. Application versions
JavaSE: 1.4.2_07
Netbeans: 4
Tomcat: 5.0.28 2 4
Axis: 1.1 Built on Jun 13, 2003
Windows: XP x86 5.1

3. A simple stand-alone client works while one that extends HttpServlet doesn't.

4. The server is a simple 'JWS' file which is consumed by a static client.

5. AXIS HAPPINESS PAGE runs ok, all core libraries found, report includes
"The core axis libraries are present. 2 optional axis libraries are missing"

6. The Axis libraries exist in the FINGER PRINT output

7. ACTIVATION.JAR is in TOMCAT common library and ref'd in CLASSPATH.

8. AXIS.JAR libraries are in AXIS libraries and ref'd in CLASSPATH.

9. libraries using java.* or javax.* are in TOMCAT's common library and not AXIS'

10. AXIS.JAR is found by both JAVAC (without the -CLASSPATH option) and NETBEANS.

11.The latest XERCES parser is used (xercesImpl.jar and xml-apis.jar)

12. No duplicate parsers exist

13. No spaces are in the CLASSPATH (8x3 names are used when spaces exist)

14. All CLASSPATH entries match case with the directory entry

15. using Sun's JVM

16. verified the "org/apache/axis/client/Service" classes exists in the .JAR (using FILEALYZER)
Sep 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: 1
Similar topic...
happyaxis.jsp tells me:
Error: could not find class javax.activation.DataHandler from file activation.jar
Axis will not work.
See http://java.sun.com/products/javabeans/glasgow/jaf.html
I downloaded the .jar but can't figure out where to put it so Axis will find it. Tried everywhere inside the TomCat folder (in which I got the webapps/Axis etc)...
Please help!

EDIT: Restarting TomCat helped.
Sorry for hijacking this thread ;)
May 24 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.