Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where will WebLogic look for files by default?

 
Vivek Chaitanya
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi All,

I have a web application deployed in WebLogic. In one of my java file, I tried to read PleaseNote.txt as following:


Now WebLogic is taking PleaseNote.txt from its domain directory.My question is:

[1] Why it is domain directory? Why not the directory where my java file which has the above line of code is in?

[2] Is there any configuration which I am not aware of , but did unknowingly, for WebLogic to look in its domain directory?

[3] What are the implications / side effects of using above line of code in production?

Any WeLogic experts, please respond.

Thank you.
Regards,
Chaitanya
 
manoj r patil
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think regardless of appserver, it will look into its classpath to load that particular file.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You dont have to be a weblogic expert to answer this question. I do hope that line of code does not exist in prod. The file's path is relative. Relative to what is always a question that has a dynamic answer. Use an absolute path instead.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic