拦截器类 org.apache.struts2.interceptor.debugging.DebuggingInterceptor
当我尝试使用 struts2 运行一个简单的应用程序时,出现以下错误。你能告诉我解决方案吗?
Dec 22, 2010 1:50:47 PM com.opensymphony.xwork2.config.providers.InterceptorBuilder constructInterceptorReference
WARNING: Unable to load config class org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interceptor - jar:file:/E:/Eclipseworkspace/MyTestJava/WebRoot/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-default.xml:76:115 probably due to a missing jar, which might be fine if you never plan to use the debugging interceptor
Dec 22, 2010 1:50:47 PM com.opensymphony.xwork2.config.providers.InterceptorBuilder constructInterceptorReference
SEVERE: Actual exception
Caught Exception while registering Interceptor class org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor - jar:file:/E:/Eclipseworkspace/MyTestJava/WebRoot/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-default.xml:76:115
at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:78)
at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:57)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:905)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:743)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:756)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:777)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:410)
Caused by: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in public void org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager).
I'm getting the following error when i try to run a simple application using struts2. Could you tell me the solution?
Dec 22, 2010 1:50:47 PM com.opensymphony.xwork2.config.providers.InterceptorBuilder constructInterceptorReference
WARNING: Unable to load config class org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interceptor - jar:file:/E:/Eclipseworkspace/MyTestJava/WebRoot/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-default.xml:76:115 probably due to a missing jar, which might be fine if you never plan to use the debugging interceptor
Dec 22, 2010 1:50:47 PM com.opensymphony.xwork2.config.providers.InterceptorBuilder constructInterceptorReference
SEVERE: Actual exception
Caught Exception while registering Interceptor class org.apache.struts2.interceptor.debugging.DebuggingInterceptor - interceptor - jar:file:/E:/Eclipseworkspace/MyTestJava/WebRoot/WEB-INF/lib/struts2-core-2.0.9.jar!/struts-default.xml:76:115
at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:78)
at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:57)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:905)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:743)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:756)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:777)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:410)
Caused by: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=org.apache.struts2.views.freemarker.FreemarkerManager, name='default'] in public void org.apache.struts2.interceptor.debugging.DebuggingInterceptor.setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试导入 struts2-config-browser-plugin。我知道这是一个有点旧的线程,但这对我有用。我在互联网上找不到答案。
Try importing struts2-config-browser-plugin.i know this is a bit old thread but that's what worked for me. I couldn't find the answer anywhere on the internet.
检查第 76 行,你的
Some jar 的第 115 个字符似乎丢失了
Check line 76, character 115 of your
Some jar seems to be missing