You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Ferrer, J.C." <jf...@atxtelematics.com> on 2002/10/08 17:09:29 UTC
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(ClassUt
ils.java:112)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En
gineConfigurationFactoryFinder.java:214)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.access$300(En
gineConfigurationFactoryFinder.java:92)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineC
onfigurationFactoryFinder.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En
gineConfigurationFactoryFinder.java:148)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En
gineConfigurationFactoryFinder.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: jferrer@atxtelematics.com
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.
Re: NoClassDefFound: javax/servlet/ServletContext
Posted by Matthias Brunner <mb...@blumenstrasse.vol.at>.
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13149
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
Re: NoClassDefFound: javax/servlet/ServletContext
Posted by Matthias Brunner <mb...@blumenstrasse.vol.at>.
On Tuesday 08 October 2002 17:09, Ferrer, J.C. wrote:
> 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
Include servlet.jar in your classpath. This bug has already been
re-opened.
Best regards!
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc