Error, org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
I have the following problem with an application of jsf+spring+hibernate, when beginning the server gives the following error:
Code:
6:15:43,312 INFO Environment:479 - Hibernate 3.1.3
16:15:43,312 INFO Environment:509 - hibernate.properties not found
16:15:43,359 INFO Environment:525 - using CGLIB reflection optimizer
16:15:43,406 INFO Environment:555 - using JDK 1.4 java.sql.Timestamp handling
16:15:43,609 ERROR ContextLoader:111 - Context initialization failed
java.lang.NoClassDefFoundError : org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:683)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:718)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:213)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:172)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:272)
at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:154)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:95)
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:80)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
Felissa :o
RE: Error, org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
I believe that the first error is that it does not find hibernate.properties so you always are going to have errors with the data base…
Copy and paste hibernate.properties to another computer, and compares the results
the error that throws to you is an internal class of spring, so check its configuration too
check if you doing click in the in properties of the project in the tab libraries you have jar of spring, and if you don't have, add it
Eric