Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. colorcloud

    colorcloud Active Member

    Joined:
    Aug 14, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    151
    Any one knows?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice