The ADF Application virtual directory mapping

I have under entry in my weblogic.xml file and everything works fine.  I want to read < local-> file path of properties so that I need to keep separate for each environment or local weblogic.xml. My production environment (linux) image location is/home/mywork/MyImages

Is there a way? How can I do?

< virtual directory mapping >

C:\JDeveloper\mywork\MyImages < local path > < / local path >

Dim < url-pattern > / * < / url-pattern >

< / Directory virtual-mapping >

Hi me26,.

You can get this creation of a deployment plan where, at the time of the deployment, you can override this property with a value of the customized environment.

Follow this link: deployment plans created with Oracle WebLogic. Java Code geeks

Best regards

Tags: Java

Similar Questions

  • With the help of deployment plan to change the virtual directory mapping

    Hi all
    Have anyone tried this before?
    I have a deployment plan to add the virtual directory to my descriptors of weblogic as follows:

    Inside tag <>variable-definitions:
     <variable> 
          <name>LocalPath</name>
          <value>C:/</value>
        </variable> 
        <variable>
          <name>VirtualPath</name>
          <value>/Temp/*</value>
        </variable> 
    Then, to add the virtual directory to weblogic.xml in:
    <module-descriptor external="false">
          <root-element>weblogic-web-app</root-element>
          <uri>WEB-INF/weblogic.xml</uri>
          <variable-assignment>
             <name>LocalPath</name>
             <xpath>/weblogic-web-app/virtual-directory-mapping/local-path</xpath>
          </variable-assignment>
          <variable-assignment>
             <name>VirtualPath</name>
             <xpath>/weblogic-web-app/virtual-directory-mapping/url-pattern</xpath> 
             <operation>add</operation>
          </variable-assignment> 
        </module-descriptor>
    But I have this error:
    "
    C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\planplan.xml:0 error VALIDATION PROBLEMS FOUND: problem: cvc-complex - type. 2.4 c: expected element" url-pattern @http://xmlns.oracle.com/weblogic/weblogic-web-app' before the end of the virtual-directory-mapping element content @http://xmlns.oracle.com/weblogic/weblogic-web-app:< C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\planplan.xml >
    I also tried to use the XPath for model url as follows:
    /WebLogic-Web-app/virtual-directory-mapping/[local-path="C:/"]/URL-pattern < xpath > < / xpath >

    But I have the same error. The <>url-patter item is not added correctly to the virtual directory mapping tag.

    It is supposed to work. Someone has done this before? or is this a bug of the deployment plan.

    Thank you very much.

    Concerning

    K.

    Hello

    It seems that in the new WLS10.3.2 weblogic.xml XSD order of * "url-pattern" * and * 'local-path' * is changed then the secuence of Xpath is changed... This means that now you must try with following... What has worked for me in WLS10.3.2:



    MyVirtualDirEAR


    LocalPath
    C:\DELETE\MyImages


    VirtualPath
    / Temp / *.


    VirtualDirWebApp.war
    war

    WebLogic-web-app
    WEB-INF/weblogic.xml

    WeblogicWebApp_WorkManagers_12789279799714
    WebLogic-Web-App/Work-Manager


    firstNode
    WebLogic-Web-App/Virtual-Directory-Mapping
    Add





    VirtualPath
    /WebLogic-Web-app/virtual-directory-mapping/URL-pattern
    Add


    LocalPath
    /WebLogic-Web-app/virtual-directory-mapping/[URL-pattern="/temp/*"]/local-path
    Add






    C:\VirtualDirectory_MappingApp

  • virtual directory mapping

    I posted this here and not yet in the forum of weblogic.

    Use the current version of jdeveloper, adf.

    I read the posts on the forum of weblogic and followed the solution, but I get a 404 not found error.

    I want to deploy all the PDFs in the directory c:/Pdf.

    I use golink with destination http://localhost:7001 / bissell.pdf

    If I deploy in default location of the document, it works well.

    When I deploy in c:/Pdf I get a 404 error.

    The reason why I posted this here is, I don't know if ADF creates problems, I do not think that Yes, but...

    If there is no step that I missed, please let me know.


    Chuck


    WebLogic.Xml

    <? XML version = "1.0" encoding = "windows-1252"? >
    -weblogic-web-app xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd" xmlns = "http://www.bea.com/ns/weblogic/weblogic-web-app" >
    -security-role-assignment >
    valid users - < role name > < / role name >
    users of < SPN > < / main-name >
    < / security role assignment >
    -< virtual directory mapping >
    < local path - > c:/Pdf < / local path >
    *.PDF < url-pattern > < / url-pattern >
    < / Directory virtual-mapping >
    UMASS < context root > < / root context >
    -Library-ref >
    < name of the library - > adf.oracle.domain.webapp < / library name >
    < / library-ref >
    -Library-ref >
    < name of the library - > jstl < / library name >
    specification of the < version > 1.2 < / specification-version >
    < / library-ref >
    -Library-ref >
    JSF < library name > - < / library name >
    specification of the < version > 1.2 < / specification-version >
    < / library-ref >
    < / weblogic-web-app >

    The virtual directory that you associate is a part of the Web application, if you need to access it in the root of the Web application. If the root of the application context is UMSASS (as your weblogic.xml States), try the following:

    http://localhost:7001/UMass/bisell.PDF

    Dimitar

  • virtual directory mapping does not

    G ' Day,.

    Running the installation zip (development version) WL12.1.3 on my windows 7 dev laptop and trying to get the virtual directory mapping directive work in weblogic.xml.

    I have the following defined in weblogic.xml:

    <virtual-directory-mapping>
            <local-path>C:/htdocs/gocnrsdpgdc/static</local-path>
            <url-pattern>/static/*</url-pattern>
        </virtual-directory-mapping>
    

    My context root is on: / inet-inet/gocnr-sdpgdc/10

    Trying to pull in static files using the following URL in my application results in a not found error:

    /INET-INET/gocnr-sdpgdc/10/static/content/HTML/test.html

    Any ideas? Security restrictions preventing access to the file outside of the app container system perhaps WL?

    Hello

    I just quickly tested on WebLogic Mac 12.1.3 and it seems to work perfectly well. I used the demo attached here:

    Article:

    Mapping of virtual directory in WebApps

    http://middlewaremagic.com/WebLogic/?p=790

    Source code:

    https://github.com/jaysensharma/MiddlewareMagicDemos/tree/master/WebLogic/General/WLS12c_Virtual_Directory_Demo

    I suspect you should use the slash reverse rather oblique inside of the

    1. C:\htdocs\gocnrsdpgdc\static   
    2. static / / *.

    Can you please try with the above to see if it works.

    NOTE: there are two 'static' in your PATH with the setting above are your JSP taking care of this?

    If not then I guess you should use the as follows: (without 'static') else WebLogic will search in the "C:/gocnrsdpgdc/htdocs/static/static/content/html/test.html '

    C:\htdocs\gocnrsdpgdc

    If you do not want to change the as above, then try using the URL as http://localhost:7001/inet-inet/gocnr-sdpgdc/10/content/html/test.html ("static" is removed from the URL as it is already included in the)

    Concerning

    Jay SenSharma

  • How do I view the report of jasper in a separate window in the adf application?

    Mr President.

    How do I view the report of jasper in a separate window in the adf application?

    Concerning

    User, tell us your version of jdev, please! You work on this forum long enough to find out!

    This https://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/ blog shows how to get pdf. You will need to change the blog to generate first your repost. Here's a thread responding to the same questtionn

    Open a report in a new window ADF 11 g

    and Re: open a Jasper State in the new page using servlet

    Timo

  • What is the best way to run the report of jasper in the ADF Applications?

    Mr President.

    What is the best way to run the report of jasper in the ADF Applications?

    Concerning

    Tender Hello,

    Check out these links

    Sameh Nassar: Using Jasper report in Application of ADF (detailed)

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

  • How to generate the ADF application projects

    I need to use ANT to deploy the EAR file on weblogic 10.3.5. I have download the source svn code. Then in the 11.1.1.4 Jdev, I create build.xml and build.properties for model and ViewController using Jdev.
    Then I remove all this request and re download the source code from SVN. After that, I add build.xml and build.properties to the model and ViewController. I use ant to build these 2 projects. Then, I use ojdeploy to create the EAR file.
    However, this EAR file is not correct and smaller than the EAR file created by Jdev.

    If I rebuild model and ViewController using Jdev, I can use ojdeploy to create the correct EAR file.

    < name of ora: parameter = value "nocompile" = "false" / > does not rebuild the 2 projects

    How to use ANT or ojdeploy to rebuild the ADF application?

    chk this
    http://vtkrishn.WordPress.com/2011/06/21/ojdeploy-how-to-include-taskflow-related-files-to-include/

    you delete the entry in the extract of ojdeploy

    http://one-size-doesn

  • JDeveloper error when you try to open the adf application

    Oracle JDeveloper Studio Edition Version 11.1.2.1.0
    Build JDEVADF_11.2.1.0_GENERIC_110907.2314.6081
    We seek to use the ADF to replace our current STRONG application.
    in any case, I was working through some of the ADF tutorials and this morning when I opened Jdeveloper, time where I hit navigator view/application, I get the following error.
    any thoughts?
    erforming action (79) About [ from  ]
    Invoking command:  [ from  ]
    Performing action (64) Application Navigator [ from  ]
    Failed to load a window
    java.lang.NullPointerException
      o.i.docking.DrawerWindow.restore(DrawerWindow.java:551)
      o.i.docking.DrawerDecorator.replaceProxyDrawer(DrawerDecorator.java:78)
      o.i.docking.DrawerUI.ensureRealHostedComponent(DrawerUI.java:584)
      o.i.docking.DrawerUI.expansionRatio(DrawerUI.java:668)
      o.i.docking.DrawerUI.expanded(DrawerUI.java:651)
      o.i.docking.DrawerWindowUI.addDrawer(DrawerWindowUI.java:498)
      o.i.docking.DrawerWindowUI.addDrawer(DrawerWindowUI.java:468)
      o.i.docking.DrawerWindowUI.access$200(DrawerWindowUI.java:84)
      o.i.docking.DrawerWindowUI$Listener.intervalAdded(DrawerWindowUI.java:213)
      o.i.docking.DrawerWindowUI.registerListener(DrawerWindowUI.java:447)
      o.i.docking.DrawerWindowUI.<init>(DrawerWindowUI.java:269)
      o.i.docking.DrawerWindow.createGUI(DrawerWindow.java:397)
      o.i.docking.DrawerWindow.getGUI(DrawerWindow.java:391)
      o.i.navigator.ApplicationNavigatorWindow.getGUI(ApplicationNavigatorWindow.java:695)
      o.i.docking.DockableWindow.getHostedComponent(DockableWindow.java:231)
      o.ii.docking.TitledPanelHolder.getOrCreateComponent(TitledPanelHolder.java:47)
      o.ii.docking.TitledPanel.setPageVisible(TitledPanel.java:902)
      o.ii.docking.TitledPanel.showClient(TitledPanel.java:879)
      o.ii.docking.TitledPanel.setClientVisible(TitledPanel.java:863)
      o.ii.docking.TitledPanel.setDockableVisible(TitledPanel.java:2149)
      o.ii.docking.DockPanel.setDockableVisible(DockPanel.java:311)
      o.ii.docking.AbstractDockPanelHost.setDockableVisible(AbstractDockPanelHost.java:71)
      o.ii.docking.DockStationImpl.setDockableVisible(DockStationImpl.java:652)
      o.ii.docking.DockStationImpl.setDockableVisible(DockStationImpl.java:598)
      o.ii.docking.DockStationImpl.setDockableVisible(DockStationImpl.java:582)
      o.i.docking.DockableWindow.setDockableVisible(DockableWindow.java:162)
      o.i.docking.DockableWindow.show(DockableWindow.java:143)
      o.i.docking.DockUtil.showDockableWindow(DockUtil.java:33)
      o.ideri.navigator.ShowNavigatorController.handleEvent(ShowNavigatorController.java:49)
      o.i.controller.IdeAction$ControllerDelegatingController.handleEvent(IdeAction.java:1469)
      o.i.controller.IdeAction.performAction(IdeAction.java:662)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:1140)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:617)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.AbstractButton.doClick(AbstractButton.java:357)
      jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
      jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)

    My guess is that at some point your JDeveloper was out with force.
    Try to delete this file:
    C:\Users\yourUser\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.ide\windowinglayout. XML
    and restart JDeveloper
    If this does not resolve the removal of the directory issue integer o.ide and restart JDeveloper
    and if it does not help remove the directory of the entire system.

  • [ADF, JDev12.1.3] How to manage cookies (configure/create/read) in the ADF applications?

    Hallo,

    I would like to create a cookie in my ADF application.

    To start I used the code shown in this thread code example for create / read a cookie value? but the cookie seems to not be created.

    It is not present in Firebug or it can be retrieved by the code.

        Cookie userCookie = new Cookie("myCookie", "hello");
        userCookie.setMaxAge(-1);
        FacesContext ctx = FacesContext.getCurrentInstance();
        ((HttpServletResponse) ctx.getExternalContext().getResponse()).addCookie(userCookie);
    
    
        Cookie retrieveCookie = (Cookie) ctx.getExternalContext().getRequestCookieMap().get("myCookie");
        if (retrieveCookie != null)
          System.out.println("My cookie is: " + retrieveCookie.getName() + " " + retrieveCookie.getValue());
    

    What's not in the code?

    There may be something to confiure in the application of the ADF?

    Thank you

    Federico

    1. Cookie userCookie is new Cookie ("MyCookie", "Hello");.
    2. userCookie.setMaxAge(-1);
    3. FacesContext ctx = FacesContext.getCurrentInstance ();
    4. (Ctx.getExternalContext () m:System.NET.FtpWebRequest.GetResponse ()) .addCookie (userCookie) (HttpServletResponse);
    5. Cookie retrieveCookie = ctx.getExternalContext () .getRequestCookieMap () .get ("myCookie") (Cookie);
    6. If (retrieveCookie! = null)
    7. System.out.println ("my cookie is:" + retrieveCookie.getName () + "" + retrieveCookie.getValue ());

    Is - this code is run from the same method in java?

    If this will not work (cookie is added to the http response if you can't get this until the next http request arrives)

    Dario

  • Load CSS dynamically in the ADF application

    Hello

    How to load css dynamically by application of the adf?

    Version of the ADF - 11.1.1.6.0

    Thank you

    ASIS

    Hello

    Please take a look at the URL below:

    http://www.Oracle.com/technetwork/developer-tools/jdev/index-092146.html [Configuration of an Application may use a custom appearance].

    1. you can have a range session variable watch the skin name:

    #{sessionScope.skinFamily}

    2 and set the value of the name of skin on the #{sessionScope.skinFamily} before the loading of the page.

    Please follow the steps above and the skinFamily name of the value to the variable expression sessionScope #{sessionScope.skinFamily}.

    In this way, we can dynamically change the skinfamily when running the application.

    Only a concern in this approach, is that before each page is loaded, we need to define the name of skinFamily.

    Thank you

    Amey

  • The ADF application deployment error

    Hi all

    We get another error in the SOA application

    Each time that attempted to deploy the ADF for the application (.) The EAR) in soa_server1, it gave me error archive invalid soa.

    Help, please.

    Hello

    Thanks for posting.

    The above error isony because we can deploy only archive SOA (.) SAR files) on SOA_server1 managed server.

    We can deploy only SOA archive (.) SAR files) on SOA_server1 managed server. We cannot deploy ADF (.) Applications of EAR) in SOA_server1 managed server. To deploy the ADF (.) Applications of EAR) we must deploy either Jdev Weblogic Console.

  • The Adf Application version

    Hi Experts,
    Y at - it a way through which I can add versions in my jDev Adf Applications.My Version is 11.1.1.5.0.
    Thank you
    Raul

    To do this, you include a MANIFEST. MF file to your gall of the EAR that contains a line like

    WebLogic - Version of the Application:

    It is picked up during the deployment. For more information see http://andrejusb.blogspot.de/2011/12/how-to-set-ear-version-for-adf.html

    Timo

  • Deploy the ADF application to manage the server - political migration jazn

    Hi Experts,

    I created a sample application web ADF and activated the ADF security. I created the ear of the application using the deployment jdevloper profile. Incase if I deploy the ear to weblogic through the weblogic console management server, the application works very well. (in this step security policies are automatically deployed in the field. However, incase if I deploy only for Server Manager, then the application does not work. in this case, when I invoke the url the browser runs all the time and refreshing but not the loaded page. If I check the policies then the they aren't there.

    I have to manually migrate the jazn policies before you deploy on the Management Server? Is there a way that can be done automatically when deploy us the ear on the server of management through the weblogic console.

    Thank you

    Hello

    for the development of business applications I suggest Oracle Enterprise manager, as shown here: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adf_security1/adf_security1.html

    Frank

  • Popup of console log in Chrome for the Javascript code for the Adf application

    Hello

    I use JDev 11.1.1.7.

    In our application, I used the same code as in the example (http://www.oracle.com/technetwork/testcontent/27-long-running-queries-169166.pdf) adf code corner next.

    I used this code to my command button on my page.

    The problem is, when you run the application in the browser Chrome, clicking this command button displays a warning for javascript popup (Please find below printscreen).js_error_popup.png

    The application is not break and continues to work even if this popup comes.

    I tried with other browsers, it is works well and do not show this javascript error.

    You can all help to suggest? Is there something wrong with the javascript code? Thank you.

    Best regards

    cmoster

    Hi Timo,

    The problem is now resolved.

    We have corrected by adding these params of context in the web.xml file to work around the problem.

        org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT

        fake

     

     

        oracle.adf.view.rich.profiler.ENABLED

        fake

     

     

        oracle.adf.view.rich.LOGGER_LEVEL

        OFF

     

     

        oracle.adfinternal.view.faces.DISABLE_CONTENT_COMPRESSION

        fake

     

    Best regards

    cmoster

  • Transaction management in the ADF Application using Dynamic Shell

    Hi all

    I use Jdev 12.1.2. We have an application built using design pattern of Shell of dynamic user interface where each workflow in the application will open in a separate tab. So my question here relates by using transaction management in the workflow.

    I read in many places where we are asked to avoid always using "start new Transaction" as it would open multiple connection. But I also vaguely remember reading that best practices to use in an application built using by using Dynamic user interface Shell, is to have isolated Datacontrol with always start new Transaction.

    So could indicate the recommended approach for impact Shell of the user interface and the performance of the approach?

    Note: We have just a data control in our application.

    Thanks in advance.

    Hello

    the transaction is not defined by the shell of the dynamic tab but the workflow. The shell of the dynamic tab displays only the workflow at a glance. If you plan to display a single feed task several times as tabs in a dynamic tab shell, each indicating a different set of data, then you use "isolate" scope of data control or "adaptive databinding (https://blogs.oracle.com/groundside/entry/towards_ultra_reusability_for_adf). If you are using remote data controls then - if you use ADF BC - each instance of the workflow (in shell dynamic tab tab) creates its own connection to the base and the transaction. Workflow transaction parameters are passed to it.

    So use case issues: If you only display a single instance of a workflow tasks at once in a tab of the shell of the dynamic tab so that you can use the scope of shared control (default) data without doing anything. I however you must show the same workflow multiple times then reach isolated from control data or link Adaptive is the implementation, you should go for. The first option - data control isolated - is expensive because it creates additional database connections. There if its use cases.

    Frank

Maybe you are looking for