Setting MIME type in IIS 4 & 5

Well I am very impressed with this Web Start technology but it was a little slow downloading via sun's site.
I set about trying to set it up on my company Intranet server before I demonstrated to my IT director.
I saved the swingset2.jnlp file from the sun demo's page, used the Swingset2.jar file from the JDK 1.3.1 demos and got the swingset2.jnlp images and put them in an images subdirectory. Next I amended the swingset.jnlp to my own web server by changing the cobebase parameter. I then created a simple web page wrapper with a link to the jnlp file.
In my directories I have the following files:
swingset2.html
swingset2.jar
swingset2.jnlp
images\swingset2.small
On the server side IIS 5.0, I go into master properties for my web server, go to HTTP headers and hit the file types button.
I then add a new entry with associated extension .jnlp and content type of application/x-java-jnlp-file
Also found and changes the IIS.inf file just in case.
Rebooted the web server to make sure everything is initialised correctly.
When I launch the jnlp file from a client PC "Java Web Start" starts but I get the following error "Unable to launch Swingset2", details "category: download error. Bad MIME type returned from server when accessing resource: http://Newgreg/jaws/Swingset2.jnlp - text/html.
The jnlp used is listed:
<!--
# @(#)template.jnlp     1.2 01/04/25
# JNLP File for SwingSet2 Demo Application
-->
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://NewGreg/jaws/apps"
href="SwingSet2.jnlp">
<information>
<title>SwingSet2</title>
<vendor>Sun Microsystems, Inc.</vendor>
<homepage href="../demos.html"/>
<description>SwingSet2 Demo</description>
<description kind="short">A demo of the capabilities of the Swing Graphical User Interface.</description>
<icon href="images/swingset2.small.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.3+"/>
<jar href="SwingSet2.jar" main="true" download="eager"/>
</resources>
<application-desc main-class="SwingSet2"/>
</jnlp>
Can anyone help??? I would love to start using this technology, it looks very promising.
Email: [email protected]

Have you been able to write your own java app and deploy it on that same server by any chance? It's hard to say whether it's something to do with the swing start demo configuration or whether it's your server's configuration. Since it's reporting bad MIME type I'm wondering if it's more related to the web server configuration.

Similar Messages

  • How to set mime types in AppServer 8

    Couldn't find commands to list mime types or set mime types used by Sun Java Application Server 8

    Hi,
    Please refer to Adding Mime types and let me know if that address to solve your problem.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • How to set MIME type for JNLP in Windows2000 IIS

    Hi!
    I try to set up my windows 2000 IIS's MIME type for JNLP to test java web start, but I have no idea how to set
    the MIME type. Can anybody help me???
    Best wishes

    In IIS v4 which comes with the Windows NT4 option pack, you right click the web page you are working with, select properties, then go to the HTTP Headers tab. At the bottom there's a button labelled File Types in the MIME Map section.
    After you've clicked that, you can add the two mime types you need;
    Associated Extension MIME Type
    .jar application/x-java-jar-file
    .jnlp application/x-java-jnlp-file
    I'm assuming that it is the same in W2k/IIS5.

  • How to set Mime Type for Static Files

    Hi All,
    I am working on Apex 3.2.1.00.10.
    When I am trying to upload (create) a ".js" file into Static Files under Shared Components of an application; it is saving as "*text/plain*" for Mime Type. But I need Mime type to be set as "*application/x-javascript*".
    Please help me to change the Mime type of .js file.
    Or is there any way to upload the file directly as "*application/x-javascript*" as its Mime Type.
    Thanks in advance.
    Umesh

    In IIS v4 which comes with the Windows NT4 option pack, you right click the web page you are working with, select properties, then go to the HTTP Headers tab. At the bottom there's a button labelled File Types in the MIME Map section.
    After you've clicked that, you can add the two mime types you need;
    Associated Extension MIME Type
    .jar application/x-java-jar-file
    .jnlp application/x-java-jnlp-file
    I'm assuming that it is the same in W2k/IIS5.

  • File/Open Dialog Box / Setting MIME type

    In my application, I am calling a web service that returns text that I need to download into an EDI application. I am simply looking to have an open/file dialog box open when the text is returned. I was using the following code in a PL/SQL process:
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="EDIOuput.edi"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    end;
    The problem is the HTML code that comes along with the text that is returned. Is there a way to simple call the procedure on a page that only containes the raw data?
    Thank you.

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • How to set MIME-TYPE in weblogic6.1

    hi,
    i have developed a sample example putted in weblogic,
    how can i set the mime-type in weblogic6.1 to
    application/x-java-jnlp-file
    so that it returns the above given mime-type.....
    thanks in advance

    http://e-docs.bea.com/wls/docs60//programming/webappdeployment.html#1007217
    in version 6.0 it works like this ......
    Step 11: Define MIME mapping
    <mime-mapping>
    (Optional)
    Define MIME types
    For more information, see
    mime-mapping Element
    <extension>ext</extension>
    <mime-type>mime type</mime-type>
    </mime-mapping>
    I hope it helps .....
    cheers
    <marc>

  • SoulseekQt not respecting set mime types in Openbox.

    Hi,
    I am having a strange problem with mime type handling in openbox.
    When opening files through SoulseekQt, instead of opening with VLC as my mime types are set to do it opens Audacity. And when opening the folders, it opens Gwenview instead of Thunar.
    I tried doing the same thing in xfce and it opened vlc, and thunar fine.
    Is there a file I need to edit for openbox specific mime types?
    Thanks for any help.

    My appologies for posting it into wrong forum. It should have been posted to Web Tier APIs > Java Servlet

  • How to set mime types for applet in iAS sp3?

     

    Hi,
    Please refer to Adding Mime types and let me know if that address to solve your problem.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Setting MIME type in Sun Application Server 8.1

    How to configure for MIME Mapping in sun Application server. I am developing wap application.
    In the jsp filr I am setting the content type("text/vnd.wap.wml") and is redirecting to wap browser with run time errors. Pl. help me
    Thanks
    vs

    if you download SJAS 8.2, Derby is included and pre-configured as a DataSource
    Using 8.1, you will need to add the jars to either the lib or domains/domains1/lib/ext directory and manually configure a DataSource using
    javax.sql.DataSource           org.apache.derby.jdbc.ClientDataSource
    javax.sql.XADataSource           org.apache.derby.jdbc.ClientXADataSource

  • File Download and Mime-Types

    I have some files (txt, xls, rtf, pdf) that need to be downloaded from our site. I
    have an http link to the files on the web page. I've set mime-types for each file
    type in web.xml for that web app. I'm using WLS 6sp2 on Windows 2K. I'm using an
    MVC model for the application with a Controller servlet. Every time anyone tries
    to click on the link and download it, the Contorller kicks them to a default page.
    Can anyone help?
    Thank you.

    Go to IIS Management console. At the server level, go to MIME Types. Add a new MIME type:
    File name extension:
    .mp4
    MIME type:
    video/mp4
    Restart IIS (can't remember if this is required).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • About MIME type

    hai friends , i am learning webstart, i want to set mime type in server i know the mimetype buti dont know hot to set the MIME type in webserver so is anybody knows please answer for my query
    thanks

    Sorry, Google doesn't know about SATRTO webserver. I guess that means it doesn't exist...
    I have been able to find a german hosting provider called Strato, is that what you mean? In that case, it looks like a LAMP server, so I guess you should be able to do it with the instructions in the Java Webstart guide for Apache httpd: http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/setup.html Otherwise, you'll have to contact your provider or the creator of the server software you use.

  • Javamail MIME type exception

    Exception javax.mail.internet.ParseException msg = Expected MIME type, got image/jpeg
    javax.mail.internet.ParseException: Expected MIME type, got image/jpeg
    at javax.mail.internet.ContentType.<init>(ContentType.java:91)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1269)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1008)
    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:414)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1285)
    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2071)
    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2039)
    at com.sun.messaging.smime.applet.SMIMEAppletCard.c(SMIMEAppletCard:2381)
    at ....
    ===================================================================
    The contents of the mail sent from our software without encryption: Javamail throws exception
    ===================================================================
    MIME-version: 1.0
    Content-type: MULTIPART/MIXED; BOUNDARY="3993497-26500-1250028557=:12180"
    --3993497-26500-1250028557=:12180
    Content-type: TEXT/PLAIN; CHARSET=UTF-8
    Content-transfer-encoding: QUOTED-PRINTABLE
    Adding attachment
    --3993497-26500-1250028557=:12180
    Content-type: IMAGE/jpeg
    Content-transfer-encoding: BASE64
    Content-disposition: attachment; filename="Encrypted.jpg"
    ===================================================================
    ===================================================================
    The contents of the mail sent from thunderbird without encryption: No javamail exception
    ===================================================================
    Content-type: multipart/mixed; boundary=------------070506080605000706080801
    This is a multi-part message in MIME format.
    --------------070506080605000706080801
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    Adding attachment
    --------------070506080605000706080801
    Content-Type: image/jpeg;
    name="Encrypted.jpg"
    Content-Transfer-Encoding: base64
    Content-Disposition: inline;
    filename="Encrypted.jpg"
    ===================================================================
    Is there anything wrong in setting mime type with out software?

    Yes, it sounds like the problem could be somewhere in the encryption/decryption process.
    If you can create a reproducible test case that doesn't require me to do lots of crypto setup,
    I'd be happy to take a look at the code, but you should probably do a bit more debugging
    yourself first to narrow down the problem.
    You can send me code at [email protected]

  • MIME type setting on Tomcat server.  Please help.

    Hi all.
    Can someone shed me some lights on setting up MIME type. I added the followings to the web.xml file in /WEB-INF directory, restarted webserver, and still saw my jnlp file as text file in the browser. What did I do wrong?
    <init-param>
    <param-name>jnlp-extension</param-name>
    <param-value>.xjnlp</param-value>
    </init-param>

    do you use Apache as your web server?
    if so the just add the following line to the .mime.types configuration file:
    application/x-java-jnlp-file JNLP
    Tomcat is more a servlet server than a web server... so i don't know if it can be responsable for serving jnlp files or not....
    Anyhow, hope this helps in some way...

  • Cfcontent IIS and particular mime types

    I have an application this is using flowplayer to play various video files. The video files are passed to flowplayer using a cfm script with the cfcontent tag. What I am finding is that for some file types this process fails; the player hangs and the video doesn't play. An example file type is mp4. The problem is specific to our server running IIS 6. On my local box I have Apache installed and the script works fine for mp4 files. I have the mp4 mime type defined in IIS 6 as "video/mp4" and that is what I use in the type attribute of the cfcontent tag. (I've also tried "video/mpeg" without success.) If I change my process so that I pass the file directly to flowplayer then it plays fine on IIS 6. Here is the basic code I have for providing the file.
    <cfdirectory directory="#fileDir#" action="list" filter="#getAllFileInfoRet.result.file_name#" name="dirFileInfo" />
    <cfif dirFileInfo.recordcount gt 0>
        <cfheader name="Content-Length" value="#dirFileInfo.size#">
    </cfif>
    <cfheader name="Expires" value="Thu, 19 Nov 1981 08:52:00 GMT">
    <cfset tz = GetTimeZoneInfo() />
    <cfset gmtNow = DateAdd("h",tz.utcHourOffset,Now()) />
    <cfheader name="Last-Modified" value="#DateFormat(gmtNow,"ddd, d mmm yyyy")# #TimeFormat(gmtNow,"hh:mm:ss")# GMT">
    <cfheader name="Content-Disposition" value="attachment;filename=#getAllFileInfoRet.result.file_name#">
    <cfheader name="Content-Type" value="#getAllFileInfoRet.result.file_ext_mime#">
    <cfheader name="Cache-Control" value="no-store, no-cache, must-revalidate, post-check=0, pre-check=0">
    <cfheader name="Pragma" value="no-cache">
    <cfcontent deletefile="false" file="#fileDir##getAllFileInfoRet.result.file_name#" type="#getAllFileInfoRet.result.file_ext_mime#" />
    I've tried various combinations of the cfheader tags without having any effect. If anyone has some suggestions or has encountered something similar, I'll take whatever help I can get.

    Hi Adam,
    In the end, the only way that I could get it to work in all browsers was to create a temporary file.  However, the cfheader info was useful, so thanks.
    Michael
    Code I used:
    <cffile action="write"
    file="#GetTempDirectory()#/#varFileName#"
            output="#structDocument.Filecontent#"
    >
    <!--- Output doc --->
    <cfheader name="Content-Disposition" value="#var_content_dis#">
    <cfheader name="Content-Length" value="#var_content_len#">
    <cfcontent type="#var_content_type" file="#GetTempDirectory()#/#varFileName#">

  • How do I set the mime type for an attachment to "application/zip"

    I'm sending out an email with a zip file as an attachment. The following code works fine, but the Mimetype for the attachment is set to "application/octet-stream"
    FileDataSource fds = new FileDataSource(zipname);
    DataHandler dh = new DataHandler(fds);
    MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setDataHandler(dh);
    mbp2.setFileName(fds.getName());
    I would like the mime type to be application/x-zip. Unfortunately I seem to need a data content handler for this mime type as I get this exception.
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/x-zip
    Building a date content handler in the activation framework seems like a lot of work to do a very simple thing. Am I missing something obvious? Is there a simple way to do this?

    I found the solution after much chasing around. The default mimetypes file that comes with the activation framework does not list zip.

Maybe you are looking for

  • Transfer photos from iphoto to Aperture with snow leopard, how?

    hi all how can i transfer photos from iphoto (in power book G5) To Aperture ( in MacBook Pro 17" with snow leopard), with same albums arrangement???? thanks

  • Blocking SO update populating to PR

    Hi, I need some advice for the above title. This is how the scenario goes. With the auto fax system, PO to vendors could be sent more than once for various reasons. Currently where there is a changed in the SO, it will trigger a fax output immediatel

  • What the "binaural" stuff is used for???

    hey, I'm starting in mixing techniques and I noticed that I had a "binaural" in the mixer. what it is used for??

  • Drop the tables

    how to drop the all tables in database. i have 10 tables in my database. so all tables drop at a time(single command) and please let me know how to drop these kind of tables SYSADM_UCAT TIMESTAMP_TEST ONGC BIN$65N+ZC4tRYSMT4baQKQIeg==$0 BIN$HgYs2odgQ

  • Publishing iCal from G4 (10.3.9)

    I am trying to publish some calendars from my old G4 (10.3.9) using the ical Exchange, but it says bad url??? Odd thing is that when I first did this about 5 months back, it worked. Until one day it just stopped. any ideas?