Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java Web Services problem

  • 18-01-2003 1:30pm
    #1
    Registered Users, Registered Users 2 Posts: 660 ✭✭✭


    Hi all,

    I'm doing Web Services with Java (AXIS) and have been having a big of a problem.

    I'm trying to run a test service which runs via a simple server (AxisSimpleServer) or Tomcat. Now I can start the AxisSimpleServer grand but when I go to query it using a file called HelloWorldClient.java it crashes giving the following error:

    java.lang.NoClassDefFoundError: javax/servlet/ServletContext at
    java.lang.class.getDeclaredMethods0(Native Method) etc etc

    I've configured a setclasspath.bat file which includes all the jars for Axis and have placed the xerces.jar and xercesImpl.jar files in the classpath via environment variables. I've been trying to solve it for ages and have had no luck. Any ideas would be grateful received.

    Cheers,


Comments

  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    Is servlet.jar in your classpath?


  • Registered Users, Registered Users 2 Posts: 660 ✭✭✭anthonymcg


    Its in the Tomcat directory but I'm not sure if that woulda made it available. I've downloaded a fresh copy from Sun so I'll give it a go and get back to ya. Thanks.


Advertisement