Results 1 to 2 of 2
  1. #1
    Felissa is offline Member
    Join Date
    Jun 2007
    Posts
    95
    Rep Power
    0

    Exclamation 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:

    Java 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

  2. #2
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default 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

Similar Threads

  1. Replies: 0
    Last Post: 04-01-2008, 11:17 AM
  2. JDBC error
    By ARADHYEV in forum JDBC
    Replies: 0
    Last Post: 01-09-2008, 09:56 AM
  3. Replies: 0
    Last Post: 09-28-2007, 01:56 PM
  4. What are Custom Scopes in SpringFramework
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-28-2007, 01:48 PM
  5. Datasource
    By samson in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-02-2007, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •