• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application Configuration file not accessible

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have weblogic 8.1 on windows. Our application has a .properties file which is read at runtime by application. It expects the file in the java classpath for the server. However even though the entry is made in
classpath it does not get the file.
This works ok in weblogic 6.1sp5 for Unix.
I have tried setting the PATH variable as well but to no avail.
Is it specific problem to windows platform or is there some configuration setting to be done?
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your property file resides in directory form where you are starting your weblogic serevr, then you can directly pas the file name to appropriate stream.


If this file is part of your application.
then you should change the way for reading your file
it should like currentThread().getClassLoader().getResourceStreamasStream(fileName).


Hope it helps you.
 
He does not suffer fools gladly. But this tiny ad does:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic