• 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

Unable to load static members while testing

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We are migrating an old application running on a webserver to WAS.environment.dat file is having all the mappings like JDBC_CLASS,JDBC_DB etc static members.Now i have deployed the war file of the application in WAS and if i am testing it is failing to identify the static members.
I have restared the server still it is not able to identify.
Please suggest me if any one has some inputs ASAP?

Regards,
Praveena
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "failing to identify the static members"? Do you mean that you have .html, .jpg, and other static files that your web application is not finding?
 
Veena Grandhi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Let me give a clear picture.

I am having a war file with th below structure.
ADTREPORT---config
html
WEB-INF---classes
lib
web.xml

I have environment.dat file under config folder.I am trying to load that file by giving the relative path like "config/environment.dat".But it failing to to identify giving exception no such file or directory.

I tried with ./config/environment.dat
../cinfig/environment.dat
/config/environment.dat

But none of the above options are not working.

Appreciate your help ASAP.

Regards,
Veena
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The root directory of a war file is always considered to be the root of the web context directory of the web application. Given the way you are trying to access your files, I'd recommend you just remove the directory ADTREPORT and place all its files and folders directly in the root of the war file.
 
reply
    Bookmark Topic Watch Topic
  • New Topic