You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Elm Gysel <el...@dateq.be> on 2001/12/12 11:13:57 UTC

web.xml extension mapping

hello,

I'm currently using Tomcat 3.2.2 with Apache and i'm trying to map *.pdf to the Tomcat engine.
I'm using mod_jk.
Since this is version 3.2.2 the mod_jk.conf-auto file gets generated automaticly when tomcat starts.

I've added these lines to my WEB-INF/web.xml file :

(partial file)

 <servlet>
  <servlet-name>
   PDFCreator
  </servlet-name>
  <servlet-class>
   com.nihisoft.odm.servlet.PDFCreator
  </servlet-class>
 </servlet>
 <servlet-mapping>
  <servlet-name>
   PDFCreator
  </servlet-name>
  <url-pattern>
   *.pdf
  </url-pattern>
 </servlet-mapping>

now when I run Tomcat and the mod_jk.auto-conf file gets generated the mapping doesn't seem to be done in mod_jk.auto-conf. Am I missing something?

Thanks for any help!

Elm