Should RequestLocale.properties file included in pipeline..?

Hi All,
I created a RequestLocale.properties file.. should that be included in the Pipeline services.. And is it mandatory to create Java Class file for the RequestLocale.properties (i.e i just created .properties file without creating Java Class)..?
Thanks in Advance,
VishnuVardhan Bovlla

for 2nd part of your question ,
no - it is not mandatory to create a java file - unless you want to override/add some method.

Similar Messages

  • Where should .properties file go

    In a JSF Application being developed with NetBeans
    should a properties file go with my Java source code files somewhere under
    src/java
    or is it better to create a
    web/WEB-INF/classes
    directory and put the properities file there?

    Put it outside of the project. So that you don't need to redeploy/reinstall the application/EAR to the appserver when you change the propertiesfile. For example /ext/appserver/properties or something like. Of course put this map in the classpath.

  • JSP and location of .properties file

    Hi,
    I have a directory in my C:\apache\tomcat\webapps directory entitled "ignmDBInt".
    I have a jsp file in this directory that works successfully. I would like it to open a .properties file. However, it cannot be found.
    Where should this .properties file be located?
    My code to access the .properties file is below.
    //opent the config file and get the field names
    ResourceBundle myResourceBundle = ResourceBundle.getBundle("Properties");       
    String fieldNames[] = myResourceBundle.getString("fieldNamesDelimited").split(",");
    String properNames[] = myResourceBundle.getString("properNamesDelimited").split(",");

    That last reply fixed it. Thanks!
    I didn't realize you had to set JSPs up like servlets.

  • Problems with struts MessageResources.properties files

    hi,
    I am a newbie in using struts. I have the following resources.
    Resources:
    java:j2sdk1.4.X
    struts:1.2.4
    webserver:tomcat 5
    jsp:2.0
    servlets:2.4
    IDE:Ecilipse 3.0 IDE
    Problem: I have copied the struts_blank.war file into tomcat webapps dir. Inside Ecilipse I create a new project and import the struts_blank.war file into the project. I type the URL (http://localhost:8080/proj_struts/Welcome.do)and it works file. However if i create any formbeans or any other java classes, the MessageResources.properties file gets deleted from my classes folder in my dir. What am i doing wrong. Is there any plugin for struts for Ecilipse.
    Questions:
    to be specific, where should/which folder should these .properties files be located. Should they be in classes or src folder under WEBINF?. I have seen the entry in strutsconfig.xml file. All it has is the following element relating to .properties.
    Fixes tried:
    I tried copying the MessageResources.properties file into the sources folder
    but i am not sure how to configure the Eclipse so that it reads the .properties file file from src folder insted of classes. I am definately sure thisis a dumb sol..but i donno wht else to do....
    <!-- ======================================== Message Resources Definitions -->
    <message-resources parameter="MessageResources" />
    It doesnt even say where is it looking(which folder).....
    Could some one throw some light on this issue and guide me thru this ordeal
    Regards
    AK

    Problem: I have copied the struts_blank.war file into
    tomcat webapps dir. Inside Ecilipse I create a new
    project and import the struts_blank.war file into the
    project. I type the URL
    (http://localhost:8080/proj_struts/Welcome.do)and it
    works file. However if i create any formbeans or any
    other java classes, the MessageResources.properties
    file gets deleted from my classes folder in my dir.No idea why this should happen.
    What am i doing wrong. Is there any plugin for struts
    for Ecilipse. http://easystruts.sourceforge.net/
    Questions:
    to be specific, where should/which folder should
    these .properties files be located. Should they be in
    classes or src folder under WEBINF?. I have seen the
    entry in strutsconfig.xml file. All it has is the
    following element relating to .properties.WEB-INF/classes, if nothing is specified :)
    Fixes tried:
    I tried copying the MessageResources.properties file
    into the sources folder
    but i am not sure how to configure the Eclipse so
    that it reads the .properties file file from src
    folder insted of classes. I am definately sure thisis
    a dumb sol..but i donno wht else to do....This solution may not be so dumb after all. The only thing you missed out was that Eclipse doesn't copy any files other than classes. Maybe a custom Ant script would have done such a trick :)
    <!-- ======================================== Message
    Resources Definitions -->
    <message-resources parameter="MessageResources"
    ces" />
    It doesnt even say where is it looking(which
    folder).....As I said earlier, it's looking in WEB-INF/classes

  • Where to include the jpos.properties file?

    Hi,
    We have a code that needs to be run. I have used the netbeans to do it. I understand that netbeans has its own environment variables that makes the application independent. The code works in netbeans but when i try to run it in the command line, this appears:
    "jpos/res/jpos.properties not found"
    As i had traced it, the directory(where jpos.properties resides) which i added in the Libraries was not copied in the dist folder. It says that it "...is a directory or can't be read. Not copying the libraries."
    It is very important that this jpos.properties be copied since there are a lot of abstract classes used in the code.
    Does anyone know where i should include this jpos.properties file?
    thanks. :)

    I've already made it run through the command line. I just included the jpos.properties in the jar package.
    Thanks to all the replies.
    Apology to someone who was bugged due to my crosspost.

  • [svn] 2200: The main package will now also include the ja swc' s and properties files.

    Revision: 2200
    Author: [email protected]
    Date: 2008-06-24 07:46:04 -0700 (Tue, 24 Jun 2008)
    Log Message:
    The main package will now also include the ja swc's and properties files.
    -it will not include the samples, these will still be in the ja zip
    bug:http://bugs.adobe.com/jira/browse/SDK-15852
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15852
    Modified Paths:
    flex/sdk/branches/3.0.x/build.xml

    Hi,
    First up thanks for helping out, I really appreciate it.
    Is there a way to change that or should I simply add the file to the Classpath?
    The config file at present sits in c:\Temp\ESFGFL\servicelayer\config\maysqlconfig.properties with the code in the servicelayer directory.
    My classpath is set as .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\Program Files\Java\jre6\lib\javamail-1.4.2\mail.jar
    What do I need to change here? Ultimately te code will be on a servera nd so will the config file but learning some lessons by testing locally is proving invaluable.
    Thanks again for your help
    nathj

  • How to include the characters " " and " " in a XML properties file.

    hi
    including the following prop entry gives me the error "Element is not closed" error message.
    <entry key="test">can't include chars < and ></entry>
    But i need to include the chars "<" and ">" in my xml properties file.
    please help.
    thanks

    Try &lt; and &gt;
    Dave Patterson

  • EJB project IDE build dos not include properties files

    We have property files also which we want included as part of the build process
    for EJB projects but if we use the IDE build it does not include them. We have
    to therefore export the IDE build and customize it to include *.properties like
    this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 --> <zipfileset dir="${project.local.directory}" includes="*.properties"
    /> </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within an EJB project i.e.
    include properties files also.

    Hey Jamie,
    Currently there is no support to include other .properties files into
    the internal build. There's a build.properties that you get as part of
    an EJB project which you could place your values into and use that as
    your template for your team based development and check that into your
    source control.
    If you'd really like to get gross and hack Workshop a little bit you
    could modify the default EJB project template to use your .properties
    file for every EJB project you create. This would then splat a copy of
    your .properties file into the root of the EJB project.
    To do that you'd go to {your BEAHOME}\workshop\templates and crack open
    the ejb-project.zip template zip file and merge your settings into the
    existing build.properties file. This has the same
    effect as replacing the .properties file after you've created your
    project only it keeps you from having to perform that step each time.
    The downside of this is that each person on your team would then have to
    update that template zip file in their workshop installation. (I'd make
    sure to backup the original template file before performing this
    activity so you can always go back to the original template).
    Hope this helps,
    -Michael
    Jamie wrote:
    We have property files also which we want included as part of the build process
    for EJB projects but if we use the IDE build it does not include them. We have
    to therefore export the IDE build and customize it to include *.properties like
    this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 --> <zipfileset dir="${project.local.directory}" includes="*.properties"
    /> </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within an EJB project i.e.
    include properties files also.

  • Where should I place my properties file

    Hello,
    I am working with eclipse. I have created a class that reads a set of properties from a .properties file. Do you know in which folder should I place my file in order it gets read by my class.
    Sitomania

    I have created a class that reads a set of properties from
    a .properties file. Do you know in which folder should I place my
    file in order it gets read by my class.Anywhere in the classpath.

  • Properties files in a Java package not included in DC build

    We are developing a Portal Standalone DC and i have a JspDynPage component within it. and i need to do internationalization in  it. so as part of that i want to keep multiple resource bundles(properties) so that i could manage my properties files easily, For example
    MSS.properties
    MSS_es.properties
    ESS.properties
    LSO.properties
    since portal by default has no way to do this bcos it allows only one resourcebundle to specify in portalapp.xml file, i have kept the resource bundles in java package like
    com.companyname.portal.resources.
    when i export from NWDS with selection of "i want to add non java resources into jar " option from windows->preferences->enterprise portal ->application development studio, it exports all the properties files as part of the par and everything works. but when i do the DC build it ignores all my properties files and it is not working. any suggestions on how to resolve this??? does SAP provide any other way of handling multiple properties files inside a PAR?????

    We are using NWDS 2004 SP19.  and yes i have defined three default SCs as dependencies. I tested with 2004s NWDS and it seems work fine. I am able to resovle this issue by moving my properties files into another java DC and create public part in java DC and use those public parts in Portal application DC.
    So The problem of not including the properties files into Jar seems to be issue only in Portal Application DC not in Java DC. thanks everyone for the quick responses..

  • How to conifg jdeveloper10g to include properties files?

    hello
    in my project,i have a "param.properties" file,that contain the configuration info,i want to read it from my program.
    i put it under the "src" directory in my jdeveloper10g project,and hope it can be included in the "class" directory after compilation and package.unfortunately it CANN'T.
    i remember that jbuilder can be configed to include any kind of resource,but i don't know how can i config the jdeveloper10g to include the properties in the classpath?
    thank you!

    You can get JDev to "compile" (it doesn't really compile the properties file), and put it into your classes directory by adding it into the src directory and getting JDev to open it inside your project. Just make sure to put that properties file into the correct package for your code to reference it in the src directory (meaning just put it in the correct package folder in 'src').

  • Which properties file should be modified for DocumentBuilderFactory

    I am creating a Document object using the following lines of code. Unfortunately, the DocumentBuiderFactory, by default looks for a namespace org.xml.... Which means that I get a parsing error when I am not connected to the net. Can someone point out which properties file needs to be modified to prevent this error from occuring.
    // Build the request document
    DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = builderFactory.newDocumentBuilder();
    Document response = builder.parse(in);
    Thanks in advance
    Jimmy

    Did you ever figure this problem out? If so, could you provide me with some advice about it?

  • I had all my files, including bookmarks, backed up to my NAS when my hard drive failed. How do I import these bookmarks to Firefox on my new notebook? Is there a single HTML file I should be looking for on my NAS?

    I had all my files, including bookmarks, backed up to my NAS when my hard drive failed. How do I import these bookmarks to Firefox on my new notebook? I can easily find the folder "Favorites" on my NAS, but can't get Firefox to "see" this folder, or my bookmarks.

    If you open Firefox then Firefox will always use the default profile folder as found via profiles.ini on your system drive.
    You either need to import the file in your current default profile or copy the file to your current profile folder while Firefox is closed.
    Firefox 3 stores the bookmarks and the browser history in [http://kb.mozillazine.org/places.sqlite places.sqlite] and no longer creates an HTML backup by default.
    There are also (five) JSON backups in the bookmarkbackups folder within the Firefox profile folder.
    You can either copy the file places.sqlite to your [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] or import the most recent JSON backup from the bookmarkbackups folder of that old profile.
    See:
    http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See http://kb.mozillazine.org/Profile_folder_-_Firefox
    "Application Data" in XP/Win2K and "AppData" in Vista/Windows 7 are hidden folders.
    See http://kb.mozillazine.org/Show_hidden_files_and_folders
    Go to: Control Panel > Folder Options > "View" tab > under "Hidden files and folders", select "Show hidden files and folders".
    You may want to un-check the box "Hide extensions for known file types" to see the file extensions of all files.

  • Location of application-specific properties files

    I am using Tomcat 4.0.3 under WinXP Pro, and I am trying to get my
    application to "find" an application-specific properties file. I am having problems trying to determine which directory to put this file in.
    Here is the Java code I am using for this class:
    import java.util.Properties;
    import java.io.FileInputStream;
    public class ForumProperties extends Properties {
       private static final String DEFAULT_FILENAME = "/WEB-INF/classes/mystuff.properties";
       private static ForumProperties globalProps;
       private ForumProperties() {
       private ForumProperties(String fileName) throws Exception {
          this();
          load(new FileInputStream(fileName));
       public static ForumProperties getInstance() throws Exception {
          try {
             if (globalProps == null)
                globalProps = new ForumProperties(DEFAULT_FILENAME);
          } catch (Exception ex) {
             ex.printStackTrace(System.out);
             throw new Exception("Error loading properties file");
          return globalProps;
    }I have put the properties file in just about every directory I can think of to try and find out where it's supposed to be, but I can't get it to work. I can put the file into the "user.home" System property (which turns out to be C:\Documents and Settings\Administrator) and have it pick it up, but I would prefer to put the file into the path of the application.
    I have tried four different methods to load this file:
    1. load(new FileInputStream(fileName)); (same as above)
    2. load(Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName));
    3. load(this.getClassLoader().getResourceAsStream(fileName));
    4. load(getServletContext().getResourceAsStream(fileName));
    All of them fail for not finding the file except #4, but that's not the
    optimal solution as it requires a servlet context, which for "genericness of code reasons", I DON'T want to do.
    As an aside, I pulled the "java.class.path" from the System properties to see where it's pointing, and all it has in it is
    "<CATALINA_HOME>\bin\bootstrap.jar" with no other paths included.
    Is there an attribute or something in the server.xml or web.xml file I am forgetting to set, or another approach I should be taking?
    Bob

    See if this code fragment helps.
              String MAIN_FILE_PATH = "./BlueGnome/demos/Properties/DemoPropertiesFile.properties";
              java.net.URL url = ClassLoader.getSystemClassLoader().getResource(MAIN_FILE_PATH);
              System.out.println("PATH: resolved name = " + url);
              // Get the file.
              // We could just use FileInputStream here.  Then we would have
              // to provide a path that was meaningful to the system like
              //     c:\java\BlueGnome\demos\Properties\DemoPropertiesFile.properties
              // Doing it this way allows us to use generic directory
              // seperators and allows for it to search for the file using
              // the CLASSPATH.  That also allows for it to be in a jar file.
              java.io.InputStream is;
              is = ClassLoader.getSystemClassLoader().getResourceAsStream(MAIN_FILE_PATH);
              if (is == null)
                   throw new Exception("Resource File "
                        + MAIN_FILE_PATH + " not found.");
              aProperties.load(is);

  • Unable to find properties file in jar

    I have a jar file that looks like this from contents stand point
    c:> jar vtf csdsutility.jar
    0 Mon Oct 24 10:04:58 EDT 2005 META-INF/
    71 Mon Oct 24 10:04:58 EDT 2005 META-INF/MANIFEST.MF
    2633 Fri Oct 21 17:04:44 EDT 2005 csds/utility/JavaLogging.class
    1621 Fri Oct 21 17:04:42 EDT 2005 csds/utility/Logging.class
    868 Fri Oct 21 17:04:42 EDT 2005 csds/utility/LoggingMethod.class
    3204 Fri Oct 21 17:04:44 EDT 2005 csds/utility/TestLogging.class
    3004 Fri Oct 21 17:04:44 EDT 2005 csds/utility/Utility.class
    1142 Fri Oct 21 17:04:44 EDT 2005 csds/utility/WSLogging.class
    83 Tue Jul 26 21:59:26 EDT 2005 csds/utility/javalogging.properties
    If I include the jar file above in some other program it should find the
    javalogging.properties file correct? It's failing in the common code trying to find the properties file. I created a small driver that tests the common code and it is fine it just does not work off the jar file. Is there something weird about jar files and property files I don't know about? I thought when you included them on the java -classpath line it was like that code was part of your application and the path followed also.
    Thanks,
    Frank

    Are you using method getResourceAsStream? If so don't forget to properly add (or not) an "/" to the resource name as stated in Java API docs: if the resource name starts with "/", it is unchanged; otherwise, the package name is prepended to the resource name after converting "." to "/".

Maybe you are looking for

  • ITunes Can't Find Podcasts on my iPod Touch

    Since I upgraded to OS3.0 on my Touch, I have been unable to keep track of my Podcasts in iTunes (both 8 & 9). This has persisted despite upgrading my Touch to 3.1.1 and iTunes to 9.0.1.8. iTunes only finds 16 podcasts, even though I have 76 - so I c

  • Oracle BPM 12c: getting error while opening of bpm project in bpm composer

    Hi, I am importing bpm project into bpm composer from jdeveloper using PAM and export/import utility but I am not able to open it into the bpm composer. I am getting following error: javax.faces.el.EvaluationException: java.lang.NullPointerException

  • Is there a "Select all keyframes to the right" command?

    Say in a 16 minute composition, you want to select keyframes from 5 minutes to 16 minutes and shift them earlier in the timeline. Keyframes from 0 to 5 minutes do not change. Can you select multiple keyframes to the right of 5 minutes like this? Perh

  • Saturation lors de la mise à l'échelle

    Bonjour, je cherche à faire l'acquisition d'un signal en provenance d'un appareil de mesure des pressions. Cet appareil renvoit 1V pour 100mmHg et sature à 5V. Lorsque je branche un cathéter et que je fais pression dessus, j'obtiens pour une acquisit

  • Sound synchronization

    I've created a flash video in ProShow Gold from an avi file. In PS Gold the sound is synched to the people speaking. On the web at www.holocaustcenterbn.org the sound is out of synch with the speaker. Any ideas?