This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Only get plain text file with Tomcat 3.3

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am try to deploy an application at Tomcat 3.3 with webstart.
I first installed tomcat. Then put the following files at
cduView.jar WEB-INF/
index.html NMSClient.jnlp
The contents in NMSClient.jnlp is
<?xml version="1.0" encoding="UTF-8"?>
<!-- file Hello.jnlp -->
<jnlp codebase=""
<j2se version="1.2+"/>
<jar href="cduView.jar"/>
<application-desc main-class="com.comsat.nms
Under WEB-INF directory, I have only one file web.xml there, The contents is
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE mime-mapping
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
The contents of index.htm is
<a href="">Launch </a>
<!-- Alternate HTML for browsers which cannot instantiate the object -->
<A HREF="">
Download Java Web Start</A>
When I load the index page and click the link, the browser just gives me the contents of that jnlp file.
Could you please tell me what I am doing wrong here?
Thanks a lot,
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using tomcat 4.1.17 - so my first question in reply is: if you have downloaded tomcat for testing jws, why aren't you using the latest stable version instead of using an old release.
In tomcat 4 there is the main web.xml in the directory conf. the jnlp mime type is defined there (default). So this part of jws worked for me without problems. I don't know if it can work to specify a mime type for only one webapp.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic