Title: NoClassDefFound: javax/servlet/ServletContext

I've been using axis since the alpha version and yesterday I upgraded to the Axis v1.0. It seems that now in order to run the web clients I have to add the servlet.jar in the client's classpath. This wasn't necessary in previous versions, even in Axis v1.0 RC.

The following is the message I got when trying to use the stock sample.

Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletContext
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
        at java.lang.Class.getMethod0(Class.java:1746)
        at java.lang.Class.getDeclaredMethod(Class.java:1233)
        at org.apache.commons.discovery.tools.ClassUtils.findPublicStaticMethod(ClassUtils.java:112)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:214)

        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.access$300(EngineConfigurationFactoryFinder.java:92)

        at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:179)

        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:148)

        at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:204)

        at org.apache.axis.client.Service.<init>(Service.java:111)
        at samples.stock.GetInfo.main(GetInfo.java:85)


Regards,

Jose Carlos Ferrer
ATX Technologies, Inc.
8550 Freeport Pkwy
Irving, TX. 75063-2547
http://www.atxtechnologies.com/

Phone:  972-753-6249
Cell:   972-345-6828
Fax:    972-753-6300
Text Msg: http://message.swbellwireless.com/dpcs/dpcs_send.cgi?dest_phone=9723456828
Email:  [EMAIL PROTECTED]


CONFIDENTIALITY NOTICE:  The information in this e-mail is privileged and confidential.  Any use, copying or dissemination of any portion of this e-mail by or to anyone other than the intended recipient(s) is unauthorized.  If you have received this e-mail in error, please reply to sender and delete it from your system immediately.

Reply via email to