• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet Properties files not found error

 
kashyap kotamraju
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Websphere Studio site developer 5.1 . In my application I have a servlet which is trying to load a property file in its init method.When I start the server and in the servlet init method I am geting error that property file not found.
servlet is in webapp/web-inf/classes/"servlet.class"
property is in webapp/web-inf/properties/"servlet.properties"
[12/12/03 13:37:20:451 MST] 3a7fc31d SystemErr R java.io.FileNotFoundException: /servlet.properties (The system cannot find the file specified)
[12/12/03 13:37:20:451 MST] 3a7fc31d SystemErr R at java.io.FileInputStream.open(Native Method)
[12/12/03 13:37:20:451 MST] 3a7fc31d SystemErr R at java.io.FileInputStream.<init>(FileInputStream.java:78)
[12/12/03 13:37:20:451 MST] 3a7fc31d SystemErr R at com.ibm.servlet.Servlet.init(Servlet.java:431)
[12/12/03 13:37:20:471 MST] 3a7fc31d SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
[12/12/03 13:37:20:481 MST] 3a7fc31d SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
[12/12/03 13:37:20:481 MST] 3a7fc31d SystemErr R at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)

I know that it is not able to find the property file any suggestion are most welcome
Thanks in advance
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code you are trying to use?
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic