You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Abhijat Thakur <at...@bdnacorp.com> on 2003/02/05 21:07:23 UTC

configuring MIME type

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


Re: configuring MIME type

Posted by Bill Barker <wb...@wilshire.com>.
>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" <se...@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


how to delete tomcat cache

Posted by x x <cu...@yahoo.com>.
--- x x <cu...@yahoo.com> wrote:
> Hi:
>     I have a TOMCAT 4.1.8 running in a linux
> Mandrake,its work fine,but when i make any changes,
> ex: i change something in ma java beans, and i try
> again the server show me the page without any
> changes,
> or if i delete the directory where my class are, and
> i
> try again I saw the page like the directory still
> exist there. But whe i down the server and start
> again
> just them the server assume the change, I think that
> the server have something like a cache. 
> How can make to my server take the change everytime
> i
> make changes.  
> Thank 
>   
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


problem when update my web site

Posted by x x <cu...@yahoo.com>.
Hi:
    I have a TOMCAT 4.1.8 running in a linux
Mandrake,its work fine,but when i make any changes,
ex: i change something in ma java beans, and i try
again the server show me the page without any changes,
or if i erase the directory where my class are, and i
try again I saw the page like the directory still
exist there. But whe i down the server and start again
just them the server assume the change, I think that
the server have something like a cache. 
How can make to my server take the change everytime i
make changes.  
Thank 
  

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Re: configuring MIME type

Posted by Sean Dockery <se...@sbdconsultants.com>.
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