• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Spring extrange behaiuvour

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!