• 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

Spring extrange behaiuvour

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following XML configurarion file:


then i have the following code on TesisDAOImpl class:

if i comment the line: dir = new SimpleFSDirectory(Indexer); everything works fine...
BUT when i compile that line Spring turns itself mad, can't load the TesisDAO singleton and the messages are:


4/05/2011 12:34:41 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1f99eea: startup date [Wed May 04 12:34:41 CDT 2011]; root of context hierarchy
4/05/2011 12:34:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [Apendice2010/ApplicationContext.xml]
4/05/2011 12:34:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1320a41: defining beans [dataSource,TomosDAO,TesisDAO]; root of factory hierarchy
Iniciando TomosDAO
4/05/2011 12:34:42 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: org.apache.derby.jdbc.EmbeddedDriver
4/05/2011 12:34:42 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1320a41: defining beans [dataSource,TomosDAO,TesisDAO]; root of factory hierarchy
BUILD SUCCESSFUL (total time: 10 seconds)


Does anyone has any clue??? any at all??? i am getting craizy around here
Greetings
 
Carlos de luna Saenz
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had to take that method off the DAO class, implement a new class with that method and call it from the DAO and worked... still stange to me...
Greetings
 
reply
    Bookmark Topic Watch Topic
  • New Topic