Using jrun and properties files

For some reason my while deploying, the jsp cannot find the .properties file. I've tried putting it in almost every single directory on the server. Can anyone help???
Thanks

The .properties files must be in the classpath that JRun is using. There should be a <something>\classes directory in your CLASSPATH that JRun's using, try putting it in there.
Take Care,
Rob
null

Similar Messages

  • Useful logs and trace files

    Hello experts, for our Netweaver AS administration, I am in charge of periodically checking logs and trace files. I would like to know which are the most useful logs and trace files and the information each one will hold. I am familiar with "DefaultTrace.trc", and as of today it is the only one I have used, but I believe I should also be looking at other logs and trace files.
    Any suggestions?

    Hi Pedro,
    If you are talking about JAVA only system defaulttrace is the best log/trace to look, there are other log files like application log, but maybe the best way to check you logs is using NWA (NetWeaver Administrator) on the following URL on your JAVA system:
    http://<hostname>:<port>/nwa
    From there you need to go to Monitoring -> Logs and Traces and then Predefined View/SAP logs.
    My other recommendation is to change the severity level to ERROR for all you JAVA component within the Visual Administrator -> ServeNode -> Services -> Log Configurator -> Locations, otherwise it is possible that you see a lot of garbage on the defaulttraces. Anyway you can change the severity level per component, on demand, to investigate any possible problem.
    The work directory is very imporant and maybe you can also check the file "dev_serverX" that also will give you information about any out of memory conditions and garbage collection activity if you have these values set for the server node using the config tool:
    -verbose:gc
    -XX:+PrintGCDetails
    -XX:+PrintGCTimeStamps
    You can find more information on here:
    http://help.sap.com/saphelp_nw70/helpdata/en/ac/e9d8a51c732e42bd0e7de54b9ff4e2/content.htm
    Hopefully this help you, let me know if you need more information,
    Zareh

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

  • I need to open and use Excel and Word files on my iPad, which software need to get?

    I need to open and use Excel and Word files on my iPad, which software need to get?

    The options include :
    Apple's Pages app for Word docs and Numbers for Excel spreadsheets
    There are also third-party apps which support both word and excel in the one app e.g.Documents To Go and QuickOffice HD

  • Java Internationalization and .properties files

    Hi everyone,
    Isn't it problematic that the way to internationalize your java apps ( .properties files ) doesn't support UTF-8 and you have to user gibberish looking unicode escapes. Some will say that you don't need to write and the converters or editors will handle the ascii conversion but the requirement for such a intermediate process doesn't seem right. Sometime you have to edit some string on the server and it should be human readable using text editors that support UTF-8. I thought loadFromXML and storeToXML methods that came with java 1.5 seemed to solve the problem but than noticed that PropertyResourceBundle doesn't support xml properties files. Is backwards compatibility the reason that properties files aren't utf-8 by default?
    Thanks
    Bilgehan

    Try PRBeditor (http://prbeditor.dev.java.net).

  • How to use jsp and xhtml files in an application

    This is web.xml file,
    <web-app>
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.xhtml</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    </web-app>
    If i configure like this, i am not able to work with jsp file.
    So, how to configure web.xml file to work with both jsp and xhtml file.
    Thanks,
    Vinutha.

    Hi Sam,
    To Use properties file you need to keep the properties file in a location and in the code you need to mention the path from where it should read in the runtime.
    Fuego.Io.PropertiesFile propfile;
    propfile.load(fileName : "<Path: C:/sample.properties>"); //Path: Place the properties file in the respective directory/drive and mention the path
    String val = propfile.get(key : "One"); //One - is the key against which the value should be mentioned in the properties file like <One = 1>. It should return 1
    logMessage("Value: " + val);
    To use the Enum in your project first create a Module in your catalogue component and then right click on module create New Enumeration say ProcessStatus
    Uncheck the Is Sequential if you want to keep key/value as pair. Click on add +* and mention the Name and Value say ABORTED as Name and Value as Aborted. To use it in your project conditional path write the condion as somevariable == String(ProcessStatus.ABORTED)
    Hope this will help you.
    Bibhu

  • NT Realm and Properties Files

    Hi,
    Does anyone experience similar problem. I am using NT Realm using a user already define in my NT domain. The properties File for WLS required that password be present for the system user.
    Having this when I start weblogic, I can log onto WLS with password define for the system user in NT domain as well as the funny password I put in the properties file just to fill the requirement.
    I thought that the password define in NT domain should prevail over the one define in the properties file. Is there any solution around this? Any help will be greatly appreciate?
    Thanks.
    Amen Akakpo

    hi,
    use PreferredMaxBytes=0 in the config.xml something like.
    <NTRealm Name="MyNTRealm" PreferredMaxBytes="0"
    PrimaryDomain="xyz.com"/>
    thanks
    kiran
    "Marco Righetti" <[email protected]> wrote in message
    news:3cc745f8$[email protected]..
    >
    I´m facing a problem with JVM when configured my NT Security Realm in WLS6.1 SP2.
    NT server 4 SP6a. When WLS started, I got message reporting ACCESSVIOLATION at module
    NTAPI32.DLL (outside JVM) in Function: LocalGroupEnum. After teh WLS isterminated.
    The user that start WLS has rights in Domain as part of system and tokensand he
    is member of Administrators (both Local and Domain groups)
    Does anyone know what is happening ?
    Regards
    Marco

  • I18n:bundle and properties files

    Hi,
    I'm currently developing a multi-language web site with some users having local administration roles for their own country.
    I need to provide online resource translation feature. So I made pages for editing properties files.
    The problem is that the files are correctly updated but the pages still show old values unless webapp is restarted.
    I tried to clear the cache of the ResourceBundle class (by getting the cacheList class field) but it didn't change anything to the problem.
    Any help on this ?
    Thanks in advance.

    Sorry, I forgot about my post in this forum...
    I solved this problem by developping an alternative implementation of the ResourceBundle class meeting my needs, and corresponding taglib upon it to use in my pages.
    This works fine.

  • Jar file and properties file

    Hi all,
    I have a jar file packaged as com.company.java located in $JAVA_HOME/jre/lib/ext. It will read a properties file when it is initialized. As I know, properties file needed to put under $CLASS_PATH. So I put it under $JAVA_HOME/jre/lib/ext also. However, the JAR file failed to load the properties file.
    Below is a part that in JAR file for getting properties file.
    ResourceBundle rb = ResourceBundle.getBundle("abc",Locale.getDefault());
    s=rb.getString("key1");
    } catch (MissingResourceException e) {
    s=null;
    e.printStackTrace();
    Do I put the properties file in wrong location?
    Where do I put it to make it work?
    Rgds,
    unplug

    by default you have 3 class loaders that load classes as well as read resources:
    The bootstrap classloader (for the core classes)
    The extension class loader (finds anything in any .JAR placed in $JAVA_HOME/jre/lib/ext/ [which is the home directory for "extension modules"])
    And the system class loader (looks along the classpath, finds files inside JARs [listed in the classpath] and in normal subdirectory structures [of base directories listed in the classpath] that mirror the hierarchy of Java packages)
    Any of these is supposed to consult the previous loader on the above list first, and try a lookup on its own only if the previous loaders did not find a class.
    ResourceBundle.getBundle(String, Locale) uses the classloader of its caller to look for the properties. If your method calling getBundle() was called from another method inside your extension module it will first consult the extension classloader (which first consults the bootstrap classloader) and will not be able to use the system classloader. So you can place anything in the classpath but it won't help. And the extension class loader can only look into JARs, not plain package directories.
    If the getBundle() method were called directly from the application code, however, it will use the system class loader to locate the properties file.
    There is a method ResourceBundle.getBundle(String, Locale, ClassLoader) where you can pass in e.g. the system class loader if you know how to get it, so this might help. The application code would determine its own class loader and pass it to the method of your your extension module.
    But I am not sure that you should place the properties file in $JAVA_HOME/jre/lib/ext/ since this is intended for Java extensions rather than normal user code, it normally does not show up on the classpath. Also, if you place it along the classpath, you have to pass in the classloader to be used since your code was loaded by the extension classloader and has no immediate knowledge of the system classloader.
    But perhaps it would be wiser to load your resource bundle reader in the system classloader, like any other application code: Remember that classes loaded by the extension classloader have higher security privileges than normal application code (the security policy file that you can edit refers to application code!) and it is questionable whether a resource bundle reader needs that privileges. If it does not, you might just place it in the classpath rather than the extension directory. Then it is quite natural that a properties file will also be found on the classpath.

  • Using archivelog and control file from other Oracle server

    I am still bothered with my backup process.
    I have 2 AIX boxes (same model, say A and B); both have BAAN 5 and Oracle 10g R2 on. Right now my colleague insists to use the export pump (cold backup) from Prod Oracle server (A) to restore the Oracle server on Box B. The Prod server has the archivelog mode turn on. But it will miss any transaction data from import pump till the crash point of Box A. So this is my confusion.
    Can I pass the control files and archivelog files form Box A (prod server) to Box B and use them to restore the Box B as the latest Prod server? How?
    I tried to convince them to use the RMAN backup? But not successful?
    I think the best way is probably to use the Oracle Data guard. However, there is always one concern to my manager and colleague, that such process will cause the data on the restored server (failover, Box B) not recognizable by the BAAN, which define the objects (tables).
    Thanks

    Performing a logical backup is not useful to restore to the point of failure. The only valid and available option is a hot backup/archivelog mode. Your recovery manager backup perform a controlfile and redologfile backup, so those can be restored at the destination. You must take care of the way you perform the backup, and ensure the paths where your backup is being deposited are visible by the second node. A shared storage with same mount points is suitable in this case. A tape robot configured at both nodes is also a suitable solution.
    Recovery manager perfoms a controlfile and spfile restore, too. This rman command perform the action:
    SET DBID <DBID of the database,for which you want to restore the controlfile>;
    RESTORE CONTROLFILE FROM <name_of_backupiece_which_contains_the_controlfile backup>';
    I don't see any problem on the recovery manager side, and technically speaking, on the Oracle side it is perfectly possible to restore your database at a remote location. I don't know what happens on the BAAN side, if you are required to have it configured to be operative on the target node. You could try to clone your database at the node B, configure BAAN and prepare the proceduere in case of failure.
    Configuring a dataguard is also a recomended action. So it is to think about Cold Failed Over clusters. I have recently performed a CFC configuration with BAAN. No problem it works smoothly.
    ~ Madrid.

  • WEB-INF and properties files

    okay, this may be really naive and maybe i'm missing some key piece of
    documentation, but i'm missing something regarding the file structure with
    iplanet enterprise 4.1 on solaris.
    in my /usr/local/netscape/suitespot there's a docs directory that is the
    default docs directory.
    I've created a /WEB-INF directory under docs and a /classes directory under
    that. I've placed a jay.properties file in the /WEB-INF/classes directory,
    but when I try to access that through a servlet instantiated bean, I get an
    error from the ResourceBundle call, telling me that it can't load that
    properties file.
    I have two questions:
    1. did i build the WEB-INF directory in the correct place (ie - is this the
    standard way of working under the iplanet server) - this doesn't seem to be
    supported by the admin server in the sense that i can browse this directory,
    when i'd expect that iplanet would build in some basic security around the
    WEB-INF directory
    2. what do i name and where do i put the properties file? should it be
    jay_en.properties? i've tried a number of different scenarios with no luck.
    thanks...
    jay

    Why would you create a WEB-INF directory on the web tier?
    WEB-INF is a directory with a special meaning to the web container. All
    of your properties files and such will need to be placed on the
    application server tier, in the WEB-INF directory that was automatically
    created there. And you can do that just be properly placing them in the
    WAR file.
    David
    Jay Wright wrote:
    > okay, this may be really naive and maybe i'm missing some key piece
    > of documentation, but i'm missing something regarding the file
    > structure with iplanet enterprise 4.1 on solaris.
    >
    > in my /usr/local/netscape/suitespot there's a docs directory that is
    > the default docs directory.
    >
    > I've created a /WEB-INF directory under docs and a /classes
    > directory under that. I've placed a jay.properties file in the
    > /WEB-INF/classes directory, but when I try to access that through a
    > servlet instantiated bean, I get an error from the ResourceBundle
    > call, telling me that it can't load that properties file.
    >
    > I have two questions: 1. did i build the WEB-INF directory in the
    > correct place (ie - is this the standard way of working under the
    > iplanet server) - this doesn't seem to be supported by the admin
    > server in the sense that i can browse this directory, when i'd
    > expect that iplanet would build in some basic security around the WEB-INF
    > directory
    >
    > 2. what do i name and where do i put the properties file? should it
    > be jay_en.properties? i've tried a number of different scenarios
    > with no luck.
    >
    > thanks... jay
    >
    >
    >

  • EAR file and properties file

    Hello,
    I am wondering if an application (java classes for instance) can read a .properties file inside the ear package, when the application is deployed ?
    (only reading of course)
    Thank you

    I'd recommend using ClassLoader.getResourceAsStream to access the properties file.
    This means the file needs to be in the resource path of your classloader. In WLS, an easy way to do this is to have it in the APP-INF/classes directory of your EAR file.
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Using fusion and sharing files with mac

    I am getting a Mac Airbook and am going to be running Fusion from VMWare.  I have an external Western Digital drive that I want to use to transfer my files to the Mac.  Two questions:
    1.  Will the Passport software or at least the files - be recongnized by the Mac?
    2.  Does the Mac share the files with Fusion or do I need separate folders?

    Welcome to the Apple Support Communities
    1. Your Mac will recognize the external drive without any problem if it's formatted with FAT, NTFS or exFAT. Note that OS X can't write into NTFS drives.
    2. Your Mac can share files with a virtual machine if you install VMware Tools onto the virtual machine

  • Students unable to use Upload and Manage Files

    Our students have been unable to use the _Upload and Manage Files_ function since last week. They receive an *Access Denied* message as soon as they click the link. Here is our debug page:
    iTunes U Access Debugging
    Received
    Destination brockport.edu
    Identity Empty string
    Credentials Student@urn:mace:itunesu.com:sites:brockport.edu:classes:200901-1067-DCC-400-61
    Time 1232465069
    Signature aee5d3665e6350cb0e87df99810f690f4b7931110e85c4e016a86345cea63c3e
    Analysis
    The destination string is valid and the corresponding destination item was found.
    The identity string is valid but provides no identity information.
    The credential string is valid and contains the following recognized credential:
    1. Student@urn:mace:itunesu.com:sites:brockport.edu:classes:200901-1067-DCC-400-61
    The time string is valid and corresponds to 2009-01-20 15:24:29Z.
    The signature string is valid.
    Access
    Because the received signature and time were valid, the received identity and credentials were accepted by iTunes U.
    In addition, the following 2 credentials were automatically added by iTunes U:
    1. All@urn:mace:itunesu.com:sites:brockport.edu
    2. Authenticated@urn:mace:itunesu.com:sites:brockport.edu
    With these credentials, you have browsing and downloading access to the requested destination.
    There is a tab with +Drop Box+ access for Students and I even changed the page access to Shared for Students, but nothing has helped.

    Were you ever able to get this resolved? We have the same issue.
    Resolved, yes, to a point. After doing some extensive reading, I was able to determine that our fatal assumption was that the podcast media files would be hosted by Apple. According to at least one source, Apple has not offered hosting to new iTunesU accounts since January 2009.
    Therefore, the reason we did not have a button for "Upload and Manage Files" is because there was no place for us to upload them to.
    I have successfully attached feeds from both MobileMe and Podamatic and we are in the process of setting up our OS X Server with Podcast Producer. We will host the feeds locally and make them available through iTunes U, blogs and other channels.
    --Brad

  • How to use Dlls and Header files in my java Code?

    Hi All,
    I want to make use of dll and header files of DataStage, from my Java Interface.
    i am buliding a product where i need to contact DataStage server from my Java Code alone, For this they provided dlls and header files
    Now i wan to make use of them and need to perform DataStage operations from my Java Interface.
    Can any on help out me regarding this?

    Try Java Platform SDK for native function calls without JNI writing code, like it done in .NET languages.
    For MS Windows:
    http://www.simtel.net/product.php[id]100916[SiteID]simtel.net
    For Linux/Unix:
    http://www.simtel.net/product.php[id]117719[SiteID]simtel.net

Maybe you are looking for

  • How to switch my Itunes library from External Drive to Internal drive

    I recently formated my hard drive and backed up all my tunes to an external drive. When the computer was back and running I imported my tunes from the external drive to my Itunes. However itunes still reads music from the external even though the mus

  • A few questions from a new iMac user!

    So far I am loving this computer! However there are a few things that I can not figure out how to do and really dont have time to go to the store for a class at the moment. So hopefully you will be able to help me out. 1. We have iWorks installed and

  • Jpa trouble

    hello can anyone help me with this problem atm i'm making a project which uses EJBs (with JPA) and some fields in the EJBs get auto generated when persisting an EJB entity to the database Writing to the database and reading out of it works perfectly,

  • JClient status bar doesn't react to some panels?

    Hi, JClient 9.0.5.2/10.1.2beta The status bar doesn't react to all data bound panels in a same binding context? I have a main form with a tabbed panel. Each tab panel is composed of ADF bound panels. All those bound panels receive their Binding Conte

  • Statement,Prepared Statement and callable statement

    Hi, Please let me know in which scenario we are using Statement,Prepared Statement and callable statement. and which is efficient one among the above. Thanks in advance