Limit extensions other than one specified in virtual-directory-mapping

Hi,
I have a virtual directory mapping
<virtual-directory-mapping>
<local-path>D:/folder</local-path>
<url-pattern>/movies/*</url-pattern>
<url-pattern>*.mov</url-pattern>
</virtual-directory-mapping>
However, I can still access the files with other extensions, i.e., avi, jar, txt.... Is there anything wrong with my mapping or it is supposed to be so? if it is the later, what is the point of declaring the *.mov pattern?
Thank you very much

hi,
Actually i deleted all the files in work folder and deleted the context path in server.xml file which i had given yesterday.
Already in web.xml file inside the folder..ie., in "c:\myPath\myRootDir\WEB-INF\web.xml" file i gave welcome file name like as given below..
<welcome-file-list >
     <welcome-file >index.html</welcome-file >
</welcome-file-list >
i created this welcome file entry even before creating context path in server.xml file..
Then i created again the context path in server.xml file like this
<Context path="/myVirtualApp"
docBase="C:/myPath/myRootDir"
     crossContext="true"
     debug="0"
     reloadable="true"
     trusted="false">
</Context>
i stopped and restarted the server....
Now itz working fine......Thanx a lot Sudha for your help.......
regards,
Manikandan

Similar Messages

  • HT5858 how can I delete photos on my iPhone other than one at a time?

    Can someone help me to delete photos from my iPhone other than one at a time.
    Thanks

    http://osxdaily.com/2012/08/02/delete-all-photos-from-iphone/

  • A library on my hard drive became corrupted, so I over-wrote it from an external hard drive.  When I access the library now on my hard drive, many of the images are vertical, and cannot be rotated other than one at a time.  Ideas to correct this?

    A library on my hard drive became corrupted, so I over-wrote it from an external hard drive.  When I now access the library on my hard drive, many of the images are vertical, and cannot be rotated other than one at a time.  Ideas to correct this?

    You had already done "Repair" and "Rebuild"?  These usually takes scores of minutes or hours.
    Does the Library on your external drive work from the external drive?  Navigate to it in Finder and double-click the name.
    If it does, delete the problem Library, empty the System Trash, reboot, Verify your system disk using Disk Utility (and might as well repair permissions while you're at it), reboot, test the external drive Library once more to confirm it works properly, then close it and copy the Library to your system drive.  When the copying is done, double-click the Library (now on the system drive) and see what you get.

  • Can you add comments to the XML reports other than one Block Comment and one Test Comment?

    I know how to use Block Comments and Test Comments but if I need to add more comments to my XML report in a test other than one Test comment, is there a way to do this?  In other words, I would like to be able to add say 5 comment lines for a single test.  Also, can a Test Comment or Block comment be more than one line in length?  If so, how do you do that?

    What version of TS do you have?  If you have 4.1 or better (might be possible in 4.0 I can't remember) you can just use the additional results.  So in the step properties you will see Additional Results.  Then just add as many as you want. 
    Then you will see it show up in the report like you want.  I couldn't get multiple lines to work in one comment.  I tried \n but that didn't seem to be supported here.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    StepComments.JPG ‏38 KB

  • How can I delete exact duplicates other than one at a time.

    How ca I delete exact duplicate songs other than one at a time.

    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background.
    tt2

  • Is there a way to delete emails other than one at a time?

    Is there a way to delete emails other than one at a time?

    You can select multiple emails at a time for deletion, but there is no option to delete all email from an account's Inbox mailbox at once.
    If the account is an IMAP or Exchange account, delete all email from the account's Inbox mailbox with the email client on your computer used for accessing the account or via webmail access for the account using a browser on your computer. All server stored mailboxes with an IMAP or Exchange account are kept synchronized with the server with each email client used to access the account.

  • I want to hide all layers other than one layer when I play swf at first.

    Hello. I am using Adobe Flash CS6 and AC2.
    Right now I am trying to hide all layers other than one layer. There are 3 layers on my fla file like this.
    Layer A
    Layer B
    Layer C
    I want to keep hiding  Layers B and C unless  I click a button that makes layer B and C visible.
    Layer A has a movie clip symbol, and it contains animation movie where a man  is running.
    And Layer B and C has a movie clip where people  are chasing the person who is running on Layer A.
    I mean, if I load swf file at first, there is only one person who is running, and when I click a button two people appears on a stage and they start to chase the person who is running on layer A.
    What kind of script should I use to make this setting? Please give me your advice.
    Thank you in advance.

    Here is a simplified version of the code, including the two lines needed to make them invisible at the start....
    b_mc._visible = false;
    c_mc._visible = false;
    b_btn.onRelease = function():Void{
              b_mc._visible = !b_mc._visible;
    c_btn.onRelease = function():Void{
             c_mc._visible = !c_mc._visible;
    What that version of the coding does is simply tell the object to acquire the opposite ( ! ) value of the current _visible property.
    Notice also that I have removed the "_root " references inm the code.  You should not make a habit of using it unnecessarily.  If the code is in the main timeline already (the _root), there is no need to target it, and doing so can lead to problems if you ever need to load this file into another.  If that code is not in the _root timeline then it is okay to use _root, though using "_parent " references can be safer for the same reason.
    The way you had the code written is not wrong, but it was excessive in that you do not have to test the condition twice like you did, if it is not true then it has to be false.... 
    if(c_mc._visible){ 
          c_mc._visible = false;
    } else {
          c_mc._visible = true;

  • Is there a difference between the Apple TV MD199LL/A vs. the refurbished Apple TV FD199LL/A other than one is refurbished?

    Is there a difference between the Apple TV MD199LL/A vs. the refurbished Apple TV FD199LL/A other than one is refurbished?

    Refurbished I would suggest - refurbished products have slightly different product codes.
    AC

  • Cisco ACE loadbalancing matching more than one header in L7 class map

    Dear All,
    This is regarding Cisco ACE loadbalancing matching more than one header in L7 class map. I have a small setup with ACE 30 module in Cisco6500. I have got three webservers. Presently I have following configuration where I am mathing one url header.
    class-map type http loadbalance match-all L7_WEB_HEADER_MATCH
    description MATCH THE HOST HEADER OF HTTP REQUEST
    2 match http header Host header-value ".*abhisar.com*"
    So for above configuration, when traffic is coming for abhisar.com, it is working fine.
    Now, I have following headers and DNS entry is pointing to same virtual IP for all http url header same as abhisar.com
    abhisarindia.com
    indiaabhi.com
    So new configuration will be
    class-map type http loadbalance match-any L7_WEB_HEADER_MATCH
    description MATCH THE HOST HEADER OF HTTP REQUEST
    2 match http header Host header-value ".*abhisar.com*"
    4 match http header Host header-value ".*abhisarindia.com*"
    6 match http header Host header-value ".*indiaabhi.com*"
    So just want to confirm if this is fine.
    Thank You,
    Abhisar.

    Dear Rajesh,
    Thank you for reply. I will let you know once I carry out this activity.
    Thank You,
    Abhisar.

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

  • Programmatically set virtual directory mapping at run time

    Hi all
    Do you know of anyway to do it.
    I can't found MBean for weblogic descriptor.
    Thanks

    Hi Jay
    I am on it. But I continue having validation problem:
    VALIDATION PROBLEMS WERE FOUND C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\PictureApp\app\planplan.xml:0: problem: cvc-complex-type.2.4c: Expected element 'url-pattern@http://xmlns.oracle.com/weblogic/weblogic-web-app' before the end of the content in element virtual-directory-mapping@http://xmlns.oracle.com/weblogic/weblogic-web-app:<C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\PictureApp\app\planplan.xml>
    this is my plan:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
    <application-name>app</application-name>
    <variable-definition>
    <variable>
    <name>SessionDescriptor_timeoutSecs_12698451432940</name>
    <value>3602</value>
    </variable>
    <variable>
    <name>SessionDescriptor_invilidationInterval</name>
    <value>70</value>
    </variable>
    <variable>
    <name>VirtualDirectory_diskD</name>
    <value>/Pictures/*</value>
    </variable>
    <variable>
    <name>Map</name>
    <value></value>
    </variable>
    <variable>
    <name>LocalPath_diskD</name>
    <value>D:/Pictures</value>
    </variable>
    </variable-definition>
    <module-override>
    <module-name>PictureApp.ear</module-name>
    <module-type>ear</module-type>
    <module-descriptor external="false">
    <root-element>weblogic-application</root-element>
    <uri>META-INF/weblogic-application.xml</uri>
    <variable-assignment>
    <name>SessionDescriptor_timeoutSecs_12698451432940</name>
    <xpath>/weblogic-application/session-descriptor/timeout-secs</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>SessionDescriptor_invilidationInterval</name>
    <xpath>/weblogic-application/session-descriptor/invalidation-interval-secs</xpath>
    </variable-assignment>
    </module-descriptor>
    <module-descriptor external="false">
    <root-element>application</root-element>
    <uri>META-INF/application.xml</uri>
    </module-descriptor>
    <module-descriptor external="true">
    <root-element>wldf-resource</root-element>
    <uri>META-INF/weblogic-diagnostics.xml</uri>
    </module-descriptor>
    </module-override>
    <module-override>
    <module-name>Picture.war</module-name>
    <module-type>war</module-type>
    <module-descriptor external="false">
    <root-element>weblogic-web-app</root-element>
    <uri>WEB-INF/weblogic.xml</uri>
    <variable-assignment>
    <name>Map</name>
    <xpath>/weblogic-web-app/virtual-directory-mapping</xpath>
    <operation>add</operation>
    </variable-assignment>
    <variable-assignment>
    <name>LocalPath_diskD</name>
    <xpath>/weblogic-web-app/virtual-directory-mapping/local-path</xpath>
    <operation>add</operation>
    </variable-assignment>
    <variable-assignment>
    <name>VirtualDirectory_diskD</name>
    <xpath>/weblogic-web-app/virtual-directory-mapping/[local-path="D:/Pictures"]/url-pattern</xpath>
    <operation>add</operation>
    </variable-assignment>
    </module-descriptor>
    <module-descriptor external="false">
    <root-element>web-app</root-element>
    <uri>WEB-INF/web.xml</uri>
    </module-descriptor>
    </module-override>
    <config-root>C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\PictureApp\app\plan</config-root>
    </deployment-plan>
    I have the url-pattern assigned already. Can you help me look at it.
    And one more question: if I want to define multiple virtual directory mapping, how can it be done? as the link is only virtual-directory-mapping/ it needs something to distinguish between the different virtual directory mapping right?

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

  • 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

  • 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

Maybe you are looking for