This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

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

Vi Mani
Greenhorn

Joined: Feb 10, 2011
Posts: 13
Hi,

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>(JSONObject.java:1603)
at com.hillphoenix.quoting.epr.EditGridAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown 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
Greenhorn

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: http://aspose.com/file-tools
 
subject: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap
 
Similar Threads
regd JOPR console
How to integrate hibernate and EJB (stateless session bean)
using the display:table tag
Struts error cannot find bean
Problem while running struts application