How do I set up a virtual directory in OC4J?

I'd like to set up a virtual directory in OC4J so that if a user sends a request for /images/asdf.gif, then OC4J will see the "/images" part of the URL and know to look in /usr/oc4j/whatever/images for the file. How do I do this?
Thanks.

Lemonte,
You need to add it to an orion-web.xml file. This is Orion/OC4J's web app deployment descriptor.
If you want to setup virtual directories for the default web app, you'd use /application-deployments/default/defaultWebApp/orion-web.xml. Otherwise use the orion-web.xml for your deployed web app.
Cheers,
Mike
Atlassian - Supporting YOUR 'Orion/OC4J' World
http://www.atlassian.com - [EMAIL][email protected][EMAIL]
null

Similar Messages

  • How to use JSP files in virtual directory in WL 5.1

              Using WL 5.1 sp9 on Win 2000 sp3
              Following a previous post I've got this far setting up a virtual directory -
              weblogic.httpd.register.tempstuff=weblogic.servlet.FileServlet
              weblogic.httpd.initArgs.tempstuff=docHome=c:/tempstuff
              From the browser http://p1900:7001/tempstuff/test.html
              displays the html page but how do I set it up so I can access a .JSP page in there?
              I've tried changing the line to
              weblogic.httpd.register.tempstuff=weblogic.servlet.JSPServlet
              but keeps giving errors
              any ideas
              thanks
              harry
              

    You should be able to just bring the files into DreamWeaver. It should edit the HTML part of the JSP just fine.

  • Creating virtual directory with OC4J

    Hello, all.
    I thought this issue was going to be straight-forward, but after searching this forum and the General one I am not so sure.
    Can someone tell me how to create virtual directory mappings or contexts for 10gAS so that jsps that reside in an remote directory (not under OAS_HOME) can be run through OC4J? The remote directory is already defined as a virtual directory in Apache and a servlet some of the pages hit is also deployed in OC4J.
    I read that you should be able to use OEM to update either the global-web-application.xml file or the orion-web.xml file, but I am unsure as to whether you create the virtual directories for the dms or webapp applications? I need the virtual directory to be available to more than one particular app.
    Thanks for any help,
    Dixie.

    I don't know if one can use the apache virtual directory in oc4j, however, you can archive the same effect by using the
      <virtual-directory real-path="pathRelativeToContextRoot" virtual-path="realPath" />
    element in orion-web.xml. Please see the doc at
      http://download-west.oracle.com/docs/cd/B10464_05/web.904/b10321/confdesc.htm#1019473
    which is Oracle Application Server Containers for J2EE Servlet Developer's Guide, chapter 6 Configuration File Descriptions, Element Descriptions for global-web-application.xml and orion-web.xml
    I believe you jsps will work if put in the virtual directory.

  • How to set up a virtual directory on Application Server

    The environment of my application is Application server 9i version 2, on windows 2000, form 9.0.2.
    I am trying to get the ORACLE 9i forms show_document to work.
    I have successfully created an out file in the server directory.
    I need the document to be displayed by the form.
    Let me tell you more about my server.
    I installed Oracle application server on drive E.
    I copied my application to drive E and named PY which has 4 folders including :
    E:\PY\fmb (for fmb)
    E:\PY\forms (for fmx)
    E:\PY\sql (for sql programs)
    E:\PY\locrep (for lst files which are generated from sql programs)
    Someone told me I should create a virtual directory, e.g. docs, in your httpd.conf file to point to e:\py\locrep
    I've seen 4 httpd.conf files so I don't know which one I should modify and what should I type in exactly on what part ????
    E:\ora9ias\apache\apache\conf\httpd.conf
    E:\ora9ias\apache\apache\conf\httpd.conf.default
    E:\ora9ias\apache\apache\conf\httpd.conf.smibak
    E:\ora9ias\dcm\config\plugins\apache\httpd.conf
    After I modify the httpd.conf file, so what will my URL be ? Also, I have a lot of reports, I would like to run different reports at the same time ??????
    Thank you very much.
    Trang

    The best way to edit httpd.conf is using Enterprise Manager Website. Open this site (http://machine:1810) and drill down on your application server, and then on HTTP Server. Open link Advanced server Properties. Now you see a list of all configuration files. Click on a file to open it.
    To add the virtual path:
    - You could best add your virtual path in file forms90.conf (it is included in httpd.conf with the <include> tag).
    - Within this file you already find some virtual path definitions: Look for the AliasMatch tag, e.g. for the 'forms90/html' virtual directory.
    - Copy this line and change 'html' into the directory name you like to use, e.g. 'myfiles'. Map it to the physical directory (on your E: drive) where your files are. (E: must not be a network drive, however).
    - browse to your files using: http://machine:7777/forms90/myfiles/filename.
    Peter

  • How can we integrate OVD(Oracle Virtual Directory) with CDB(Content Databas

    Hi,
    We are using Oracle Content DB (10.2.0.0.0) which is integrated with OID (Oracle Internet Directory).
    We are trying to use OViD (Oracle Virtual Directory) as Identity management for integrating multiple Directory sources like OID and Database.
    Can you give us some suggestions or referrals on implementing OVD as Identity management for CDB.
    Thank You,
    Parker

    Hi,
    I am looking at a similar architecture & would like to know if this can be achieved.
    I have a set of users in OID and another set of users in Database tables. I want to abstract the two sources with OViD and present OViD as the single source of truth to Oracle AS 10.1.2 Single Sign On.
    Can you please tell me if this is possible & if yes, can you please share some best practices ? Also, is this a certified & supported configuration ?
    Thanks,
    Sandeep

  • Defining virtual directory in OC4J

    Hi there,
    I am using Oracle 9i Forms for applications development. I have created a folder for my images. I run my forms using OC4J. Now I want to define a virtual directory for that folder. How can I create new virtual directories using OC4J ?
    Thanks

    Ali,
    this depends on whether you use Oracle9iAS or Oracle9iDS. In Oracle9iAS Forms is installed in teh BI_Forms Home, while in Oracle9iDS there is only one directory ../j2ee/Oracle9iDS
    see in the Oracle9iDS/application-deployments/forms/forms90web/orion-web.xml
    Virtual path definition
    <virtual-directory virtual-path="/images" real-path="D:\oracle\9iDS902/forms90/demos/images" />
    Frank

  • How do I set up a root directory for a web site

    So this is probably a naive newbie question.
    I have been creating websites driven by php/mysql on my mac for years using the previous the web preference pane to run Apache and since that went away using XAMPP to provide Apache/php/mysql functionality on localhost.
    I decided to download OSX server and try to use that.  Figured might as well go native MAC.
    I am baffled.
    The manual says to set up a web site in Server by working through the Websites Services interface. I did that and pointed the setup at the directory where I have all of my web site files.  I now have no idea how to access that page from my local machine.
    I have tried:
    http://localhost/myURL
    http://localhost/~username/Sites/[root file directory]  -- where the files are stored
    I also tried some typical localhost ip address
    None access my site.
    How do I access my site over my local netework?
    I feel like just dumping server.app and stting things up through the terminal.
    Thanks,
    --Kenoli

    How familiar are you with the bash command line and with Apache, and how much do you want to learn about Apache and related topics?  (If you're not already, then I'd encourage learning about this material, as this knowledge is very useful for maintaining and updating sites, and knowledge of correctly securing files and directories is critical to building and maintaining secure web sites — all of managing and running and updating a web server builds on these foundations.  There are various good books and web sites on Apache, and the Apache web site has various materials available, if you don't already have something.)
    The localhost host name and the 127.0.0.1 IPv4 address are both synonyms for the "me" host.  It's the name and the address that always gets you to the current host.
    With http://localhost/ or http://127.0.0.1 specification, what you enter at the URL address bar is relative to the root directory specified for the default web server, and will default to the index.html or index.php page or whatever the default web site is configured to use.  With OS X Server, this root directory is configured via Server.app.  To use Server.app, launch it, connect to the server, select Websites from the left navigation, and you (by default) will see a default site and a secure site.  Select the default site.  Select the edit button below the site to edit (and to view) the configuration. 
    With the details of the default site visible, you will see the path to the default web directory.  This path to the default web directory is where the files for the default web sever location reside. 
    The default path to the default web site is /Library/Server/Web/Data/Sites/Default
    If you place foo.html in that directory (or whatever the defailt web site is using), you can view it via your web browser and the URLs:
    http://127.0.0.1/foo.html
    http://localhost/foo.html
    To get to the default web site using the GUI, launch Finder and select Go To Folder, and enter that string into the box.  You will now get a GUI view of that folder.  (I'd strongly recommend using the command line here, and not the GUI.  To get to the directory from the command line and then list the files present, launch Terminal.app from Applications > Utilities folder and issue the following commands:
    cd /Library/Server/Web/Data/Sites/Default
    ls
    If you want to test something in the browser, you can use the file:///path-to-file-to-test mechanism.  Most web browsers will allow you to render local files directly using file and three slashes.
    You will need to ensure the executable files (scripts) are marked as executable to OS X, using a Terminal.app command such as the following:
    chmod o+x path-to-file
    Enabling ~/user per-user sites involves directly editing the configuration file, as Apple has disabled that by default. 
    There's an Apache tutorial with an overview of what's involved with enabling per-user directories here, and there's what's been listed in my earlier replies and links.  With OS X Server Mavericks, the default configuration file for Apache is located in the Library folder, and can be viewed with the following Terminal.app command:
    cat /library/server/web/config/apache2/httpd_server_app.conf
    This file is the OS X Server equivalent of the oft-cited httpd.conf file you'll see listed in various documentation.
    If you want to enable the per-user directories or tweak other Apache settings, then shut down Apache from Server.app or from the command line, and then edit the configuration file with nano or some other command-line editor using a command similar to this:
    sudo nano /library/server/web/config/apache2/httpd_server_app.conf
    you'll end up finding and uncommenting (removing the #) from the following two lines:
    #LoadModule apple_userdir_module ${SERVER_INSTALL_PATH_PREFIX}/usr/libexec/apache2/mod_userdir_apple.so
    #Include /private/etc/apache2/extra/httpd-userdir.conf
    If you have specific questions about this, then I and others here can answer those.  If you don't understand something, then asking a question about that can help you learn, and can help me understand what it is that I'm posting in my replies here that's confusing you.  There are also various resources available for learning Apache, and I'd encourage spending a little time with those if you've not already done so or feeling at all unsure about how that tool works; I end up re-re-reviewing the Apache docs fairly regularly.

  • How do I set up a virtual server with a time capsule?

    I am trying to set up a wireless camera in my house to be viewed from away from the house.
    I cannot seem to figure out port forwarding/virtual serving on the settings of my time capsule. I had no issues doing it with my old router. Does time capsule have that abilty?
    I have Macs and PCs,

    I figured it out.

  • How do I set up a virtual host in my BC Site?

    Hi,
    I have my domain on one Server and want to link it with my Site in BC using a virtual host/domain. Is that possible in BC?
    Thanks for your support!
    JD

    Lemonte,
    You need to add it to an orion-web.xml file. This is Orion/OC4J's web app deployment descriptor.
    If you want to setup virtual directories for the default web app, you'd use /application-deployments/default/defaultWebApp/orion-web.xml. Otherwise use the orion-web.xml for your deployed web app.
    Cheers,
    Mike
    Atlassian - Supporting YOUR 'Orion/OC4J' World
    http://www.atlassian.com - [EMAIL][email protected][EMAIL]
    null

  • MAPI over HTTP not working correctly, Outlook 2013 clients prompting for credentials during profile creation or opening depending on security of virtual directory

    ENVIRONMENT
    -1 Exchange 2013 SP1 CU7 server with all roles that is also a hybrid server with Office 365 tenant, mailboxes are all on premise only LYNC online is being utilized right now.
    -Exchange 2013 public folders
    -Mix of Outlook 2013 SP1 and Outlook 2010 SP3 clients all fully update to day as of Feb 2015
    Outlook anywhere is working perfectly across all clients both internally and externally using autodiscover.  Both Outlook 2013 and 2010 clients can open the program and create a profile automatically via autodiscover and no additional logon prompts
    are seen.
    We set the internal and external mapi virtual directory URLs to a valid URL that also matches the Exchange 2013 SSL certificate.  We set the security to ntlm, negotiate on the mapi virtual directory.  We reset IIS and enabled mapi over http in
    the org config.  We run in to problems here.
    Outlook 2010 clients appear to be working fine.  We can create a new profile and open and close Outlook without any logon prompts and verify that MAPIHTTP and Negotiate are used to connect to Exchange.
    Outlook 2013 clients are having problems.  As soon as we try to create a profile it says your administrator has made a change that requires you to restart outlook and then a windows logon prompt appears. If we authenticate Outlook will open and connect.
      This logon prompt should not occur.    We can confirm that it is connecting via MAPI HTTP and Negotiate.
    If we set the mapi virtual directory to NTLM only then a logon prompt also appears during every open of Outlook 2013.  We can confirm that it is trying to connect with MAPIHTTP via NTLM in the outlook connection test screen.
    I do not understand this behavior by Outlook 2013 which was supposed to be designed with MAPI HTTP in mind.  I would think the same issues would occur with Outlook 2010 but they do not.  I am not sure how to resolve this and I am looking for help.

    I have the same problem. Exchange and Outlook are both up to date. After creating a new profile Outlook prompts for username/password. A lot of users also get this prompt while
    working - the profiles have been "migrated" from Exchange server 2010. <o:p></o:p>
    Niko, as i can see in your screenshot you do not have Mapi over HTTP enabled. Why? You can change settings in the security tab – if you have Mapi over
    HTTP enabled all options are grayed out (please correct me if I
    am wrong):
    This is a very annoying thing – does anybody else have the same problem?
    Any suggestions on this?
    Marc

  • Virtual Directory for EVMNU functions: 2 application servers

    Hi,
    We are migrating from development to production. Production environment has 2 application server (load balancing) and we need to set up a virtualdirectory to allow the use of EVMNU functionality.
    Setting up a virtual directory is not that hard, but what needs to be done when we have 2 application servers?
    Thx

    Bjorn,
    Is it working on the appserver where the files are stored?
    On the other appserver, how did you reference the drive?
    folder?
    I don't think you need special security? Is this folder shared?
    Kind regards,
    sam

  • WL Server 6.1 - Virtual Directory

    We are using WL Server 6.1 on Win2k. We want to set up a virtual directory
              for our web application.
              For example: we want to store images in the directory c:/siteimages. In the
              JSP's, we should be able to call <img src"/images/image.gif">. The "images"
              directory will be virtually mapped to the c:/siteimages directory. These
              images cannot be part of a 'war' file because they are created dynamically.
              Is this possible?
              Platform: BEA Weblogic Server 6.1 on WIN2K
              Thank you
              Ariel
              

    I suggest that you create a simple webapp called images.war that has a
              web.xml descriptor that has entries like:
              <servlet>
              <servlet-name>images</servlet-name>
              <servlet-class>weblogic.servlet.FileServlet</servlet-class>
              <init-param>
              <param-name>docHome</param-name>
              <param-value>c:\siteimages</param-value>
              </init-param>
              </servlet>
              <servlet-mapping>
              <servlet-name>images</servlet-name>
              <url-pattern>*.jpg</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>images</servlet-name>
              <url-pattern>*.gif</url-pattern>
              </servlet-mapping>
              Sam
              "Ariel" <[email protected]> wrote in message
              news:3b7d7b02$[email protected]..
              > We are using WL Server 6.1 on Win2k. We want to set up a virtual directory
              > for our web application.
              > For example: we want to store images in the directory c:/siteimages. In
              the
              > JSP's, we should be able to call <img src"/images/image.gif">. The
              "images"
              > directory will be virtually mapped to the c:/siteimages directory. These
              > images cannot be part of a 'war' file because they are created
              dynamically.
              > Is this possible?
              >
              > Platform: BEA Weblogic Server 6.1 on WIN2K
              >
              > Thank you
              > Ariel
              >
              >
              >
              

  • Virtual Directory  Apache/tomcat/jdk

    Hello everyone,
    I'm very new to this environment and I desparately need help in setting up a virtual directory so that every thing works, just please let me know where to start. I already have Apache, tomcat and jdk that works separately. Please help
    Katyann

    Edit
    server.xml under <TOMCAT_HOME>/conf folder and add a contex
    <Context path="/"
    docBase="c:\somepath"
    trusted="false"
    crossContext="true"
    debug="1"
    reloadable="true" >
    </Context>
    D.

  • Accessing sap application of virtual directory

    hi ,
    i want to know how to access SAP Application of Virtual Directory through internet.
    Cheers.
    Rai

    Why did you modify analytics.ear ?
    Should'nt you make changes here : Middleware_Home>\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1
    \analyticsRes\WEB_INF\web.xml
    Follow this note : OBIEE 11g: How To Access Custom Files Through URL By Creating Virtual Directory In Weblogic Server? [ID 1408240.1]
    And you should be able to deploy that virtual directory and access it after authentication.
    HTH,
    SVS

  • Virtual directories in OC4J

    OC4J 9.0.2.0
    I am trying to set up a virtual directory so that http://somemachine/attachments points to a directory NOT under my web root. The docs say to put the following code in EITHER global-web-application.xml or orion-web.xml:
    <orion-web-app>
    <virtual-directory real-path="c:\temp\attachments" virtual-path="/attachments" />
    </orion-web-app>
    I can get this to work if I put it under my WEB-INF/orion-web.xml file, but it won't work in the global-web-application.xml file. My issue is that this directory is different depending on whether I am on my development box, test box and production box. Therefore, I can't put this in the orion-web.xml file because it is deployed with my app and is wrong when on test or prod. I need some way of specifying this in a place that is outside my deployment so it is never overwritten, like global-web-application.xml.
    What gives?
    Also, when I put it in orion-web.xml, I then have to add in my application name to the url: http://somemachine/someapp/attachments What do I do to get this set globally and what should the url look like in the browser?
    Thanks,
    Eric Weis

    I just now tested it on 9.0.3
    It works when adding the
    <virtual-directory real-path="c:\temp\attachments" virtual-path="/attachments" />
    to global-web-application.xml
    -Prasad

Maybe you are looking for

  • Bridge - screen layout

    I am using Adobe CS5 on a Mac with the latest OSX. I am trying to sort through large numbers of shots - and to delete many. At the moment I am using the Filmstrip view. This has a major problem - currently I can only see one shot at a time in the lar

  • Swatch palette

    I've been using flash since v.1 and I don't know why I haven't found this so annoying until now, maybe it's because now I'm a teacher and I see the flaw for what it is through my students. Why is it that you can't change the size of the swatches in t

  • Modify  Schedule Task - OIM 11g

    Hello Experts, I have created a custom schedule task and deployed it in OIM11g and it works. Now I want to modify the deployed schedule task (add some more scheduled task parameters). How to do that? Can you assist? I tried the following but its not

  • Can't Connect to SMP 3.0 server from Client

    Hello All , I am trying to connect SMP 3.0 server but i am getting error like Requesting Public Key from Server Communications error (14) Connection failed Ending transmission and i also checked with url as per my knowledge its  working fine because

  • Can't verify iTunes store account...

    Hi guys! i can't verify my iTunes store account. iTunes tells me that it send an email with a link for account verification...but it doesn't. I've created another account and same issue came. Every time i want to sign in...a msg box appear and says i