首页 新闻 会员 周边 捐助

初学extjs遇到的问题..这问题困扰我一个星期了····

1
悬赏园豆:50 [已关闭问题] 关闭于 2012-03-02 19:36
严重: Exception starting filter SetCharacterEncodingFilter
java.lang.ClassNotFoundException: cn.com.xinli.tree.util.SetCharacterEncodingFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
0    [main] INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider(140) - Parsing configuration file [struts-default.xml]
log4j:ERROR No remote host is set for SocketAppender named "A2".
162  [main] INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider(140) - Parsing configuration file [struts-plugin.xml]
168  [main] INFO  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider(140) - Parsing configuration file [struts.xml]
172  [main] WARN  org.apache.struts2.config.Settings(143) - Settings: Could not parse struts.locale setting, substituting default VM locale
733  [main] ERROR com.opensymphony.xwork2.config.providers.XmlConfigurationProvider(282) - Unable to find parent packages json-default
743  [main] INFO  com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory(28) - Setting DefaultObjectTypeDeterminer as default ...
2012-2-20 20:58:01 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2012-2-20 20:58:01 org.apache.catalina.core.StandardContext start
严重: Context [/extjs] startup failed due to previous errors
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
2012-2-20 20:58:09 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - package - jar:file:/D:/java%E6%9A%91%E5%81%87%E5%AD%A6%E7%9A%84/%E5%B0%9A%E5%AD%A6%E5%A0%82%E7%A7%91%E6%8A%80_%E5%BC%A0%E5%BF%97%E5%AE%87_SERVLET_JSP_%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B_%E7%AC%AC%E4%B8%80%E7%89%88/%E8%BD%AF%E4%BB%B6/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/school/WEB-INF/lib/struts2-json-plugin-2.2.3.jar!/struts-plugin.xml:8:59
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
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.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: Unable to load configuration. - package - jar:file:/D:/java%E6%9A%91%E5%81%87%E5%AD%A6%E7%9A%84/%E5%B0%9A%E5%AD%A6%E5%A0%82%E7%A7%91%E6%8A%80_%E5%BC%A0%E5%BF%97%E5%AE%87_SERVLET_JSP_%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B_%E7%AC%AC%E4%B8%80%E7%89%88/%E8%BD%AF%E4%BB%B6/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/school/WEB-INF/lib/struts2-json-plugin-2.2.3.jar!/struts-plugin.xml:8:59
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
... 29 more
Caused by: The package name 'json-default' at location package - jar:file:/D:/java%E6%9A%91%E5%81%87%E5%AD%A6%E7%9A%84/%E5%B0%9A%E5%AD%A6%E5%A0%82%E7%A7%91%E6%8A%80_%E5%BC%A0%E5%BF%97%E5%AE%87_SERVLET_JSP_%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B_%E7%AC%AC%E4%B8%80%E7%89%88/%E8%BD%AF%E4%BB%B6/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/school/WEB-INF/lib/struts2-json-plugin-2.2.3.jar!/struts-plugin.xml:8:59 is already been used by another package at location package - jar:file:/D:/java%E6%9A%91%E5%81%87%E5%AD%A6%E7%9A%84/%E5%B0%9A%E5%AD%A6%E5%A0%82%E7%A7%91%E6%8A%80_%E5%BC%A0%E5%BF%97%E5%AE%87_SERVLET_JSP_%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B_%E7%AC%AC%E4%B8%80%E7%89%88/%E8%BD%AF%E4%BB%B6/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/school/WEB-INF/lib/jsonplugin-0.32.jar!/struts-plugin.xml:8:59 - package - jar:file:/D:/java%E6%9A%91%E5%81%87%E5%AD%A6%E7%9A%84/%E5%B0%9A%E5%AD%A6%E5%A0%82%E7%A7%91%E6%8A%80_%E5%BC%A0%E5%BF%97%E5%AE%87_SERVLET_JSP_%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B_%E7%AC%AC%E4%B8%80%E7%89%88/%E8%BD%AF%E4%BB%B6/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/school/WEB-INF/lib/struts2-json-plugin-2.2.3.jar!/struts-plugin.xml:8:59
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.addPackageConfig(DefaultConfiguration.java:124)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:486)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
... 31 more
2012-2-20 20:58:09 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2012-2-20 20:58:09 org.apache.catalina.core.StandardContext start
严重: Context [/school] startup failed due to previous errors




我的struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="false" />
   
<package name="schoolmanagement" namespace="/" extends="json-default">
.....

问题已经存在一个星期了...我快要崩溃了···各位大侠可怜可怜我吧
黄辉杰的主页 黄辉杰 | 初学一级 | 园豆:134
提问于:2012-02-20 21:20
< >
分享
所有回答(3)
0

看错误信息是没找到 cn.com.xinli.tree.util.SetCharacterEncodingFilter 类

artwl | 园豆:16736 (专家六级) | 2012-02-20 22:40

请问这个是什么类?项目里我没有定义这个类啊

支持(0) 反对(0) 黄辉杰 | 园豆:134 (初学一级) | 2012-02-21 10:04
0

这样使用extjs的人真是大神啊,让后台入侵到前台,设计上都不能隔离,太佩服了

az235 | 园豆:8483 (大侠五级) | 2012-02-21 08:17

这位大哥你就别挖苦我了...本人初学...菜得很.....你能讲明白点问题所在么?????

支持(0) 反对(0) 黄辉杰 | 园豆:134 (初学一级) | 2012-02-21 10:06
0

把workspace里面的工程全部清空,再clean一下就ok了

黄辉杰 | 园豆:134 (初学一级) | 2012-03-02 19:35

对不起啦, 现在才回头看了你的回复, 你的办法是正确的。

没豆给你真是不好意思啦。

谢谢!!!!!

支持(0) 反对(0) 黄辉杰 | 园豆:134 (初学一级) | 2013-07-10 16:26
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册