Announcement Announcement Module
Collapse
No announcement yet.
Have problem with 3.0.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Have problem with 3.0.1

    have error
    PHP Code:
    org.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor'Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'nested exception is org.springframework.beans.factory.BeanCreationExceptionError creating bean with name '(inner bean)'Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'nested exception is org.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'entityManagerFactory' defined in class path resource [ua/com/kvad/configuration/context-database.xml]: Invocation of init method failednested exception is java.lang.AbstractMethodErrororg.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
    Caused byorg.springframework.beans.factory.BeanCreationExceptionError creating bean with name '(inner bean)'Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'nested exception is org.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'entityManagerFactory' defined in class path resource [ua/com/kvad/configuration/context-database.xml]: Invocation of init method failednested exception is java.lang.AbstractMethodErrororg.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
    Caused byorg.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'entityManagerFactory' defined in class path resource [ua/com/kvad/configuration/context-database.xml]: Invocation of init method failednested exception is java.lang.AbstractMethodErrororg.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
    Caused byjava.lang.AbstractMethodErrororg.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
        
    at org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:39)
        
    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:478)
        
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
        
    at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:218)
        
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
        
    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.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:881)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:829)
        
    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.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:215)
        
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127)
        
    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.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)
        
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96)
        
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
        
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
        
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:315)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1181)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
        
    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 org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:511)
        
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
        
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543)
        
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
        
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
        
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
        
    at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:447)
        
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
        
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        
    at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
        
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
        
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        
    at org.mortbay.jetty.Server.doStart(Server.java:222)
        
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
        
    at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:536)
        
    at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:377)
        
    at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:938)
        
    at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690
    but with version 3.0.1.CI-561 work without error

  • #2
    my context-database.xml
    PHP Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
        default-autowire="byName"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">


        <!-- Hibernate EntityManager Factory -->
        <bean id="entityManagerFactory"
            class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
            <property name="persistenceXmlLocation" value="${persistenceXmlLocation}" />
            <property name="jpaVendorAdapter">
                <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                    <property name="showSql" value="${hibernate.showSql}" />
                    <property name="generateDdl" value="${hibernate.generateDdl}" />
                    <property name="databasePlatform" value="${hibernate.dialect}" />
                </bean>
            </property>
        </bean>

        <!--  Data source -->

        <bean id="dataSource"
            class="org.springframework.jdbc.datasource.DriverManagerDataSource">
            <property name="driverClassName" value="${jdbc.driver}" />
            <property name="url" value="${jdbc.url}" />
            <property name="username" value="${jdbc.username}" />
            <property name="password" value="${jdbc.password}" />
        </bean>

        <!-- Transaction manager -->

        <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"></bean>
        <bean
            class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />

        <!--

            enable the configuration of transactional behavior based on

            annotations
        -->
        <tx:annotation-driven />
    </beans>

    Comment


    • #3
      Did you find a solution?

      Comment

      Working...
      X