This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Configuring Tomcat for JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Configuring Tomcat for JWS" Watch "Configuring Tomcat for JWS" New topic

Configuring Tomcat for JWS

Richa Anand

Joined: Aug 27, 2005
Posts: 6
Hello All,
I'm using Apache Tomcat 5. I want to write an application build around JWS.

I want to configure the servlet container to use the appropriate MIME type. The server must return the application/x-java-jnlp-file MIME type for JNLP files in order for Java Web Start to invoke.

How can I do that?
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Starting with 4.0.x Tomcat is already configured to recognize .jnlp I would expect Tomcat 5 is the same.
to check it out, open TOMCAT_HOME/conf/web.xml

and look for the following:
jQuery in Action, 3rd edition
subject: Configuring Tomcat for JWS
It's not a secret anymore!