tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: configuring MIME type
Date Thu, 06 Feb 2003 07:22:02 GMT
>From my limited Linux use, I believe that 1) only works if you are running
behind Apache, and Apache is serving static content.  2) is probably safer
(and certainly required if either of the conditions on 1 are false).

"Sean Dockery" <sean@sbdconsultants.com> wrote in message
news:5.2.0.9.0.20030205134125.07bfb588@10.0.0.100...
> You should be able to do one (or both) of the following...
>
> 1. Edit /etc/mime.types and add the appropriate MIME type...  Re-hashing
> the mime.types file is usually required.  Can't remember how to do that
> off-hand, but I know that restarting the machine works.  :-)
>
> 2. In web.xml add the following...
>
> <webapp>
>    ...
>
>    <mime-mapping>
>      <extension>jnlp</extension>
>      <mime-type>application/x-java-jnlp-file</mime-type>
>    </mime-mapping>
>
>    ...
>
> </webapp>
>
> Good luck.
>
> At 12:07 2003-02-05 -0800, you wrote:
>
> >Hi,
> >
> >We are using Tomcat as a Web Server as well as a Servlet Engine and what
> >we need to do is to configure the MIME type for Web Server which in our
> >case is Tomcat. We want to configure Tomcat so that all files with the
> >.jnlp file extension are set to the application/x-java-jnlp-file MIME
> >type. Tomcat must return application/x-java-jnlp-file MIME type for JNLP
> >files in order for the Java Web Start software to be invoked.
> >How can i do this? I believe that i would have to modify some
> >configuration file for this.
> >thanks
> >abhijat
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> Sean Dockery
> sean@sbdconsultants.com
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message