How can i locate the resource file in the weblogic?

hello
in struts, i can leave some parameter in a resource file (such as "Application.properties")outside of my code,and get them in the "Action" class by the "getResource" method.
in my data access tier,i still want to use such a machanism but i can't use the "getResource()" method,for example,there is a ConnectionPool class,i want to read some parameters from a resource file ("param.properties") that is under the same directory as the ConnectionPool class,the following is the code snippet:
public static void init(DataSource ds){
myself=new ConnectionPool(ds);
java.util.Properties prop=new java.util.Properties();
try{
java.io.FileInputStream fin=new java.io.FileInputStream("./param.properties");
prop.load(fin);
}catch(Exception e){
e.printStackTrace();
System.out.println(prop.get("help.create"));
the "ConnectionPool" class is in the "com.jhtop.task.forum.db.util" package,the "param.properties" is in the same package (com.jhtop.task.forum.db.util),
but when i execute the program,it tell me that it can't find the file.if i use the absolute path,it works.
i wonder how can i locate the file path in the weblogic,or what's my current path,or how may i setup my work directory?
in tomcat,my current directory is bin directory,how about weblogic?
who can help me?thank you!

My english is bad and I'm not sure I've well understood your problem.
How have you created your file ?
Why do you put it in such a directory and not an other ?

Similar Messages

  • Need Help! "Could not locate the resource file in the Configuration folder."

    I had just purchased and installed Adobe Crerative Design Suite last night. Every program works except Dreamweaver, which gives me the error message:"Could not locate the resource file in the Configuration folder. This File is required to run Dreamweaver. Please reinstall the application". I am suspicious because the was a previous version of Dreamweaver on the computer before this installation, but I unistalled it. I do not understand why I get this message. Is there a file somewhere that is missing or at faut. How can I remedy this? Thanks
    ~Todd

    Nadia,
    Your posted resources worked for me. Thank you! After many attempts (to include Adobe's overseas call canter) to resolve the same installation and run errors, I used your suggested steps and I finally have a clean and running install. I did have to take a few extra steps;
    First I downloaded both Cleaning  scripts. For CS4 & CS3.
    Next I downloaded Windows installer/cleaner. I have Windows Vista Home Premium and that is a required installed program to run Adobe's cleaning script.
    Once I was sure I had all the programs/scripts I needed (per your instructions and the instructions found on the Cleaning scripts site) I disconnected my computer from the Internet.
    Then I disabled all running programs especially all Anti-virus and firewall programs and any others that have calls of any kind: i.e. Boinc (Seti), Skype, email programs (Windows Live Mail), etc.
    Next I uninstalled all CS4 products and even though I was told that Macromedia Studio MX 2004 can stay installed (read that on one site and the overseas Tech also reinforced that information) I uninstalled MX 2004.
    I then rebooted and installed the Windows installer/cleaner program and ran the Adobe CS4 cleaner script twice.
    After another reboot I installed Dreamweaver CS4 first, rebooted (can't reboot enough with Windows!) and, yes you guessed it, rebooted.
    I then attempted to open Dreamweaver CS4 and for the first time it ran without the error!
    I then installed Adobe Ps CS4 and rebooted and that work for the first time as well.
    I can't say for sure if Macromedia Studio MX 2004 caused the install errors on the Adobe products but without it and ALL that uninstalling and rebooting and running cleaning scripts and installing and rebooting, Adobe finally felt my computer was clean enough to call it home and work.
    Thank you again for your information and I suggest if anyone else finds their way here that they follow your instructions to the letter. Takes a long time but a proper and clean install will be the result.

  • How can open a html, pdf files from the server (c:\foldername\filename)

    Hi all,
    I am developing an application. in this app i have to implement RMI.
    My problem is this, How can a client open a files from the server.
    all the html, pdf files are stored in the server's directory like C:\audit\filename.
    There is a folder on the server's C directory which contains all the html , pdf files.
    please tell me how can a client open a file from the server using RMI.
    Please send me the solution as soon as possible.
    Thanks & Regards
    Bhavishya

    That's doing it the hard way. Why not use HTTP or FTP?

  • How can I embed a pdf file into the body of an email?

    How can I embed a pdf file into the body of an email?

    The problem is defining what it even means to “embed” a PDF file in the body of an e-mail, especially if you are dealing with a multiple page PDF file.
    E-mail is either pure text, rich text (something akin to RTF in Word), or HTML. PDF is not compatible with any of these. Thus, to embed a PDF file, something has to be converted and that means the PDF would be converted to a less graphically rich raster format. But is that what you would really want?
    I think that the MacOS and iOS e-mail clients do under some circumstances place an attached PDF file within HTML segments and by clicking on same, you get the equivalent of extracting the full PDF file, but I have no real experience with that.
    Another alternative is HTML with a proxy image with a hyperlink to an external PDF file that is invoked when you click on the hyperlink.
    Perhaps you can explain what you are really trying to accomplish and what the recipient of such an e-mail's actual experience would be?
              - Dov

  • "Could not locate the Resources file in the Configuration folder"

    While opening DW cs5 on my iMac OS X 10.7.5 a window came up that says:  "Could not locate the Resources file in the Configuration folder. This file is required to run Dreamweaver. Please reinstall the application."
    After downloading and reinstalling Adobe Creative Suite CS5 yesterday per the instruction of Adobe tech support, the application still had the same message when I attempt to open it.  Not sure where else to turn.  Please advise.  Thanks

    See if this previous thread regarding the same issue will help:
    http://forums.adobe.com/message/2274699#2274699
    Nadia
    Adobe Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • How can i create my own file from the Adobe Export PDF to Word ?

    How can I create my own file from the file of the Adobe Export PDF to Wodrd?

    If there is handwritten content in your PDF then ExportPDF can't convert that to word.
    ~Deepak

  • How can I locate my ipad with only the serial number

    how can i locate my ipad with only the serial number

    you can't
    even with the IMEI number the police need a warrent to get such info from the carriers

  • How can I delete hidden video files from the iPad?

    How can I delete hidden video files from the iPad?  These files were created on my MBA and when I changed the media type to iTunesU and then copied it to my iPad via iTunes, they did not appear.  I can see them using 3rd party software, but they don't have delete functionality.
    Thanks
    York

    Interesting note:  I can see the files when I use the search function, but when I tap either file, I return to my home screen.  The video does not open.  I can transfer the file to my MBA, and it plays fine, but I cannot figure out a way to delete them.

  • When i add a background image to form and it gives me such kind of issues so i have deleted the resource file in the solution explorer and then when i reopened my projectt it again gives errors of missing root element of InvalidResx.file amd of XMl.

    I have already go to properties then resources and try to remove resource option but it was't working.so help me by giving another technique to solve this issue.

    I have already go to properties then resources and try to remove resource option but it was't working.so help me by giving another technique to solve this issue.
    Hello,
    It will be more specific if you could share the screenshot of that error with us.
    In addition, if this issue is mainly related to the BackGroundimage property, you could consider using the following suggestion.
    We could click our project to expand the nodes and click "InitializeComponent()" to navigate to its desiginer code.
    Then check whether there is a line which has " Me.BackgroundImage =", remove that line and then remove the resource file with the following step.
    Project property->Resources->Switch "Files" or "Images" to see where you have setted for that image file, find it and remove it.
    Then save all your changes to see whether it's OK.
    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.

  • How can transfer Mac Outlook Contact files to the MacPro Address book?

    I tried the suggested three step process, ie, (1) Export Contacts from Outlook in txt formant, and (2) Open the txt file Excel and Save As in csv format, (3) Import the csv file into the MacPro Address book. However the Export from Outlook Contacts in txt results in a messed up file with data in random columns.  The Import into the Address book resulted in 21,000 plus entries (my Outlook Contacts had about 3000 plus).  Any solutions?

    Mac Outlook exports files in a .olm format. What you need is an .olm to the Apple format converter - here's such a tool - https://itunes.apple.com/us/app/olm-converter-pro/id522796199?mt=12 = expensive but it gets pretty decent reviews.
    Clinton

  • How can I access a response file on the same computer but with different login?

    When trying to access a response file on the same computer that was used to set it up, but with a different login, I get an error message that the network resource was not found. How can I retrieve the responses on the same computer but under a different login/username?

    The response file is associated with a specific login (as determined under Edit > Preferences > Identity) so you cannot retrieve it if you're using a different login.

  • How can I upload and access files to the iCloud?

    Hello,
    I am using iCloud on my MacBook Pro (OS X Lion) and iPhone 4 (iOS 5). Everything works just fine, but I'd like to put miscallenous files to the cloud as well, like .zip, .dat, .txt, .ini, .doc. On my MacBook I have put them all into the folder "Documents".
    Question 1: Are my files, now that I put them to the Documents folder, in the Cloud already?
    Question 2: How can I now access and view those files on my iPhone? (I used MobileMe before, and there I used a app called "iDisk",)
    I'm really lokking forward to your replies.
    Pascal

    Don't whine, there is a workaround, better than the idisk.
    Download an app you wish to work as your iDisk. It is essential that this app supports iCloud. I personally prefer the GoodReader app.
    Go to your /Users/<root folder name>/Library/Mobile Documents folder and locate the folder the app uses to store your files.
    Create a folder in the "Documents" folder of the folder you found. I named that folder iCloud docs. You can name it whatever you want... e.g iDisk
    (now let's add some style) download the icon I created.
    Open the icon I created with preview and press cmd + a and then cmd + c .
    Select the "iCloud docs" folder you created, or whatever you named it, press cmd + i
    Select the folder icon on the top left and press cmd + v
    Select again the folder and press cmd + L
    Drag & drop the alias folder wherever you need it
    or
       8. If you want to be supercool you can also drag & drop the original (not the alias) folder on your dock.
    Hope you enjoy the new super cool iDisk.
    Cheers.

  • How can I open a Numbers file to the last cell used on from the previous saving of that file?

    In Excel, the .xls file would always open on the the cell location where the file was previously saved.  Very nice to have feature when the file is long ,so one does not have to keep scrolling down the page to make the next entry every time the file is opened.
    Can Numbers do this?  I can't find an option for it.
    After opening a file, I must always scroll down to the last entry or where I want to start inputting data.  What a pain.
    Is there a way to open a numbers file to where one was located when it was previously saved?
    Anybody know?  Please help.
    Thanks

    CF,
    When I Save a Numbers document with a cell Selected and then close the document, the same cell is still selected when I reopen the document. Isn't that what you are asking for? Furthermore, if I have chosen 100% zoom scale, the selected cell is displayed in the same screen position as when it was last saved. What you may be seeing that you don't care for is that if the zoom is other than 100% the table's position in the display window may be different than at the last Save.
    Jerry

  • How can I open a CS4 file in the current version of Illustrator?

    I am collaborating with a friend on a project. He has CS4 and can't/won't upgrade.
    I was able to send him a file I created in the current version of Illustrator, and he was able to open it (I don't know how successfully, but it opened).
    He then saved it with a new name.ai and sent it back to me. When I open it, Illustrator thinks it's a photoshop file. It's able to open it ok, but it's rasterized, and is lacking a lot of details. So, even when I use Image Trace to get the pieces back, little shapes, like the tongue in an animal's mouth, are missing. And all of the individual pieces that make the Illustrator file so easy to tweak are lacking.
    Is there a trick to making this work, on my side or on his? I already tried searching via google and didn't find anything that looked helpful.
    Last resort may be to get him to just install the 30 day trial of the current version so we can get this project done.
    Thanks for any ideas!

    Having his install the trial is the way to go. Working between AI versions is a pain and as you are finding out almost impossible with 5 versions between the collaborators.

  • How can I add my own files to the TV Shows Library instead of the Movie Library?

    I have my own TV Shows in m4v format.  I can drag and drop the TV Shows into the iTunes Movie Library.  How can I add my files to the TV Shows Library?  Can I group them by show in the TV Shows Library?

    Select the files in iTunes.
    Right click - get info.
    Select the Options tab and set Media kind to TV Show.
    Better yet, use something like MetaZ to tag the files before adding them to iTunes.
    -> http://www.macupdate.com/app/mac/36029/metaz

Maybe you are looking for

  • Error while opening document in FB03

    Hi,     I have used archive link for attaching documents. I have attached a pdf file by using the transaction OAAD to an accounting document. In FB03 it is showing the the document name by following the path Environment>>Additional assignments>> obje

  • Count of rows having different values

    SQL>  select  * from med; CERT  REC  PRIM RACE 100    10   EN   USA 100    11   EN   USA 100    12   EN   USA 100    13   SP   MX 200    14   SP   MX 200    15   SP   MX 6 rows selected. SQL>  select  * from sub; CERT  REC PRIM RACE 100    10   EN  

  • ITunes 7.3.1 under VISTA causes DVD/CD driver conflicts or blockage !!!!!!!

    After installing iTunes under VISTA I noticed that both of my DVD/CD drives were missing. Device manager shows a conflict or blockage causing the drivers not to start. I tried iTunes 7.3.1 on another PC with VISTA and it did the same thing. I had to

  • Replace MacBook pro keyboard

    Hi, I have a Macbook Pro 15" (still under warranty) that I bought in the US. I am moving to France for a while and I'd like to change my qwerty keyboard to an azerty. I went to the Apple store today and asked if I could buy/order an azerty keyboard (

  • IBook crashing upon wakeup

    My iBook has started to crash sometimes when I wake it up from sleep mode. I have now idea why, it happens randomly but only when it wakes up. What happens is the screen goes grey and a black box tells my to restart my computer i four different langu