Web Applications and MIME Types

Hi,
I am using WL Server 5.1, Service Pack 4 with the Sun JDK 1.3 on RedHat
Linux 6.2. I woiuld like to deploy my application as a web application. I
have created the web.xml file, etc. as per teh specification, and things
work as expected for the most part: I can server up plain HTML, JSPs, etc.
without a problem. I do have one major problem however: I cannot seem to
serve up GIFs, PDFs, etc. I believe I have correctly specified the MIME
mappings in my web.xml file. Is there something I am missing here? I'd
appreciate any help in this regard. I am attaching my web.xml file for those
who'd like to look at it.
TIA,
Prashanth
[web.xml]

Bjorn,
I am re-attaching the web.xml file. I think I do have the necessary
specifications in it. Just to be safe, I have put all the mime mappings in
the weblogic.properties file as well, still to no avail. Interestingly
enough, things work perfectly well when I deploy it the default weblogic
way.
Thanks,
Prashanth
"Björn Brenander" <[email protected]> wrote in message
news:[email protected]..
Prashanth Nandavanam wrote:
Hi,
I am using WL Server 5.1, Service Pack 4 with the Sun JDK 1.3 on
RedHat
Linux 6.2. I woiuld like to deploy my application as a web application.I
have created the web.xml file, etc. as per teh specification, and things
work as expected for the most part: I can server up plain HTML, JSPs,etc.
without a problem. I do have one major problem however: I cannot seem to
serve up GIFs, PDFs, etc. I believe I have correctly specified the MIME
mappings in my web.xml file. Is there something I am missing here? I'd
appreciate any help in this regard. I am attaching my web.xml file forthose
who'd like to look at it.
TIA,
Prashanth
ÿþ<Prashahth: your attachment seems to have disappeared somewhere.
For some reason, my web applications didn't know how to serve plain
HTML, so I added
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
to my web.xml, and it worked.
I find this behaviour quite strange, since the manual says that the
mappings defined in weblogic.properties should propagate to web
applications.
Regards,
Björn Brenander[web.xml]

Similar Messages

  • Web application and site collection not accessibe

    I have created a web application and a site collection. But when I tried to access the site by browser on the server the page cannot be displayed or the server cannot be found. What should I configure? Please say by detailed steps.

    I created a host header extranet.xxx.xx and alternate access mapping is ok. But still I'm not able to access the site by http://server name:port no. It gives The web page cannot be found or this web page can't be displayed.
    Now when I try with Firefox with http://server name:port no, it gives
    "Bad request - Invalid hostname
    HTTP Error 400. The hostname is invalid."
    More: if I go to Alternate Access Mappings > Add Internal URL:s > Save is grayed out.
    You have two options,
    Option 1 : Accessing the web application without any host header name and  with the port no you have created.  (ex: (http://server1:5500 )
    Option 2. Accessing it with the host header name (ex:http://mywebapp.contoso.com)  you have created for which you need to create a DNS and set an AAM accordingly in the corresponding zone.
    For the option no 1. you need to have a host header in IIS which would be created by default while you create a web application and it should be like this unless you did nit change it. http (Type)---blank host name--All Unassigned in the IP section---and
    the port no in which you have created.
    PS : If you have one more IP address in the server, its good to set the same IP address which is set for server for the name resolution to happen properly.
    If you have n't specified the hostheader while creating the web application, then you need to add it manually with the existing one which is there for option no 1. It should be added as below. http---Mywebapp.contoso.com--IP address in which you have created
    the DNS and Port 80.
    If AAM save is grayed out, check it from some other browser. Also Hostname invalid clearly implies that there is some problem with the name resolution. Check whether you could ping the webapplication from the server where you are trying to access it.
    Veeramani.S

  • No video with supported formate and mime type found

    I am able to view videos on all but 1 website: http://www.start-american-sign-language.com/free-sign-language-asl1.html
    When I view that page, the video box only shows the x with "no video with supported formate and mime type found" being displayed.
    I have updated to the most recent palemoon (25.3.0) and have the following plugins installed
    DRM 9.0.0.4503
    Shockwave flash 16.0.0.305
    Silverlight 5.1.30514.0
    VLC Web Plugin 2.2.0.0
    Windows media Player Dynamic Link LIbrary 3.0.2.629
    I have cleared my cache and cookies, and am unable to view the video in question. If I go to https://www.youtube.com/html5, it indicates that I have an operable Webelement player and Web VP8, and all others are exclamation points.
    Does anyone know why I can't watch the (mp4) video(s) in question? I have turned up no viable solutions using the forums or google.
    Thanks!

    This happens when there is no support in your Windows XP version to play any of the media file formats that the website offers with the HTML5 media player (i.e. not a Flash player is used, but a video tag).
    That are MP4 files with type="video/mp4"
    *VLC shows: Codec: H264 - MPEG-4 AVC (part 10) (avc1)
    You might be out of luck on Windows XP and your only option would be to use an external media player and paste the links in its location field.

  • Trying to embed a video file in HTML5: ERROR=No video with supported format and MIME type found?

    Hello all!
    I am desparate for a solution. I am testing my site on Firefox and Explorer and still no sign of a functional video yet.
    Firefox: I get the error: No video with supported format and MIME type found.
    Explorer: I just get a distorted layout.
    Here is the code I am working on:
    <table id="Table_01" width="480" height="801" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <img src="images/Video_01.jpg" width="480" height="114" alt=""></td>
        </tr>
        <tr>
            <td rowspan="3">
                <img src="images/Video_02.jpg" width="52" height="486" alt=""></td>
            <td colspan="4">
               <video controls width="376" height="221">
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).mp4" type="Video/Mp4"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).webm" type="Video/WebM"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).oggtheora.ogv" type="Video/Ogg"/>
                 </video>
    Please tell me that there is something missing in the code. I have spent a lot of time uninstalling-updating Firefox plugins, added MIME types in the Internet Information Manager (I'm on Windows 7)
    and  seriuously hit a dead end with this!
    Any advice would be muchly appreciated!!!
    Thanks
    ~LA

    As Jon said, you must declare the page as HTML5.
    And your server may not be set up to deliver video as a binary file if it is an .OGG file. I have not seen this problem with .MP4 or .M4V in the past, but every server is a little different.
    To add a MIME type, you need to change your .htaccess file on an Apache server thusly:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    Additionally, MIME types can usually be changed on a server's Control Panel. One can also ask one's hosting provider to do this as well.
    Firefox makes it necessary to use OGG files. Webkit-based browsers will deal with .M4V or .MP4 and I understand Internet Exploder will work with the latter two as well.

  • Web Application and Serialization

    Hi, i have a problem with a web application that is running on an Application server (BEA WebLogic 7.0). I have only the war file of the web application and i must know if in this war there is a class that is not serializable.
    How can i find it ? Is there a tool that can help me to find not serializable classes ?
    Thanks.
    claudiozx2006

    One way to do that is to decompile Java classes with Java decompiler and see which one doesn't implement Serializable interface. Here is a link to a good decompiler: http://www.kpdus.com/jad.html

  • Web application and desktop application?

    Hi everyone,
    I am new to this platform.I have a basic doubts that whats the difference between developing application in flex as a web application and desktop application from programming point of view?Can we use same code in both cases?
    Please guide me....
    Thanks

    Hi and welcome,
    The main difference between a web application and a desktop application is that web applications do not have access and can't manipulate your local system ( you can't open a window that displays all your local files, you can't delete, rename, edit local files and so on ). Obviously, this is just one difference, there are many more ( the best would be if you google for "web aplication vs desktop application" because the same rules apply for 99% if not all the platforms you can find out there ).
    Desktop applications can have full control of your local system ( obviously, we have to take in consideration the platform we are using because since AIR is quite new in the desktop application field it is also more limited than other languages that have been used successfully to create desktop applications for years and year; like ce C# or C++ and so on ).
    Another important difference is that desktop applications usually need to be installed in order to function where on the other hand, web applications can run in the browser without you having to install the aplication you are about to view on your computer ( in some cases, like of the Flash and Flex platforms, you only require a "special player" that can display the content you are trying to access... for Flash and Flex applications you need the Flash Player installed for your browser ).
    So, before jumping into a project/platform you need to know your target. If you goal is to offer a fast, easy to access and no install required application to your users then you'll usually go with a web application. If your application needs to work with local files, maybe local databases, or it needs more control over the user's PC and so on, then you'll most likely go with a desktop application.
    With kind regards,
    Barna Biro

  • Web application and Scanner

    Web application (ADF-application) and Scanner (device that optically scans images, printed text)
    how to implement a scan from a web application and the ability to preview the scanned document (in the ADF-application) before uploading to the server.

    Oracle has a product, which I worked on, for imaging. It may or may not be what you need.
    http://www.oracle.com/technetwork/middleware/webcenter/content/index-090652.html

  • How To Get FileType and MIME Type from a File

    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.
    Can any one help me on this.
    Thanks in advance,
    Ram.
    Edited by: javausers07 on Apr 15, 2009 4:25 PM

    javausers07 wrote:
    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);Why do you do all above?
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.That's because there's no way to get MIME type of all files on all filesystems.
    Kaj

  • There is an inconsistency between the authentication mode of target web application and the source web application after migrating to claims

    I've had my farm upgraded from SP2010 to SP2013 for over 6 months now and all is well, however, I was refreshing my staging environment from production and I noticed that one of the databases still shows these errors when I run test-spcontentdatabase:
    Category             : Configuration
    Error             : False
    UpgradeBlocking : False
    Message           : The [SharePoint Web App] web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against
    a windows classic authentication mode.
    Remedy              : There is an inconsistency between the authentication mode of target web application and the source web application. Ensure that the authentication mode setting in upgraded web application is the
    same as what you had in previous SharePoint 2010 web application. Refer to the link "http://go.microsoft.com/fwlink/?LinkId=236865" for more information.
    This doesn't make sense considering I converted the production web application to claims during the upgrade and then verified all sites were working with claims logins. I also verified that existing AD user identities were converted to claims by checking out
    the database tables. Yet test-spcontentdatabase still thinks there is a mismatch here.
    My farm is SP1 and no further CUs. The point of this particular refresh is so I can update to the November CUs in my test farm. Anyone else see this? Seems like it's a bug/safe to ignore because my stuff is working.
    Thanks,
    Aaron

    See:
    http://thesharepointfarm.com/2014/11/test-spcontentdatabase-classic-to-claims-conversion/
    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.

  • 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?

  • Registering Web Applications and accessing common files

    If I create 3 web applications and have a seperate folder for common jsps
              that the jsps in these 3 web apps include, how can I access the jsps and js
              in this common folder? The JSP compiler was able to compile. The folders I
              created are all under the applications directory, including the common
              folder. I use the inclide file directive with ../common/scripts.js and the
              compiler could not recognize the location.
              Thanks!
              Kenny
              

              If you application folder like:
              application/
              webApp1/
              webApp2/
              webApp3/
              common/
              You may try /common/scripts.js
              "Kenny Kon" <[email protected]> wrote:
              >If I create 3 web applications and have a seperate folder for common
              >jsps
              >that the jsps in these 3 web apps include, how can I access the jsps
              >and js
              >in this common folder? The JSP compiler was able to compile. The folders
              >I
              >created are all under the applications directory, including the common
              >folder. I use the inclide file directive with ../common/scripts.js and
              >the
              >compiler could not recognize the location.
              >
              >Thanks!
              >
              >Kenny
              >
              >
              

  • Pass these documents a object ID, application and output type..plz help

    Hi frnds,
       To select all the billing documents from from the document flow table i have
    this peice of code----
    SELECT VBELN FROM VBFA INTO CORRESPONDING FIELDS OF TABLE IT_VBFA
             FOR ALL ENTRIES IN ITAB_VBAK WHERE VBELN = ITAB_VBAK-VBELN
                                          AND VBTYP_N = 'C' OR VBTYP_N = 'G'.
    i want to ---Pad two zerou2019s before the document and pass these documents a object ID,
    application and output type.
    Get the object ID, processing status for each billing document number and
    display in the pop up window for the user.
    i hope to use in NAST TABLE.
    how to code this...
    thnx
    daniel
    <LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 18, 2008 1:14 PM

    Use
    declare the field b_vbeln of length u want adding length for 2 '0' also.
    ex:- Vbeln length = 10
           b_vbeln  type i length 12.
    b_vbeln = vbeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = b_vbeln
    IMPORTING
    OUTPUT = b_vbeln.
    U will get b_vbeln with 2 '0' or always the value be of 12 length.

  • Query applications and deployment types

    Hi,
    I got this powershell script to perform the above task (a query for applications and deployment types from SCCM)
    But getting the following error after running the script:
    "You cannot call a method on a null-valued expression
    At Line:2 char:13"
    $SCCMApplications = get-cmapplication
       ForEach($SCCMApplication in $SCCMApplications) {
            if ($ApplicationsToRename.ContainsKey($SCCMApplication.LocalizedDisplayName)){
                $SCCMDeploymentTypes = get-cmdeploymentType -applicationname $SCCMApplication.LocalizedDisplayName
                foreach($SCCMDeploymentType in $SCCMDeploymentTypes)
                        Write-Host "Found SCCM deployment type '$($SCCMDeploymentType.LocalizedDisplayName)' exists for application '$($SCCMApplication.LocalizedDisplayName)'."

    In addition, This tool might be helping you.
    ConfigMgr 2012 - Powershell Right Click Tools
    http://psrightclicktools.codeplex.com/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party
    contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Want application and output types

    Hi Friends
    can anyone provide me the application and output types for the below one's
    Scheduling Agreement Output
    Rebate Agreement Output
    Contract Output

    Output Type      Application
    Scheduling Agreement Output------LP00                     V1
    Rebate Agreement                   ??
    Contract                            -
    KO00                      V1
    Reward points...if it meet ur requirement

  • Safari and MIME type "application/x-mplayer2"

    When trying to listen to web pages conatining mp3 audio files (prior to purchasing them) , Safari comes up with a message saying that MIME type “application/x-mplayer2” is not installed and only downloads the html file and not the mp3 file. When we check on our installed plug-ins in Safari, MIME type “application/x-mplayer2” has been installed.
    How do we fix this? We are using Safari Version 2.0.2 (416.12) OSX 10.4.3. It works on one of our older machines running Safari Version 1.3.1 (v312.3.3) OSX 10.3.9
    Regards,
    Peter

    Nevermind. I answered my own question. Seek and you shall find. http://www.apple.com/safari/download/plugins.html I just had to DL the WMV plug in. All better.

Maybe you are looking for

  • Someone please help, :( i want to use my ipod again!

    About 4 months ago my ipod decided to stop working, i tried holding the home and 'sleep' button on for 30 seconds and nothing happened, when i plug it into itunes a pop up comes up saying that i need to restore my ipod, i do that then at the end of '

  • Create report output to the Client of the Application Server inst.of Server

    Hi, Please suggest the soution for the below: We are using SET_REPORT_OBJECT_PROPERTY and WEB.SHOW_DOCUMENT to create report. Now Requirement is to save the report output to Client instead of server. I tried to use WEBUTIL but web util can be used fr

  • How to export lv application

    Hi, it is very simple q, i think we have labview 7 and 2 DAQ cards from NI. we are developing an labview application that communicate over DAQmx drivers with our daq cards. what's the best way to export our labview application so that it can runs on

  • Help: I cannot watch YouTube all of a sudden !

    Hi there, All of a sudden, I cannot watch youtube at all. The screen will remain black all the time with no play button to click. My firewall is set to off. I have also clear all my cache memory and it is still the same in both Safari as well as Chro

  • JTree leaf selection

    hi guys, I am developing a jTree for a networking product,which will show all the network elements present in the network.The tree also shows the device status like Up,Down etc.I have provided a button to refresh the jtree to update the status of the