wood burning stoves 2.0*
The moose likes Websphere and the fly likes File Not Found Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "File Not Found Exception" Watch "File Not Found Exception" New topic
Author

File Not Found Exception

Arpit Maheshwari
Greenhorn

Joined: Dec 06, 2011
Posts: 5

I am using a class that makes a log entry. This class works fine when i work in Apache Tomcat Server, but in Websphere server FileNotFoundException arises when I try to create a log.
Please somebody help...
The following stacktrace is generated:


[3/7/12 16:50:44:468 IST] 0000002a SystemErr R java.io.FileNotFoundException: C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\resident\login_attempt_log.log.lck (The system cannot find the path specified.)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at java.util.logging.FileHandler.initOutputFiles(Unknown Source)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at java.util.logging.FileHandler.init(Unknown Source)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at java.util.logging.FileHandler.<init>(Unknown Source)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at utilities.logs.MyLogEntry.makeLogEntry(MyLogEntry.java:90)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at servlet.residents.ResidentLoginAuthenticator.doPost(ResidentLoginAuthenticator.java:45)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
[3/7/12 16:50:44:468 IST] 0000002a SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

which logger you are using?


Avinash G.A
OCP Java SE 6 Programmer, OCP Java EE 5 Web Component Developer, OCE Java EE 6 Web Services Developer, VMware Certified Core Spring 3.x Developer, EMC Proven Professional (ISM-V2)
Arpit Maheshwari
Greenhorn

Joined: Dec 06, 2011
Posts: 5
I have implemented my own logger and have implemented my own logformatter for logging...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Not Found Exception
 
Similar Threads
Errors
Error : WSVR0068E: Attempt to start EnterpriseBean
Configuring WAS 6.1 data source
Logging in j2ee
Where can I get any info on Websphere 6.1?