Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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.
Have you tried LearnNowOnline?
subject: struts json