Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3405454
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:30:27+00:00 2026-05-18T05:30:27+00:00

I have a problem with glassfish to serve swf files. In my application there

  • 0

I have a problem with glassfish to serve swf files.
In my application there is a little swf file to use TableTools plugin on datatable and when I try to open this page with any browser everything goes fine, but with IE the behaviour is quite different the swf is not loaded and if I try to reach it with direct url an alert ask me to choice what the browser has to do with the file (Open, Save, Save as), I click on open but nothing is shown..
This problem appear only with IE.
it seems a content-type error because chrome show me this warning:
“Resource interpreted as document but transferred with MIME type application/x-shockwave-flash.”

but I don’t know how I can setup the correct content-type
my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>ManagementConsole</display-name>
    <filter>
        <filter-name>jersey</filter-name>
        <filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
        <init-param>
            <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
            <param-value>/(img|js|css)/.*</param-value>
        </init-param>
        <init-param>
            <param-name>com.sun.jersey.config.property.JSPTemplatesBasePath</param-name>
            <param-value>/WEB-INF/jsp</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>RedirectWrongRequest</filter-name>
        <filter-class>com.italtel.patchfinder.filters.RedirectWrongRequest</filter-class>
        <init-param>
            <param-name>exclude</param-name>
            <param-value>/LoginServlet</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>RedirectWrongRequest</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>jersey</filter-name>
        <url-pattern>/admin/*</url-pattern>
    </filter-mapping>
    <servlet>
        <servlet-name>LoginServlet</servlet-name>
        <jsp-file>/WEB-INF/jsp/login.jsp</jsp-file>
    </servlet>
    <servlet>
        <servlet-name>LoginError</servlet-name>
        <jsp-file>/WEB-INF/jsp/loginError.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
        <servlet-name>LoginServlet</servlet-name>
        <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>LoginError</servlet-name>
        <url-pattern>/LoginError</url-pattern>
    </servlet-mapping>
    <jsp-config>
        <taglib>
            <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
            <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
    </jsp-config>
    <security-constraint>
        <display-name>AdminPages</display-name>
        <web-resource-collection>
            <web-resource-name>admin</web-resource-name>
            <description/>
            <url-pattern>/admin/*</url-pattern>
            <http-method>GET</http-method>
            <http-method>POST</http-method>
            <http-method>HEAD</http-method>
            <http-method>PUT</http-method>
            <http-method>OPTIONS</http-method>
            <http-method>TRACE</http-method>
            <http-method>DELETE</http-method>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
            <!--<role-name>USERS</role-name>-->
        </auth-constraint>
        <user-data-constraint>
            <!--None in http mode, Confidential in https mode-->
            <!--<transport-guarantee>NONE</transport-guarantee>-->
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
    <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
            <form-login-page>/LoginServlet</form-login-page>
            <form-error-page>/LoginError</form-error-page>
        </form-login-config>
        <!--<realm-name>userauth</realm-name>-->
    </login-config>
    <security-role>
        <description/>
        <role-name>admin</role-name>
        <!--<role-name>USERS</role-name>-->
    </security-role>
    <welcome-file-list>
        <welcome-file>Menu</welcome-file>
    </welcome-file-list>
</web-app>

from the image below you can see last 3 rows with the error loading swf file (with correct content-type)

https://i.stack.imgur.com/Jh98S.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:30:28+00:00Added an answer on May 18, 2026 at 5:30 am

    I found a solution!
    problem was a bug in IE 6/7/8/9 and maybe older version, where when using a secure connection ssl, loading of swf file doesn’t succeed because a bug in IE.
    I’ve solved this problem by overriding the cache with a filter in my application:

            hresponse.setDateHeader("Expires", -1);
            hresponse.setDateHeader("Last-Modified", System.currentTimeMillis());
            hresponse.setHeader("Pragma", "");
            hresponse.setHeader("cache-control", "must-revalidate");
    

    hope will be useful for someone else!
    Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with show or hide form in Window Form Application. I start
I have problem developing with live555. I already build the lib-files and example projects
I have problem with TableView its empty. In (.h) file: @interface TableViewController : UITableViewController{
have a weird situation. I'm using Glassfish server for my Enterprise application. In that
I have a JSF 2.0 application running under Glassfish 3.1.1 and I need to
I'm working on a web application using spring, Glassfish, hibernate and MySQL. I have
I'm new in Spring Framework (2.5.6) and I have Hibernate integration problem on Glassfish
I have a problem with a JSF project. GlassFish Server 3.1.2 Mojarra 2.1.6 I'm
I'm looking for a simple solution for the following problem. We have some glassfish
We are developing a web based application on glassfish V3. We have 2 application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.