初学者SSH框架登录实例遇到的问题,启动tomcat时出错,请指导。

八月 21, 2015 10:35:18 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logins' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1897)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
at org.springframework.orm.hibernate3.support.HibernateDaoSupport.checkDaoConfig(HibernateDaoSupport.java:118)
at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 25 more
八月 21, 2015 10:35:18 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
八月 21, 2015 10:35:18 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/LearnSSH] startup failed due to previous errors
八月 21, 2015 10:35:18 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
八月 21, 2015 10:35:18 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\Myeclipse\workspace.metadata.me_tcat7\webapps\LearnSSH has finished in 3,630 ms
八月 21, 2015 10:35:18 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Myeclipse\workspace.metadata.me_tcat7\webapps\manager
八月 21, 2015 10:35:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\Myeclipse\workspace.metadata.me_tcat7\webapps\manager has finished in 72 ms
八月 21, 2015 10:35:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\Myeclipse\workspace.metadata.me_tcat7\webapps\ROOT
八月 21, 2015 10:35:19 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\Myeclipse\workspace.metadata.me_tcat7\webapps\ROOT has finished in 60 ms
八月 21, 2015 10:35:19 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 21, 2015 10:35:19 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 21, 2015 10:35:19 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4930 ms

查看全部
baidu_29004419
baidu_29004419
2015/08/21 02:58
  • ssh
  • 点赞
  • 收藏
  • 回答
    私信

1个回复