• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Basic spring question

 
Ranch Hand
Posts: 644
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
trupti nigam
Ranch Hand
Posts: 644
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was able to figure out the issue. The issue was with eclipse IDE. Once I did the clean build everything started working.
 
reply
    Bookmark Topic Watch Topic
  • New Topic