UNable to locate Properties files from Servlets

I have a Web App deployed in the default domain (domain1)that contains a servlet which needs to read in values from a .properties file from the filesystem. However, whenever I try to use it, I always end up with a FileNotFoundException.
I tried keeping the properties file in the d:\Sun\AppServer7\bin as well as d:\Sun\AppServer7\domains\Domain1\server1\bin and still get the same exception.
Can anyone tell me where I need to keep the .properties file? FYI, I have deployed the same on Tomcat 4.x and the same app worked perfectly (with the prop file in d:\tomcat4\bin directory).
Thanks,
Chetan

Try the instance config directory. In your case, this is probably D:\Sun\AppServer7\domains\domain1\server1\config.

Similar Messages

  • Unable to load properties file from filesystem

    Hi,
    I have a client swing-applicatiion packaged in a jar-file. The application uses some resource files, including a xxxx.properties file to set defaults for the application. All resource files are included in the jar file and everything works as expected. I load the xxxx.properties file as follows:
    is_ = getClass().getResourceAsStream("/resources/xxxx.properties");
    Because it is not possibl to change any property values inside the jar-file without recreating this jar-file, i want to exclude the xxxx.properties file from the jar-file and put it in the folder containing the jar-file.
    So i have:
    drive:/folder/app.jar
    drive:/folder/xxxx.properties
    Now i read the xxxx.properties file from disk in stead of the 'resouce'-folder within my application (jar):
    is_ = getClass().getResourceAsStream("drive:/folder/xxxx.propoerties");
    but it doesn't work, the file isn't found.
    What am i missing here?
    Any suggestions?

    The best way to approach this is to include the properties file in the Jar as you originally did. If the user changes any property, save the entire set of properties to a sub-directory of user.home (perhaps based on the package name of the main class). Check for the copy in user.home before using the 'default' properties built into the Jar.
    Other places/ways to store the changed information.
    - java.util.prefs.Preferences
    - Assuming the app. has a GUI and can be deployed over a network, the JNLP API PersistenceService. Here is a demo. of the PersistenceService (http://pscode.org/jws/api.html#ps).
    Edit 1:
    I did not at first notice that this post was in Java Applet Development.
    <li> Applets can also (theoretically) use cookies to store information. This is prone to failure when users disable cookies.
    <li> To store information on the local file system (e.g. in user.home) or to use Preferences (AFAIU) would require trusted code.
    <li> If the user has the Next Generation Java Plug-In (Java 1.6.0_10+) it is possible to leverage the JNLP API services in an embedded & sand-boxed applet.
    Edited by: Andrew Thompson on Feb 1, 2011 9:32 AM

  • JDeveloper: unable to locate properties file

    Hello Experts,
    I'm working with JDeveloper11R1, and I need to load some information from a properties file.
    I copied the file config.properties both on the WEB-INF directory and in the com/project/ directory, but when trying to load with a class positioned also in the com/project directory..
            Properties prop = new Properties();
            try {
                prop.load(new FileInputStream("config.properties"));
    OR
                prop.load(new FileInputStream("/config.properties"));
    OR
                prop.load(new FileInputStream("/com/project/config.properties"));
    OR
                prop.load(new FileInputStream("/WEB-INF/config.properties"));I all the above situations I get the file not found error:
    java.io.FileNotFoundException: /com/project/config.properties (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.project.Loader.<init>(Loader.java:35)
         at com.project.Loader.main(Loader.java:133)
    Process exited with exit code 0.
    I guess that I should configure the Classpath in JDeveloper, but also loading the Directory from "Project Properties - Library/Classpath" it doesn't work.
    Could you please help?
    Thank you

    Hi Leyla,
    Try using ResourceBundle instead of Properties:
    ResourceBundle rb;
    try {
      rb = ResourceBundle.getBundle("com/project/config");
      ...This should work if your config.properties file is in com/project/ directory.

  • Unable to read Properties file from Java code

    Hi,
    The directory structure of my application is as follows:-
    My App
    ++++++ src
    ++++++++com
    ++++++++++readProp.java
    ++++++++resource
    ++++++++++message.properties
    I am trying to read the file as follows:-
    <code>
    public Static final string FilePath="resource.message.properties"
    Here the code to read the file. I tried using the following two techniques but to no use... :(
    File accountPropertiesFile = new File(FacesContext.getCurrentInstance()
    .getExternalContext().getRequestContextPath()
    + FilePath);
    properties.load(externalContext.getResourceAsStream(FilePath));
    </code>
    But none yeild any sucess while reading through the Bean class. please help...

    Your source code isn't there at run time, at least it shouldn't be, so the directory structure you've shown is irrelevant.
    If the file is in the corresponding position under WEB-INF/classes at runtime, the second technique should work, but you need to fix FilePath to agree with what it says under Class.getResource() and friends.

  • Unable to locate existing  file from unix using java program

    Hi
    I have created a file in unix using java program, file.createNewFile();
    And when i try to search for the same file using file.exists() it is returning false. Paths are correct. Can anybody help me out.
    Thanks & Regards,
    Prasanth

    In Linux FC5 using JDK1.6, this code         File temp = new File(System.getProperty("user.home") + "/abcdefghijklmn");
            System.out.println(temp.createNewFile());prints 'true' and the file is created with length zero.

  • Itunes seems to be unable to locate original file to play songs. Songs are in the itunes media file and playable direct from file. Preferences/advance file location is correct. Some files are playing and others aren't with no obvious pattern.

    Itunes is unable to locate original file when attempting to play music. Songs are in the itunes media file and playable direct from there. Preferences/Advanced file location pointer is correct. Some songs play but most don't. I did move files around a bit in an attempt to share music with another account on same computor, however this did not work so have returned file to original location. Please help, I am way outside my feild in this one. Ta.

    I have solved the problem. i think when I moved the media file back out of public to my account, I put it back into the wrong place and ended up with a media file inside a media file, inside another media file!! So I moved it again and fixed!! Now I just need to work out why i can't share with another account user of same computor.

  • Cannot seem to read properties file from JSP

    Hi all,
    In an ISA 4.0 application I want to read a properties file from a JSP to decide whether or not to execute some specific JavaScript code. I want the properties file because in it I can easily configure this externally. I put my properties file in /WEB-INF/classes.
    I develop on an environment using Tomcat where this works fine. On an acceptance machine using the SAP J2EE engine however this won't work, to my surprise. Can anyone give me a suggestion on why my properties file is not read?
    Here's the Java scriptlet code:
    UserSessionData userSessionData = UserSessionData.getUserSessionData(session);
    // theme will be something like "themes/zester":
    String theme = (String) userSessionData.getAttribute(Constants.THEME_KEY);
    boolean showScript = false;
    int slashIndex = theme.indexOf('/');
    String themeKey = null;
    // get the "zester"-like part from the theme:
    if(theme != null && slashIndex > -1) {
      themeKey = theme.substring(slashIndex + 1);
    Properties props = new Properties();
    InputStream is = application.getResourceAsStream("/WEB-INF/classes/script.properties");
    if(is != null) {
      props.load(is);
      is.close();
      Enumeration keysEnum = scriptProps.propertyNames();
      while (themeKey != null && keysEnum.hasMoreElements()) {
       if(theme.toUpperCase().endsWith((String) keysEnum.nextElement())) {
        showScript = true;
        break;
       showScript = false;

    Hi Kishor,
    Thank you for taking the time!
    I agree, this issue may have to do with the deployment. There is however a remark in the <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html">ServletContext</a>  interface documentation on methods <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html#getResource(java.lang.String)">getResource()</a> and <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html#getResourceAsStream(java.lang.String)">getResourceAsStream()</a> that may also be of interest here:
    "The servlet container must implement the URL handlers and URLConnection objects that are necessary to access the resource."
    Is this remark of relevance to the subject, or is this thought too far fetched? Mind you, the documentation also states that "This method allows the servlet container to make a resource available to servlets from any source. Resources can be located on a local or remote file system, in a database, or in a .war file". It should, therefore, be possible to read a file from disk???
    Cheers,
    Peter-Jan Bosch

  • B2b unable to pick the file from xml gateway

    Hi All,
    I am taking a scenario where B2B picks the files from xml gateway and drop the files in FTP folder. I modified the XML gateway inbound and outbound, i has given my user credentials(unmae, host ,pwd ,sid, port). In agreement in the place of internal delivery channel i has given XML gateway outbound.
    Still its unable to pick the files from xml gateway.
    Clarify my understanding please
    While b2b picks the files from xml gateway, It will pick from ECX_Inbound or ECX_Outbound?
    Here i am attaching the logs:
    2010.01.15 at 07:32:51:101: B2BStarter thread: B2B - (DEBUG) B2BStarter - Context Initialized
    2010.01.15 at 07:32:56:366: B2BStarter thread: B2B - (DEBUG) B2BStarter - Start B2B
    2010.01.15 at 07:32:56:369: B2BStarter thread: B2B - (DEBUG) B2BStarter - Starting B2B
    2010.01.15 at 07:32:56:392: B2BStarter thread: B2B - (DEBUG) B2BStarter - configuration obtained
    2010.01.15 at 07:32:56:395: B2BStarter thread: B2B - (DEBUG) B2BStarter - clear global cache
    2010.01.15 at 07:32:56:547: B2BStarter thread: B2B - (DEBUG) XEngine not running. So no need to clear cached objects inside XEngine.
    2010.01.15 at 07:32:56:821: B2BStarter thread: B2B - (INFORMATION) Repository:print: [0] HL7 over MLLP Exchange
    2010.01.15 at 07:32:56:824: B2BStarter thread: B2B - (INFORMATION) Repository:print: [1] EDI X12 over AS1
    2010.01.15 at 07:32:56:826: B2BStarter thread: B2B - (INFORMATION) Repository:print: [2] Custom Document over Generic Exchange
    2010.01.15 at 07:32:56:829: B2BStarter thread: B2B - (INFORMATION) Repository:print: [3] EDI EDIFACT over Generic Exchange
    2010.01.15 at 07:32:56:832: B2BStarter thread: B2B - (INFORMATION) Repository:print: [4] RosettaNet over RNIF
    2010.01.15 at 07:32:56:835: B2BStarter thread: B2B - (INFORMATION) Repository:print: [5] EDI X12 over Generic Exchange
    2010.01.15 at 07:32:56:837: B2BStarter thread: B2B - (INFORMATION) Repository:print: [6] Custom Document over MLLP Exchange
    2010.01.15 at 07:32:56:840: B2BStarter thread: B2B - (INFORMATION) Repository:print: [7] Custom Document over AS1
    2010.01.15 at 07:32:56:842: B2BStarter thread: B2B - (INFORMATION) Repository:print: [8] EDI EDIFACT over AS1
    2010.01.15 at 07:32:56:845: B2BStarter thread: B2B - (INFORMATION) Repository:print: [9] HL7 over Generic Exchange
    2010.01.15 at 07:32:56:848: B2BStarter thread: B2B - (INFORMATION) Repository:print: [10] Custom Document over Internet
    2010.01.15 at 07:32:56:851: B2BStarter thread: B2B - (INFORMATION) Repository:print: [11] Custom Document over ebMS
    2010.01.15 at 07:32:56:853: B2BStarter thread: B2B - (INFORMATION) Repository:print: [12] EDI X12 over Internet
    2010.01.15 at 07:32:56:856: B2BStarter thread: B2B - (INFORMATION) Repository:print: [13] EDI EDIFACT over Internet
    2010.01.15 at 07:32:57:649: B2BStarter thread: B2B - (DEBUG) Repository:constructCertSQL SELECT cert.ID, cert.CLASSTYPE FROM TIP_Certificate_ra cert, TIP_Party_ra party, TIP_DocumentExchange_ra docex WHERE cert.ID = docex.signingcredential AND cert.tradingpartner = party.ID AND party.ishosted != 'Y'
    2010.01.15 at 07:32:57:785: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin:initialize Enter
    2010.01.15 at 07:32:58:077: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin:initialize Exit
    2010.01.15 at 07:32:58:824: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Enter
    2010.01.15 at 07:32:58:827: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize resetListener = true
    2010.01.15 at 07:32:58:831: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initdcx = true
    2010.01.15 at 07:32:58:891: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initialize TPAProcessor
    2010.01.15 at 07:32:59:010: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Clear TPA Cache
    2010.01.15 at 07:32:59:013: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initialize DataContext. Pool Size 0
    2010.01.15 at 07:32:59:038: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:initialize Treat Response as Request = false
    2010.01.15 at 07:32:59:041: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:initialize Exit
    2010.01.15 at 07:32:59:043: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initialize Transport
    2010.01.15 at 07:32:59:046: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:initialize Initialize Transport Logger.
    2010.01.15 at 07:32:59:059: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:initialize Transport LogLevel = ERROR
    2010.01.15 at 07:32:59:294: B2BStarter thread: B2B - (DEBUG) Repository:Repository:getDeliveryEndPointList() Wallet Location /apps/elshad4/aelshad4/elshad4_OracleB2B/Apache/Apache/conf/ssl.wlt/default/ewallet.p12
    2010.01.15 at 07:32:59:297: B2BStarter thread: B2B - (INFORMATION) Repository:getDeliveryEndPointList: No Archive dir
    2010.01.15 at 07:32:59:300: B2BStarter thread: B2B - (INFORMATION) Repository:getDeliveryEndPointList: marker :false
    2010.01.15 at 07:32:59:314: B2BStarter thread: B2B - (INFORMATION) Repository:getDeliveryEndPointList: Putting ftp://elshad1.emerson.com//ftpdata/elshad1/ice/infile/850/PO
    2010.01.15 at 07:32:59:322: B2BStarter thread: B2B - (INFORMATION) oracle.tip.adapter.b2b.transport.TransportInterface:initialize: Props: ftp://elshad1.emerson.com//ftpdata/elshad1/ice/infile/850/PO file.receiver.wallet_location = /apps/elshad4/aelshad4/elshad4_OracleB2B/Apache/Apache/conf/ssl.wlt/default/ewallet.p12
    file.receiver.wallet_password = *****
    file.receiver.polling_interval = 5
    file.receiver.path = /ftpdata/elshad1/ice/infile/850/PO
    file.receiver.marker = false
    marker = false
    ccc = false
    file.receiver.channel_mask = None
    file.receiver.minimum_age = 0
    filename_format = %FROM_PARTY%_%TIMESTAMP%.dat
    file.receiver.van = false
    file.sender.channel_mask = None
    file.receiver.user = eiced1
    PROTOCOL_ENDPOINT = null
    file.receiver.password = *****
    file.receiver.preserve_filename = false
    transport_callout_waittime = 30
    preserve_filename = false
    file.receiver.ccc = false
    van = false
    polling_interval = 5
    2010.01.15 at 07:32:59:491: B2BStarter thread: B2B - (DEBUG) initialize TransportReceiver: [Emerson_Robin_FTP_TransportServer < ftp > < Emerson >]
    2010.01.15 at 07:32:59:858: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.AppTransportInterface:initialize Initialize AppTransport Logger.
    2010.01.15 at 07:32:59:864: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.AppTransportInterface:initialize AppTransport LogLevel = ERROR
    2010.01.15 at 07:32:59:949: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 Outbound - initialize
    2010.01.15 at 07:32:59:953: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 Obtaining outbound connection...
    2010.01.15 at 07:32:59:956: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 outbound connect string: jdbc:oracle:thin:@essdbdu31.emrsn.com:36001:ROBIND1
    2010.01.15 at 07:32:59:960: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 outbound username: apps
    2010.01.15 at 07:33:04:319: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:33:04 GMT+00:00 2010 Outbound - initialize exit
    2010.01.15 at 07:33:04:322: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Enter
    2010.01.15 at 07:33:04:326: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Exit
    2010.01.15 at 07:33:04:329: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run Thread start
    2010.01.15 at 07:33:04:332: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Exit
    2010.01.15 at 07:33:04:335: B2BStarter thread: B2B8:15:32:157: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:32 GMT+00:00 2010 inbound username: apps
    2010.01.15 at 08:15:33:757: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 inbound initialize exit
    2010.01.15 at 08:15:33:761: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 Outbound - initialize
    2010.01.15 at 08:15:33:764: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 Obtaining outbound connection...
    2010.01.15 at 08:15:33:767: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 outbound connect string: jdbc:oracle:thin:@essdbdu31.emrsn.com:36001:ROBIND1
    2010.01.15 at 08:15:33:770: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 outbound username: apps
    2010.01.15 at 08:15:34:473: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:34 GMT+00:00 2010 Outbound - initialize exit
    2010.01.15 at 08:15:34:476: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Enter
    2010.01.15 at 08:15:34:479: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Exit
    2010.01.15 at 08:15:34:481: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run Thread start
    2010.01.15 at 08:15:34:484: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Exit
    2010.01.15 at 08:15:34:487: B2BStarter thread: B2B - (DEBUG) B2BStarter - B2B initialized
    2010.01.15 at 08:15:35:928: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run initialize Enter
    2010.01.15 at 08:15:36:132: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run initialize B2BListen turned off, will not listen on IP_OUT_QUEUE for messages
    2010.01.15 at 08:15:36:139: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run start listening on message
    regards
    cnu

    Anuj,
    The log which i placed on top, thats the complete log and DC log is given below
    2010.01.18 at 12:58:06:117: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:11:130: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:16:143: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:21:153: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:26:169: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:31:164: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:36:173: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:41:182: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:46:194: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:51:210: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:56:217: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:01:244: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:06:254: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:11:256: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:16:283: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:21:276: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:26:285: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:31:297: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:36:314: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:41:324: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:46:327: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:51:341: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:56:352: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 13:00:01:359: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered

  • TestStand Deplyment Error- Error: Unable to locate all subVIs from saved VIs because a subVI is missing

    Hi,
    I am a Systems and Software Engineer based in Vancouver. I developed an automated test system using LabVIEW 2013 and TestStand 2013 with custom operator interface.
    I encountered 'missing VIs' problem which is kind of weird because I passed analyzing the sequence for both TestStand Sequence Editor and TestStand Deployment Utility >> Distrubuted Files Tab.
    But when I tried building the installer and reaching the point 'Calling distribution VIs, it always throw an error saying 'An error occurred while trying to read the depencies of the VIs, possible because the VIs are not saved in the current version of LabVIEW. Do you want to save any modified now?'. I tried both cases (i.e. Yes and No) for this option but it did not solve the issue.
    This is part of the original error message displayed in TestStand Deployment Utility:
    While Processing VIs...
    Error: Unable to locate all subVIs from saved VIs because a subVI is missing or the VI is not saved in the current version of LabVIEW.
    The call chain to missing VIs:
    1 - ATE_AccelerometerTest.vi
    2 - CreateAndMergeErrors.vi (missing)
    3 - LogControl_CheckForErrorSendUpdates.vi (missing) "
    All missing VIs are coming from userlib.
    Actions Done:
    - Analyzed sequence file using TestStand Sequence Editor and TestStand Deployment Utility
    - Verified 'Search Directories' include all necessary files/dependencies.
    - Mass compile the directory of the missing VIs
    - Added all needed files and folders in the workspace file.
    The result is still the same based from the actions done.
    The last debugging I did earlier is that I tried locating the sequence and steps of missing VIs as mentioned above (e.g. ATE_AccelerometerTest.vi)
    and I found out that the step seems to be an empty action step. Would this be possible even if it already passed the analysis?
    Other considerations include:
    I am using LabVIEW 2013 sp1 and TestStand 2013. We tried building from three (3) computers and we only succeeded once to a freshly-installed comptuer.
    Hope to hear from you soon.
    With Best Regards,
    Michael Panganiban
    Systems and Software Engineer
    www.synovus.ca
    [email protected]
     

    Hi All,
    We were able to resolve the issue. First to note is that the release notes in TestStand 2013 is outdated and we confirmed from NI Engineer in Austin that TestStand 2013 works fine with LabVIEW 2013 SP1.
    Secondly, we played around TestStand Deployment option that resolved the issue. Attached are the images.
    We just enabled the 'Remove Unused VI Components'. It could be one of the libraries (lvlib) we included in the build but we haven't figured it out yet because we verified that all VIs are working. It could be also something else that I think very difficult to find based from the information. However, if anybody experienced the same issue, this could be helpful.
    Again, we revert back in using TestStand 2013 and LabVIEW 2013 SP1.
    I appreciate any comments and feedbacks. Otherwise, you can close this support request.
    Thank you.
    With Best Regards,
    Michael Panganiban
    Systems and Software Engineer
     

  • Log4J - reading properties file from /WEB-INF directory issue..

    I'm just learning to implement Log4J; the approach I am taking for my JSF application running under Tomcat 5.5x is to create an initialization servlet to initialize the logger, and then access the logger instance within my backing beans and application module services. I include log4j.jar file in /WEB-INF/lib and log4j.properties in /WEB-INF.
    First I wanted to see if this was a good approach, and secondly I'm having trouble accessing the log4j.properties file from the /WEB-INF directory (see below) - any suggestions on how to set up the path so that the properties file can be found (I receive a java.io.filenotfoundexception)?
    Where I'm looking for direction is how to define a single instance of the logger and then access that instance from my java classes versus re-creating the logger in each class.
    ----- web.xml --------
    <servlet>
    <servlet-name>LogServlet</servlet-name>
    <servlet-class>com.sidehire.view.util.LogServlet</servlet-class>
    <init-param>
    <param-name>setup</param-name>
    <param-value>/WEB-INF/log4j.properties</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    ------ LogServlet class ------
    public void init()
    throws ServletException {
    String config = getInitParameter("setup");
    PropertyConfigurator.configure(config);
    Thanks
    Message was edited by:
    javaX

    Try to put the log4j.properties in your WEB-INF/classes/ directory.
    You could wrap one log4j instance in a static method in a utility class, but then you would probably lose other information depending on your logger configuration.
    If you create an instance in each class, which after all is just one line like this:
    static Logger logger = Logger.getLogger(ChangePasswrdAction.class.getName());
    then you are able to get time and method information.

  • Upon Preview View: "Unable to locate the file."

    When clicking on the Preview View icon with an ebook selected in the View pane, I get the error message "Unable to locate the file. This item has been moved, renamed or deleted". This happened after I created collections, and dragged books from the Library into the collections.

    The link below will provide the information needed to resolve the current Sony Reader issue you are experiencing.
    http://www.kb.sony.com/selfservice/micr ... 0203266040

  • Unable to locate message file: ldap language .msb

    Hi
    I am trying to start OID using the command
    ./oidctl start
    But i get the error
    unable to locate message file: ldap<language>.msb

    If you are running on a Linux box (and it looks like you are from the command), first check your $PATH variable and make sure that the Oracle stuff is at the front, here is my path:
    /as/oracle/infra/bin:/as/oracle/infra/opmn/bin:/usr/bin:/usr/kerberos/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    So just make sure your path is correct first then post your results.

  • ITunes unable to locate music files saved on external drive

    Hi all,
    This is proabably something incredibly simple but my iTunes was installed on to my laptop wih music added till my memory was all used up.
    So I bought an external drive, and re-added all my music saving it to the external drive, my iTunes however remained installed directly on my laptop.
    This worked fine initially as long as my external drive was selected in the Preferences section of my Itunes, but recently all my albums are available but it says that Itunes is unable to locate the files, even though none of them have been lost or deleted from the external drive.
    Ive tried everything I can think of - does anyone know how to rectify this?
    Thanks....

    I switched computers and tried to reload all my backed up itunes files. It loaded the files fine the first time. After I logged off the files disappeared from my Itunes. Apple tech told me to add itunes folder to library. It worked fine until i logged off again. I tried it several times because my files never stayed on itunes. Finnaly I added two new CD's into my library and I went to file Libray and I entered consolidated Library. This brought everything I had before and then some to my itunes library. I logged off, shutdown and even hibernated and my files still remain. I was able to create playlist, my movies, podcast, there all there. Hope this helps.

  • Unable to open .chm file from a link in Weblogic 7.0

    Unable to open .chm file from a link in weblogic server. But the same
    jsp code works in Websphere
    Sample Code :
    <!-- < a href="JavaScript:window.navigate('help/manual.CHM')">
    Linked Text</a> -->
    The above link, works well in websphere. help is a folder that
    resides in the server. But when i tried to execute the same in
    Weblogic, some junk characters appeared . so i tried to direct the
    link to Display.jsp and passed the path of the chm file as the
    parameter. I cleared teh out buffer using out.clearBuffer() . i set
    the content type to application/x-msdownload and also set the header
    to content disposition.
    Nothing worked .
    I also tried another way.. That is the following
    I even tried including the mime type
    <mime-mapping>
    <extension>chm</extension>
    <mime-type>application/x-msdownload</mime-type>
    </mime-mapping>
    in the web.xml file. and still it doesnt work
    Nothing Worked . What should i do ? I need immediate help to sort out
    this issue. Can anybody help me
    - Angel

    This could be a Launch Services issue. The following article describes how to manually reset Launch Services — the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, take a look at this other article for general troubleshooting and cache-cleaning procedures. Actually, you should also verify/repair the startup disk (not just permissions), as described there:
    Resolving Disk, Permission, and Cache Corruption
    The most appropriate utility for this particular problem probably is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Go to Maintenance > Reset and check LaunchServices database.
    4. Un-check any other pre-checked options.
    5. Click the Execute button.
    6. Restart the computer.
    BTW, if you’re running Mac OS X 10.4 (Tiger), as your profile indicates, it would have been more appropriate to discuss this in the Mail & Address Book - Tiger forum. If the discussion applies to both Mail 1.x and Mail 2.x, it doesn’t really matter, but it’s difficult to know that in advance.

  • Unable to import RAW files from my 400D, (XTi) Even if its a supported cam

    Hi,
    I have been unable to upload RAW files from my Canon XTi, a.k.a. 400D. I know this camera is supported and I am running Mac OS X 10.4.8 on an Intel Core Duo Mac Book.
    iPhoto had no issues with my previous Canon 350D raw files, yet its not working with the 400D. Is very likely a matter of installing an update, yet when i tried to install the ppl version it stated that this was not to be installed on this system. Would there be an update specific for Intel based machines to support the 400d?
    Has anyone experienced this same issue that would like to share in their resolution? This would definetively be appreciated.
    Happy Holidays and may you get the PS3 or something cool like that.

    Dendrite
    You need the Universal version of that update the ppc version won't work on your intel based machine:
    http://www.apple.com/support/downloads/digitalcamerarawsupportupdate101universal .html
    "This update improves RAW file format compatibility for the following digital SLR cameras:
    -Canon Digital Rebel XTi / 400D / Kiss X Digital
    -Nikon D80
    -Pentax *ist DS"
    Regards
    TD

Maybe you are looking for

  • Magic mouse swipe between pages not working "only" in finders and preferences

    Hi community, I'm a new comer in this mac world like I just bought it less than a month ago and I'm already having trouble with it. My apple magic mouse cannot swipe between pages "only" in finder and preferences. I mean it works perfectly fine with

  • TS1559 Wifi still greyed out?

    Solutions i've tried to fix this problem: - Reset All Settings - Reset Network Settings - Turning iPhone off and back on - Restoring iPhone on iTunes - Turning Airplane mode on and back off This problem started happening after the 6.1.1 and 6.1.2 upd

  • Iweb does not start

    Hello I use iweb a few moth, no problems. updates were just text. Yesterday, I would import images from a Aperure Library. Aperture and iPhoto are shown under media, but, all listed images under Aperture are 0kb. I changed in Aperture the Library...n

  • Navigate XML document as tree

    Hi Otn, Can you help me! if is possible to navigate a specifed XML document as editable Tree / table tree using ADF components or using any another JSF component. Thanks in advance :)))

  • Image rendering in Safari on retina MacBook

    Hi there, I've found a few threads similar to this, but can't find a fix yet. At the moment, the majority of websites haven't been built (and images haven't been added) with retina displays in mind, viewing the internet on a retina display MacBook is