The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

tomcat do not read web.xml?

Discussion in 'General Discussion' started by colorcloud, May 18, 2006.

  1. colorcloud

    colorcloud Active Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    I just install tomcat addon and it works, but when I put web.xml in the WEB-INF, the filter did not work!

    Code:
    - <filter-mapping>
      <filter-name>SecurityFilter</filter-name> 
      <url-pattern>/manager/*</url-pattern> 
      <dispatcher>REQUEST</dispatcher> 
      </filter-mapping>
    - <filter-mapping>
      <filter-name>SetCharacterEncodingFilter</filter-name> 
      <url-pattern>/*</url-pattern> 
      <dispatcher>REQUEST</dispatcher> 
      </filter-mapping>
    My web.xml filter works on a windows base tomcat, but not on linux with cpanel tomcat addon.

    Do I have to set anything at server.xml to make web.xml working?
     
  2. colorcloud

    colorcloud Active Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page