• 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

servlet Properties files not found error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the code you are trying to use?
Kyle
reply
    Bookmark Topic Watch Topic
  • New Topic