NoClassDefFoundError -

 FAQ > Errors > Exceptions > NoClassDefFoundError -

If you get an exception like this

java.lang.NoClassDefFoundError - org/springframework/core/io/Resource


You were probably trying to use the XML Configuration mechanism, which uses Spring, but without having the Spring jar on your classpath.


Add the Spring jar to your classpath.

Apache ActiveMQ, ActiveMQ, ActiveMQ Artemis, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2019, The Apache Software Foundation. Licensed under Apache License 2.0.