为了账号安全,请及时绑定邮箱和手机立即绑定

配置完后,启动汤姆猫时出现的?求解

配置完后,启动汤姆猫时出现的?求解

鹰击长空007 2016-06-01 11:33:43
严重: Dispatcher initialization failedjava.lang.RuntimeException: java.lang.reflect.InvocationTargetException    at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:301)    at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:438)    at com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)    at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)    at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)    at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)    at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)    at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584)    at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:351)    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:235)    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)    at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)    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:4908)    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)    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.reflect.InvocationTargetException    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:606)    at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:299)    ... 32 moreCaused by: java.lang.ExceptionInInitializerError    at com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:84)    ... 37 moreCaused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!    at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:168)    ... 38 moreCaused by: java.lang.ClassNotFoundException: javassist.ClassPool    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)    at java.lang.Class.forName0(Native Method)    at java.lang.Class.forName(Class.java:190)    at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)    ... 38 more六月 01, 2016 11:27:33 上午 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter struts2java.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$MethodInjectorFile: ContainerImpl.javaMethod: injectLine: 301 - com/opensymphony/xwork2/inject/ContainerImpl.java:301:-1    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:493)    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)    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:4908)    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)    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.RuntimeException: java.lang.reflect.InvocationTargetException    at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:301)    at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:438)    at com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)    at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)    at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)    at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)    at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)    at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584)    at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:351)    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:235)    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)    at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)    ... 18 moreCaused by: java.lang.reflect.InvocationTargetException    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:606)    at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:299)    ... 32 moreCaused by: java.lang.ExceptionInInitializerError    at com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:84)    ... 37 moreCaused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!    at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:168)    ... 38 moreCaused by: java.lang.ClassNotFoundException: javassist.ClassPool    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)    at java.lang.Class.forName0(Native Method)    at java.lang.Class.forName(Class.java:190)    at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)    ... 38 more六月 01, 2016 11:27:33 上午 org.apache.catalina.core.StandardContext startInternal严重: One or more Filters failed to start. Full details will be found in the appropriate container log file六月 01, 2016 11:27:33 上午 org.apache.catalina.core.StandardContext startInternal严重: Context [/myfriststruts2] startup failed due to previous errors六月 01, 2016 11:27:33 上午 org.apache.catalina.startup.HostConfig deployDirectory信息: Deployment of web application directory D:\Tomcat\新建文件夹\webapps\myfriststruts2 has finished in 1,354 ms六月 01, 2016 11:27:33 上午 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\Tomcat\新建文件夹\webapps\ROOT六月 01, 2016 11:27:33 上午 org.apache.catalina.startup.HostConfig deployDirectory信息: Deployment of web application directory D:\Tomcat\新建文件夹\webapps\ROOT has finished in 62 ms六月 01, 2016 11:27:33 上午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["http-bio-80"]六月 01, 2016 11:27:33 上午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["ajp-bio-8009"]六月 01, 2016 11:27:33 上午 org.apache.catalina.startup.Catalina start信息: Server startup in 2176 ms
查看完整描述

1 回答

已采纳
?
Caballarii

TA贡献1123条经验 获得超629个赞

少引入了包。

“你使用struts-2.2.1吗?如果是,需要引入javassist-3.7.ga.jar,而这个在struts-2.2.1\lib下是没有的,需要在struts-2.2.1\apps\struts2-blank-2.2.1.war下的lib中找。”

建议跟maven一起学

查看完整回答
1 反对 回复 2016-06-01
  • 1 回答
  • 0 关注
  • 2174 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信