• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error - The type XMLBeanFactory is deprecated

 
Greenhorn
Posts: 7
MyEclipse IDE MS IE Notepad
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new learner to Springs and was trying to implement simple program. I am getting the error as - "The type XMLBeanFactory is deprecated" and in package XmlBeanFactory is strike

Below are the codes for both class and XML :-




Triangle Class-




Xml File-

[code = java]

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>
<bean id = "triangle" class = "org.vineet.javabrains.Triangle" />


</beans>

[/code]
 
Ranch Hand
Posts: 349
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi VineetS ,
Dont use XmlBeanFactory .ApplicationContext is a sub-interface of BeanFactory .Try to use ApplicationContext and ClassPathXmlApplicationContext .
Few good links :
webpage1
webpage2

Satya
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic