SWFLoader loded swf and relative path issue

Hi,
Before explaining the problem, let me describe the usecase.
I have dashboard flex application hosted on Host1.
I have another flex application which acts as plugin to dashboard and is hosted on Host2.
I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
Everything is fine upto this point. plugin.swf get loads successfully without any issue.
Now the problem -
If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
Can this issue be resolved without making any modification in source of plugin.swf.
Thanks in advance,
Prithveesingh Zankat.

I don’t know if any way to fix this without changing the URL the plugin wants to load.  Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it.  But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF.  The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.

Similar Messages

  • Problem with jsessionid and relative paths

    I'm having an issue with jsessionid in a J2EE application running on an all Oracle platform (Oracle DB, 9ias, etc.). Most of the time sessions are tracked with cookies, but occasionally the jsessionid appears on the URL (on first login with a new browser window I think?).
    Anyway, sometimes the session id is very large (100 chars +) and includes special characters, specifically a backslash. This is causing problems with relative paths in the page.
    Is this normal behavior or is there a problem with my app server/JVM setup? Has anyone else seen this? Thanks for any advice.

    Hi Stefan,
              The issue was logged as CR238704. You can either contact [email protected] or
              just pass me your email Id and I'll send the patch to you.
              -- Nagesh
              <Stefan Krause> wrote in message news:[email protected]..
              > The problem I have is that the application is very old and at the same
              > time very big (so we're doing the transition step by step) and there are
              > lots of variables (and even methods in JSP pages - no comment) shared
              > between the JSP pages!
              > So for us jsp:include isn't an option...
              >
              > Is there a way to report bugs when you've got only the free development
              > license?

  • Problem with include and relative path in jsp

    Precompile jsp with wlappc in 9.2, I got the error "The include file was not found" when the jsp use <%@ include file="../includes/dataEntry/code_error.html" %>
              This code used to work with 8.1. I notice that someone has report the same problem with 9.0 and you have patch for it. Is it fix in 9.2 or do I require a patch as well?
              Thanks,
              Khuemy

    When you precompile, can you say "Keepgenerated=TRUE". It might help you track
              down the difference with the URL. You should only get a 404 error when the
              resource is not found at runtime, which is independant of when you compile. The
              difference should be in how the URL is compiled.
              Chris
              ali wrote:
              > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
              > it forwards ok if I am using directly JSPs but if I am using pre-compiled
              > JSPs (and have proper servlet-mappings
              > in my web.xml), I get 404 error with the relative-path, if I change it to
              > absolute path with pre-compiled JSPs it forwards ok , then.
              > any ideas why this is so?
              > thanks,
              

  • XML data source and relative path

    Hi,
    I'm developing my reports in a Windows environment and deploying it on a Linux. My problem is, I cannot seem to specify a relative path for my XML datasource. Since, my deployement is in Linux, I cannot have the standard "C:\myreport\def.xml".
    Is there a way to use a relative path? I've tried creating a environment variable but it gives me the following error.
    ERR 63001: Invalid stream in the Data Definition URL file:///%reports/data.xml null
    -John

    I guess you must be missing some "/" in the values youre passing. Remember that it's also case sensitive. Here's what I did in my report
    The data definition has this value :
    file:///&<P_XML_CFG_PATH>ReconReports.xsd
    P_XML_CFG_PATH = //reports/dtd/
    For the Datasource
    file:///&<P_XML_PATH>&<P_XML_DATAFILE>
    And the value would be something like
    P_XML_PATH = /reports/data/xml/
    P_XML_DATAFILE = <actual filename>

  • Native package for Mac and relative path

    Hi,
    I done a small application with Javafx that start an Embedded Jetty. All works fine in Windows also with native package. Instead in Mac it works only before native packaging. Seems that the problem is how relative path are considered.
    The tree of the content is this:
    myfile.jar
    webapp (folder)
    libs (folder)
    Look at this code:
                    String webAppDir = "webapp";
                    File f = new File(webAppDir);
                    log.debug("Path webapp folder: " + f.getAbsolutePath());
                    if (!f.exists())
                        throw new Exception("The folder " + f.getAbsolutePath() + " doesn't exist");
                    if (!f.canRead())
                WebAppContext context = new WebAppContext();
                context.setContextPath("/myapp");
                context.setResourceBase("webapp");
                context.setDescriptor("WEB-INF" + File.separator + "web.xml");
                context.setSessionHandler(new SessionHandler(sessionManager));
                        throw new Exception("La cartella " + f.getAbsolutePath() + " non è leggibile");
    The problem is that before the packaging in Mac the relative path is that where the main .jar is located an so the code works because the webapp folder is found. Instead after the bundle the path became /Users/MyUser/webapp and of course the folder is not found because it is bundled inside the file.app near the libs folder.
    Someone can explain me if this behaviour is due to JavaFx packager and how I can solve the problem in a elegant way?
    Thanks very much

    Some good soul has any idea?
    Thanks

  • CFINCLUDE and relative path

    I have a website which has error catching in it and from time
    to time I have this error come through when using cfinclude.
    Could not find the included template
    project56/images1/page1.html. Note: If you wish to use an absolute
    template path (e.g. TEMPLATE="/mypath/index.cfm") with CFINCLUDE
    then you must create a mapping for the path using the ColdFusion
    Administrator. Using relative paths (e.g. TEMPLATE="index.cfm" or
    TEMPLATE="../index.cfm") does not require the creation of any
    special mappings. It is therefore recommended that you use relative
    paths with CFINCLUDE whenever possible.
    Why would this error occur for a few visiters and not for all
    when browsing my website?
    If I have to put some sort of mapping into CF Administrator
    what should I put as a mapping and why should this help?
    Thanks in advance for your help.
    Simon.

    The only thing I can think of is are you sure the page the
    'affected' users are clicking from are in a parent folder of the
    'project56' folder? The error occurs when the CFINCLUDE is looking
    in the wrong folder or when you try to include URL variables in the
    include statement.
    if you INCLUDE project56/images1/page1.html it will work, but
    if you INCLUDE project56/images1/page1.html?user=123 then you get
    an error because the INCLUDE looks for the actual text of what's
    between the quotation marks...it will not pass variables.
    I'd check the folder structure on where they are clicking
    from. In your error page, just have the referring page
    output.

  • Rewrite URL in SMP and Relative Path

    Hi,
    some one have an example how to use Relative Path properties?
    I have read this guide (Defining Back-End Connections - REST API Application Development - SAP Library) but is not very clear for me.
    Thanks and kind Regards,
    Elia.

    When you precompile, can you say "Keepgenerated=TRUE". It might help you track
              down the difference with the URL. You should only get a 404 error when the
              resource is not found at runtime, which is independant of when you compile. The
              difference should be in how the URL is compiled.
              Chris
              ali wrote:
              > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
              > it forwards ok if I am using directly JSPs but if I am using pre-compiled
              > JSPs (and have proper servlet-mappings
              > in my web.xml), I get 404 error with the relative-path, if I change it to
              > absolute path with pre-compiled JSPs it forwards ok , then.
              > any ideas why this is so?
              > thanks,
              

  • Flash SWF not playing - PATH ISSUE

    I've got an html file in my webroot and I got the swf file in
    the webroot/Flash_video/homepage/scroll/ directory. All the
    ActionScript file in directories below that. I play the html file
    from the webroot/Flash_video/homepage/scroll/ directory and it
    works. Why isn't it showing up in the html file in the Webroot?
    Here's my code in the thml file in the webroot.
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="768" height="100">
    <param name="movie"
    value="Flash_video/Homepage/Scroll/mcf_banner.swf" />
    <param name="quality" value="high" />
    <embed src="Flash_video/Homepage/Scroll/mcf_banner.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="768"
    height="100"></embed>
    </object>

    OnDemand Junkie wrote:
    > I've got an html file in my webroot and I got the swf
    file in the
    > webroot/Flash_video/homepage/scroll/ directory. All the
    ActionScript file in
    > directories below that. I play the html file from the
    > webroot/Flash_video/homepage/scroll/ directory and it
    works. Why isn't it
    > showing up in the html file in the Webroot? Here's my
    code in the thml file in
    > the webroot.
    >
    >
    > <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" width="768" height="100">
    > <param name="movie"
    value="Flash_video/Homepage/Scroll/mcf_banner.swf" />
    > <param name="quality" value="high" />
    > <embed
    src="Flash_video/Homepage/Scroll/mcf_banner.swf" quality="high"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" width="768"
    height="100"></embed>
    > </object>
    When HTML is in webroot and calls flash from
    Flash_video/Homepage/Scroll/
    the flash will appear is if it was in the webroot directory.
    It will always seek files it loads from HTML location, not
    it's original
    location.
    You must be mindful of that while authoring your movies and
    the paths need
    to be adjusted accordingly.
    In your case whatever flash loads it can no longer refer to
    it by file name
    but Flash_video/Homepage/Scroll/filename.swf
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Cs5 "local disc" and .js path issues

    Trying to add what appears to be a simple .js script to my doc:
    I add the script to my <head>, which then shows next to my Source Code and other scripts. But it doesn't work, and when I click to open the file there, I get the message 'not on local disc', and 'Get' which doesn't work either, even though the file is in my local file view/f8. One would think when the script name pops up next to Source Code, the doc. path is correct, but that obviously isn't the case. So what is the deal with this 'local disc'?
    I added a clearbox last week after pulling my hair out over the similar path issues, and after much trial and trib it finally worked. Would rather just like to understand it. Can anyone help? Thank you.
    The .js' Column' script I'm trying to add is here if it helps: http://www.projectseven.com/tutorials/css/pvii_columns/index.htm

    I also would like to know how to do this!

  • Migration and relative path

    Hi people,
    I would like to migrate a Performance Manager environment from DEV to PROD but I'm facing problems with linked objects.
    For example, I have an "Interactive Metric" from which I can open a Webi report, using the commad :
    Detail Analysis||http:///businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=WI-MonthlyAnalysisby+Product&sDocType=wid&sRefresh=Y&lsMProduct=$SLICE_NAME$&lsSBegin_Date= $CURRENT_DATE(d/m/y)$
    ... of course, the name is not changed during the migration. I have tried many ways to make the path be relative but I didn't success
    Thanks for your help
    Alex

    Hello  Alex,
    I recommend to post this query to the [Enterprise Information Management|Data Services and Data Quality; forum.
    This forum is dedicated to topics related to Data Integration (Data Integrator, Data Federator, Text Analysis for Data Integrator, Rapid Marts, and Integration for PeopleSoft Enterprise), Data Quality (Data Quality and Data Insight), and Metadata Management.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • Overlapping and intersecting paths issue

    I have a logo that I've made, however I'm trying to fix this overlapping issue solely in Illustrator instead of having to use Photoshop as well. My issue is a rope that goes under and over an anchor at various points. I'm quite new to Illustrator so I'm resorting to masking out the rope in Photoshop. Below is what I'd like to have:
    And this is the furthest I can seem to get in Illustrator:
    Any attempts to break the rope path up will change the path alignment which I can't seem to correct. I've tried clipping masks and that seems to make things worse. What would you suggest? I'm using CS6 and I'm fairly new with Illustrator.

    Take your original copy of the rope adn send it to back.
    Copy a duplicate and paste this in front
    Draw rough shapes filled with black for the area you want the rope to be on top of the anchor, and group these elemtns (this will be your mask)
    Select the top rope and your mask, in the transparency palette click make mask (Versions older than CS6 this can be found in the flyout menu)
    Enable clip and invert mask

  • Infopath publish and managed path issue

    I have a manged path, /part1/part2, that I use to create urls that look like
    http://webapp.com/part1/part2/site1 and
    http://webapp.com/part1/part2/site2
    When using infopath and trying to publish to this I get a url invalid error.  I can publish to other sites not in this managed path without issue.
    I have read that this is due to no root site collection but there is one.
    Is there anyway to do this? 

    5 minutes after posting I figured this out.
    It does require a root site however not at /.
    If you are wanting to have /part1/part2/sitex in your url and you want to be able to publish forms to this you must create an Explicit inclusion type of path on for part1.

  • Cl_gui_frontend_services= gui_download and logical path issue

    Hi all!!
       I'm downloading a table with this class/method, and when i have worked with a LOCAL folder, it worked fine, but now, i need to put the file into a server folder. So i get the logical path in this way:
    10.20.xx.xx
    but when i pass the filename to the method: v_filename = '
    10.20.xx.xx\file.txt' the file is not generated into this folder.. and i have permission to access and modify this folder..
    Thanks for your feedbak!

    If you need transfer each record of the table (I suppose itab with header line):
    LOOP  AT itab.
      TRANSFER itab TO file_path
    ENDLOOP.
    Note: All of fields in itab must be character-type if the file was opened as a text file.
    Other example:
    OPEN DATASET '/usr/sap/tmp/ztest.txt' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      TRANSFER zdepmentt TO '/usr/sap/tmp/ztest.txt'.
    ENDIF.
    CLOSE DATASET '/usr/sap/tmp/ztest.txt'.
    Here the content of the data object (flat structure) "zdepmentt" is transferred to the application server file  '/usr/sap/tmp/ztest.txt'.
    Note: The file ztest.txt is automaticaly created.

  • Jar file and relative path ?

    Hi
    1)When a jar file is run how can I access a file that is in the same directory that the jar is in ?
    (I need access to another file that is not in the jar.)
    2) If you read an ini file from the jar with getResource etc can you write back to that ini with new values ?
    Thanks for your help.
    Tim

    1) Use getResource to locate the jar url that contains the class. You will now have to extract the local filesystem path from the jar url.
    2) No

  • Actual and relative file paths - CS4(mac)

    Is there a way to save your file so that it ALWAYS looks for the relative paths of all its content?
    My issue is that when i xfer the prproj file to another computer it asks me to reconnect everything. The other computer has exactly the same folder structure as the one i'm copying from minus a different harddrive name. (I just copied and pasted the whole project from computer to computer).
    Its really getting to become a huge hassle....any work around and whatnot would be great....thanks!

    I deal with this often (yesterday in fact). Things get ugly when you try to re-link a project that has media placed in multiple folders within the main project folder. Even worse when there are a hundred cryptically named P2 mxf files.
    Try this:
    Open the *.prproj file in Notepad and do an "Edit" "Find" for the word: filepath
    Keep searching down till you get a drive letter.
    This will show the original drive letter the project was last saved with.
    To save time, and avoid relinking everything, do one of the following two... your choice:
    1.) Do a find and replace in Notepad of a short "phrase" of code containing the original drive letter, in the document. Replace it with the identical phrase containing the currently assigned drive letter.
    For Example:
    Find: <FilePath>E:\
    Replace With: <FilePath>G:\
    OR:
    2.) After noting the original drive letter in the *.prproj file by doing the "filepath" search in Notepad, simply assign the original drive letter back to the drive in "Computer Management"/"Storage"/Disk Management.
    *WARNING: Premiere is unforgiving of even the slightest error in a *.prproj file.
    ALWAYS EDIT A COPY OF YOUR PROJECT IN NOTEPAD

Maybe you are looking for

  • How can i see my ink levels

    how can i see my ink levels on my printer PHOTOSMART 5510

  • ADF Faces, BC and JDeveloper 10g: Rendering Dynamic ViewObjects at runtime

    I am trying to make a 10g version of Shay's example (http://www.youtube.com/watch?v=TwIKt7e4vEw). JSP code: +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"+ +"http://www.w3.org/TR/html4/loose.dtd">+ +<%@ page contentType="text/html;ch

  • Can i use adobe muse on a current website?

    I have recently started working for a business that already has a website. Can I still use adobe muse with this website or do i have to start a fresh?

  • Country and timezone info on business card?

    Lately I saw a thread on ALT texts for the flag image on the business card. In addition to that I would like to suggest that the country name and timezone are printed next to the flag. Knowing the timezone of other posters may help to steer expectati

  • Migration to 802.1x authentication

    Hi all, I have a very large wired-only Ethernet network which I would like to migrate to 802.1x for stronger authentication of end users. The problem I have is that there are long chains of legacy switches which do not support 802.1x (the topology of