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...

Similar Messages

  • I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    Can you access other apps? Can you acess the internet? Can you access applications that use internet besides facebook?
    If answer is yes to all of these; contact Facebook.

  • Image size and mime type.. non-java guy needs help

    Image size, mime type.. non-java guy needs help
    Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
    Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
    Here is what I got
    /*import com.allaire.cfx.*;*/
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import com.sun.media.jai.codec.*;
    import java.io.*;
    import java.util.*;
    public class ImageInfo {
    private RenderedOp image = null;
    private RenderedOp result = null;
    private int height = 0;
    private int width = 0;
    private String type = "";
    private String size = "";
    public void loadf(String file) throws IOException
    file = "80by80.jpg";
    FileSeekableStream fss = new FileSeekableStream(file);
    image = JAI.create("stream", fss);
    height = image.getHeight();
    width = image.getWidth();
    System.out.println(height + "\n");
    System.out.println(width);
    System.out.println(type);
    public static void main(String[] args) throws IOException {
    ImageInfo test = new ImageInfo();
    test.loadf(args[0]);
    can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
    thanks for any help

    any suggestions?

  • I have a big problem :( why is it i cant update my ipod touch 2g into ios 4! im using the latest version of itunes and everytime i click "update" it stucks on the "contacting server" please help :( i want to update it now

    i have a big problem why is it i cant update my ipod touch 2g into ios 4! im using the latest version of itunes and everytime i click "update" it stucks on the "contacting server" please help i want to update it now

    Maybe here:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

  • I can't install I-Tunes 10.6.1.7 on my Windows Vista laptop. Tried it several times. First message: Policy 8.0 Microsoft VC80.CRT..type='win32-policy, etc. Please help

    I can't install I-Tunes 10.6.1.7 on my Windows Vista laptop. Tried it several times. First message: Policy 8.0 Microsoft VC80.CRT..type='win32-policy, etc. Please help

    I can't install I-Tunes 10.6.1.7 on my Windows Vista laptop. Tried it several times. First message: Policy 8.0 Microsoft VC80.CRT..type='win32-policy, etc. Please help

  • I just installed mongolian cyrillic keyboard and it's working just fine with safari but i can't type on Word with it. please help me?

    i just installed mongolian cyrillic keyboard and it's working just fine with safari but i can't type on Word with it. please help me?

    PS Here is a source for a keyboard.  Try it if you have not done so already
    http://m10lmac.blogspot.com/2012/12/new-mongolian-keyboard-layout.html
    For questions about why Word doesn't do something, try
    http://answers.microsoft.com/en-us/mac/forum/macword

  • Wlserver.exe error occur while start the web logic server-please help

    hi
    Iam getting wlserver.exe error when I start the web logic server-please help. and I cant able to start the web logic server.
    Thannks in Advance,
    Cheers,
    bala...

    Could you please mail the errors and the WLS Version and service pack as well.
    - Ramkumar

  • Why cant i recieve emails, but i can send them fine? i have reset, deleted, went to phone store and verified every setting 3 times. PLEASE HELP

        why cant i recieve emails, but i can send them fine? i have reset, deleted, went to phone store and verified every setting 3 times. PLEASE HELP

    i have contacted 3 online and also been into a 3 store they tried mysim in their handset and it worked but when on of the workers tried theyre sim it said "no service" as usual? they said the phone reads the sim because it asked for the workers sim code?
    thanks

  • Hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me :)

    hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me

    You will have to configure that with your router. Type your router's IP address in the search/domain bar and allow port forwarding.
    What is requiring you to have an open NAT? That issue is usually for gaming consoles, etc.

  • 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

  • Setting up iCal on the Mac OS X Server - please help if you can!

    Trying to set up an iCal on our Mac OSX Server for just four of us at my small business. I spent all of yesterday trying to figure this out (i'm fairly novice), and I've had no luck. This is what I have done so far:
    I created an open directory on our server, went into server admin -> services and checked iCal, open directory, and DNS (is this right?)
    Then I created a group in workgroup manager and added the clients to the group.
    I opened iCal and went to add an account. If i didn't put anything in the server details section it would just say that I don't have any configured principals - what does this mean??
    Typed in the user information and copied a million different combinations of this in the account url spot:
    http://my.server.com:8008/principals/groups/groupshortname/. typing things like
    http://(my ip address here):8008/principals/groups/groupshortname/.
    http://(what i think is my server address here):8008/principals/groups/groupshortname/ical.
    and then it says server refused, or address could not be found, etc.
    i do not know what to do. please help.
    thanks,
    ryan

    Hello ryankarolak, and Welcome to the AppleBoards,
    Setting up iCal Server is a little complicated in that you need to do several things in the right order. If you don't have DNS from another source you'll need good DNS set-up for many of the OS X Server services to function correctly. But I'm a little unsure of what your next move is since you didn't give any details about your server set-up or your office network lay-out.
    You should be aware that there is an entire group dedicated to iCal Server here: http://discussions.apple.com/forum.jspa?forumID=1234
    This other board is really the best place to search and find previous threads and post questions with the best chance of getting knowledgeable eyes on them. This forum is really for Xserve specific questions and isn't the best place to get OS X Server services questions answered - people will help out if they can but dedicated groups exist for some of the more complicated issues.
    Good luck,
    =Tod

  • Connecting to a wireless print server, please help!!!

    i have a canon mp500 connected to a network through a wireless printserver and wireless router. the printer works when directly connected to my macbook, but not when connected to the print server. i contacted linksys and they sent a docment on how to set the printer up using it's ip address. still didn't work (the instructions were for 10.1 and 10.2). i have downloaded and installed the current mac os x drivers from the canon website with no luck. please help

    I'm no expert, but I was able setup HP printer connected wirelessly to AEBS by using Apple's Printer Setup Utility and Bonjour. I was, however, able to install the HP drivers using the software that came with the printer, but it sounds like you could not do so with Canon?
    Anyway, here are Apple's help files for adding an IP printer:
    "Connecting to an IP printer
    An IP printer is a network printer that uses TCP/IP protocols (such as LPD/LPR, IPP, or Socket or Jet Direct) to communicate with your computer. If the IP printer you want to use is not listed when you print, you can add it to your list of available printers.
    To add an IP printer, you need to know its IP address or DNS name. See your network administrator for assistance.
    Open the document to print, and choose File > Print.
    Choose Add Printer from the Printer pop-up menu, and click IP Printer in the dialog that appears.
    Choose the appropriate printing protocol from the Protocol pop-up menu.
    Type the IP address or DNS name for the printer in the Address field.
    If your printer requires it, type the queue name for your printer in the Queue Name field. If you don't know the queue name, see your network administrator for assistance.
    Enter a name and location for the printer, so you can identify it in the Printer pop-up menu.
    If the Print Using pop-up menu does not display the name of your printer's model, choose the item appropriate for your printer from the Print Using pop-up menu, and then select your printer in the Model Name list.
    Click Add.
    Usually, your computer can detect whether a printer has special accessories installed, such as additional paper trays, extra memory, or a duplex unit. If it can't, a dialog appears that lets you specify them. Make sure the settings in that dialog accurately reflect your printer's installed accessories so you can take full advantage of them."

  • XML Data Set with Spry Slides - Please Help

    Hi, I'm trying to combine XML Data Set with sliding tabs.
    I've created two keys responsible for sliding the tabs:
    <a id="previous" href="#"
    onclick="sp1.showPreviousPanel();">Previous</a>
    <a id="next" href="#"
    onclick="sp1.showNextPanel();">Next</a>
    Then XML Data Set is used to populate the tabs, but only a
    single tab remains visible, and a "Next/Previous" buttons are used
    to move to the next tab. And this is where the problem arises.
    The problem is that, every time I refreash the gallery or
    load it for the first time, I have to press TWICE the "Next" button
    to move to the next image. After that, its all fine, and slides
    well. It's only the FIRST time when loaded.
    Please help.
    Here's the full code:
    <div id="images_gal" >
    ///////////////////////////////////////// The menu - the
    culprit///////////////////////////////////////////
    <div id="menu_next">
    <a id="previous" href="#"
    onclick="sp1.showPreviousPanel();">Previous</a>
    <a id="next" href="#"
    onclick="sp1.showNextPanel();">Next</a>
    </div>
    //////////////////////////////////////// The Sliding Panels
    Gallery ////////////////////////////////////////////////////
    <div id="example2" class="SlidingPanels" tabindex="0" >
    <div class="SlidingPanelsContentGroup"
    spry:region="dsSpecials">
    <div spry:repeat="dsSpecials" id="{first}"
    class="SlidingPanelsContent{second}"><div class="top_gal"
    ></div><div class="main_gal"><img
    src="images/Galery/{third}" alt="Digital_Signage" width="600"
    height="304" />
    <p class="screen_gal"><a href="#"
    onclick="MM_openBrWindow('film1.html','Coloris','width=340,height=260,
    top=250, left=250')">CLICK TO VIEW</a></p>
    </div><div
    class="bottom_gal"></div></div>
    </div>
    </div>

    Anyone has any idea why I need a DOUBLE Click to start moving
    the sliding panels?
    I've just completed two tutorials by Don Booth.
    1/Building a Spry Sliding Panels widget
    2/Building a photo album with the Spry framework
    But what I try to COMBINE them - display the photos in
    sliding panels, I also need to DOUBLE click the "next" buton before
    it starts scrolling.
    Why is that Double Click needed? Help Please.
    Here's my code for the combined version:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    a {
    position:relative;
    left:23px;
    top:127px;
    z-index:10000;
    color: #FF0000;
    </style>
    <script type="text/javascript"
    src="photo_album_samples/includes/xpath.js"></script>
    <script type="text/javascript"
    src="photo_album_samples/includes/sprydata.js"></script>
    <script type="text/javascript"
    src="Spry/SprySlidingPanels.js"></script>
    <link type="text/css" rel="stylesheet"
    href="Spry/SprySlidingPanels.css">
    </head>
    <body>
    <div >
    <a href="#" onclick="sp1.showPreviousPanel();">Previous
    Panel</a>
    <a href="#" onclick="sp1.showNextPanel();" >Next
    Panel</a>
    </div>
    <div id="panelwidget" class="SlidingPanels" >
    <div class="SlidingPanelsContentGroup"
    spry:region="dsGallery" >
    <div spry:repeat="dsGallery" class="SlidingPanelsContent"
    id="p1"><img
    src="photo_album_samples/thumbnails/{@thumbpath}"/></div>
    </div>
    </div>
    <script type="text/javascript">
    var dsGallery = new
    Spry.Data.XMLDataSet("photo_album_samples/photos.xml",
    "gallery/photos/photo");
    </script>
    <script type="text/javascript">
    var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
    </script>
    </body>
    </html>

  • Cant get into same game server please help

    just got a wrt54g v6 and  updated firmware i have 1 pc wired 2 pc wireless and a lap top wireless.when playing call of duty 2 i cant join the same server that another pc on my network is in.i can join a different 1 but not the same.when i try to join the same server the game is interrupted on the other pc and mine says server disconnected.i have ports 28960,20500,20510 open. also ive enabled the dmz and the same thing happens.before i got the router i had all pcs but the lap top networked thru my pc and we never had this problem.im i missing a port? are my settings wrong?please help

    I have also had this problem.
    However I managed to "Fix" mine a slightly different way.
    I had set up my router and correctly configured port forwarding to my gaming PC, but when a friend came round and played on my laptop the same thing would happen.
    We got around this by REMOVING the port forwarding completely. The NAT can then redirect the correct packets to the correct PC. However this will only work if the COD 2 server has not had its default setting changed (as an admin can change whether or not to allow multiple simultaneous connections from the same IP) So if this still doesn't work try speaking to the admin of the server you want to play on and let him know your problem

  • Downloaded desktop service, tried to connect and it asks for password. I havent set one up! please help

    i have just installed desktop software and tried to connect my blackberry for the first time. a prompt asked me for a password but i have not set one up. i have tried all usual passwords i would have used if i had already set one up and none of these have worked. now i am on my last attempt and still not connected.
    PLEASE HELP ME SOMEONE

    Hi anna1983,
    Welcome to BlackBerry Support Community Forums. The BlackBerry Desktop Manager requires the password you set up on the device in order to connect to it. http://bbry.lv/bjwDRS
    Thanks,
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for