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.

Similar Messages

  • Creating Virtual directory doubts

    i tried following ways to create virtual directory. but none didn't work.
    i have a war file named MyTestPage.war , it will work if i place it under webapps in the tomcat directory.
    but i want to create a virtual directory C:\myDir\TomcatVirtualDir
    i tried the following things
    1) edited the server.xml and added this code.
    <Context path="\" docBase="c:\myDir\TomcatVirtualDir" trusted="false" crossContext="true" debug="1" reloadable="true" >
    </Context> its didn't work.
    2) i created an xml under conf\Catalina\localhost
    named MyTestPage.xml
    added this code.
    <Context path="" docBase="c:\myDir\TomcatVirtualDir" trusted="false" crossContext="true" debug="1" reloadable="true" >
    </Context> it didn't work either.
    what shld i do?

    Ok.
    The examples you gave are for deploying a web app into an existing host.
    To define a new host, you need to add a <host> entry to server.xml
    Docs link: http://tomcat.apache.org/tomcat-5.0-doc/config/host.html
    The appBase directory specifies which directory will work like "webapps"
    example:
    <Host name="virtualTest" debug="0" appBase="c:\myDir\TomcatVirtualDir"
            unpackWARs="true" autoDeploy="true"  xmlValidation="false" xmlNamespaceAware="false">
      <Logger className="org.apache.catalina.logger.FileLogger"
              directory="logs"  prefix="virtualTest\_log." suffix=".txt" timestamp="true"/>          
      <Alias>virtualAlias</Alias>
    </Host>You will also get a directory [TOMCAT]/conf/Catalina/virtualTest
    which is the equivalent of the [TOMCAT]/conf/Catalina/localhost for your new host. You can put a context.xml file in that directory to define the "default" web app for this host.
    You would access the host with url http://virtualTest:8080
    Hope this helps,
    evnafets

  • How Create Virtual Directory On Oracle Application Server 10g on RHEL 5

    Dear Sir
    i have deployed my application on OAS 10g on RHEL 5 ,,now since my application is calling some pro*c programs and then they generate some text based reports on fixed folder named
    /treas/temp
    now i simply have to open these text based reports on web browser
    WEB.SHOW_DOCUMENT('/forms/pcreport/'||v_filename);
    but for that i need to create virtual directory name : " /pcreport " without code
    kindlly help as its working on my developer suit 10g i created a virtual directory in my application server by making following entry in "orion-web.xml" file
    <virtual-directory virtual-path="/pcreport" real-path="/u/treas/temp" />
    kindlly help

    (My paths shown, yours will be different)
    In a text editor :
    /u01/app/oracle/product/midtier/Apache/Apache/conf/httpd.conf
    Add
    Alias /pcreport/ "/u01/app/oracle/product/midtier/forms/pcreport/"
    <Directory "/u01/app/oracle/product/midtier/forms/pcreport/">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Create the pcreport directory.
    Add a simple test page
    vi /u01/app/oracle/product/midtier/forms/pcreport/test.html
    <html>
    <head>
    <title>Simple test page </title>
    <style type="text/css">
    body {
    margin-left: 20%;;
    margin-right: 20%;
    border: 1px dotted gray;
    padding: 10px 10px 10px 10px;
    </style>
    </head>
    <body>
    <p>test!</p>
    </body>
    </html>
    Test
    http://yourserver.com:7777/pcreport/test.html
    Best Regards
    mseberg

  • Cannot create Virtual Directory in Windows Server 2008 R2 SP1 Environment

    Dear all,
    I am trying install Reporting Services 2005 on a Windows Server 2008 R2 SP1 Enterprise machine.
    So far we successfully did the following steps
     - Install SQL Server Reporting Services
     - Configure Service Account (Domain-User)
    After creating virtual Directory, we made several steps to avoid HTTP 400 Bad Request in Report Manager:
    1. Disable LSA Loopback in Registry and restart server
    2. Enhance Service Startup time to 60000ms and restart Server
    3. Set Application Pool to ASP.NET 2.0 Classic Mode
    4. Modify RSWebApplication.config and set These entries:
    <ReportServerUrl>http://servername/ReportServer</ReportServerUrl>
    <ReportServerVirtualDirectory></ReportServerVirtualDirectory>
    After all the Reporting Services Configuration Manager still shows a red sign and we cannot continue creating the database.
    How is it possible to solve this?
    We appreciate any help.
    Best regards,
    Mark
    Mark Kuschel
    Blog
    Xing

    Hi Mark,
    As per my understanding, we can refer to the following methods to troubleshooting the issue you occurred.
    Install SQL Server 2005 Service Pack 3.
    Deleting the newly-created virtual directory using IIS manager and then rebooting the server.
    In the Report Manager Virtual Directory dialog box, create a virtual directory for Report Manager, then change the Website to Reporting.
    Enable Apply default settings.
    The following link is for your reference:
    http://www.mathgv.com/sql2005docs/SQL2005ReportingServicesInstall.htm
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • 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

  • Integrating Oracle Virtual Directory with Oracle Internet Directory

    Hi Experts,
    Just wanted to know suggestions from you.... what are the advantages we have by integrating Oracle Virtual Directory with Oracle Internet Directory.
    Thanks
    parker.

    Hi Ken/Experts ,
    Thanks for your response.
    Still we need some more clarification on My Requirement that is, we are using ‘Oracle Single Sign On’ for my product and OID (Oracle Internet Directory) is enabled for this Single Sign On. Now we are planning to use OViD (Oracle Virtual Directory) for our Product so we integrated OID with OViD and now we are able to view the OID users in OViD. But Still My Product is using Single Sign On, which is enabled with OID only. Do we need to enable OViD (Oracle Virtual Directory) for Single Sign On? If yes please help us how to integrate (enable) OViD with Single Sign On.
    Thanks in advance.
    Thanks,
    Parker

  • How to create virtual directory in Oracke 10g ias

    Hi
    In my application i have a upload functionality so that any user once they upload the document i want to store in a directory which is existing on the server so that if anybody wants to open that document it should be opened from the server.
    any help is highly appreciable

    You don't say whether you are using OC4J standalone or OracleAS:
    Here's how you do it with OC4J standalone:
    http://buttso.blogspot.com/search?q=virtual-directory
    I you are using OracleAS then you'd use one of the standard Apache directives to expose the directory via it (Oracle HTTP Server):
    See: http://httpd.apache.org/docs/1.3/urlmapping.html#outside
    -steve-

  • 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

  • Creating Virtual Directory

    I have 2 directories outside tomcat folder.i have created a virtual directory path to point to one folder. now i need to point to another folder also through this directory..
    Appreciate your help at the earliest.
    -Su

    Seems like the question is related to tomcat, please post the question to tomcat forum.
    http://mail-archives.apache.org/mod_mbox/tomcat-users/

  • CREATING VIRTUAL DIRECTORY THROUGH jakarta-tomcat-4.1.10

    dear friend(s)
    how to create a virtual directory through tomcat jakarta-tomcat-4.1.10
    please help me
    very very urgent
    mohd meraj

    Go to %TOMCAT%/conf/server.xml file and see Context settings samples

  • Steps to create Virtual Directory?

    I am very new to Weblogic and trying to create 2 virtual directories with
    the following permissions.
    name=cognos
    path=c:\program files\cognos\cer1\webcontent\default.htm
    permission=read
    name=cognos/cgi-bin
    path=c:\program files\cognos\cer1\cgi-bin
    permission=execute
    How?

    Hi.
    I'm not sure what you are trying to do here. What are you trying to
    accomplish with these virtual directories? It's not entirely clear how you
    want them to relate to WebLogic.
    Thanks,
    Michael
    Rich Hauck wrote:
    I am very new to Weblogic and trying to create 2 virtual directories with
    the following permissions.
    name=cognos
    path=c:\program files\cognos\cer1\webcontent\default.htm
    permission=read
    name=cognos/cgi-bin
    path=c:\program files\cognos\cer1\cgi-bin
    permission=execute
    How?--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Virtual Directory with struts-tiles

    is have serious problems in configuring struts-tiles with virtual-directories for local developement. I have got my tiles-def.xml deployed in my ear. And i have got virtual-directory mapping, which works great, but not with tiles, because i want to include the jsp in my tiles-def.
              is this possible? Does anybody have an experience?
              Thanks heaps.

    A few methods that come to mind off hand would be:
    1) Make an app on your server act as a proxy to the other app. That is, make a Servlet mapped to all URLs in the context. The servlet simply makes a corresponding request to the other server passing all pertinent information from the originating client. Your servlet then reads the response and pipes it directly to the response object
    2) Try setting up a <context> element with the docBase attribute set to the other server's docBase. The other computer would have to give your server read/write access to the directory of interest. Since your server would be actually hosting the application you would have to check on environment and resources to make sure any required settings are duplicated properly.
    3) Have the other application hosted on a different port, and your firewall map that port to their server and your port to your server.

  • Remote Virtual Directory with Tomcat

    Does anybody knows if is it possible to set a virtual directory in Tomcat 4.1 or 6.0 in a remote PC ?
    This is the example:
    Mi PC running Tomcat. Mi PC IP: 172.16.8.212.
    There is another PC in the company with another Tomcat running. Let's say in IP 172.16.8.213.
    The public IP is asociated with my PC, and I need that when somebody tries to find certain web application (located in the Tomcat in 172.16.8.213 ) my Tomcat execute the remote application as if it is local.
    Somebody could tell me: "Ok, so why don't you bring the remote application to your local Tomcat, and end with the complications". For some reasons (one of them is security), that's not a choice.
    Thank you very much for any help, and sorry if for my ignorance somebody gets angry.

    A few methods that come to mind off hand would be:
    1) Make an app on your server act as a proxy to the other app. That is, make a Servlet mapped to all URLs in the context. The servlet simply makes a corresponding request to the other server passing all pertinent information from the originating client. Your servlet then reads the response and pipes it directly to the response object
    2) Try setting up a <context> element with the docBase attribute set to the other server's docBase. The other computer would have to give your server read/write access to the directory of interest. Since your server would be actually hosting the application you would have to check on environment and resources to make sure any required settings are duplicated properly.
    3) Have the other application hosted on a different port, and your firewall map that port to their server and your port to your server.

  • 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

  • Stop redistributable msi creates virtual directory in iis

    We are using the Crystal Reports 2008 .NET redistributable msi as part of our software installation. The msi creates a virtual directory in iis for the crystal reports viewer. Because the msi alters iis, one of our clients cannot install it due to their IT policy. Their policy cannot be changed.
    Is there any way to prevent the msi from creating this virtual directory? We are not using the virtual directory.

    AG's answer is correct. But! If and only if your app does not use the viewer. If your app uses the CR DHTML viewer... well, good by viewer. E.g.; when the app wants to show the viewer, it will either error out, or you will not have the viewer and thus no report...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • Cannot open pdf created from website

    Hi, I am trialling Acrobat V9 Pro (on Win XP SP2, 1Gb RAM) and have tried to create a pdf from a multilayered website. It all appears to work fine (looks great in Acrobat), but when I try and open the resulting pdf in Acrobat Reader (v5) I get the ol

  • TS1368 Itunes store connection

    hi, i cannot connect my itunes store. my connection is good and i tried to connect it again and reinstalled but still it is not working.it is the latest version and my windows 7 is up to date. please solve my problem.

  • Start workflow in code - access denied

    Im trying to start list workflow (sp 2013)  from MVC app. the mvc app (win auth enabled) is running by a user that is site owner. i always get ASP.NET access denied var workflowServiceManager = new WorkflowServicesManager(web); var workflowSubscripti

  • TS2771 my ipod touch home button does not work how do i fix this?

    my ipod home button does not work. How do i fix this?

  • User parametr in report

    Hi to all.. Pls explain me that how can I Create a web Intelligence Document that take input parameter by user and generate report base on that parametaers. Thanks and regards.