Hello all,
I am new to spring and have started looking at the basics from
http://www.tutorialspoint.com/spring/custom_events_in_spring.htm page.
It has few tutorials.
I have few classes and a beans.xml (which is the spring config xml). It had some bean defined from previous example that I run. but for the new example I modified it and removed the bean but when I run my main class the eclipse is still complaining that the particular class defined in beans.xml is not found.
Any pointers?
Below is my new beans.xml. It does not reference JavaCollections class that it's complaining about.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="helloWorld" class="com.tutorialspoint.HelloWorld">
<property name="message" value="Hello World!"/>
</bean>
<bean id="cStartEventHandler"
class="com.tutorialspoint.CStartEventHandler"/>
<bean id="cStopEventHandler"
class="com.tutorialspoint.CStopEventHandler"/>
</beans>
I am getting below error:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.tutorialspoint.JavaCollection] for bean with name 'javaCollection' defined in class path resource [Beans.xml]; nested exception is java.lang.ClassNotFoundException: com.tutorialspoint.JavaCollection