facebook

MyEclipse Hibernate HQL Editor Problem, Error Creating Confi

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #272281 Reply

    kevinrs
    Member

    While attempting to use the HQL Query editor I am recieving an error dialog box which states the following,


    A configuration object could not be built, autocompelte and dynamic query transalation will be unavailable. Quieries cannot be executed.

    Reason:
    LocalSessionFactoryBean could not be created.

    org.springframework.beans.factory.BeanCreatonException: Error creating bean with name ‘sessionFactory’ defined in URL [file:D:/sourcecode/Platform/Application/src/com/icims/irecruiter/impl/dataaccess/spring-config-dataaccess.xml] Cannot resolve reference to bean ‘datasource’ while setting bean property ‘datasource’; nested exception is org.spring..BeanCreationException: Error creating bean with name dataSource…Error setting property values; nexted exception is org.spring..PropertyBatchUpdateException; nexted PropertyAccessExceptions(1) are: PropertyAccessException1: org.springframework.beans.MethodInvocationException: Property ‘driverClass’ threw exception; nexted exception is java.beans.PropertyVetoException: Could not locate driver class with name net.sourceforge.jtds.jdbc.Driver.

    All the Unit Tests which use the SessionFactory and the same configuration work. I have added the jtds.jar to my applcations build path (the lib folder).

    Here is my spring configuration.

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
    
    <beans>
        <!-- The Hibernate Session Factory provides Hibernate Sessions to the DAOs, 
            note that this object is proxied so that Sessions currently in a transaction are re-used.-->
        <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
            <property name="dataSource" ref="dataSource" />
            <property name="mappingResources">
                <list>
                    <value>com/icims/irecruiter/impl/dataaccess/hibernate/CustomTypes.hbm.xml</value>
                    <value>com/icims/irecruiter/impl/model/system/Education.hbm.xml</value>
                    <value>com/icims/irecruiter/impl/model/system/School.hbm.xml</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
                    <prop key="hibernate.c3p0.acquire_increment">3</prop><!-- Each time the Connection Pool Grows the number of connections retrieved. -->
                    <prop key="hibernate.c3p0.idle_test_period">3600</prop><!-- After an hour each idle connection is tested to see if it's valid.-->
                    <prop key="hibernate.c3p0.max_size">20</prop><!-- The maximum allowed connections in the pool. -->
                    <prop key="hibernate.c3p0.min_size">3</prop><!-- The minimum number of connections in the pool. -->
                    <prop key="hibernate.c3p0.max_statements">0</prop><!-- The number of prepared statements to cache, 0 means no caching. -->
                    <prop key="hibernate.c3p0.timeout">10800</prop><!-- after 3 hours a connection is removed to ensure fresh connections. (see maxIdleTime) -->
                    <prop key="hibernateconnection.isolation">2</prop>
                    <prop key="hibernate.hbm2ddl.auto">true</prop>
                    <prop key="hibernate.show_sql">${database.showsql}</prop>
                    <prop key="hibernate.default_batch_fetch_size">16</prop>
                    <prop key="hibernate.use_sql_comments">true</prop>
                    <prop key="hibernate.format_sql">true</prop>
                </props>
            </property>
        </bean>
    
        <!--  Property Configuration - allows you to use a properties file to overide properties contained in "${}" -->
        <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="location" value="classpath:database.properties" />
        </bean>
    
        <!-- Transaction Beans -->
        <bean id="platformTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
            <property name="sessionFactory" ref="sessionFactory" />
        </bean>
        
        <!-- An example template for transactions. -->
        <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
                <property name="name" value="Default Transaction"/>
                <property name="propagationBehaviorName" value="PROPAGATION_REQUIRED"/>
                <property name="timeout" value="5"/> <!-- Transactions will time out after 5 seconds. -->
                <property name="transactionManager" ref="platformTransactionManager"/>
        </bean>
    
        <!-- Setup The HibernateTemplate to use in the DAOs. -->
        
        <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
            <property name="allowCreate" value="true"/>
            <property name="fetchSize" value="1000"/>
            <property name="maxResults" value="10000"/>
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>
    
    
        <!-- The DAO Bean     -->    
        <bean id="educationDAO" class="com.icims.irecruiter.impl.dataaccess.hibernate.EducationHibernateDAO">
            <property name="hibernateTemplate" ref="hibernateTemplate"/>
        </bean>
    
        <bean id="schoolDAO" class="com.icims.irecruiter.impl.dataaccess.hibernate.SchoolHibernateDAO">
            <property name="hibernateTemplate" ref="hibernateTemplate"/>
        </bean>
        
        <!-- Data Source Bean -->
        <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
            <property name="driverClass" value="net.sourceforge.jtds.jdbc.Driver" />
            <property name="jdbcUrl" value="${database.url}" />
            <property name="properties">
                <props>
                    <prop key="user">${database.username}</prop>
                    <prop key="password">${database.password}</prop>
                    <prop key="maxIdleTimeExcessConnections">1800"</prop><!-- Each half an hour any connections not used that are in excess of the min pool size
                        are released from the pool, allowing to pool to automatically shrink. -->
                </props>
            </property>
        </bean>
    </beans>
    

    Is there something I am missing?

    #272318 Reply

    Loyal Water
    Member

    You need to add the JDBC driver to your project’s build path, so the HQL editor can find it and build the session it needs.

    #272555 Reply

    kevinrs
    Member

    I have the jdts.jar file in the lib folder of the project with the Jar file apart of the build path. In fact, I can Ctrl-Click the class name in the spring configuration to the actual class file. I have tried moving the priority of the jar up in the build path, ect. It just does not seem to work. Any other suggestions? Is this a bug?

    #272603 Reply

    kevinrs
    Member

    As a follow up, I have installed MyEclipse 6M1, to see if that would fix my problem. It has not. I have tried changing my Spring Configuration to make it simpler, removed the property configurer ect. I have made sure that the Driver Jar file is in the class path of the Project I am trying to launch the HQL Editor from.

    I have now even created a JUnit test which passes, that basically creates the Combo Pooled DataSource as spring would, then connects to the given database and runs a SQL statement. This unit tests works, using the same class path (it is in the same project.)

    The only thing I could think would be causing this problem is if, 1.) Spring is unable to configure the datasource, which is not correct, since it works outside of myeclipse. So the only other problem I could see is that the HQL Editor is not picking up the entire class path of the project? Is there anyway for me to debug this anymore? I really need the Hibernate support for the work we are starting on using Hibernate.

    #272607 Reply

    kevinrs
    Member

    Here is a picture of my class path,

    Here is a picture of the error message.

    Here is the Exception that is being thrown in the MyEclipse Editor in the log file.

    
    !SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2007-07-11 15:12:49.257
    !MESSAGE org.hibernate.console.HibernateConsoleRuntimeException: LocalSessionFactoryBean could not be created.
    !STACK 0
    org.hibernate.console.HibernateConsoleRuntimeException: LocalSessionFactoryBean could not be created.
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration$1.execute(MEConsoleConfiguration.java:160)
        at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:147)
        at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
        at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration$1.execute(MEConsoleConfiguration.java:156)
        ... 5 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1130)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
        ... 15 more
    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1127)
        ... 22 more
    !SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2007-07-11 15:12:49.257
    !MESSAGE org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    !STACK 0
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
    PropertyAccessException 1:
    org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    Caused by: java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
        at com.mchange.v2.c3p0.DriverManagerDataSource$1.vetoableChange(DriverManagerDataSource.java:68)
        at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
        at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
        at com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase.setDriverClass(DriverManagerDataSourceBase.java:65)
        at com.mchange.v2.c3p0.ComboPooledDataSource.setDriverClass(ComboPooledDataSource.java:119)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:821)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:648)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1127)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration$1.execute(MEConsoleConfiguration.java:156)
        at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:147)
        at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
        at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    !SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2007-07-11 15:12:49.257
    !MESSAGE org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    !STACK 0
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [file:D:/sourcecode/Platform/Application/test/com/icims/data/spring-config-dataaccess-test.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
    PropertyAccessException 1:
    org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    Caused by: java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
        at com.mchange.v2.c3p0.DriverManagerDataSource$1.vetoableChange(DriverManagerDataSource.java:68)
        at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
        at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
        at com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase.setDriverClass(DriverManagerDataSourceBase.java:65)
        at com.mchange.v2.c3p0.ComboPooledDataSource.setDriverClass(ComboPooledDataSource.java:119)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:821)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:648)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1127)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration$1.execute(MEConsoleConfiguration.java:156)
        at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:147)
        at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
        at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    !SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2007-07-11 15:12:49.257
    !MESSAGE org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    !STACK 0
    org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
    PropertyAccessException 1:
    org.springframework.beans.MethodInvocationException: Property 'driverClass' threw exception; nested exception is java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
    Caused by: java.beans.PropertyVetoException: Could not locate driver class with name 'net.sourceforge.jtds.jdbc.Driver'.
        at com.mchange.v2.c3p0.DriverManagerDataSource$1.vetoableChange(DriverManagerDataSource.java:68)
        at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
        at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
        at com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase.setDriverClass(DriverManagerDataSourceBase.java:65)
        at com.mchange.v2.c3p0.ComboPooledDataSource.setDriverClass(ComboPooledDataSource.java:119)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:821)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:648)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1127)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration$1.execute(MEConsoleConfiguration.java:156)
        at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
        at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:147)
        at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
        at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    
    #272609 Reply

    Loyal Water
    Member

    Can you try and reproduce this case in another project and send the project to me for testing. Your help would be appreciated.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: MyEclipse Hibernate HQL Editor Problem, Error Creating Confi

You must be logged in to post in the forum log in