File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts json" Watch "struts json" New topic
Author

struts json

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
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
Author
Rancher

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