Problem loading resources file in JSP using f:loadBundle

Hi,
We are facing problem while loading our properties file in JSP using f:loadBundle.we tried the following way
<f:loadBundle basename="resources.ApplicationResource" var="msg"/>
This properties file is src java folder and also in WEB-INF-->classes->resources folder
but even then its not able to load.I made an entry in the faces-config for message-bundle. But of no use.
Any pointers would be of great help.

does your file calls
ApplicationResource.properties ?
If so is it in
the package resources ?

Similar Messages

  • Having problem loading resource file in WAR

    Forgive me to post it here, I'm not sure where I should post this question.
              I'm using weblogic 5.1 with sp 9. In an WAR file, I put an resource file
              myapp.dtd as the follwoing:
              WEB-INF/classes/myapp.dtd
              WEB-INF/classes/mypackage/MyHello.class
              In MyHello.java, I'm loading myapp.dtd using an absolute path:
              getClass().getResourceAsStream("/myapp.dtd")
              This fails and returns null.
              However, if I put myapp.dtd in the same directory as MyHello.class
              WEB-INF/classes/mypackage/myapp.dtd
              WEB-INF/classes/mypackage/MyHello.class
              and use a relative path:
              getClass().getResourceAsStream("myapp.dtd")
              This sucessfully load the resource file.
              Does anyone know the problem with the first approach? Thanks.
              -gecko
              

    A correction, both approaches seem to fail if I deploy it in a WAR file.
              However, both of them succeeded if I deploy it as an exploded WAR file. So
              the problem is not absolute path v.s. relative path. It is a problem in
              weblogic class loader's handling of WAR file. I think this is clearly a bug
              in weblogic.
              "gecko" <[email protected]> wrote in message
              news:3b8fc81f$[email protected]..
              > Forgive me to post it here, I'm not sure where I should post this
              question.
              >
              > I'm using weblogic 5.1 with sp 9. In an WAR file, I put an resource file
              > myapp.dtd as the follwoing:
              >
              > WEB-INF/classes/myapp.dtd
              > WEB-INF/classes/mypackage/MyHello.class
              > ...
              >
              > In MyHello.java, I'm loading myapp.dtd using an absolute path:
              >
              > getClass().getResourceAsStream("/myapp.dtd")
              >
              > This fails and returns null.
              >
              > However, if I put myapp.dtd in the same directory as MyHello.class
              >
              > WEB-INF/classes/mypackage/myapp.dtd
              > WEB-INF/classes/mypackage/MyHello.class
              >
              > and use a relative path:
              >
              > getClass().getResourceAsStream("myapp.dtd")
              >
              > This sucessfully load the resource file.
              >
              > Does anyone know the problem with the first approach? Thanks.
              >
              > -gecko
              >
              >
              >
              

  • Loading Vrml files in Swing using java3d loader

    I've got problems loading Vrml files in Swing using java3d vrmlLoader. It seems to be only able to load vrml files that contains simple geometry like squares, cones etc. But when it comes to complicated shapes like IndexedFaceSet, its a blank. Does anyone know why?
    What are the points to note when loading vrml files? Doesn't the code:
    vrmlLoader = new VRML97Loader(VRML97Loader.LOAD_ALL);
    and
    scene = vrmlLoader.load(loadUrl);
    load the entire vrml file? Is there any comprehensive tutorial or example that I can refer to? The fly through in Java 3d demo is too complicated. I'm still pretty new to this field. Thanks.

    Did you download the example VRML file I had listed?
    First make sure you test it with that one...it that works
    then maybe the VRML file you are using is not version
    #VRML V2.0 utf8
    ...Actually, I think you'd get some parsing error if you
    used a VRML v1.0, so that probably is not the issue.
    Do you have the vrml97.jar file in you path, maybe?
    Check you path in Windows by typing "path" in command window. If you have the vrml97.jar file then
    that's cool...if not then you must add it to your path.
    OR you can temporarily compile by invoking
    the -classpath <path> command....I think you'll have to
    do the same when running the code....so do:
    javac -classpath PUTPATHHERE TestVrml.java
    java -classpath PUTPATHHERE TestVrml
    If that doesn't work, do you have Java 3D installed?
    just checking...
    I'm kind of lost as to what to do beyond that....by the way, I double checked my files and and recompiled and
    reran them and they work fine. I've also checked them
    on a different computer at work and they work their too.
    So, long story short, it's something wrong on your end either with the java install or the vrml97.jar file not being in the path...I don't know much more.
    Let me know if anything worked.
    Mariusz Zaczek ([email protected])

  • Firefox cannot be closed; the following message appears: "Can't load resource file, can not run". How to solve this problem; I am using Windows XP SP3

    Whwn I want to close Firefox 9.x , a pop-up appears with the message: "Can't load resource file ......" . First I have to close this pop-up, then Firefox is closed. Also with other versions of Firefox I had this problem.

    i deleted the rdf and now the first window only (and any tabs in it) are maximised. i found this in the rdf
    <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    screenX="4"
    screenY="4"
    width="1008"
    height="461"
    sizemode="Normal" />
    i tried changing normal to maximised; no effect. either i need also to change the numbers (to match a maximised window) or ff ignores this. i want to be able to open different sites in different windows, and not have to maximise them manually. ff never used to be broken, why break this? what possible security flaw was fixed by screwing up ff to never open maximised unless u hack it or delete certain config files?

  • Problems loading RAW files from Canon 6D in Elements 10

    Elements 10 - Windows: I have been using the software for a couple of years and never had a problem loading RAW files from my Canon T2i ir 60D, however I just purchased a Canon 6D and when I try to load a RAW from the 6D I get Cannot open 'C:\User...CR2' because it is the wrong type of file.  I thought cameraraw 6.5 patch would be the fix but when trying to install I get "Error loading Updater workflow"

    Will the DNG files perform the same, meaning will I retain all the information that makes RAW important for processing?
    Yes. That's why DNGs were invented. Adobe has put a lot of work into the DNG format for this very reason.
    Raw files are proprietary and manufacturer specific. Raw formats change with every make and model of camera. Software must be updated for the new Raw format of every single camera. Adobe does an admirable job of upgrading Camera Raw for every new camera.
    DNG is also a Raw format but it's open source and works in any software which can read the DNG format. If camera manufacturers used the DNG format instead of their own Raw format, you would not have to upgrade Elements 10. But they don't, and probably never will, so you must upgrade the Camera Raw plugin (and therefore Elements 10 since it's not compatible with the new Camera Raw) to read the new Raw format from the 6D or add another step to your workflow with conversion to DNG first.
    See
    http://photographylife.com/dng-vs-raw
    http://www.adobe.com/products/photoshop/extend.displayTab2.html

  • Problems loading raw files from Nikon D750 to lightroom4

    problems loading raw files from Nikon D750 to lightroom4. Any thoughts?

    This is a recently produced model so raw support was only added in LR 5.7 / ACR 8.7, updates to LR 4 ceased about two years ago when LR 5 was issued.
    Options a.) Upgrade to LR 5.
    b.) Utilize the latest Adobe DNG Converter 8.8 to convert the nef files to dng format then you will be able to import the dng files into LR 4.

  • Failed to load resource file sqlcmd.rll- during EHP1 installation

    Hello all,
    We are installing EHP1 on Netweaver with MSSQL server 2005 SP2
    I am getting the error
    failed to load resource file sqlcmd.rll
    Please help
    Rohit

    It's always helpful to give as much information as possible when asking question. You did e. g. not specify
    - in which phase/when this error occurs
    - where this error message is coming
    - what has been done prior to this
    etc.
    so everything leading to answers could only be wild guesses such as "are the harddisks all mounted and available in the resource groups" or "search the filesystem for that DLL" etc.
    All we know is that "a DLL is missing".
    Markus

  • Problem loading XML-file using SQL*Loader

    Hello,
    I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
    Loader control-file:
    LOAD DATA
    INFILE *
    INTO TABLE BATCH_TABLE TRUNCATE
    FIELDS TERMINATED BY ','
    FILENAME char(255),
    XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
    BEGINDATA
    data.xml
    The BATCH_TABLE is created as:
    CREATE TABLE BATCH_TABLE (
    FILENAME VARCHAR2 (50),
    XML_DATA SYS.XMLTYPE ) ;
    And the data.xml contains the following lines:
    <?xml version="2.0" encoding="UTF-8"?>
    <!DOCTYPE databatch SYSTEM "databatch.dtd">
    <batch>
    <record>
    <data>
    <type>10</type>
    </data>
    </record>
    <record>
    <data>
    <type>20</type>
    </data>
    </record>
    </batch>
    However, the sqlldr gives me an error:
    Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    If I remove the first two lines
    "<?xml version="2.0" encoding="UTF-8"?>"
    and
    "<!DOCTYPE databatch SYSTEM "databatch.dtd">"
    from data.xml everything works, and the contentents of data.xml are loaded into the table.
    Any idea what I'm missing here? Likely the problem is with special characters.
    Thanks in advance,

    I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?

  • Problem keeping resource files for iPhone/iPad builds in sync

    I recently created a new target for iPad by upgrading my target for iPhone, which seemed to work fine. However, since then I have had problems when I make changes to the plist files that I have grouped under Resources.
    When I upgraded the target, it created a new folder for iPad resources called Resources-iPad. This only contained the nib files -all the other plist files I have containing data are still in the Resources folder.
    When I added a new plist file to Resources and try to load it using the bundle path, it gives me different paths for the iPhone/iPad versions, in .../Application Support/iPone Simulator/4.2/Application/...
    However, the path of the file I am trying to load is of the form myApp./MyFile.plist, and I can't seem to open the app in the bundle path directory in Finder.
    I've tried things like making clean, etc. Are there any steps you need to take to keep the resource files of the iPad target in sync with the iPhone one once it has been created?

    I created the new target using Xcode>Project>UpgradeCurrentTargetForIpad. This created another folder under .../Application Support/iPhone Simulator/4.2/Application/... with a different serial number. The new folder contains a new app, myApp-Upgraded, which corresponds to the bundle path it will use when this target is run.
    I presume it's due to the file path existing in the original app, but not in the upgraded one. The file will be found when the original target is run, either on the device or the simulator, but not when the upgraded target is run on either, but I don't know how to make the upgraded target reference the correct resources.

  • Unable to load multiple files to Essbase using MaxL and wildcards

    I have multiple data files to load:
    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    However, when I try to run the following I receive the following error:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename*.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Error:
    ERROR - 1003027 - Unable to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB/../../Filename*.txt].
    ERROR - 1241101 - Unexpected Essbase error 1003027.
    I can run the following fine without any problem, but this only deals with the first of several files, and I’d rather not hard-code multiple files since the number might vary in the future:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Any ideas? And how about ASO databases?

    JamesD wrote:
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    That is the tech ref for 11.1.2.2, are you on 11.1.2.2?
    Import Data
    11.1.2.2 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_imp_data.html
    11.1.2.1 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref_1112100/frameset.htm?maxl_imp_data.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • Accessing resource files inside Jar using Fat Jar Eclipse plugin

    Hi,
    I want to develop single JAR file that uses a set of other JAR libraries. I am using Fat Jar Eclipse plugin. It works fine. However, I have problem to access resources files (i.e. rdf file) using relative path from my classes. Is there any idea how can I pack, set classpath and use relative path in order to make it works.
    Thanks
    Zoran

    I have solved this problem. The problem was in a way how I have trying to access it. It should be like:
    URL fileURL = this.getClass().getResource("resource/myFile.rdf");
    Zoran

  • GWTMSTMP - Unable to load resource file

    I'm working on getting a script up and running for Groupwise 2012 and I need gwtmstmp to work. Whenever it's called, this error message is generated:
    Load of Resource File (/opt/novell/groupwise/agents/bin/../lib/gwtsaxce.fil) failed - error - 8209 for lang 'ce'
    Trying 'us' Resource File.
    Load of Resource File (/opt/novell/groupwise/agents/bin/../lib/gwtsaxce.fil) failed - error - 8209 for lang 'en'
    I'm running SLES-10 SP3 with Groupwise 2012 at the latest patch level.
    Any one with an idea of how I might resolve this problem?
    Thanks.

    In article <[email protected]>, Ssmusupport
    wrote:
    > I'm running SLES-10 SP3 with Groupwise 2012 at the latest patch level.
    >
    > Any one with an idea of how I might resolve this problem?
    >
    By any chance was this installed at one level of 2012 and then patched?
    It does feel like perhaps one was the Multilingual and the other was
    English only.
    The English only install I am looking at only has
    /opt/novell/groupwise/agents/lib/gwtsaxen.fil, not the ce one your
    system is looking for
    And while /opt/novell/groupwise/agents/bin/../lib/ does map to
    /opt/novell/groupwise/agents/bin/lib/ it does look odd, is it actually
    doing that?
    On a pair of GW 2012 sp2 English systems I am looking at right now.
    .agents/bin/gwtmstmp and .agents/lib/gw*en.fil are all dated March 25,
    2013 There are no .agents/lib/gw*??.fil other than the en ones.
    Andy of
    KonecnyConsulting.ca in Toronto
    Knowledge Partner
    http://forums.novell.com/member.php/75037-konecnya
    If you find a post helpful and are logged in the Web interface, please
    show your appreciation by clicking on the star below. Thanks!

  • Load resource file

    i used oracle terminal to generate a resourse file that define my mappings for the keys.
    i need to put a code to load the file automatically in the form "fmb file"
    it tried to do it in the command line for the short cut
    but again i need it within the .fmb file
    thanks

    I don't understand what you mean by within the fmb file. The resource file is picked up at run-time, therefore in order to 'use' it and get the keys remapped you must specify it on the runtime command that runs the fmx and and ensure that the resource file is in the correct place. I believe that it needs to be in the formsnn directory and possibly in the directory you initiate the fmx from.

  • Problem loading / writing files.

    Hi, im trying to create and load a file to the user's home directory as follows:
    File f = new File(System.getProperty("user.home") + "/settings.xml");
    if (f.exists() == false)
         try
              // If the file doesn't exist, create one.
              f.createNewFile();
              // Get the url.
              URL filePath = f.toURI().toURL();
    The file is created properly and exists in the proper directory. However, when i try to use the URL to write out to
    file later i get the following error:
    C:\Documents%20and%20Settings\User\settings.xml (The system cannot find the path specified)
    I believe this is due to the %20's within the URL, how can i remove / handle these? Am i doing something incorrectly?
    Also, if the file exists, i try to load it with the following code:
    URL filePath = this.getClass().getClassLoader().getResource(System.getProperty("user.home") + "/settings.xml")
    However the URL that is return is null and i dont know why.
    thanks for the help.

    Why do you want an URL for the file? Use the File object to create a FileInputStream or FileReader.

Maybe you are looking for

  • Fast refresh of "materialized view with joins only"

    Hi, My Requirement: I need to create a materialized view joining two tables. Table1 -> Does not have primary key Table2 -> Has a primary key I need to refesh the mat view only when DML commands are done on Table1 alone. And it will be better if i hav

  • How to know whether any item value got changed

    How to know in Apex whether any form item got changed. That will help me to know when the user will be pressing the "Apply Changes" button and I will popuplate the "User Modifed" and "Date Modifed" column values in the table. For now, I dont want to

  • Urxvt and zsh prompt

    Hello! I would like to run different instances of Urxvt using "-name", each one with a different zsh prompt. Is there any way to achieve this? "PROMPT=" works if urxvt is already open, but I can't seem to find a way to run it when it starts. Thanks.

  • Abort the current sequence file

    Hi, I have a main sequence file (with a number of test cases) calling another 2nd sequence file.  I like to abort from my 2nd sequence file if a paremeter returned is certain value (e.g. parameter.result == "1") from TestComplete.  What command can I

  • Mac Gimp, small question

    hi, in mac gimp, when i paste an image into the canvas, how do i adjust the size of the image (like in word, where you have the 6 circles around the sides that you can adjust to make the image bigger or smaller, and adjust the dimensions, etc.) Thank