2014-10-24 4 views
7

में पहला फ़िल्टर होना चाहिए। टॉमकैट सर्वर 8.0.5 से 8.0.9.0 तक टॉमकैट को अपग्रेड करने के बाद ब्राउज़र से पृष्ठों तक पहुंचने के दौरान सर्वर टर्मिनल पर निम्न चेतावनी लॉग करता है।मॉनिटरफ़िल्टर :: चेतावनी: मॉनिटर फ़िल्टर चेन

MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
WARNING *********** NetBeans HTTP Monitor ************ 
The request cannot be recorded most likely because the NetBeans HTTP Monitor module is disabled. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 
MonitorFilter::WARNING: the monitor filter must be the first filter in the chain. 

प्रासंगिक सॉफ्टवेयर:

  • वसंत 4.0.0 जीए
  • स्प्रिंग सुरक्षा 3.2.0 जीए।
  • JSF 2.2.8-02
  • PrimeFaces 5.1 अंतिम
  • PrimeFaces एक्सटेंशन 2.1.0
  • JDK 8u25
  • NetBeans 8.0.1

web.xml फ़ाइल:

<?xml version="1.0" encoding="UTF-8"?> 
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
     http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> 

    <context-param> 
     <param-name>contextConfigLocation</param-name> 
     <param-value> 
      /WEB-INF/applicationContext.xml 
      /WEB-INF/spring-security.xml 
     </param-value> 
    </context-param> 

    <context-param> 
     <param-name>javax.faces.FACELETS_LIBRARIES</param-name> 
     <param-value>/WEB-INF/my.taglib.xml</param-value> 
    </context-param> 

    <context-param> 
     <param-name>javax.faces.PROJECT_STAGE</param-name> 
     <param-value>Production</param-value> 
    </context-param> 
    <context-param> 
     <param-name>javax.faces.STATE_SAVING_METHOD</param-name> 
     <param-value>server</param-value> 
    </context-param> 

    <context-param> 
     <param-name>log4jConfigLocation</param-name> 
     <param-value>/WEB-INF/log4j.properties</param-value> 
    </context-param> 
    <context-param> 
     <param-name>log4jExposeWebAppRoot</param-name> 
     <param-value>false</param-value> 
    </context-param> 

    <filter> 
     <filter-name>springSecurityFilterChain</filter-name> 
     <filter-class> 
      org.springframework.web.filter.DelegatingFilterProxy 
     </filter-class> 
    </filter> 
    <filter-mapping> 
     <filter-name>springSecurityFilterChain</filter-name> 
     <url-pattern>/*</url-pattern> 
     <dispatcher>REQUEST</dispatcher> 
     <dispatcher>FORWARD</dispatcher> 
    </filter-mapping> 

    <filter> 
     <filter-name>loginNocacheFilter</filter-name> 
     <filter-class>filter.LoginNocacheFilter</filter-class> 
    </filter> 
    <filter-mapping> 
     <filter-name>loginNocacheFilter</filter-name> 
     <url-pattern>/utility/*</url-pattern> 
    </filter-mapping> 

    <filter> 
     <filter-name>NoCacheFilter</filter-name> 
     <filter-class>filter.NoCacheFilter</filter-class> 
    </filter> 
    <filter-mapping> 
     <filter-name>NoCacheFilter</filter-name> 
     <url-pattern>/admin_side/*</url-pattern> 
    </filter-mapping> 

    <listener> 
     <listener-class> 
      org.springframework.web.context.ContextLoaderListener 
     </listener-class> 
    </listener> 
    <listener> 
     <listener-class> 
      org.springframework.web.context.request.RequestContextListener 
     </listener-class> 
    </listener> 
    <listener> 
     <listener-class> 
      org.springframework.security.web.session.HttpSessionEventPublisher 
     </listener-class> 
    </listener> 
    <listener> 
     <listener-class> 
      org.springframework.web.util.Log4jConfigListener 
     </listener-class> 
    </listener> 

    <filter> 
     <filter-name>PrimeFaces FileUpload Filter</filter-name> 
     <filter-class> 
      org.primefaces.webapp.filter.FileUploadFilter 
     </filter-class> 
    </filter> 
    <filter-mapping> 
     <filter-name>PrimeFaces FileUpload Filter</filter-name> 
     <servlet-name>Faces Servlet</servlet-name> 
    </filter-mapping> 

    <servlet> 
     <servlet-name>Faces Servlet</servlet-name> 
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
     <load-on-startup>1</load-on-startup> 
    </servlet> 

    <servlet-mapping> 
     <servlet-name>Faces Servlet</servlet-name> 
     <url-pattern>*.jsf</url-pattern> 
    </servlet-mapping> 
    <servlet-mapping> 
     <servlet-name>Faces Servlet</servlet-name> 
     <url-pattern>*.xhtml</url-pattern> 
    </servlet-mapping> 

    <security-constraint> 
     <display-name>Restrict direct access to XHTML files</display-name> 
     <web-resource-collection> 
      <web-resource-name>XHTML files</web-resource-name> 
      <url-pattern>*.xhtml</url-pattern> 
     </web-resource-collection> 
     <auth-constraint/> 
    </security-constraint> 
    <session-config> 
     <session-timeout> 
      120 
     </session-timeout> 
    </session-config> 
    <welcome-file-list> 
     <welcome-file>/utility/Login.jsf</welcome-file> 
    </welcome-file-list> 
     <resource-ref> 
     <res-ref-name>jdbc/social_networking</res-ref-name> 
     <res-type>javax.sql.DataSource</res-type> 
     <res-auth>Container</res-auth> 
    </resource-ref> 
</web-app> 

यह पिछले टोमकैट सर्वर (8.0.5) में नहीं हुआ था। क्या कोई फिक्स है?

नोट: मेरे previous question (एक साल पहले) में, मैंने HTTP मॉनीटर को चेतावनी को दबाने के लिए अक्षम कर दिया था। यह एक समाधान नहीं था।

संपादित करें: मैं उल्लेख करना भूल गया, लेकिन यह इस चेतावनी के बाद प्रतीत होता है कि Filter स्प्रिंग सुरक्षा से संबंधित रों web.xml में पंजीकृत हैं स्पष्ट है।

+0

वेब.एक्सएमएल में बसंत सुरक्षा फ़िल्टर जोड़ने के बाद मुझे एक ही समस्या का सामना करना पड़ा कृपया कोई जवाब दें! –

+0

आईडीई पर अस्थायी रूप से HTTP मॉनिटर को अस्थायी रूप से अक्षम करें जब तक कि यह भविष्य में किसी संभावित वैध दृष्टिकोण/समाधान के साथ पूरा न हो जाए। – Tiny

+0

नवीनतम परीक्षण टोमकैट 8.0.27.0 पर उसी चेतावनी को पुन: उत्पन्न करने के लिए किया गया है जब तक कि HTTP मॉनीटर अक्षम नहीं होता है। – Tiny

उत्तर

0

यह एक ज्ञात नायब बग जब डिबगिंग के लिए HttpMonitor उपयोग कर रहा है:

https://netbeans.org/bugzilla/show_bug.cgi?id=204775

HttpMonitor काम करेगा लेकिन यह अगर वे वसंत से पहले कार्रवाई की जाती है (वसंत सुरक्षा तरह के अनुरोध के कुछ हिस्सों को छोड़ रहा है श्रृंखला)

आप वसंत सुरक्षा फ़िल्टर को अत्यधिक उच्च आदेश देने की कोशिश कर सकते हैं और इसे काम करना चाहते हैं, जो मुझे संदेह है।

संबंधित मुद्दे