aspose file tools
The moose likes Spring and the fly likes Spring extrange behaiuvour Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Spring extrange behaiuvour " Watch "Spring extrange behaiuvour " New topic
Author

Spring extrange behaiuvour

Carlos de luna Saenz
Greenhorn

Joined: Jul 31, 2006
Posts: 2
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

Joined: Jul 31, 2006
Posts: 2
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
 
 
subject: Spring extrange behaiuvour
 
Threads others viewed
Using Stored procedure in spring with hibernate
Get error in standalone AOP prog
Spring 2.5 - Transaction example
Problem to run my application
Spring JDBC Problem getting log messages
IntelliJ Java IDE