org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter Acegi Filter Chain Proxy

来源:互联网 发布:office 2013 mac 编辑:程序博客网 时间:2024/04/30 20:46

2010-7-9 19:52:31 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter Acegi Filter Chain Proxy
javax.servlet.ServletException: Bean context must contain at least one bean of type org.acegisecurity.util.FilterChainProxy
 at org.acegisecurity.util.FilterToBeanProxy.doInit(FilterToBeanProxy.java:145)
 at org.acegisecurity.util.FilterToBeanProxy.init(FilterToBeanProxy.java:189)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
 at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
 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:519)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2010-7-9 19:52:31 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-7-9 19:52:31 org.apache.catalina.core.StandardContext start
严重: Context [/bomc] startup failed due to previous errors
2010-7-9 19:52:31 org.apache.catalina.core.ApplicationContext log
信息: Shutting down Log4J
2010-7-9 19:52:31 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (cn.com.ultrapower.eoms.user.startup.Server).
log4j:WARN Please initialize the log4j system properly.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
严重: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [Store org.hibernate.cache.UpdateTimestampsCache Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [Store org.hibernate.cache.UpdateTimestampsCache Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [Store org.hibernate.cache.StandardQueryCache Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [SeedGenerator Thread] but has failed to stop it. This is very likely to create a memory leak.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@8cbc51]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@19f6e39]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [com.opensymphony.xwork2.ActionContext.ActionContextThreadLocal] (value [com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal@2edea6]) and a value of type [com.opensymphony.xwork2.ActionContext] (value [com.opensymphony.xwork2.ActionContext@11b8e71]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-7-9 19:52:31 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [org.jaxen.function.StringFunction$1] (value [org.jaxen.function.StringFunction$1@249e4f]) and a value of type [java.text.DecimalFormat] (value [java.text.DecimalFormat@674dc]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
CONFIG: configuration located at file:/C:/Program%20Files/AR%20System/Mid-Tier/WEB-INF/classes/config.properties
CONFIG: Got URI path=/C:/Program Files/AR System/Mid-Tier/WEB-INF/classes/config.properties
Midtier root = C:/Program Files/AR System/Mid-Tier
Loaded properties file C:/Program Files/AR System/Mid-Tier/WEB-INF/classes/config.properties
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Exception in thread "HouseKeeper" java.lang.NullPointerException
 at org.logicalcobwebs.proxool.HouseKeeperController.getHouseKeeperToRun(HouseKeeperController.java:53)
 at org.logicalcobwebs.proxool.HouseKeeperThread.run(HouseKeeperThread.java:33)

 

解决方案:

检测web.xml文件是否加载Spring映射配置以及使用pasm Acegi代理过滤器。
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>
   classpath*:spring/*.xml
   classpath:security-cas-rmi.xml
  </param-value>
 </context-param>
<!-- pasm 过滤 begin -->
 <!-- Acegi代理过滤器定义 -->
 <filter>
  <filter-name>Acegi Filter Chain Proxy</filter-name>
  <filter-class>
   org.acegisecurity.util.FilterToBeanProxy
  </filter-class>
  <init-param>
   <param-name>targetClass</param-name>
   <param-value>
    org.acegisecurity.util.FilterChainProxy
   </param-value>
  </init-param>
 </filter>
 <!-- Acegi代理过滤器映射-->
 <filter-mapping>
  <filter-name>Acegi Filter Chain Proxy</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
    <!-- ucas客户端ticket代理初始化 begin -->
 <servlet>
  <servlet-name>casproxy</servlet-name>
  <servlet-class>
   edu.yale.its.tp.cas.proxy.ProxyTicketReceptor
  </servlet-class>
  <init-param>
   <param-name>edu.yale.its.tp.cas.proxyUrl</param-name>
   <param-value>http://192.168.2.103:58045/ucas/proxy</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>
 <servlet-mapping>
  <servlet-name>casproxy</servlet-name>
  <url-pattern>/casProxy/*</url-pattern>
 </servlet-mapping>
 <!-- ucas客户端ticket代理初始化 end -->
<!-- pasm 过滤 end -->
若对方没有此服务情况下,想要正常登陆,需要注释<!-- pasm 过滤 begin -->......<!-- pasm 过滤 end -->既可。