File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap" Watch "java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap" New topic

java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap

Vi Mani

Joined: Feb 10, 2011
Posts: 13

I am using net.sf.json.JSONObject in action class .I am getting the following exception.I have the common-collections.jar in my buildpath.Inspite of tjat i am getting this exception.
Please help.

java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap
at net.sf.json.JSONObject.<init>(
at com.hillphoenix.quoting.epr.EditGridAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11AprProcessor.process(
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(
at Source)
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Mani,
Is the jar version >= 3.0 ? and also open it and see if the class is available in the same path

Have Fun with Java
little,little.. little by little makes a lot..
Vi Mani

Joined: Feb 10, 2011
Posts: 13
I opened the jar the class file is there.I used 3.0 and again tried with 3.2.1.The server is tomcat.In the local the application runs fine but in test i get this exception and the data is not getting populated.
I agree. Here's the link:
subject: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap
It's not a secret anymore!