2 Replies Latest reply on Jan 7, 2002 8:14 PM by jimotte

    How do I add new Mime type (svg) to JBoss-Tomcat

    jimotte Newbie

      I need to add the svg mime type to JBoss-2.4.3_Tomcat-3.2.3- how is this done?- I have modified the web.xml under tomcat/conf to:
      <mime-mapping>

      svg

      <mime-type>
      image/svg+xml svg
      </mime-type>
      </mime-mapping>
      <mime-mapping>

      svgz

      <mime-type>
      image/svg+xml svgz
      </mime-type>
      </mime-mapping>


      but yet when I post:
      http://localhost:8080/MyContext/gui.svg

      The browser still tries to display it as xml with following error:

      The XML page cannot be displayed
      Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


      --------------------------------------------------------------------------------

      Reference to undeclared namespace prefix: 'xlink'. Line 17, Position 31


      <script xlink:href="GUI.js"/>

      Any ideas?
      Thanks