CORS with ADF

Hello

JDEV version 11.1.1.7.0

We strive to implement the CORS with domain CDN to be kept in the static content web server.

We have added the Access-Control-Allow-Origin * in the file httpd.conf of OHS (11.1.1.7.0)

The header seems to work very well with the CSS files and the police. But it fails for AJAX to JS calls.

Does anyone have an idea what can be done?

Here's the header added to the httpd.conf file

< FilesMatch ".» (eot | ttf |) OTF | woff | JS | CSS) ">"
Header value Access-Control-Allow-Origin "*".

Header set Access-Control-allow-Headers:original Message, X-requested-with, Content-Type, Accept, Adf Rich
< / FilesMatch >

Thanks draio.

This link helped.

but my problem was the lack of "-" in the Message of Rich Adf.

Tags: Java

Similar Questions

  • MicroBlaze soft core with Spartan-3F kit

    Hello guys,.

    Is it possible to implement a Microblaze soft core with kit-LABVIEW FPGA and Spartan-3E? Examples?

    In addition, examples of executing a Picoblaze soft-core on Spartan-3E and using LabVIEW FPGA CLIP node kit? Thanks in advance!

    This link points to a generation on the Virtex 5 FPGA platform.  In principle, the process is the same for Spartan...

    http://decibel.NI.com/content/docs/doc-8753

  • RelayState parameter is a full support with ADFS in Windows Server 2012?

    We implement Single Sign-On with ADFS. (Service Provider - salesforce.com, identity provider - ADFS). But when authenticate us with ADFS, he is will authenticate successfully, but it will be redirected to the site complete salesforce instead of the mobile site. Salesforce document mentioned that we must manage the on ADFS RelayState parameter. And I saw that some article mentioned the 'RelayState' parameter is not fully supported for Windows Server 2012. Please let us know Windows Server 2012 is fully supports for the parameter "RelayState" and if it is how to handle on ADFS. Thank you.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Can I upgrade my laptop cq56 Pisario Compact a 2.6 Ghz quad core with 4 GB of ram

    Hi Hp community.

    I am tring to get a new model on my computer called nolimits coaster 2 software. I had the demo and it runs pretty slow. I don't know if it's a memory or a CPU thing but I would love to get this without having to buy a computer brand new if possible. Here are their requirements: Windows 7 or newer, 2.6 GHz Quad Core with 4 GB of RAM, compatible Direct x 9.0 c (Shader Model 3) with 1 GB of video RAM

    Thank you, Michael

    Hello

    The following link shows the specifications of your computer:

    http://support.HP.com/us-en/document/c02636087

    As you can see, no way you can upgrade your machine for video 1 GB of RAM you given cannot go to 2.6 GHz CPU (maybe not image) and 4 GB of RAM. You buy the new machine to meet the requirements.

    Kind regards.

  • Integrate oracle 12 c with ADF forms

    Hi all

    How to integrate forms oracle 12 c with ADF faces with examples and code samples.

    For the 12 c forms which ADF version works.

    Hello

    Please see the link below. You need to try this... If all the subject, questions, please answer.

    https://www.YouTube.com/watch?v=FF62gqPfLNE

    http://www.Oracle.com/technetwork/developer-tools/jdev/redeveloping-forms-in-ADF-11g-1-133095.PDF

    Thank you

    Amey

  • including the extension in jdeveloper with ADF Faces?

    Hello

    We have an application with ADF Faces components that must be migrated to OracleAS weblogic 11 g Server (10.3.5).

    We strive to upgrade the application under jdeveloper 11.1.1.5.0.  I have 3 questions.

    1. which the ADF jdeveloper extension should download us for this purpose?

    We already seem to have the extensions 'Fusion Web Applications (ADF)' and ' Applications Java Desktop (ADF) "."

    2. during the upgrade, we were given an option to upgrade the ADF Faces in Trinidad, when this option has been chosen, we got a "unexpected mistake."

    is it necessary to go to TRINIDAD to be able to deploy successfully on weblogic 10.3.5? If Yes, is the extension for Jdeveloper MAVEN?

    3. in weblogic server, I understand, we need the extension JRF to support the length of the ADF, is there anything else that we need on weblogic server that the adf works?

    Thank you in advance.

    If the origins of your application of jdev 10g and runs on the OAS, you can migrate to Trinidad. No extension is required for this as the required libraries are already there. Maven is useless and will not work for 11.1.1.5.0. First version with the full support of MAVEN is 12 c.

    If you get an unexpected error during the migration from the old app to 11 g, you should try to find out

    (1) projects that is causing the error

    (2) file that is causing the error

    and work from there. There are some configurations that cannot be migrated (check the release notes), however they should not lead to unexpected errors. However, check the release notes.

    If you don't find anything and cannot pass through the error, you must open a SR with support.oracle.com.

    Next question is why migrate to 11.1.1.5.0 which is already obsolete.

    Timo

  • Using SQL Server with ADF BC and getting Houston - 29114 ADFContext aren't Setup error

    Hello... I work with ADF BC and my connection is with a MS SQL Server database.  I added the sqljdbc4.jar in my template project, and can't seem to connect with the DB and build an Entity/View/AppMod infrastructure.  However, once I deploy the application on the integrated WebLogic Server I get errors when ADF BC tries to connect.  I added a POJO supported data control and tried to debug but PPR reports an error when my key to call the code stripped of JDBC:

    Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is Houston-29000. Error messages settings are {0 = java.lang.NoClassDefFoundError, 1 = com/microsoft/sqlserver/jdbc/SQLServerException}

    ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #1 60096:Server

    Seems to me that the POT is not in the classpath on the WLS.  What is the problem? If Yes... How would have added that JAR, sqljdbc4.jar, the path of the WLS class.  I've done through the deployment of models, and he saw in the META-INF/lib directory that has been deployed.

    Thanks for any help!

    Do not apply the JDBC JAR (s) in the archives of application deployment. You must add the JAR to the classpath WLS JDBC (s). Change the commEnv.cmd/sh for this script:

    Using JDBC with WebLogic Server - 11g Release 1 (10.3.6) drivers

    Note that WLS is pre-configured with a number of brand WebLogic DataDirect JDBC drivers (including a SQLServer driver), so you can use it instead of adding a new driver if the DataDirect driver meets your needs:

    Using WebLogic brand DataDirect drivers - 11g Release 1 (10.3.6)

    WLS 10.3.5 documentation provides more detailed information:

    The MS SQL Server driver

    Dimitar

  • Problem with ADF Mobile on Android

    Hello

    I am trying to perform a very simple test with adf mobile on android emulator.

    But when I try to open the application, the startup screen never changes.

    Only when I go to the menu and go back to the application in the menu device, it shows the main screen.

    And...

    When I try to open a page very simple amx, the app launch a message that says:

    Failed to initialize the AdfcContext {classname: oracle.adfmf.framework.api.Model; method: pushPageFlowScope; params: ;}}

    Can someone help me?

    I use:

    Framework Mobile ADF oracle.adf.mobile 11.1.2.4

    SDK Android 22

    Message: http://db.tt/mIqcekCI

    Journal: http://db.tt/0frlguNq

    Thank you!

    Hi, there, a number of things to double check your settings of the emulator:

    • When the Android emulator configuration, make sure that the emulator emulates the ARM processor (armeabi - v7).  ADF Mobile works only with the ARM processors - device so the emulator.
    • Under Options, memory, please ensure that RAM is at least 768 or higher.  It is of course also constrained by the amount of memory that your development computer has, but in general, you should have at least 768 MB allocated.  ADF Mobile app itself will almost RAM of course, but there are lots of Android apps that are started in the background when the Android emulator starts.
    • Also make sure, there are 500 MB of internal storage configured - you can go as low as 200 MB, but the space will be quickly.

    Finally, compile/deploy again, please open JDeveloper menu Build - Clean all to clean up any left over deployment artifacts.

    Thank you

    Joe Huang

  • Possible to use USB with ADF Mobile devices

    Hi guys,.

    I have found a few reader (include chip) chip card that works with a mobile device through their ports (port 30 pins, micro usb) in mobile native development(iOS/Android)

    but I want to know can be used with ADF Mobile as we Smartcard reader SDK JAR that working in the 1.4 jvm that I'm not sure on the support of usb-host function in ADF Mobile.

    Thank you.

    Hello.

    In the current version, the only way to get what you want is to build your own plugin of Cordova. This means that you will need to write native Android and iOS code to interact with the device, but also a JavaScript wrapper that will expose your API to Mobile ADF application. You can find more information in the Documentation of the API Apache Cordova.

    Best regards

    Frédéric Desbiens.

  • [Help needed] Several errors in X 40 with ADF security with or without custom login page

    OTN greetings community, I'm sorry to bother you again, but I need help again once, links to the relevant files (pastebin and imgur) are on the bottom of the post in the meantime ill try to explain my situation.

    I use version 11.1.1.7.0 for JDeveloper with (I assume) updates all of the current side.

    In my efforts to learn more about ADF, I had finished the Apps to build with ADF I guide I produce a 'simple' application to manage contacts, companies and their places of activity.

    With all my functions done and tested semi (small scale) I went ahead and and tried implement security.

    So, with the help of Andrejus Baranovskis Entry of Blog (have been using his blog as a source of information, has contributed to many situations, especially related bean) and fireboxtraining (Part1 and Part2) youtube videos, I have 2 pages, a Login Page (a dispatcher Panel 1 facet has only text showing the user names and passwords connection and the 2nd input text facet 2 related to the bean requesting the user name and Word 3rd password a button that calls the doLogin method) and an error page displays just the text.

    So after you have enabled security, create 2 users, create 2 roles of the company, creating application roles 2 and associating all 2 grants of right one to each role app giving privilege to see on the pages I want, I developed (my goal is that in the homepage, using a mixer according to user's role would display a region that all data can be changed or another that all data is read-only but I don't that have not yet implemented).

    So I went on the test page and unfortunately I hit the 1st wall would not display the login page (seemed to be always be update a blank page in firefox) so I checked if the pages are in the anonymous role and they were. So, as I saw in the video I deleted the page definition files in the Databindings.cpx file and I am past the 1st obstacle has shown the login page. So I typed the username and passwords and I hit my second wall (error 404 - Not found), I saw the code, debugged it and found that he wouldn't be able to hang or something like that (forgive me for my brutal inexperience) then I disabled the security and reactivated with pages of default form, and when it prompted me to type the user name and password I had hit my 3rd and last wall (error 401 - no allowed) which we I didn't wait, I went in the jazn-"Data.xml" and looked if the grants/permissions/roles were ok, in my inexperience, I don't find any problem, so beat I come here to seek support.

    Code:

    MyLoginBean

    MyJazn-"Data.xml"

    MyWeb.xml

    Error logs:
    OnDeployment

    OnLogin

    Screenshots:

    404 full

    401 full

    Sorry for the long post and to put the code in another site (not wanted to put this post more than it already is).

    Thank you very much for your time and your support.

    Hello

    Article http://www.oracle.com/technetwork/issue-archive/2012/12-jan/o12adf-1364748.html

    comes with a sample download, run and explore.

    http://www.Oracle.com/technetwork/issue-archive/2012/12-Jan/o12adf-524995.zip

    It includes all your use cases. So I suggest that start here

    Note that following the code has experienced problems with recent versions of the IDE instead of a side server before we recommend (and will amend accordingly our documentation) to use a redirect on the facesContext--> externalContext instead (I'm typing through while it's not his apparent

    recommended and more)

    ' Private Sub sendForward (HttpServletRequest, HttpServletResponse response, forwardUrl String query) {}

    FacesContext ctx = FacesContext.getCurrentInstance ();

    RequestDispatcher dispatcher = request.getRequestDispatcher (forwardUrl);

    try {}

    Dispatcher.Forward (request, response);

    } catch (ServletException to) {}

    reportUnexpectedLoginError ("ServletException", is);

    } catch (IOException ie) {}

    reportUnexpectedLoginError ("IOException", IE);

    }

    ctx.responseComplete ();

    }

    Frank

  • Running Application Module tester with ADF security

    Hi, I use JDeveloper 11.1.1.6 and recently activated ADF security on my request. Now when I try to run the Application Module Tester by right click on the request form and say run I get the following error. I get the JAAS prompt to enter my credentials, but no matter what I put, I get the following.

    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.adf.share.security.ADFSecurityAuthenticationException, msg = EXC_NO_AUTHENTICATION_SERVICE
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:599)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:869)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: oracle.adf.share.security.ADFSecurityAuthenticationException: EXC_NO_AUTHENTICATION_SERVICE
    at oracle.adf.share.security.authentication.AuthenticationServiceUtil.getAuthenticationService(AuthenticationServiceUtil.java:68)
    at oracle.jbo.common.UserAznUtil.authenticate(UserAznUtil.java:64)
    at oracle.jbo.common.UserAznUtil.authenticateUser(UserAznUtil.java:32)
    at oracle.jbo.jbotester.TesterEnvInfoProvider.getInfo(TesterEnvInfoProvider.java:344)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:65)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
    ... 13 more
    # # 0 in detail
    oracle.adf.share.security.ADFSecurityAuthenticationException: EXC_NO_AUTHENTICATION_SERVICE
    at oracle.adf.share.security.authentication.AuthenticationServiceUtil.getAuthenticationService(AuthenticationServiceUtil.java:68)
    at oracle.jbo.common.UserAznUtil.authenticate(UserAznUtil.java:64)
    at oracle.jbo.common.UserAznUtil.authenticateUser(UserAznUtil.java:32)
    at oracle.jbo.jbotester.TesterEnvInfoProvider.getInfo(TesterEnvInfoProvider.java:344)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:65)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2913)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2473)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2347)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3246)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:572)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:505)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:500)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:523)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:869)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)

    Also, I have tried to disable the security of the ADF and the request module Tester then works fine but I need to run it with security ADF is turned on. Someone knows how to fix this?

    Thank you.

    I understood the question. It seems that I had to remove the library "ADF generic Runtime ' libraries and Classpath of the project of my model parameters. Does anyone know why having this library referenced in your project settings would cause this issue? I also had to delete this reference from the library to a project to generate a web service proxy in the past, it seems to cause a few problems when they are associated with libraries and Classpath for a project or even associated with a library that depends on another library. Can anyone provide any indication regarding the library and why it causes so many problems? You can recreate this issue on demand by adding the library "ADF generic Runtime ' to your template with ADF security project and then activated by running the module of the application by clicking on it and say run.

  • Download Document of Intranet Portal with adf 11g connection credentials

    Hello


    JDev Version: 11.1.2.2.0

    I am trying to download a document of intranet portal that uses my IDs of NT.

    When I try to download the link from the browser, it works, but try even when download of java code with ADF Backing Bean his fault download saying 401: unauthorized Exception.

    Question here is how to move the Windows NT credentials to my grain of document download or is there a way to say "use my login credentials of the system"?


    I copy the source code here for your reference.

    /**
    * Download the file stored in the database in the URL format
    @param facesContext
    @param outputStream
    */
    ' Public Sub downloadDocument (FacesContext facesContext, OutputStream, outputStream)
    {
    OperationBinding op = (OperationBinding) findOperation ("getDocumentLocation");
    Map opParamsMap = op.getParamsMap ();
    opParamsMap.put ("docRowKey", docValueID.getValue ());
    String result = (String) op.execute ();.
    System.out.println ("location of the document" + result);
    FileOperations.getInstance (f:System.NET.WebRequestMethods.FTP.DownloadFile (result));
    }


    synchronized Public Shared Sub downloadFile (String strURL)
    {
    DocumentURL URL;
    UConn URLConnection = null;

    try {}
    documentURL = new URL (strURL);
    uConn = documentURL.openConnection ();


    Authenticator.setDefault (new Authenticator() {}
    protected PasswordAuthentication getPasswordAuthentication() {}
    return new PasswordAuthentication ("xxxx", "xxxxx".toCharArray ());
    // }
    // });

    int byteRead;
    int byteWritten = - 1;

    InputStream is = uConn.getInputStream ();
    OutputStream outStream = null;
    Byte [] buf = new byte [153600];
    While ((byteRead = is.read (buf))! = - 1) {}
    outStream.write (buf, 0, byteRead);
    byteWritten += byteRead;
    }
    System.out.println ("uploaded successfully.");
    }
    catch (FileNotFoundException fnfe)
    {
    System.out.println ("Exception occurred while downloading file:" + fnfe.getMessage ());
    }
    catch (MalformedURLException e)
    {
    e.printStackTrace ();
    }
    catch (IOException e)
    {
    e.printStackTrace ();
    }
    Finally
    {

    }
    }


    Please note that I am the download document based on a URL (intranet portal).

    Happy to provide any other information.

    Appreciate the quick response

    Thank you inadvance

    Network and application user id user ID but can match... the password is not... Since you say that the URL itself works very well when you give him on browser, try opening the URL using goLink.
    Guess it would work if the user of the network has access to the portal.

    Check out the link below to open the URL using goLink.

    Open a dynamic URL to link to the Table column

    Good luck!

    Edited by: 119413 January 10, 2013 14:35

  • IE9 a total incopitable browser with ADF.

    Hello

    While working on one of my projects, I have observed that IE8 does not have some css changes in the ADF. Some where on the net I find these css settings will work in IE9.
    But IE9 looks like a browser totally incompitable with ADF. All the components have different behavior.

    I know that oracle does not recommend IE as a browser, but we cannot ignore the 45% share of IE in the current browser MKT.
    Can someone if there is no change that I need to make it compatible with IE9 browser pages ADF or selection of libraries.


    Thank you
    Vipin

    Vipin salvation,

    JDev version of the questions.

    Check this (JDev 11.1.1.4) Frank's article: https://blogs.oracle.com/jdevotnharvest/entry/running_adf_faces_applications_with_ie_9_in_ie_8_compatibility_mode
    And here you can find the compatibility with current browsers (JDev 11.1.2.3.0): http://jdevadf.oracle.com/adf-richclient-demo/docs/release.html#SupportedPlatforms

    AP

  • Question about the mix of Trinidad component with ADF Faces

    Dear all,

    I have a requirement for complex layout that I can't do with just ADF Faces component.
    I found this blog nice wfrom Jobinesh http://jobinesh.blogspot.com/2010/11/layout-tips-organizing-page-content.html
    and I quickly realize that this will solve my problem.

    Please note that components of Trinidad has not all client components peer as we have for the ADF Faces. You may need to be measured while choosing this guy

    I'm just concerned about this line. I can't really understand what it means and how it will impact my programming of the ADF.

    Thank you

    Neliel,

    Which, in my view, that Jobinesh says it's that you will not be able to use the HTML elements of the Trinity as targets for partial triggers. As far as I know, using HTML of Trinidad (trh :) components with ADF is OK, but using 'clean' Trinidad (tr :), you can have problems.

    John

  • Forms 10 g itegration with ADF

    Hello

    Can integrate us Forms 10 g with ADF? Articles/reference to it?


    Thank you
    CN

    Well, let me give you the "official" line

    In the end, everything boils down to what your company is trying to reach. Discover http://www.oracle.com/technetwork/developer-tools/forms/forms-modernization-092149.html - there are whitepapers and viewlet.

    I would tend to discourage very close integration of applications. For example, a screen Forms called a JSF which then calls a screen of forms that has a JSF embeded in it. This tight weaving of technology can store a lot of problems for you.

    Simply calling the forms of a JSF application or visa versa a sort of 'fire and go' is ok, but try to consider them as separate applications.

    The back-end through SOA integration is something that is much more feasible and avoids some of the pitfalls of trying to crush heavily applications which, to be honest, were never really built to be closely woven together. Of course, I would like to point out that some customers have made this (Eurotransplant) but it means not that it will work in all cases and as I pointed out already, one must be aware of the potential problems (for example every application has its own transaction and the user, so indeed you may lock you out of data if you change it in one application but want to access it from the other.

    So, bottom line - what do you do?

    Concerning
    Grant Ronald

Maybe you are looking for