on 2016 May 28 11:29 AM
Hi all
I am facing this error when I run my mapping.
This is the mapping I am using mentioned in this thread.
details: java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap: org/apache/commons/collections/map/ListOrderedMap.class
However when I try to include this jar file, I get this error. I attached the screen shot for my error
I have included these jar files like org.apache.commons.beanutils, org-apache-commons-logging, xom, json-lib, ezmorph-1.0, apache-commons-lang in the imported archives along with the jar of my Java mapping
Any idea how this can be solved?
Regards
Harish Babu
Request clarification before answering.
Hi Harish,
jar file is a collection of multiple class file. First thing to do is to get specific class file which is giving the error . In your case it is ListOrderedMap.class. Instead of including entire jar file include only the required class. In order to extract the specific class file use the technique defined in this link
Extract all class file from jar file and include only ListOrderedMap.class in the project.
I guess issue will be over. In case you get similar error of " java.lang.NoClassDefFoundError" again follow same steps until you get rid of the error.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.