Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to load static members while testing

 
Veena Grandhi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic