ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Asynchronous Messaging Made Easy With Spring JMS
Subject:   IOException parsing XML document from class path resource [spring-jms.xml]; nested exception is java.io.FileNotFoundException:
Date:   2009-05-13 05:21:07
From:   vijaydeepa
Hi i am working on spring with jms


i faced one problem,i tried somany ways but i couldn't found the solution


when i call like this
======================
ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] {
"spring-jms.xml"});


System.out.println("Classpath loaded");


JmsSender jmsSender = (JmsSender)appContext.getBean("jmsSender");


jmsSender.sendMessage();


System.out.println("Message sent using Spring JMS.");
==========================
i am getting this error,please any one help me


org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring-jms.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring-jms.xml] cannot be opened because it does not exist