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

发布于 2021-11-28 07:43:35 字数 13337 浏览 711 评论 7

信息: 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:tomcatwebappsBookStore has finished in 14,014 ms
十一月 24, 2015 5:24:04 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:tomcatwebappsdocs
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:tomcatwebappsdocs has finished in 91 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:tomcatwebappsexamples
十一月 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:tomcatwebappsexamples has finished in 592 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:tomcatwebappshost-manager
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:tomcatwebappshost-manager has finished in 105 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:tomcatwebappsmanager
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:tomcatwebappsmanager has finished in 99 ms
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:tomcatwebappsROOT
十一月 24, 2015 5:24:05 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:tomcatwebappsROOT 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


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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

伪装你 2021-11-30 11:34:42

#FFE500;background-color:#006600;">Access denied for user 'root'@'localhost' (using password: YES)

绝情姑娘 2021-11-30 11:34:36

检查过了,我自己看很久了。你能帮我看一下吗,能的话我发文件给你。谢谢

巡山小妖精 2021-11-30 11:33:30

回复
我是说,检查下数据库用户名和密码有没有填对,异常错误码就是说你配置文件填写的数据用户名密码不对

看透却不说透 2021-11-30 11:25:50

把配置文件贴出来好了

北笙凉宸 2021-11-30 11:06:51

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

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

做个少女永远怀春 2021-11-30 10:01:47

能帮我调试一下吗?我发文件给你。我自己调试很久了!

猫性小仙女 2021-11-30 06:17:49

不能读取动作类AllBookAction,看看你的配置文件

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文