This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: struts json
It's not a secret anymore!