| Author |
servlet Properties files not found error
|
kashyap kotamraju
Greenhorn
Joined: Nov 26, 2003
Posts: 1
|
|
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
Joined: Aug 10, 2001
Posts: 3879
|
|
Can you post the code you are trying to use? Kyle
|
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
|
 |
 |
|
|
subject: servlet Properties files not found error
|
|
|