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

Accessing property file from weblogic domain in spring

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my web application, I need to access property file located in weblogic domain. (<domain>/config/weblogic.properties)

Here is my code



I am getting file not found error. Any Idea how can I read file properly.

Thanks,
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<domain>/config/weblogic.properties isn't on the classpath.

If you move it to <domain>/WEB-INF/classes/config/weblogic.properties it would be though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic