Creation of Virtual Directory in weblogic.xml (OBIEE11 Weblogic)

We are using OBIEE 11.1.1.6.4, we want to create a Virtual directory mapping in weblogic server so that we can place our static image files to access from the application URL.
To do this activity, we have performed following steps -
1) Navigated to C:\OBIEE11G\Oracle_BI1\bifoundation\jee
2) Open analytics.ear file
3) Existing code in weblogic.xml is: (if weblogic.xml is not present we need to create the file with below code)
<?xml version = '1.0' encoding = 'US-ASCII'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<session-descriptor>
<cookie-path>/analytics</cookie-path>
</session-descriptor>
</weblogic-web-app>
4) We have added virtual-directory-mapping tag; After adding virtual directory mapping tag, the code in weblogic.xml is
<?xml version = '1.0' encoding = 'US-ASCII'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<session-descriptor>
<cookie-path>/analytics</cookie-path>
</session-descriptor>
<virtual-directory-mapping>
<local-path>D:/virtualdirectory</local-path>
<url-pattern>/images/*</url-pattern>
<url-pattern>*.jpeg</url-pattern>
</virtual-directory-mapping>
</weblogic-web-app>
5) We have created a folder virtualdirectory under D: drive. And then created a folder images within folder virtualdirectory.
6) Then we have placed an image (lets say) test.jpeg within image folder.
7) Restarted all BI services,
8) Now when we try to access URL http://localhost:9704/analytics/images/test.gif. Now we are able to see the image, it’s working perfectly fine.
If we paste the above URL in browser it will automatically displays the image without any authentication. So our requirement is, on pasting the URL in browser first it should redirect to OBIEE homepage and when authentication is done then it should display the image.
Request you to please advise with your inputs.

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

Similar Messages

  • Difference between prefer-application-packages in weblogic.xml and weblogic-application.xml?

    Hi!
    When deploying a WAR to WebLogic 10.3.5, what is the difference between the prefer-application-packages element in the files weblogic.xml and weblogic-application.xml?
    In my WARs WEB-INF/lib/ I have a JAR that contains classes that are already provided by the container (but older versions).
    If I do not use prefer-application-packages then my app gets the classes provided by the container.
    If I use prefer-application-packages in weblogic.xml then I get the classes from WAR/WEB-INF/lib which is expected.
    But if I use prefer-application-packages in weblogic-application.xml then I get the container versions. Why?
    Is there a difference between those two options?
    The exact data I use is:
    (foo.bar.* is the conflicting package; I add or remove the linex marked with XXXX)
    WEB-INF/weblogic.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
        xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
        <wls:container-descriptor>
            <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
            <wls:prefer-application-packages> <!-- XXXX -->
                <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
            </wls:prefer-application-packages> <!-- XXXX -->
            <wls:prefer-application-resources>
                <wls:resource-name>META-INF/services/some....</wls:resource-name>
                <wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
                <wls:resource-name>META-INF/services/stuff...</wls:resource-name>
            </wls:prefer-application-resources>
        </wls:container-descriptor>
        <wls:jsp-descriptor>
            <wls:page-check-seconds>-1</wls:page-check-seconds>
            <wls:precompile>true</wls:precompile>
            <wls:precompile-continue>true</wls:precompile-continue>
            <wls:keepgenerated>true</wls:keepgenerated>
        </wls:jsp-descriptor>
        <wls:session-descriptor>
            <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
        </wls:session-descriptor>
    </wls:weblogic-web-app>
    META-INF/weblogic-application.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application
        xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <application-param>
            <param-name>webapp.encoding.default</param-name>
            <param-value>UTF-8</param-value>
        </application-param>
        <xml>
            <parser-factory>
                <saxparser-factory>
                    org.apache.xerces.jaxp.SAXParserFactoryImpl
                </saxparser-factory>
                <document-builder-factory>
                    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
                </document-builder-factory>
                <transformer-factory>
                    org.apache.xalan.processor.TransformerFactoryImpl
                </transformer-factory>
            </parser-factory>
        </xml>
        <prefer-application-packages>
            <package-name>foo.bar.*</package-name> <!-- XXXX -->
            <package-name>javax.jws.*</package-name>
            <package-name>javax.xml.ws.*</package-name>
            <package-name>org.apache.cxf.*</package-name>
            <package-name>antlr.*</package-name>
            <package-name>org.xmlsoap.schemas.wsdl.*</package-name>
        </prefer-application-packages>
    </weblogic-application>

    weblogic-application.xml has no meaning in WARs, it is only used in EARs.

  • Creation of virtual directory for EPMA during 11.1.2.2 configuration

    Hi Experts,
    I was trying to install and configure the EPM 11.1.2.2 products on a POC machine with Windows 2008 R2. I was able to install and configure some products and i was facing issue with the EPMA configuration where it struck during "Creation of EPMA virtual Directory". I can see the virtual directory created but not sure why this is not finishing up and just struck at this level, deployment is all fine. Attached the config log for any reference
    I have enabled Windows authentication in IIS 7 and disabled Basic authentication
    Please let me know if anyone has come across this issue and thanks for your help
    [2012-11-14T11:33:51.278-08:00] [EPMCFG] [TRACE] [EPMCFG-01496] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] IIS version is 7
    [2012-11-14T11:33:51.278-08:00] [EPMCFG] [TRACE] [EPMCFG-01516] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Removing virtual directory: hyperion-bpma-server
    [2012-11-14T11:33:51.278-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: removeVirtualDir
    [2012-11-14T11:33:52.729-08:00] [EPMCFG] [TRACE] [EPMCFG-01508] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Creating virtual directory: hyperion-bpma-server(2:2), configRoot: C:\OracleEPM\Middleware\EPMSystem11R1\products\Foundation\BPMA\AppServer\DimensionServer\WebService
    [2012-11-14T11:33:52.729-08:00] [EPMCFG] [TRACE] [EPMCFG-01504] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Creating application pool: DefaultAppPool
    [2012-11-14T11:33:52.745-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: createApplicationPool
    [2012-11-14T11:33:56.769-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01001] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] trace: Updating .Net version of application pool...
    [2012-11-14T11:33:56.769-08:00] [EPMCFG] [WARNING] [EPMCFG-01001] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] trace: .Net version v2.0 will be used
    [2012-11-14T11:33:56.769-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: updateApplicationPoolManagedRuntime
    [2012-11-14T11:33:58.142-08:00] [EPMCFG] [TRACE] [EPMCFG-01510] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Using default application pool for hyperion-bpma-server
    [2012-11-14T11:33:58.142-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: createVirtualDir
    [2012-11-14T11:34:00.997-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: installAspDotNet
    [2012-11-14T11:34:02.573-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01499] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Going to allow Web Service Extension.
    [2012-11-14T11:34:02.573-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: enableWebServiceExtension
    [2012-11-14T11:34:04.008-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01500] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Web Service Extension allowing complete.
    [2012-11-14T11:34:04.008-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01499] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Going to allow Web Service Extension.
    [2012-11-14T11:34:04.008-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: enableWebServiceExtension
    [2012-11-14T11:34:05.552-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01500] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Web Service Extension allowing complete.
    [2012-11-14T11:34:05.552-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01499] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Going to allow Web Service Extension.
    [2012-11-14T11:34:05.552-08:00] [EPMCFG] [TRACE] [EPMCFG-01427] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.ant.AbstractAntConfigurator] Executing target: enableWebServiceExtension
    [2012-11-14T11:34:07.050-08:00] [EPMCFG] [NOTIFICATION] [EPMCFG-01500] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.config.ant.iis.IISConfigurator] Web Service Extension allowing complete.
    [2012-11-14T11:34:07.050-08:00] [EPMCFG] [TRACE] [EPMCFG-07380] [oracle.EPMCFG] [tid: 23] [ecid: 0000Jg0PMStFw005zzL6iW1Gcyyx000005,0] [SRC_CLASS: com.hyperion.cis.utils.os.windows.IisUtils] Getting IIS7 Default site name
    Regards

    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

  • Need commpress-html-template with in weblogic.xml using Weblogic 10.0 MP1

    Hi All,
    Is there any way to use compress-html-template with weblogic.xml with in Weblogic 10.0 MP1.
    I added this as current xsd reference for weblogic 10.0 MP1 but throws me error that it could unable to identify the library reference.
    Here is the following XSD file /
    (http://xmlns.oracle.com/weblogic/weblogic-javae/1.0/weblogic-javaee.xsd)
    Any suggestion for this would be really great.
    Regards,
    Kal.
    Edited by: kalyan Pasupuleti on Jul 20, 2009 11:07 AM

    The error appears to come from the ariba code. I suggest asking them.
    java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:396)
    at ariba.j2ee.weblogic.Properties.initialize(Properties.java:53)

  • Virtual directory when using xml db http

    Is it possible to create a virtual web directory (reachable using http) to a physical directory in my server?
    I am running apex using xml db http with oracle 11.2.
    thanks

    Apache/Lighttpd. is it a free product?Yes both of them are free.
    Please see http://www.beyondoracle.com/2008/04/05/reverse-proxying-apex-in-a-dmz/
    I personally feel that Lighttpd works better specially if there is too much Ajax involved in your application but unfortunately I did not find any tutorial ready for that. Also for starters (in this particular subject) I recommend Apache since there is enough documentation available and you can get many people who can be helpful to setup this.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Off Topic - Automatic creation of a Directory listing in XML

    Sorry if this is off topic.
    OK my fingers are getting tired... is there a tool, or widget that will read the contents of a directory and generate an index XML file of that directory?
    Running Mac OS X 10.6x server and we are hosting our own content. looking for a better way than hand-typing the directory of files for an RSS feed to iTunes U.

    Not currently - well at least not easily - there is always the programatic approach.
    I would suggest you can create an FSDB repository - this means you can then create your structure in the file system using standard desktop tools.
    After that you could do a mass copy back into the db based KM repository if you so wished.
    For your downstream systems you could always ICE the data across meaning you dont have to create everything again.
    Haydn

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

  • Does the weblogic virtual directory has a max download level?

    got a web project running in a Weblogic 12c. I have my virtual directory, and inside my directory I have a 18 MB zip. So when I try to download the zip from the url I have from my virtual directory; it starts to download but halfway during the download it ends my some times when I´m at 5MB, other times when I´m at 10 MB.
    I have test it in different networks and pc, but it´s always the same. So I was wondering if there is a configuration in the virtual directory on in the weblogic that restricts the amount of data that I can download. Here is my virtual directory configuration:
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
      <container-descriptor>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
      </container-descriptor>
      <!-- Configuracion del directorio virtual -->
      <virtual-directory-mapping> 
      <local-path>C:\Oracle\Middleware\user_projects\domains\downloads</local-path>
      <url-pattern>zips/*</url-pattern>
      <url-pattern>*.jpg</url-pattern> 
      <url-pattern>*.zip</url-pattern>
      </virtual-directory-mapping> 
      <jsp-descriptor>
      <keepgenerated>true</keepgenerated>
      <debug>true</debug>
      </jsp-descriptor>
      <!-- Configuracion del directorio virtual -->
      <context-root>pushFuller</context-root>
      <fast-swap>
      <enabled>false</enabled>
      </fast-swap>
    </weblogic-web-app>
    Thanks in advance

    I have gone to the BEA web site to download the Service Pack 4. I kept getting this message: "Your session has expired. Please log in again." no matter how fast I filled out and submitted their form. I also e-mailed the BEA support to report the problem. But, I have not yet received any reply. It has been almost 24 hours since the problem was reported.
    What should I do?

  • 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

  • Location of weblogic.xml

    I am very new to App server and weblogic too.
    I have created the new domain inside the server and I have to make some entires in weblogic.xml
    Where I can find this in my domain? Actually there are two weblogic.xml in my domain.
    I don't know which one to use.
    <doamin- root>\servers\AdminServer\tmp\_WL_internal\bea_wls9_async_response\8tpkys\war\WEB-INF
    and
    <doamin- root>\servers\AdminServer\tmp\_WL_internal\bea_wls_internal\9j4dqk\war\WEB-INF
    The entries looks like
    <resource-description>
         <res-ref-name>jms/ConnectionFactory</res-ref-name>
         <jndi-name>ConnectionFactory</jndi-name>
         </resource-description>
         <resource-env-description>
         <res-env-ref-name>jms/SystemQueue</res-env-ref-name>
         <jndi-name>SystemQueue</jndi-name>
         </resource-env-description>
         <resource-env-description>
         <res-env-ref-name>jms/ApplicationQueue</res-env-ref-name>
         <jndi-name>ApplicationQueue</jndi-name>
         </resource-env-description>
         <resource-env-description>
         <res-env-ref-name>jms/DaemonQueue</res-env-ref-name>
         <jndi-name>DaemonQueue</jndi-name>
         </resource-env-description>

    Here you will find your *"weblogic.xml"* after deploying your App on WebLogic:
    Syntax:
    <DOMAIN_HOME>\servers\<Your-Server_Name>\tmp\_WL_user\<APPLICATION_NAME>\......
    Example: C:\bea103\user_projects\domains\7001_Domain\servers\AdminServer\tmp\_WL_user\helloWorldEar\ckwaac\war\WEB-INF
    But remember ...making any changes On DD contents...here in this Location...will not affect the Actual Application......You need to either use *"Plan.xml"* to make changes on DDs, Or else you need to ask your Developers tio make changes on the Application DDs....then you can deploy it again:
    Plan.xml  Demos:
    http://jaysensharma.wordpress.com/2009/11/29/shared-library-with-plan-xml/
    http://jaysensharma.wordpress.com/2010/03/24/changing-context-root-of-an-ear-app-using-plan-xml/
    http://jaysensharma.wordpress.com/2010/03/29/adding-virtual-directory-using-plan-xml/

  • Deployment descriptor weblogic.xml

     

    I'm not sure what this file is either and how it relates to the web.xml
              deployment descriptor. However, I got my web app to run fine out of a
              directory that included a web.xml file. I did see the warning about the
              weblogic.xml file but it didn't seem to have any effect on my app. I
              haven't tried a WAR file yet though...
              -brian
              "John Collins" <[email protected]> wrote in message
              news:[email protected]...
              > Sean -
              >
              > That is the documentation for the weblogic-ejb-jar.xml file. What I think
              Song
              > is looking for, and so am I, is the weblogic.xml file that goes in the
              .war
              > file. I can't get a web app loaded without it, and haven't a clue how to
              build
              > it. Is there a tool? Is it documented? Is there at least a DTD? The
              > deployer tool won't load a .war file.
              >
              > Thanks.
              >
              > John Collins
              > University of Minnesota
              >
              > Sean Scott wrote:
              >
              > >
              http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_reference.html#1026457
              > >
              > > "Song" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > I can't find any documentation for the weblogic.xml on weblogic's
              website.
              > > > Could someone tell me where I can an example of weblogic.xml or the
              dtd
              > > for
              > > > it?
              > > > Thanks ,
              > > > Song
              >
              

  • Difference betwwen weblogic.xml & weblogic-application.xml

    Hi,
    Can someone explain the Difference betwwen weblogic.xml & weblogic-application.xml in a portal application with some sample examples relavant to portal use cases.
    Regards

    Those files are not specific to portal applications. WEB-INF/weblogic.xml configures WebLogic specific settings for web applications. META-INF/weblogic-application.xml configures WebLogic specific settings for JEE applications.
    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13706/overview.htm#i1067610 has lots of information about applications in WLS.

  • Virtual directory path from weblogic.xml file in servlet

    HI All,
    I want to get the virtual directory path in servlet, which is specified in the weblogic.xml file
    Regards,
    Abhi

    Sure, put it in your WEB-INF directory. That should be in your servlet's classpath when it runs. UseInputStream is = this.getClass().getResourceAsStream("/config.xml");to read it.

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

Maybe you are looking for