Can we define path for a bean out side work space?

<bean id="HSBCMarketsReports"
               class="HSBCMarketsReportsConfiguration">
               <property name="reports">
                    <map>
                    <entry key="PinnacleReportsConfig" value="PinnacleReportsConfig.xml"/>
                    <entry key="PinnacleReportsData" value="PinnacleDummyData.xml"/>
                    </map>
               </property>
     </bean>it works well but when make the same as
<bean id="HSBCMarketsReports"
               class="HSBCMarketsReportsConfiguration">
               <property name="reports">
                    <map>
                    <entry key="PinnacleReportsConfig" value="PinnacleReportsConfig.xml"/>
                    <entry key="PinnacleReportsData" value="C:\PinnacleDummyData.xml"/>
                    </map>
               </property>
     </bean>
it says C:\PinnacleDummyData.xml not found i work space , how to make it look for the file out side work space (particularly given location)

LoveOpensource wrote:
<bean id="HSBCMarketsReports"
               class="HSBCMarketsReportsConfiguration">
               <property name="reports">
                    <map>
                    <entry key="PinnacleReportsConfig" value="PinnacleReportsConfig.xml"/>
                    <entry key="PinnacleReportsData" value="PinnacleDummyData.xml"/>
                    </map>
               </property>
     </bean>it works well but when make the same as
<bean id="HSBCMarketsReports"
               class="HSBCMarketsReportsConfiguration">
               <property name="reports">
                    <map>
                    <entry key="PinnacleReportsConfig" value="PinnacleReportsConfig.xml"/>
                    <entry key="PinnacleReportsData" value="C:\PinnacleDummyData.xml"/>
                    </map>
               </property>
     </bean>
it says C:\PinnacleDummyData.xml not found i work space , how to make it look for the file out side work space (particularly given location)Why dont you include the xml file in your workspace/web application?
All these are custom tags, right? So somewhere in the code for the custom tags, it would load the xml file for parsing.
There are different ways to load a file. The first is to use the absolute path (not recommended) and anyways I dont think your application does it that way because then your file would have been loaded even if it's outside the web application folder.
The better approach is to load the file as a resource stream.
The ServletContext object has a method getResourceAsStream() to load files from the web application path. But then the xml file has to be inside the web application and if this is indeed how your tags have been coded, you have no other option but to include the xml file in your web application.
There is another way - to use the ClassLoader's getResourceAsStream() method. The ClassLoader looks up the classpath variable to search for files. In this case, you need to add your xml file location (c:/dir or whatever) to the application server's classpath. Look up in the startup scripts for your application.
As I said, it all depends upon the tag code that looks up the xml file and whether you can tweak it.
cheers,
ram.

Similar Messages

  • Can we define users for both studio and integrator server

    Can someone please let me know how can we define users for both studio and integrator server so that the user can be used to view UI page but not modify it.I want to define user in studio which will access the Page but not modify it. And the user in integrator server should be able to view scheduled jobs.
    Thanks a lot.
    Regards,
    Amrit

    Amrit,
    Both Studio and Integrator Server support LDAP. See http://docs.oracle.com/cd/E35976_01/studio.240/eid_studio_users/toc.htm#Integrating%20with%20an%20LDAP%20System%20to%20Manage%20Users for details about implementing LDAP in Studio. For Integrator Server, see "LDAP Authentication", p. 38 (document pagination; p. 44 pdf file pagination) in the Integrator Server Guide (http://docs.oracle.com/cd/E35976_01/integrator.240/DataIntegratorServer.pdf).
    RLJII

  • Can we get reimbursed for apps that do not work

    Can I get reimbursed for apps that do not work?

    Hi...
    You can contact iTunes support here and see if they will make an exception:
    http://www.apple.com/support/itunes/contact/
    They usually respond within 24 hours.
    Hope this helps.

  • Cant send SMS off iphone 4s but can send imessages and calls in and out still work.. help?

    cant send SMS off iphone 4s but can send imessages and calls in and out still work.. help?

    SMS is a carrier feature.  Contact your carrier

  • XAML: Can we define style for nested elements?

    Can we define a style that will target "all TextBlock elements inside Border elements of style XXX"?
    I have a style <Style TargetType="Border" x:Key="XXX"> and I want all TextBlocks inside Borders with style XXX to have red Foreground.
    In CSS it would look like this:
    <html>
    <head>
    <style>
        p { color: red; }
        p.XXX { color: green; }
        p.XXX span { color: blue; }
    </style>
    </head>
    <body>
        <p>red text</p>
        <p class="XXX">green text</p>
        <p class="XXX">green text <span>and blue text</span></p>
    </body>
    </html>

    Hi Michael,
    I've moved this to a more topical forum for you.
    Xaml styles do not cascade like CSS does. 
    --Rob

  • How can I supply path for exportAsText( )  /  importTextData( )   /  saveAs( )

    How can I reference/provide a path for JavaScript commands that will point the user to an appropriate directory on either a local drive or network?
    More specifically ... I have a button that Exports Data as a text file from a pdf form (AcroForm) by simply running:
    this.exportAsText();
    This brings up a Export Form Data as ... dialog box, but how can I supply the path so it will guide the user to the appropriate directory?
    Upon determining this step, am I right in assuming that it would apply the same way to:
    this.importTextData()
    this.saveAs()
    As always ... thanks for sharing with a newbie as I try to stumble my way through.
    -Scott Piegza

    As the documentation states, you can specify the path with the cPath parameter but you must satisfy the security restrictions listed in the documentation (can only be executed from an elevated security context, must be a safe path, etc.).
    It's all covered in the Doc.exportAsText() section of the JS API Reference.

  • Report for materials sent out side receipt tracking

    hi gurus,
    I have a requirement that the materials sent outside for subcontraction purposes, after the work completed, should be back with in 180 days, i m not finding any standard report, can any body suggest
    to view without any development of report, as we are near to go live.
    Thanks in advance.

    hi indranil,
    ME2o for sending the material outside to subcontractor, and after completion of the job at subcontractor, we are doing jwc reconciliation also there i will get the return date, my question, my client want a pop up within the stipulated time( say one month before) so that he can follow up with the out side party to get deliver the material with in one month.
    YOur speedy response is highly appreciated.
    regards...

  • What is the benefit of using clipping paths for a knock out?

    I found a posting saying they need someone to knock out the background of a lot of images using clipping paths. My question is, WHY use a clipping path? I know the rule of not using a selection tool such as the Magic Wand and then turning it into a clipping path and I know why that is. But if all is needed is for the background to be knocked out, why can't we just use the selection tool in the first place and just knock out the background from there? What is the benefit of that clipping mask?

    Usually the term Clipping Path refers to turning a path into a clipping path (in the paths panel) for use in older programs such as PageMaker that don't support transparency.
    For example if one wanted to import a file into PageMaker and only have a certain part of the document visible, one would make a path (or selection) around the object
    and turn the path (or selection) into a clipping path. Sorta the same results you see in photoshop using a layer mask or vector mask.
    Also clipping paths are used in certain printing workflows.
    Without seeing the posting it's hard to say what they meant and in photoshop 6 vector masks were labeled as Layer Clipping Paths not to be confused with real clipping paths.
    Old versions of photoshop also used the term Group With Previous to denote Create Clipping Mask.
    photoshop 6:
    Photoshop cs6:
    Anyway clipping masks and clipping paths are two different things in photoshop.
    layer masks, vector masks and clipping masks:
    http://helpx.adobe.com/content/help/en/photoshop/using/masking-layers.html
    an example of creating a clipping path:
    http://www.clippingpathspecialist.com/tutorials.html

  • How can you change path for converted PPD files?  Default goes to /var/...

    Hi,
    I'm pretty new to the Solaris 10 world and I'm attempting to troubleshoot some Xerox print issues. One of our Oracle Users may send a print job through with an HP Initialization String...yes you read that right, and cause the Printing services to Yo-Yo.
    I've installed the Xerox Printer Administration Tool 4.30.28 and then installed the most current driver package. Thing is, either the services will still bounce or the job will not print. Understandable because of the HP Initialization String.
    However, I tried using the Solaris Print Manager w/ a generic Xerox driver and the Print Services did not bounce. I thought then that I would try using the actual Xerox Workcentre 7655 driver by converting the driver from Xerox and using the PPDMgr tool. Thing is, I could figure out how to really change the path so that the driver would get dropped in the /usr/lib/lp/model/ppd/system/foomatic directory.
    Any way to do this?
    Thank you for your time,
    Mr Mister

    Hello Eric
    I am using the "UserDefinedErrorsDir" in LabVIEW 7.1 /7.1.1 Windows and Linux.
    But there is a "syntax" problem. Let me explain this:
    If you enter
    UserDefinedErrorsDir=C:\
    into your LabVIEW.ini File, LabVIEW will not search the Files in your C:\      Directory...
    LabVIEW search the *-errors.txt Files in the
    C:\errors\
    Directory!
    That mean that you have to create a folder with the name errors in your UserDefinedErrorsDir and after that you only have to copy all your *-errors.txt Files into this folder.
    Happy Wiring
    Martin CLAD

  • BEx Analyser: How can I define colours for different levels of a hierarchy?

    Hi everyone,
    I have a report in BEx Anaylser that includes a hiearchy of 9 levels.
    For a better overview, I want to define different colours for the cells of each level. In this way, the user should be able to see which numbers belong to which hierarchy level. How can I do this?
    Best regards
    Daniel

    Dear Anujit,
    Thanks for your answer.
    Seriously? I cannot do this with BEx Analyzer other than using Excel VBA macro?
    Cheers, Daniel

  • T code or path for creating Z out put type for picking

    if I need  to create u201CZ u201Cout put type for picking list copying standard out put type( EK00). Which T- code I have to use or  which path  , I  have to follow in IMG  .
    I want to create u201C Z u201Ccondition type for picking list , copying   EK00 which is standard condition type for picking  list .
    Thanks u2026

    it is part of V4 application, if you dont see V4, use tcode v/38 .... there you will find it.

  • How Can I define itab for VBFA in SD_SALES_DOCUMENT_PREFETCH??

    Hi Experts,
    Am using FM of SD_SALES_DOCUMENT_PREFETCH to pull the data, like,
    CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'
        EXPORTING
          i_sales_view  = wa_view
          i_memory_read = 'A'
        TABLES
          i_vbak_keytab = t_vbeln
          fxvbak        = t_vbak
          fxvbap        = t_vbap
          fxvbep        = t_vbep
          FXVBFA        = t_vbfa.
    DATA: wa_view TYPE order_view,
          t_vbeln TYPE TABLE OF sales_key,
          t_vbak TYPE TABLE OF vbak with header line,
          t_vbap TYPE TABLE OF vbapvb with header line,
          t_vbep TYPE TABLE OF vbepvb with header line,
          t_vbfa TYPE TABLE OF VBFA with header line,
          t_vbfa_pgi TYPE TABLE OF VBFA with header line.
    Am geeting DUMP, coz of  t_vbfa_pgi TYPE TABLE OF VBFA with header line.
    so, pls, let me know that,
    I tried also like,
          t_vbfa_pgi TYPE TABLE OF VBFAvb with header line.
          t_vbfa_pgi TYPE TABLE OF V45I_VBFA_TABL with header line.
          t_vbfa_pgi TYPE TABLE OF V45I_VBFA with header line.
    BUT NO USE!!!!!!!
    1) How I hv to define the t_vbfa in my prog.
    thanq

    Hi Srinivas,
    Try this
      DATA t_vbfa TYPE v45i_vbfa_tabl WITH HEADER LINE.
    Also check FM BAPISDORDER_GETDETAILEDLIST for the declaration.
    Hope this helps
    Thanks
    Lakshman

  • Google toolbar, amongst others no longer works! When is the path for this coming out?

    Google toolbar addon (along with many others) no longer works with Firefox Ver 5. Are you sorting this problem out??

    Each add-on developer is responsible for testing their add-on for Firefox 5 and then updating it for Firefox 5.
    The Google Toolbar '''7.1.20110512W''' version works in Firefox 5.0 by using the Compatibility Reporter extension, I tried it myself due to the large number of postings about GTB problems. <br />
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/

  • Can't define generics for a method

    I have a class with the following method:
    public <E extends T> E getTopSelected(Class<E> cls)
    I'd like to call getTopSelected(null). However, this causes the error:
    type parameters of <E>E cannot be determined; no unique maximal instance exists for type variable E with upper bounds T,T
    I know that I'd like E in this case to be JPanel. Is there a way to call this method so that it knows that E should be interpreted as JPanel while still passing 'null' to the method?
    Mark McKay
    http://www.kitfox.com

    Short Answer - NO
    long answer - assuming that this null stuff is a sort of default implementation then it might be useful to introduce an overloaded method with no arguments,
    public JPanel getTopSelected() { ... }BUT you'd need to know at the call site whether you had null or not so you could call the right method.
    Bruce

  • A "stillborn" thread - can someone define it for me?

    I've never come across this terminology before - anyone know what it means?

    I don't recall hearing the term before either, but my guess is it would be an instantiated Thread instance which never had the start() method called.

Maybe you are looking for

  • My Illustrator CS6 will not launch

    I was working with an AI file in Illustrator today. Everything was working fine and I made some edits and placed the file in my inDesign document.  I saw another change I wanted to make so I right clicked on the file and selected Edit with Illustrato

  • Apple display

    ok on the clear flat apple display did they all just have adc or did some have dvi

  • Unable to open Business Rules in EAS

    For some reason, I all of a sudden cannot open business rules in EAS. I get the following errors: Error while sending command to HBR Server running within the EAS server. Detail:Server returned HTTP response code: 500 for URL: http://usnbka091p:10080

  • I have two ipods and they both stopped working on my home computer.

    My Ipod 4gb has worked great until know. I plugged it in and it doesn't show up on my computer any longer. I took it to work and it worked fine. Is this a USB port issue or could we have messed with the setting during a upgrade? or, does the memory a

  • How to run FCP on an iBook without Quartz Extreme?

    Hi, I would like to be able to run FCP 5 on my existing iBook G4 (1.2GHz with 512MB RAM). Soundtrack Pro and DVD Studio should run fine but I believe FCP will not launch without a Quartz Extreme graphics adapter (and I don't have the cash to upgrade