Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDef FoundError: javax/servlet/ ServletContext  RSS feed

 
Viv Gupta
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
While invoking the service from an DII axis client, Iam receiving an exception -



I could not get any clue why this is happening. Can any one point out why do I need servlet context while invoking a service ?
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a standard classpath issue - a required JAR isn't in the classpath.

Axis is hosted as a web application, as a servlet. It therefore needs the servlet JAR.

I'm not at my home computer or I could work out which JAR is missing - but it should be mentioned in the Axis doco - or compare your application with the Axis example apps.


-Tim
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For clarification
While invoking the service from an DII axis client, Iam receiving an exception -

did you get that exception on the client side or the server side?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!