wood burning stoves 2.0*
The moose likes Websphere and the fly likes servlet Properties files not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "servlet Properties files not found error" Watch "servlet Properties files not found error" New topic
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: 3892
    
    5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet Properties files not found error
 
Similar Threads
Error creating Action instance for path /Action
ClassNotFoundException: oracle.jdbc.OracleDriver
Logging in j2ee
Naming Not Found Exception
Error when interacting with CachePageDeletionList