struts2+hibernate+spring写的图书管理系统有点小问题,有人帮忙看一下报什么错吗?

梁俊燃 发布于 2015/11/24 17:38
阅读 563
收藏 0
信息: Initializing Spring root WebApplicationContext
2015-11-24 17:23:58,739 INFO [org.springframework.web.context.ContextLoader]
 - <Root WebApplicationContext: initialization started>
2015-11-24 17:23:58,998 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
 - <Refreshing Root WebApplicationContext: startup date [Tue Nov 24 17:23:58 CST 2015]; root of context hierarchy>
2015-11-24 17:23:59,196 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
 - <Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]>
2015-11-24 17:23:59,684 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
 - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@ff9a56: defining beans [candy,sessionFactory,personManage,bookManage,ordersManage,LoginAction,EnrollAction,LeftAction,AllBookAction,SingleBookAction,BookAction,OneTypeAction,UserManageAction,UserExitAction,UpdateCartAction,ShoppingCartAction,SingleOrdersAction,OrdersManageAction,OrdersAction,AllOrdersAction,DealOrdersAction,UserInformationAction,UpdateBookAction]; root of factory hierarchy>
2015-11-24 17:24:00,405 INFO [org.hibernate.annotations.common.Version]
 - <HCANN000001: Hibernate Commons Annotations {4.0.1.Final}>
2015-11-24 17:24:00,426 INFO [org.hibernate.Version]
 - <HHH000412: Hibernate Core {4.0.1.Final}>
2015-11-24 17:24:00,432 INFO [org.hibernate.cfg.Environment]
 - <HHH000206: hibernate.properties not found>
2015-11-24 17:24:00,437 INFO [org.hibernate.cfg.Environment]
 - <HHH000021: Bytecode provider name : javassist>
2015-11-24 17:24:00,610 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,697 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,733 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,756 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,775 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,793 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,809 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,830 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:00,861 WARN [org.hibernate.internal.util.xml.DTDEntityResolver]
 - <HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!>
2015-11-24 17:24:01,647 WARN [org.hibernate.engine.jdbc.internal.JdbcServicesImpl]
 - <HHH000342: Could not obtain connection to query metadata : Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: YES))>
2015-11-24 17:24:01,669 INFO [org.hibernate.dialect.Dialect]
 - <HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect>
2015-11-24 17:24:01,701 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder]
 - <HHH000422: Disabling contextual LOB creation as connection was null>
2015-11-24 17:24:01,738 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator]
 - <HHH000399: Using default transaction strategy (direct JDBC transactions)>
2015-11-24 17:24:01,756 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory]
 - <HHH000397: Using ASTQueryTranslatorFactory>
2015-11-24 17:24:02,631 INFO [org.springframework.web.context.ContextLoader]
 - <Root WebApplicationContext: initialization completed in 3891 ms>
2015-11-24 17:24:02,902 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
 - <Parsing configuration file [struts-default.xml]>
2015-11-24 17:24:03,188 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
 - <Parsing configuration file [struts-plugin.xml]>
2015-11-24 17:24:03,274 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
 - <Parsing configuration file [struts.xml]>
2015-11-24 17:24:03,290 INFO [org.apache.struts2.config.BeanSelectionProvider]
 - <Loading global messages from globalMessages>
2015-11-24 17:24:03,491 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory]
 - <Initializing Struts-Spring integration...>
2015-11-24 17:24:03,491 INFO [com.opensymphony.xwork2.spring.SpringObjectFactory]
 - <Setting autowire strategy to name>
2015-11-24 17:24:03,492 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory]
 - <... initialized Struts-Spring integration successfully>
2015-11-24 17:24:04,737 ERROR [com.opensymphony.xwork2.util.finder.ClassFinder]
 - <Unable to read class [com.huizhi.action.AllBookAction]>
java.lang.AbstractMethodError: com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visitFrame(II[Ljava/lang/Object;I[Ljava/lang/Object;)V
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780)
at com.opensymphony.xwork2.util.finder.ClassFinder.access$500(ClassFinder.java:59)
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.extractSuperInterfaces(ClassFinder.java:830)
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visit(ClassFinder.java:817)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780)
at com.opensymphony.xwork2.util.finder.ClassFinder.access$500(ClassFinder.java:59)
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.extractSuperInterfaces(ClassFinder.java:830)
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visit(ClassFinder.java:817)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:780)
at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:165)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:376)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:334)
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4830)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510)
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:745)
十一月 24, 2015 5:24:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\tomcat\webapps\BookStore has finished in 14,014 ms
十一月 24, 2015 5:24:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\tomcat\webapps\docs
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\tomcat\webapps\docs has finished in 91 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\tomcat\webapps\examples
十一月 24, 2015 5:24:05 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十一月 24, 2015 5:24:05 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十一月 24, 2015 5:24:05 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@7155cd')
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\tomcat\webapps\examples has finished in 592 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\tomcat\webapps\host-manager
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\tomcat\webapps\host-manager has finished in 105 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\tomcat\webapps\manager
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\tomcat\webapps\manager has finished in 99 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\tomcat\webapps\ROOT
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\tomcat\webapps\ROOT has finished in 82 ms
十一月 24, 2015 5:24:05 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
十一月 24, 2015 5:24:05 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.Catalina start

信息: Server startup in 15083 ms


有人愿意帮忙调试一下程序吗?万分感谢!!

加载中
0
ZeroHegel
ZeroHegel
不能读取动作类AllBookAction,看看你的配置文件
梁俊燃
梁俊燃
能帮我调试一下吗?我发文件给你。我自己调试很久了!
0
猫神
猫神

Access denied for user 'root'@'localhost' (using password: YES)

LZ ,检查你的hibernate输入的数据库用户名,端口,密码等等

K
KTONE
把配置文件贴出来好了
猫神
猫神
回复 @梁俊燃 : 我是说,检查下数据库用户名和密码有没有填对,异常错误码就是说你配置文件填写的数据用户名密码不对
梁俊燃
梁俊燃
检查过了,我自己看很久了。你能帮我看一下吗,能的话我发文件给你。谢谢
0
pantrick
pantrick
Access denied for user 'root'@'localhost' (using password: YES)
返回顶部
顶部