拦截器类 org.apache.struts2.interceptor.debugging.DebuggingInterceptor

发布于 2024-10-08 18:14:15 字数 2143 浏览 1 评论 0原文

当我尝试使用 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 技术交流群。

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

发布评论

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

评论(2

魔法少女 2024-10-15 18:14:15

尝试导入 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.

预谋 2024-10-15 18:14:15

检查第 76 行,你的

struts-default.xml 

Some jar 的第 115 个字符似乎丢失了

Check line 76, character 115 of your

struts-default.xml 

Some jar seems to be missing

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