wood burning stoves 2.0*
The moose likes Struts and the fly likes struts json Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts json" Watch "struts json" New topic

struts json

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
I am using the net.sf.json libraries but when I execute my action I get the following error:
java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
on the JSONObject jsonObj00 = new JSONObject();
the library is in the path, in the war, in the deployment. How can I get around this? tia.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Sounds like you're either missing commons-lang, or there's a version issue.
Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hi Dave
Thank you. That was the problem. I was resistant to it as I thought I got that from other libraries, obviously not.
I agree. Here's the link: http://aspose.com/file-tools
subject: struts json
Similar Threads
Searching google images from java code
Json Parser
Passing the JSON Array to the servlet
JSONObject from two packages
Struts and JSON