I am receiving the following error java.lang.NoClassDefFoundError: org/apache/commons/collections/Transformer
trying to use BeanMap
from the Apache Commons BeanUtils library.
It is generated from the following code: BeanMap studentBeanMap = new BeanMap(cohortStudentData.get(row));
where cohortStudentData
is a list of beans.
I am using BeanListHandler
from Apache DBUtils to form the list of beans from a database.
I understand from this and this bug report that BeanMap
is dependant on the Apache Collections framework. However, I have imported all relevant libraries into my project and into my class, as you can see below:
Does anyone know why this might be happening?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…