Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by user472749

    Your applicationcontext.xml has a transactionManager defined. Your would need to remove it or add an entity manager.

Solutions on the web

via Coderanch by Tsague ezequiel, 1 year ago
Error creating bean with name 'contactsDao' defined in ServletContext resource [/WEB-INF/ApplicationContext-Dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is
via coderanch.com by Unknown author, 2 years ago
Error creating bean with name 'contactsDao' defined in ServletContext resource [/WEB-INF/ApplicationContext-Dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is
via Stack Overflow by p27
, 2 years ago
Error creating bean with name 'myTransactionManager' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'mySessionFactory' while setting bean property 'sessionFactory'; nested exception is
via Stack Overflow by user3205761
, 1 year ago
Error creating bean with name 'ticketRegistryCleaner' defined in ServletContext resource [/WEB-INF/spring-configuration/ticketRegistry.xml]: Cannot resolve reference to bean 'cleanerLock' while setting bean property 'lock'; nested exception is
via Stack Overflow by user991255
, 2 years ago
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [persistance.xml]: Cannot resolve reference to bean 'CustomSessionFactory' while setting bean property 'sessionFactory'; nested
via Coderanch by Bibin Zacharias, 1 year ago
Error creating bean with name 'userDao' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sqlMapClientTemplate' while setting bean property 'sqlMapClientTemplate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionAdvice' defined in class path resource [META-INF/base-spring.xml]: Cannot resolve reference to bean 'liferayTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined in class path resource [META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'liferayHibernateSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)	at java.security.AccessController.doPrivileged(Native Method)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:49)	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)