tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Bondy <gbo...@starmountsystems.com>
Subject Missing commons-el.jar causes NoClassDefFoundError org/apache/commons/el/ExpressionEvaluatorImpl
Date Wed, 05 May 2010 15:33:57 GMT
I am migrating from Tomcat 5.5.27 to 6.0.26. I found that an
application I have running on 5.5.27 fails on 6.0.26 with the error:
NoClassDefFoundError org/apache/commons/el/ExpressionEvaluatorImpl. I
found that the class in question is located in commons-el.jar on
5.5.27 and that jar is missing from 6.0.26.

The application is using Spring 3.0.1 and it appears that has a
dependency on org.apache.commons.el.ExpressionEvaluatorImpl. This is
the stack trace I am seeing: nested exception is
java.lang.NoClassDefFoundError:
org/apache/commons/el/ExpressionEvaluatorImpl
       at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
       at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
       at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:328)
       at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:43)
       at org.springframework.web.context.request.SessionScope.get(SessionScope.java:92)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
       at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)

If I copy commons-el.jar into the lib folder, the application works just fine.

Can you tell me the reason for removing commons-el.jar. Is there a
better remedy to the NoClassDefFoundError problem other them copying
the jar file from 5.5.27?

Thanks,
Greg
Disclaimer: The information contained in this communication is confidential and only for the
use of the intended addressee(s).  If you have received this communication in error, any disclosure
or use of such information is strictly prohibited.  Please notify the sender immediately and
destroy all copies.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message