JSP virtual directory in a mapped drive

Is it possible to run jsp files that reside in a mapped drive? For security reasons, we would like to avoid saving jsp files in the same oracle 9ias server directories.
For instance, if we wan to save our developer files in a mapped drive and directory G:\JSP\Dev, can we add this drive and directories to the classpath directive in the jserv.properties file?
How then can we run jsp files in a browser (i.e. what would the syntax be for calling the url)?
Thank you for your forthcoming response. Nelson

Refer these:
http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14017/confdesc.htm#sthref545
http://buttso.blogspot.com/2006/05/oc4j-virtual-directory-mapping.html
Thanks
Shail

Similar Messages

  • HFM Question : What could corrupt a virtual directory ?

    Hello Gurus,
        Sometimes I have been facing an issue with consolidation app when opening it from workspace.
        I'm trying to load this app, in to HFM 11.1.2.2. I was able to deploy the application, however, when I try to open it from Applications > Consolidation > AGGCONS to load data I'm getting the following error :
    "The following exception has occurred in DataControlFactoryImpl.createSession(): oracle.jbo.JboException com a mensagem: JBO-29000:Unexpected exception caught: oracle.adf.model.adapter.AdapterException, msg=DCA-29000: Unexpected exception caught: oracle.epm.fm.common.exception.HFMException, msg= {D0084996-C813-4113-92FA-81202489222A}1-2147023878106/09/2013 15:46:51HYPDCHFMWHCHFMCASSecurity.cpp5411.1.2.2.300.3774-2147023878006/09/2013 15:46:51HYPDCHFMWHCHsxClient.cpp526611.1.2.2.300.3774"
          I've found a possible solution at Oracle Support :  Financial Management Error "JBO-29000: Unexpected exception caught..." When Attempting to Access Consolidation Administration in Workspace. (Doc ID 1457676.1).  However, it's not exactly the same error, but the solution related to my issue was similar. This article state that :
    "The Financial Management web server configuration does not complete succesfully, the virtual directory in IIS called "hfmapplicationservice" is not available under "Default Web Site".  To resolve this issue run the EPM System Configurator and on the HFM web server and choose "Configure web server" for Financial Management product to re-create the virtual folder (hfmapplicationservice)."
          When I follow the instructions above, I've got to open up the app without any problem. But in two or three days the same error happens again.
          I'm suspecting about the user but don't know enough about Consolidation Application to affirm that.
          Then I'd like to know if would be possible some kind of a "bad app use" to corrupt some files from this virtual directory that is mapped in IIS that the only solution is recreate this virtual directory.
    Thanks in advance.

    Hi,
    Are you an administrator in the HFM servers?
    Regards,
    Thanos

  • Virtual Directory Browsing in IIS Is what in OSX Server?

    Ok, forgive my ignorance.  I am coming from a better understanding of Microsoft IIS..
    Basically what I am looking for is.. In my Windows Server I would have a Partition Drive with a letter.. lets say e:\  and call the drive docs with data files saved on it.  I would then go into IIS and setup a Virtual Directory of that E drive..  So then I could have people own a browser at  www.website.com/docs and from there it would list all the files allow them me to download what they needed....  Yes, I know there is also a VPN option.. However, this is easier for my case...
    I think in Apache it would show a page and in bold letters "Index Of /" then list all the contents in that drive or folder..
    I have tried looking up what it would be called in Apache.. Yet not yielded much luck..
    Anyone have ideas?

    Yes! You are correct, I actually got it to work about 5 mins ago.. Thank you for the reply..
    I found a manual from Apple "web tech" that says to insert:
    <Directory "/Users/refuser/Sites">    Options Indexes MultiViews    AllowOverride None    Order allow,deny    Allow from all</Directory>
    I inserted this into the /etc/apache2/sites/website.conf file or even the Virtual_Host_Global.conf file
    I changed the directory to the path I have the "Aliases and Redirects"  such as /Volumes/Web
    Works great! 
    HOWEVER....... I have noticed.. that every time I then goto edit something in the Server Admin Console for Apache.. It removes the code out of the .conf files..
    I have tried making .htaccess files in the Drive with no luck or even adding a httpd.conf and no luck..
    It does seem to give Directory indexing when I add it into the location listed above.. yet no where else.. kind of stumped again..
    Any ideas?

  • virtual-directory-mapping fails when loading JSPs in 8.1

    I'm using portal 8.1 sp3 and trying to get my JSP includes to include JSPs from a virtual directory.
              I can load HTML files from the working directory perfectly:
              <jsp:include page="/myprods/myProd1.html" />
              But whenever I try to load JSPs it fails:
              <jsp:include page="/myprods/myProd1.jsp" />
              Is this a known (bug) and expected behavior?
              My weblogic.xml setting:
              <virtual-directory-mapping>
              <local-path>c:/wls-domains/portal_servers/testcontent</local-path>
              <url-pattern>/myprods/*</url-pattern>
              </virtual-directory-mapping>
              And I have C:\wls-domains\portal_servers\testcontent\myprods which contains both myProd1.html and myProd1.jsp
              Note I cannot put my JSP's pre-compiled class in the applications classpath, I'm expecting the jsp:include to resolve all this itself.
              The error I get when trying to include the JSP is as follows:
              Error opening /SamplePortlet/index2.jsp.
              The source of this error is javax.servlet.ServletException: [HTTP:101249][ServletContext(id=3477358,name=myProject,context-path=/myProject)]: Servlet class jsp_servlet._myprods.__myprod1 for servlet /myprods/myProd1.jsp could not be loaded because the requested class was not found in the classpath C:\wls-domains\portal_servers\user_projects\applications\myApplication\.workshop\output\myProject\WEB-INF\classes;C:\wls-domains\portal_servers\user_projects\applications\myApplication\myProject\WEB-INF\classes;
              [followed by loads more classpath values]
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:824) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:254) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
              [followed by loads more stack trace]
              Thanks in advance for any assistance
              Martin

    Have you received any feedback to your question ??
    We have recently upgraded from WLS 7.0 to WLS 9.1 and are experiencing the same unexpected behaviour.

  • Virtual directory mapping in weblogic 7.0

    I'm trying to define a virtual mapping in my web application deployed in Weblogic
    7.0 sp2 and it's not working.
    I've defined in my weblogic.xml
    <virtual-directory-mapping>
    <local-path>c:/cursoBEA/imagenes</local-path>
    <url-pattern>/imagenes/*</url-pattern>
    <url-pattern>*.gif</url-pattern>
    </virtual-directory-mapping>
    But when I try to access my images like this:
    <img src="/mywebapp/imagenes/image.gif">
    it cannot show that image.
    We've tried many combinations, but all failed. What are we doing wrong?

    I'm doing the same as you, and it does not work. I'm using weblogic 7.0 sp2 in
    a Windows 2000 Proffesional. Maybe it's a problem with weblogic/OS version?
    Ignacio Sanchez
    "Mark Griffith" <[email protected]> wrote:
    You can look at 8.1 Medrec example
    On my install it lives here:
    c:/bea/wls81/weblogic81/samples/server/medrec/src/physicianEar/physicianWebA
    pp/WEB-INF/weblogic.xml
    Virtual Directory is used as follows:
    <virtual-directory-mapping>
    <local-path>C:/bea/wls81/weblogic81/samples/server/medrec/src/common/web</lo
    cal-path>
    <url-pattern>images/*</url-pattern>
    </virtual-directory-mapping>
    ls of C:/bea/wls81/weblogic81/samples/server/medrec/src/common/web
    total 3
    drwxrwxrwx 1 Everyone Everyone 0 Apr 6 14:43 .
    drwxrwxrwx 1 Everyone Everyone 0 Apr 6 14:43 ..
    -rwxrwxrwa 1 Everyone Everyone 1378 Apr 6 14:43
    build.xml
    drwxrwxrwx 1 Everyone Everyone 0 Apr 6 14:43 com
    drwxrwxrwx 1 Everyone Everyone 0 Apr 6 14:43 images
    URL's in a web-app's index.jsp that is in the root of the webapp are
    like:
    <TD align=right><IMG SRC='images/logo.gif'></TD>
    Looks like you need to modify your local-path to not include imagenes
    Cheers
    mbg
    "Ignacio Sanchez" <[email protected]> wrote in message
    news:3ec20fff$[email protected]..
    I'm trying to define a virtual mapping in my web application deployedin
    Weblogic
    7.0 sp2 and it's not working.
    I've defined in my weblogic.xml
    <virtual-directory-mapping>
    <local-path>c:/cursoBEA/imagenes</local-path>
    <url-pattern>/imagenes/*</url-pattern>
    <url-pattern>*.gif</url-pattern>
    </virtual-directory-mapping>
    But when I try to access my images like this:
    <img src="/mywebapp/imagenes/image.gif">
    it cannot show that image.
    We've tried many combinations, but all failed. What are we doing wrong?

  • Several paths   with the virtual-directory-mapping    in weblogic.xml

    Hello! I don´t know if this is well posted here. Sorry, and my english is aswful :(.
    I´m trying to put several paths for jsp files in an application, similar to how the extendend document root works in websphere.
    How can I get this on weblogic? With this lines I only managed to get the first but the second url-pattern doesn´t work.
    <weblogic-web-app>
    <virtual-directory-mapping>
    <local-path>/path1/</local-path>
    <url-pattern>*.jsp</url-pattern>
    </virtual-directory-mapping>
    <virtual-directory-mapping>
    <local-path>/path2</local-path>
    <url-pattern>/jsp/*.jsp</url-pattern>
    </virtual-directory-mapping>
    </weblogic-web-app>
    My intention is make that the app could access to jsp´s files in path1 and in path2. Is this possible on weblogic?
    Thanks in advance

    I see. In my case, x == images, so if I reverse my directory
    structure I could still get this to work for me. For instance:
    <virtual-directory-mapping>
    <local-path>C:\webapps\context\y</local-path>
    <url-pattern>/images/*</url-pattern>
    </virtual-directory-mapping>
    /images/z.gif would map to C:\webapps\context\y\images\z.gif.
    I'll have to weigh changing our directory structure vs. keeping the
    servlet we have that rewrites the URL.
    Thanks for your help.
    Scott Steimle.
    Rajesh Mirchandani <[email protected]> wrote in message news:<[email protected]>...
    From the developer
    Virtual directories just replace the doc root. The doc root in your case
    is C:\webapps\context\x\y. The request uri is /images/Z.gif. So the whole
    thing resolves to C:\webapps\context\x\y\images\Z.gif. Which is where the
    image should be located.
    We have cleared up the docs. Sorry for any inconvenience.
    Scott Steimle wrote:
    Hi. I noticed in WebLogic Platform 7.0 there is a entry for
    WEB-INF/weblogic.xml that defines a virtual directory. Example:
    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
    Application 7.0//EN"
    "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
    <weblogic-web-app>
    <virtual-directory-mapping>
    <local-path>C:\webapps\context\x\y</local-path>
    <url-pattern>/images/*</url-pattern>
    </virtual-directory-mapping>
    </weblogic-web-app>
    In this case I'm assuming that a request of the form
    http:/host:7001/context/images/z.gif would map to the physical file
    C:\webapps\context\x\y\z.gif. However I cannot get this to work. Is
    my assumption about it's use incorrect? Is the syntax of
    <local-path/> or <url-pattern/> wrong? Is there something you have to
    do to get WebLogic to recognize the weblogin.xml file?
    This is urgent. Please help.
    Thanks.
    Scott Steimle
    Software Engineer
    Convera

  • Virtual directory mapping: how to use variable in local-path element

    Hi all
    We are using a virtual-directory-mapping declaration in the deployment descriptor
    for our web application to load jsp'a and other files from the file system.
    This declaration looks like this:
    <virtual-directory-mapping>
    <local-path>c:/views/jsp</local-path>
    <url-pattern>*.jsp</url-pattern>
    </virtual-directory-mapping>
    Here is my question:
    Is there a possibility to use a variable in the local-path element? Something
    like:
    <virtual-directory-mapping>
    <local-path>%PATH_TO_JSP%</local-path>
    <url-pattern>*.jsp</url-pattern>
    </virtual-directory-mapping>
    If yes, how does it look like? My example above didn't work.
    If no, is there another way to do that?
    Thanks in advance
    Regards
    Iwan

    posting to servlets newsgroup
    "Iwan Bussmann" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi all
    We are using a virtual-directory-mapping declaration in the deploymentdescriptor
    for our web application to load jsp'a and other files from the filesystem.
    This declaration looks like this:
    <virtual-directory-mapping>
    <local-path>c:/views/jsp</local-path>
    <url-pattern>*.jsp</url-pattern>
    </virtual-directory-mapping>
    Here is my question:
    Is there a possibility to use a variable in the local-path element?Something
    like:
    <virtual-directory-mapping>
    <local-path>%PATH_TO_JSP%</local-path>
    <url-pattern>*.jsp</url-pattern>
    </virtual-directory-mapping>
    If yes, how does it look like? My example above didn't work.
    If no, is there another way to do that?
    Thanks in advance
    Regards
    Iwan

  • Virtual-directory-mapping  Security

    How do I secure the folder and or files in a virtual-directory-mapping
    Created a virtual-directory-mapping to store pdf files.
    I use adf security.
    I want to block access from someone entering http://host:port/context-root/pdfname.pdf
    chuck

    Hi Chuck,
    You can use FormBased Authentication to protect the access to the virtual-directory like " *http://middlewaremagic.com/weblogic/?p=2034*
    *Example:*
    Inside your Virtual Directory Create a "pdf" directory and then place all your PDF files inside this directory
    Then add the following kinf og entry in your "web.xml" file <url-pattern>pdf/*</url-pattern> restrict the access to pdf/* contents like below:
    <?xml version='1.0' encoding='UTF-8'?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <welcome-file-list>
    <welcome-file>welcome.jsp</welcome-file>
    </welcome-file-list>
    <security-constraint>
    <display-name>Constraint-0</display-name>
    <web-resource-collection>
    <web-resource-name>Constraint-0</web-resource-name>
    <url-pattern>pdf/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>admin</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/failedlogin.html</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>admin</role-name>
    </security-role>
    </web-app>.
    Thanks
    Jay SenSharma

  • [WL5.1] Virtual Directory for JSP: Possible??=

    Hi,
              I'm looking for a way to use a virtual directory for JSPs within my
              webapp. I want to access my JSPs by e.g. /webappname/layouts/jspname.jsp
              while they should be physically located somewhere else in the file
              system. The following snippet works for static files, but I suppose
              there is no docHome for JSPs:
                   <servlet>
                        <servlet-name>ImageAlias</servlet-name>
              <servlet-class>weblogic.servlet.FileServlet</servlet-class>
                        <init-param>
                             <param-name>docHome</param-name>
                             <param-value>c:\dev\fbs\images\</param-value>
                        </init-param>
                   </servlet>
                   <servlet-mapping>
                        <servlet-name>ImageAlias</servlet-name>
                        <url-pattern>/image/*</url-pattern>
                   </servlet-mapping>
              Thanks for any hints,
              Daniel
              

    Hi,
              I'm looking for a way to use a virtual directory for JSPs within my
              webapp. I want to access my JSPs by e.g. /webappname/layouts/jspname.jsp
              while they should be physically located somewhere else in the file
              system. The following snippet works for static files, but I suppose
              there is no docHome for JSPs:
                   <servlet>
                        <servlet-name>ImageAlias</servlet-name>
              <servlet-class>weblogic.servlet.FileServlet</servlet-class>
                        <init-param>
                             <param-name>docHome</param-name>
                             <param-value>c:\dev\fbs\images\</param-value>
                        </init-param>
                   </servlet>
                   <servlet-mapping>
                        <servlet-name>ImageAlias</servlet-name>
                        <url-pattern>/image/*</url-pattern>
                   </servlet-mapping>
              Thanks for any hints,
              Daniel
              

  • Creating a symlink directory on a network share to a path below a mapped drive letter, local path, or UNC path does not work

    Am I correct in assuming I can not create a `symlinkd` to a network share, local path, or a UNC path on a network share that will be accessible by clients?
    ###Mapped drive letters don't work:
    1) navigate to a network share:
    pushd \\windows2008server\share\
    2) make a hardlink:
    mklink /d test_sharedir t:\directory\
    dir .\test_sharedir
    #Directory of Z:\test_sharedir
    #File Not Found
    UNC paths don't work:
    1) navigate to a network share:
    pushd \\windows2008server\share\
    2) make a symlink:
    mklink /d test_dirunc \\windows2008server\share
    dir .\test_dirunc
    #Directory of Z:\test_dirunc
    #File Not Found
    I can create a functional `symlinkd` on a local drive to a mapped drive letter or a UNC path.
    Are my assumptions above correct?
    We are in the middle of a migration and have created two symlinkd to UNC paths for shared DLLs, one below c:\windows\system32\ (directing to a share containing 64-bit DLLs) and one below c:\windows\syswow64 (directing to a share containing 32-bit DLLs).
    On the file server, we have had a path to 32-bit DLLs (from Windows 7 clients: s:\dll\).  I am attempting to rename this directory so that it is accessible via "s:\dll32\" and would like to create a symlinkd that links "s:\dll" to
    "s:\dll32" [again where S: is a mapped drive on a Windows 2008 server].  How do I do this?
    Thanks,
    Matt

    Hello Mandy,
    The link you sent me is for Netapp CIFS server daemon contained within DataOnTap (the Netapp OS) to follow symlinks.  I am inquiring about the Microsoft products Windows Server and Windows 7.
    To gain a better understanding of the Microsoft Windows Server and client (Windows) CIFS stacks and interaction of the stacks, I have referred to Figure 6 "Server Message Block Server Model" within the following (albeit older) document: http://download.microsoft.com/download/2/8/0/2800a518-7ac6-4aac-bd85-74d2c52e1ec6/tuning.doc
    You will see the following:
    I assume that the Windows Server CIFS server service must be "smart enough" to determine that a CIFS client is attempting access to a SYMLINKD and actually fill the request by following the SYMLINKD.  The CIFS server service does not appear
    to operate like this.
    1) Am I correct in my assumption that the CIFS client (redirector) and the CIFS server (server) do not following symbolic links (whether they be file or directory)?
    2) If not, how do I submit a feature request for this so that it can be reviewed and approved or not approved for inclusion/hotfix release?
    Thanks for your time,
    Matt Brown
    [UPDATE]
    Note that you can use a `directory junction` instead of using a SYMLINKD, to link to LOCAL resources (source). However, `directory junctions` do not allow access to resources over UNC.

  • 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

  • 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.

  • Virtual directory mapping in WebCenter Portal

    Hi all,
    In my portal, I want show an image from Webcenter Content and it like that:
       <img src="http://localhost:16200/cs/groups/public/documents/document/b3ax/mdaw/~edisp/~export/TUYENNTLAPTOP1000031~1~TUYENNTLAPTOP1000032/31.jpg"   id="img1">But I don't want to show the domain of my Content Server is +"http://localhost:16200"+ on my portal when end user click view page source in the Web brower.
    Can I hide the +"http://localhost:16200"+ and the image still show on my portal?
    Thanks

    AS84 wrote:
    Hi all,
    In my portal, I want show an image from Webcenter Content and it like that:
    <img src="http://localhost:16200/cs/groups/public/documents/document/b3ax/mdaw/~edisp/~export/TUYENNTLAPTOP1000031~1~TUYENNTLAPTOP1000032/31.jpg"   id="img1">
    But I don't want to show the domain of my Content Server is +"http://localhost:16200"+ on my portal when end user click view page source in the Web brower.
    Can I hide the +"http://localhost:16200"+ and the image still show on my portal?
    ThanksHi all,
    After read careful about Virtual directory mapping, I saw that can't resolve my problem.
    And I change the way to get closer my target by thinking about a solution for showing image base on string in the "src" from tag <img> request to server.
    When client request image from the server, I'll catch the string request, process it and get the real link of the image base on it, reading content of the image from source and response the client. And I found the way for my solution in here
    http://www.coderanch.com/how-to/java/ImageServletI hope it'll help you too
    Good luck for all!
    Edited by: AS84 on May 18, 2012 7:00 PM

  • Virtual directory mapping in weblogic platform 7.0

    Hi. I noticed in WebLogic Platform 7.0 there is a entry for
    WEB-INF/weblogic.xml that defines a virtual directory. Example:
    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
    Application 7.0//EN"
    "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
    <weblogic-web-app>
    <virtual-directory-mapping>
    <local-path>C:\webapps\context\x\y</local-path>
    <url-pattern>/images/*</url-pattern>
    </virtual-directory-mapping>
    </weblogic-web-app>
    In this case I'm assuming that a request of the form
    http:/host:7001/context/images/z.gif would map to the physical file
    C:\webapps\context\x\y\z.gif. However I cannot get this to work. Is
    my assumption about it's use incorrect? Is the syntax of
    <local-path/> or <url-pattern/> wrong? Is there something you have to
    do to get WebLogic to recognize the weblogin.xml file?
    This is urgent. Please help.
    Thanks.
    Scott Steimle
    Software Engineer
    Convera

    I see. In my case, x == images, so if I reverse my directory
    structure I could still get this to work for me. For instance:
    <virtual-directory-mapping>
    <local-path>C:\webapps\context\y</local-path>
    <url-pattern>/images/*</url-pattern>
    </virtual-directory-mapping>
    /images/z.gif would map to C:\webapps\context\y\images\z.gif.
    I'll have to weigh changing our directory structure vs. keeping the
    servlet we have that rewrites the URL.
    Thanks for your help.
    Scott Steimle.
    Rajesh Mirchandani <[email protected]> wrote in message news:<[email protected]>...
    From the developer
    Virtual directories just replace the doc root. The doc root in your case
    is C:\webapps\context\x\y. The request uri is /images/Z.gif. So the whole
    thing resolves to C:\webapps\context\x\y\images\Z.gif. Which is where the
    image should be located.
    We have cleared up the docs. Sorry for any inconvenience.
    Scott Steimle wrote:
    Hi. I noticed in WebLogic Platform 7.0 there is a entry for
    WEB-INF/weblogic.xml that defines a virtual directory. Example:
    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
    Application 7.0//EN"
    "http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
    <weblogic-web-app>
    <virtual-directory-mapping>
    <local-path>C:\webapps\context\x\y</local-path>
    <url-pattern>/images/*</url-pattern>
    </virtual-directory-mapping>
    </weblogic-web-app>
    In this case I'm assuming that a request of the form
    http:/host:7001/context/images/z.gif would map to the physical file
    C:\webapps\context\x\y\z.gif. However I cannot get this to work. Is
    my assumption about it's use incorrect? Is the syntax of
    <local-path/> or <url-pattern/> wrong? Is there something you have to
    do to get WebLogic to recognize the weblogin.xml file?
    This is urgent. Please help.
    Thanks.
    Scott Steimle
    Software Engineer
    Convera

  • Virtual-directory-mapping + MS-Word MS-Excel

    Hi,
    I have created the following virtual-directory-mapping in my weblogic.xml
    <virtual-directory-mapping>
    <local-path>c:/zooi/temp</local-path>
    <url-pattern>/excel/*</url-pattern>
    <url-pattern>*.xls</url-pattern>
    </virtual-directory-mapping>
    Secondly I added the following mime-mapping to my web.xml
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    I tried to access an excel file, from my browser using the URL http://localhost:7001/MyWebApp/excel/Sample.xls
    Although it finds the file, it doesn't launch my Excel application in the browser. Instead it displays the file like you would do a "type" operation on it from the command line.
    If I copy the excel file into my webapp and then try to do the same (note that its not in the virtual-directory now) it nicely does start my excel application in the browser.
    I have good reasons for wanting to use a virtual directory so I hope someone can help me finding the reason why it doesn't work in that case.
    FYI, it doesn't work either with Word, but it DOES work when trying it with a PDF.
    Tx,
    Vincent

    hi,
    i m having problem in using this virtual-directory-mapping
    <virtual-directory-mapping>
    <local-path>C:/bea/user_projects/test/report/ipt</local-path>
    <url-pattern>/report/*</url-pattern>
    <url-pattern>*.txt</url-pattern>
    </virtual-directory-mapping>
    I tried to access the text file, from my browser using the URL http://localhost:7001/test/report/Sample.txt
    but page is not found.
    Can you tell me what did i missed out?
    thks...
    :_|

Maybe you are looking for

  • Error while executing an interface

    Hi, I am getting this error: STEP is :Loading - Srcset0 - Call sqldr org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last): File "<string>", line 31, in ? File "C:\App\DataIntegrator11g\oracledi\client\odi\bin\..\..\jdev\exte

  • Error building formula

    I am trying to build formulas involving cells in another table on the same sheet. I click on the cell I want to reference, and sometimes it works, sometimes it doesn't. When it works, the cell I click becomes coloured, and the formula includes a refe

  • Avc-intra ingesting problem ou may be just confusion....

    I'm using this new HPX-300 with the AVC-INTRA 100 codec. And when i import the content using log and transfer (final cut 7!!!) with avc-intra native plug-in, all that, to apple ProRes 422 hq compression the size of the video is like 14 mb/s is that r

  • Blank boxes when I insert question slides.

    I posted this yesterday and no one replied... Hopefully someone can give me some advice. Thanks!! I am trying to create a new project in CP3 and once I publish the project, there are 2 blank boxes on each slide and the movie stops on the second slide

  • Extracting assets

    Not sure why I'm extracting assets and only half the image is getting extracted - basically cutting it in half - what am I doing wrong - it worked perfectly the first time?