File object can't find a file

Hi,
I am trying to create a File object using:
File file = new File("myfile.txt");
I am getting a FileNotFoundException.
The file is stored in a folder (windows2000) that I have put on both my classpath and path.
When I type echo %classpath% or %path% I see the folder.
I am running this as a standalone class (not a servlet).
I am using Websphere Studio App. Developer.
Does anyone have any suggestions?
Thanks in advance,
Vaughne

Thanks but I don't want to specify an absolute path.
On my PC the file exists in "e:\SomeFolder"
Put on the production PC it may exist in "c:\SomeOtherFolder"
That's why I want the JVM to find the file using either the Path or Classpath variables......
------------------8<----------------
You do have to supply the full path to the file if you want to load it.
If you need to supply a different path on each system, then use a system property. To pass in a system property at run time, use:
java -DmyFilePath=c:\somefolder ......
In your code, you can retrieve the path using:
String myPath = System.getProperty("myFilePath");
File myfile = new File(myPath + System.getProperty("file.separator") + "MyFile.txt");
Thanks,
Brian

Similar Messages

  • Background callable object :  can not find this class name

    Hi All ,
                  I am following this tutorial link for creating background callable object
    http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
    I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject  for Implementation Class Name , and on click next i m getting exception as  "can not find this class name".       package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
    Regards
    Kavita

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • Debugger can't find object files

    I am building a static library with the -g compiler option. I build an executable that links in the static library, also using the -g compiler option. When I get into workshop and try to set a breakpoint in one of the .cc files that is contained in the static library, I get an error message that it can not find the object file that corresponds to my .cc file. I am using Sun Workshop 6 update 2.
    Here is the output from where I built my static library:
    #load ERS_GenevaAPIErrorHandlerFunc.o
    (cd .;     \
    /apps/forte-6.0u2p0507/SUNWspro/bin/CC -g -DDEBUG -DRWDEBUG -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -c ERS_GenevaDefaultCsaSaliMgr.cc)
    #load ERS_GenevaDefaultCsaSaliMgr.o
    rm -f libERSO.a
    CC -xar -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -o libERSO.a ERS_GenevaAccount.o ERS_GenevaAcctDormantChangeMgr.o ERS_GenevaBCCMgr.o ERS_GenevaConfigChangeMgr.o ERS_GenevaCustProduct.o ERS_GenevaCustSbscrp.o ERS_GenevaCustProductStatus.o ERS_GenevaCustSbscrpStatus.o ERS_GenevaCustProductEventType.o ERS_GenevaCustomer.o ERS_GenevaEventSource.o ERS_GenevaProductInfo.o ERS_GenevaProductMgr.o ERS_GenevaSaliMapInfo.o ERS_GenevaSaliMapMgr.o ERS_GenevaSvcConfigMgr.o ERS_GenevaTOLMgr.o ERS_GenevaAPIErrorHandlerFunc.o ERS_GenevaDefaultCsaSaliMgr.o
    The source file that I want to set a breakpoint in is ERS_GenevaConfigChangeMgr.cc.
    Here is the output from building the executable:
    rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc
    cxxtestgen.pl -o CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc error-printer time_it p2k_db_connection p2k_trace ERS_GenevaConfigChangeMgrCxxTest.th && \
    if [ -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc ] ; then echo "CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc is finished" ; else echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1; fi \
    || (echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1;)
    (cd .;     \
    /apps/forte-6.0u2p0507/SUNWspro/bin/CC -g -DDEBUG -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -c CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc)
    #load CxxTestRunner_ERS_GCONFIGCHANGEMGR.o
    rm -f cxx_ers_cfgmgr
    CC -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -I/p2k/S18.0/bldrel_debug/inc/cxxtest -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib -xildon -xildoff \
    -o cxx_ers_cfgmgr CxxTestRunner_ERS_GCONFIGCHANGEMGR.o -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib /p2k/S18.0/bldrel_debug/lib/libERSO.a /p2k/S18.0/bldrel_debug/lib/libSPGNV.so /p2k/S18.0/bldrel_debug/lib/libDAGNV.so /p2k/S18.0/bldrel_debug/lib/libGnvPRSvc.so /p2k/S18.0/bldrel_debug/lib/libPRCom.a /p2k/S18.0/bldrel_debug/lib/libCache.a /p2k/S18.0/bldrel_debug/lib/libCACSO.a /p2k/S18.0/bldrel_debug/lib/libCommonO.a /p2k/S18.0/bldrel_debug/lib/libCACSCom.a '-lstubs' '-lCTCom' '-lSRCom' '-lSRPR' '-lSRBL' '-lSRCL' '-lSRCA' '-lSRUS' '-lSRFI' '-lSRP2K' '-lGenPR' '-lGenBL' '-lGenCL' '-lGenCA' '-lGenUS' '-lGenFI' '-lGenP2K' '-lBOM' '-lDAP2K' '-lDANAIM' '-lsrvr' '-lP2K' '-lmwbusSvr' '-lM3srvr' '-lmwda' '-lmwtask' '-lMWCfig' '-lNAIManager' '-lNAIManagerXML' '-lbs' '-lmwbusClt' '-lmwxml' '-lmwBase' '-lmwnet' '-lmwCvgUUID' '-lmwutils' '/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib/rwor8bootstrap.o' '-ldbaccys' '-lrwdbtool' '-lrwora8' '-lrwdbtool' '-lclntsh' '-lsql9' '-lntcp9' '-lntcps9' '-lntns9' '-lclient9' '-lcommon9' '-lgeneric9' '-lvsn9' '-lxml9' '-lcore9' '-lnls9' '-lrwdbtool' '-lrwtool' '-lrwnet' '-ldemangle' '-ldl' '-lsocket' '-lnsl' '-lintl' '-lm' '-lsunmath' '-lc' '-lmp' '-lposix4' /apps/tuxedo-8.0p273/lib/libtux.a /apps/tuxedo-8.0p273/lib/libbuft.a /apps/tuxedo-8.0p273/lib/libfml.a /apps/tuxedo-8.0p273/lib/libfml32.a /apps/tuxedo-8.0p273/lib/libengine.a -ldl -lsocket -lnsl -lintl -lsunmath -lm -lmp -lposix4 && \
    if [ -x cxx_ers_cfgmgr ] ; then echo "cxx_ers_cfgmgr is finished" ; else echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1; fi \
    || (echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1;)
    Can you see where I am going wrong?

    I included the wrong output from building the executable in previous note. Here is the correct build output:
    rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc
    cxxtestgen.pl -o CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc error-printer time_it p2k_db_connection p2k_trace ERS_GenevaConfigChangeMgrCxxTest.th && \
    if [ -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc ] ; then echo "CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc is finished" ; else echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1; fi \
    || (echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1;)
    (cd .;     \
    /apps/forte-6.0u2p0507/SUNWspro/bin/CC -g -DDEBUG -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -c CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc)
    #load CxxTestRunner_ERS_GCONFIGCHANGEMGR.o
    rm -f cxx_ers_cfgmgr
    CC -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -I/p2k/S18.0/bldrel_debug/inc/cxxtest -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib -xildon -xildoff \
    -o cxx_ers_cfgmgr CxxTestRunner_ERS_GCONFIGCHANGEMGR.o -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib /p2k/S18.0/dev/src/libs/libERSO/rclark/libERSO.a /p2k/S18.0/bldrel_debug/lib/libSPGNV.so /p2k/S18.0/bldrel_debug/lib/libDAGNV.so /p2k/S18.0/bldrel_debug/lib/libGnvPRSvc.so /p2k/S18.0/bldrel_debug/lib/libPRCom.a /p2k/S18.0/bldrel_debug/lib/libCache.a /p2k/S18.0/bldrel_debug/lib/libCACSO.a /p2k/S18.0/bldrel_debug/lib/libCommonO.a /p2k/S18.0/bldrel_debug/lib/libCACSCom.a '-lstubs' '-lCTCom' '-lSRCom' '-lSRPR' '-lSRBL' '-lSRCL' '-lSRCA' '-lSRUS' '-lSRFI' '-lSRP2K' '-lGenPR' '-lGenBL' '-lGenCL' '-lGenCA' '-lGenUS' '-lGenFI' '-lGenP2K' '-lBOM' '-lDAP2K' '-lDANAIM' '-lsrvr' '-lP2K' '-lmwbusSvr' '-lM3srvr' '-lmwda' '-lmwtask' '-lMWCfig' '-lNAIManager' '-lNAIManagerXML' '-lbs' '-lmwbusClt' '-lmwxml' '-lmwBase' '-lmwnet' '-lmwCvgUUID' '-lmwutils' '/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib/rwor8bootstrap.o' '-ldbaccys' '-lrwdbtool' '-lrwora8' '-lrwdbtool' '-lclntsh' '-lsql9' '-lntcp9' '-lntcps9' '-lntns9' '-lclient9' '-lcommon9' '-lgeneric9' '-lvsn9' '-lxml9' '-lcore9' '-lnls9' '-lrwdbtool' '-lrwtool' '-lrwnet' '-ldemangle' '-ldl' '-lsocket' '-lnsl' '-lintl' '-lm' '-lsunmath' '-lc' '-lmp' '-lposix4' /apps/tuxedo-8.0p273/lib/libtux.a /apps/tuxedo-8.0p273/lib/libbuft.a /apps/tuxedo-8.0p273/lib/libfml.a /apps/tuxedo-8.0p273/lib/libfml32.a /apps/tuxedo-8.0p273/lib/libengine.a -ldl -lsocket -lnsl -lintl -lsunmath -lm -lmp -lposix4 && \
    if [ -x cxx_ers_cfgmgr ] ; then echo "cxx_ers_cfgmgr is finished" ; else echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1; fi \
    || (echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1;)
    In answer to your questions, I am building the static library, the executable and debugging all on the same machine. I have not moved any of the files. I actually have success when I use dbx commands in the debug window to set my breakpoint. If I say "stop in ERS_GenevaConfigChangeMgr::find" I can set a breakpoint in the function. Then I say "run", at that point the source code is displayed in my editor window and I can set breakpoints there by putting my cursor on a line and then clicking on the stopsign button.
    What I am having a problem with is if I open the source code file in the editor window and try to set a breakpoint by putting my cursor on a line and clicking on the stopsign button. The error message is "no executable code at line "ERS_GenevaConfigChangeMgr.cc":166. The source code that I want to set the breakpoint on is in a directory that is different from where the executable because it is source code from the static library. I have to navigate to that directory from the file chooser menu. It puzzles me why the behavior is different when I issue dbx commands than when I try to open the file in the editor. If you could steer me towards some documentation that would help me to understand the concepts behind this I would really appreciate it!

  • I have downloaded, extracted and installed Elements 12 but it will not open nor can I find the Adobe file in the file where I installed it to..  When I've tried to download and install again

    I have downloaded, extracted and installed Elements 12 but it will not open nor can I find the Adobe file in the file where I installed it to..  When I've tried to download and install again it says that the "Object Already Exists."  It may exists, but it is not visible in the file or in my list of programs on the Startup Menu.

    cactisken
    You should not have to uninstall Premiere Elements 12/12.1 in order to install and run Premiere Elements 13 on the same computer unless your computer is overloaded and the computer resources are compromised. Just use one program at a time.
    Can you still use 12/12.1 on this same computer that will not let you use 13?
    What specific Window operating system are you using?
    Let us go through the usual drill...
    1. Does the problem exist with and without the antivirus and firewall(s) disabled?
    2. Are you using a pen and tablet device instead of a mouse?
    3. Did you install the program with antivirus and firewall(s) disabled?
    4. Disable the SLCache Folder found in Windows 7, 8, or 8.1 64 bit
    Local Disk C
    Program Files (x86)
    Common Files
    Adobe
    and in the Adobe Folder should be the SL Cache Folder that you delete or disable by renaming the Folder
    from SLCache to SLCacheOLD.
    5. Are you running the program as Administrator and is the latest version of QuickTime installed on the same
    computer as Premiere Elements 13?
    Let us start here and then decide what next.
    Thank you.
    ATR

  • Where can I find the deployed EJB files in Oracle 10g AS(904)

    Hello All,
    Where can I find the deployed ejb files, stubs and skels in the Oracle 10g (904)
    When I try to run my ejb application I m getting following exception:
    com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: org.apache.log4j.Logger
    I am not sure what is causing this error. I am not using any logging in my EJB. But the logging framework is configured in the application server.
    Your input would be a great help to me
    Thank you

    Thanks Carty,
    I am not creating Connection from EJB. I have a POJO called DBManager that looks for the DB Connection and return that to either EJB or other POJO that requests for Connection.
    I am having a private method that get the connection from the DBManager because while writing UnitTest cases I can mockup getting Connection as my Unit test case will be a POJO again..
    I have a question here regarding making DBManager as Singleton class. In my current project, I have configured my database in the application server as getting the connection by lookup for datasource through JNDI. It internally maintains all logical connection and always have one physical connection. In such scenario how implementing singleton will be beneficial?
    Thank you for answering all my questions.

  • BC4J can't find existing xml file

    hi, following a debug output with a "file not found" error.
    the problem is, the file exist.
    is it possible the container look in root directory?
    [76] No xml file: /com/eautop/bc/master/master.xml, metaobj = com.eautop.bc.master.masterot directory
    following the line around the error. i assume the outofmemory exception will be a follow up to the previous one.
    any hints?
    regards
    wolfgang gillich
    [65] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [66] JavaVMVersion: 1.3.0-1
    [67] JavaVMVendor: Compaq Computer Corp.
    [68] JavaVMName: Classic VM
    [69] OperatingSystemName: OSF1
    [70] OperatingSystemVersion: V4.0
    [71] OperatingSystemUsername: oracle
    [72] Connected to Oracle JBO Server - Version: 3.2.9.76.3
    [73] {{+++ id=10000 type: 'BC4J_CREATE_ROOTAM' Create Root Application Module 'com.eautop.bc.master.MasterAppModule'
    [74] {{+++ id=10001 type: 'METAOBJECT_LOAD' Loading meta-object: com.eautop.bc.master.MasterAppModule
    [75] {{+++ id=10002 type: 'METAOBJECT_LOAD' Loading meta-object: com.eautop.bc.master.master
    [76] No xml file: /com/eautop/bc/master/master.xml, metaobj = com.eautop.bc.master.master
    [77] CSMessageBundle (language base) being initialized
    [78] }}+++ End Event10003 null
    [79] Cannot Load parent Package : com.eautop.bc.master.master
    [80] Business Object Browsing may be unavailable
    [81] No xml file: /com/eautop/bc/master/MasterAppModule.xml, metaobj = com.eautop.bc.master.MasterAppModule
    [82] }}+++ End Event10002 null
    java

    Hello,
    I'm trying to learn how to use an xml file to store user settings for an add in I'm creating. Up to this point, I've just used simple text files in the past that were structured a specific way. I thought I would try and learn to use XML for this after doing
    some research online and came across this tutorial:
    http://www.codeproject.com/Articles/8554/Application-Settings-the-NET-way-INI-Registry-or-X
    I add the DataSet to my project, but when I get to the step where I'm supposed to add an element to the blank DataSet, I can't find the XML Schema toolbox items. I tried to manually add the toolbox items but couldn't find them. Does anyone know where they
    are located so I can add them to my toolbox? Or perhaps another similar tutorial I could follow for creating an XML settings file that I can save to and read from easily for my add in. Since it is a dll, I can't use My.Settings, had already looked into that.
    I appreciate any help offered, Thank you.
    Is there a reason that you don't want to use Application Settings?
    By the way - it's saved in XML format, not that that's really important.
    Still lost in code, just at a little higher level.

  • C++ debugger can't find input file, regardless of location

    I have an input file that's turned into an ifstream object. When I run the program without debugging, it's found fine. I've put a copy of the file in every single folder within the project directory, starting at the folder that contains the solution file.
    The debugger still can't find it. Help me, please; I feel like I'm going insane.

    I have an input file that's turned into an ifstream object. When I run the program without debugging, it's found fine. I've put a copy of the file in every single folder within the project directory, starting at the folder that contains the solution
    file. The debugger still can't find it. Help me, please; I feel like I'm going insane.
    Hello,
    I will help you move this thread to C++ forum to get help to confirm whether this issue is related to
    using of ifstream .
    You could share the code with us to clarify this issue. If possible, you could share a simple sample which could reproduce this issue.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Where can i find my text files?

    I am working in a xaml app and am trying to make a text file, and then open it in like note pad. My code does not give me any errors but I can't find the file any where. Here is what I have:
            async void test()
                StorageFolder folder = Windows.Storage.ApplicationData.Current.LocalFolder;
                StorageFile sampleFile = await folder.CreateFileAsync("sample.txt", CreationCollisionOption.ReplaceExisting);
                await Windows.Storage.FileIO.WriteTextAsync(sampleFile, "Swift as a shadow");
    I don't know if I can't find it or it is just not being made. 
    Thank You for your time.

    Hi TomatoMan,
    A better way to find where the StorageFile points is to examine its Path in the debugger after calling CreateFileAsync. The path Anne mentions is common, but it is not correct for all systems.
    It should exist for your original app so long as the app hasn't been removed. This isn't the appx package itself, this is the application data. The app package will be in the Package.InstalledLocation and is not writeable (in production- it may
    be for a test app running from the VS project directory).
    The app data location shouldn't be exposed to users, but is only available through the app. If you want the user to be able to find the document outside of the app then you should use a FileSavePicker to let the user choose where to save it.
    If you want to programmatically open the file you can call
    Launcher.LaunchFileAsync with the sampleFile StorageFile object.
    --Rob

  • Where can i find the Version number in a ODI Scenario .xml file

    Hi ,
    How can i find the vesion number in my .xml file , which will generate while i generate scenario

    >
    But my question is , let i am exporting one data store and interface, and i am importing that to another env.
    is their any way that i can know ok bot my object have same version , so if i import in INSERT UPDATE mode so , it will reflects the changes
    and which ever packages it used , it will reflects.
    Your question is not clear to me
    and one thing if i am importing these objects , then i have to regenerate the Package for my updated Scenario >right .........Yes ...

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • Help:Can not find the file in jar!

    Hello everyone:
    I build a project using Netbeans 5.0 and make a jar file with it...
    The code in the project as follows will throw an exception described that it can not find the file named datasource-config.xml
    String dataFilePath = getClass().getResource(dataFile).getPath();
    //System.out.println("filepath:"+dataFilePath);
    InputStream input = new FileInputStream(dataFilePath);
    when I run the project with the main() function as an entry it works perfectly and output:
    filepath:/C:/projects/java_project/search/build/classes/com/cn/wxjt/lucene/config/datasource-config.xml
    But when I compressed the project with jar and run it , it will show:
    filepath:file:/C:/projects/java_project/search/dist/search.jar!/com/cn/wxjt/lucene/config/datasource-config.xml
    there is a (!) between search.jar and /com/cn/wxjt...
    I dont know why I generate a ! symbol in the file path... Is it cause the exception->
    java.io.FileNotFoundException: file:\C:\projects\java_project\search\dist\search.jar!\com\cn\wxjt\lucene\config\datasource-config.xml
    If you have any idea, plz tell me.
    Thank you and best wishes to you !
    :)

    If the file you want to read is in your jar file, use
    getClass ().getResourceAsStream
    (relative_path_file_name)Hope that help,
    Jackhey jack i want to open the file as new File
    i m using this.getClass().getResource("resource/backend.xml");
    the resource is the directory inside the jar file.
    when i prints the url it shows:
    the jar file is in the WORK directory
    URL : jar:file:/home/neeraj/WORK/show.jar!/resource/backend.xml
    now when i creates new File using the url.getFile() method the file does not exist.
    although the same programs runs well when i uses the InputStream
    so plz tell me cant I create a new File from the above method????
    thanks in advance
    with regards
    neeraj

  • Can't access songs in iTunes. There are exclamation marks on about half of my library. When I try to play them I get: "Can't find the file" notice and iTunes asks me to locate each song. Why is this happening and how can I fix it?

    I had not opened my iTunes in weeks. When I opened it today, most of the songs in my library had exclamation marks beside them and when I clicked on them got the message: "the song could not be used because the original file cannot be found", then asks me if I want to locate it. When I press "locate" tab I am led to iTunes folders and have to hunt around for the song. Some songs I can't find in the folders. Any ideas as to why this is happening and what I can do to fix it?
    Help would be much appreciated.
    Thanks.
    PE

    The problem of tracks becoming de-linked between iTunes and the music files in your iTunes music folder happens for different reasons - this seems to come up fairly commonly in this forum.
    The solution can be to locate each song in the iTunes library, as you mentioned - or, but wait, before I get to that...
    trouble finding the original track in your iTunes music folder? maybe look for it under compilations, or if not using the 'group compilations preference' then look in the folder under the songs artist name, but what song artist name iTunes uses depends on what you have in the metedata tag spot for album artist or song artist. Any varyation in artist name spelling, in the menu item 'get info' metadata for any selected individual track will cause iTunes to create that as a separate artist folder in the library, even names like 'various' or any difference at all (even the word 'the' can change where in your iTunes music folder a track gets placed by iTunes). You can try to use the finder function of find file (finder munu item outside of iTunes) to locate hard to find items.
    Back to how to re-link any de-linked tracks .
    There may be scripts that can help re-link de-linked music files - or, at least provide you a list of such files, Scripts are easy to install and use...
    at Dougs Scripts, there is one called iTunes Track CPR that might work
    http://dougscripts.com/itunes/scripts/ss.php?sp=itunestrackcpr
    or, if you just want a list of de-linked tracks, go to
    http://dougscripts.com/itunes/
    and find the script called List MIA's, this will create a text file listing all de-linked tracks
    if you review the thread at
    https://discussions.apple.com/thread/3633708
    also the thread at
    https://discussions.apple.com/message/17513078#17513078
    you may find more insight into dealing with this kind of issue there, although some of that thread may not apply to your case, aspects of it might help.
    Good luck.

  • Moved jpeg files to other folder, now iPhoto can't find them

    I dragged/dropped some original jpeg files into a new folder to aggregate certain files together, but since they are now in a different folder iPhoto 9 can't find them. The thumbnails in iPhoto still remain, but results in the large black/grey "!" when I try to open them. I'd rather not rebuild the enormity of my entire photo library over this, so is there some other way to re-link thumbnails to files?
    iTunes makes this easy with music. When I click on a file name and it can't find the file, it offers to allow me to locate the file myself, and then it re-establishes the link between the iTunes library item and the file. No problem.
    How does one go about doing this in iPhoto for, say, a couple of dozen files without having to start over with an ENTIRE rebuild? I know exactly where the files are, and it seems ridiculous that iPhoto isn't equipped to track the whereabouts of an unchanged file that's simply been dragged from one folder to another.

    Did you do the moving of the image file in the Finder or do you have a reference library as asked by Larry? In either case moving the files is a recipe for disaster as you've found out. You must either move the files back to their original locations or try to get those photos back into iPhoto as follows:
    1 - Find the folder you moved the files into and COPY it to the Desktop.
    2 - in iPhoto delete the photos that you're having the problems with as you normally would even though you can't see see them. Also delete all the photos that are in the folder you moved the other files into.
    3 - drag the folder on the Desktop into iPhoto to import them as one event. If you get a duplicate warning I'd let it import the duplicate and use Duplicate Annihilator to find them so you can cull out the duplicate you don't want.
    Other than that you might have to start over from scratch as follows:
    Creating a new library while preserving the Events from the original library.
    1 - Move the existing library folder to the desktop
    2 - Open the library package like this.
    3 - Launch iPhoto and, when asked, select the option to create a new library.
    4 - Drag the Originals folder from the iPhoto Library on the desktop into the open iPhoto window.
    OT

  • I backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    i backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    Don't you just love changes in interfaces?
    I found the answer to my question.
    When you attach a device (iPhone, iPad) to your Mac, in iTunes 12 in appears as a tiny icon in the second "row" of the iTunes display. Click the icon and the familiar iTunes display for the device appears. From there, on the Summary screen, you can see the dates of the backups of the device (iCloud and backup to the computer). You can also use the button to backup to the computer.

  • Move all my music to another folder but Itunes can't find the files!

    I have all my music on my desktop in small folders for each artist.
    But now i don't have room anymore, because i have to much music.
    So i want to move it all in to a folder called "Music". But when i do that
    Itunes can't find the files, and i have to search for each file, to find the new location instead of the desktop. How do i move my music more easily? So i don't have to synchronize it all in again, with the right album covers and that..
    Please, need some help here!

    You need to open your preferences file in iTunes and click on advance then select the location of where you put the folder.  http://support.apple.com/kb/HT4527

Maybe you are looking for

  • New Ipod not updating or been seen by Itunes

    Yesterday I bought a new black Ipod Nano to replace the one that got broken in a freak accident. I plugged in the new Nano into my PC, go the popup stating the software on the Ipod needed to be updated. So I went ahead and ran the Ipod Updater. Then

  • Error in NWDS Creating activity is not allowed

    Hi all, I received this error and can't use the NWDI fully... the error message is: FAILED: Creating activity is not allowed because workspace is not modifiable all properties in .dtc, .metadata, NWDS folder, and project folders are not set to read o

  • Message Handling in BADI implementation

    Hi All, Initially I was trying to use an EXIT but was not able to do so because we were not getting the functionality properly. So i switched to BADI. I have implemented a standard BADI and its working fine. Now i want to display messages as required

  • Changing the pane content in a swing frame

    hi I am now trying to implement a GUI, which consist of a JSplitPane including two JScrollPane-s. The left scroll pane is a JTree and the right should display a sequence of JLabels and JTextFields, depending on the selected tree node on the left. I c

  • Error -50 when exporting to quicktime MPEG-4

    Alright so here's the deal: I have made a movie (obviously) it plays fine in iMovie, no glitches or anything. Unfortunately since the video files have already been compressed once, I am trying to export it using a setting that will not compress it ag