dcsimg
File dir = new File("\\serverlog");
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Eugene_Wong
Posted On:   Wednesday, March 21, 2007 04:04 AM

File dir = new File("\serverlog");


String[] list = dir.list();


Could someone tell me why dir.list() would returns null? It does not when I run my web app from netbeans' tomcat 5.5, but when I deploy my project onto the real apache tomcat 5.5, it could not find the folder. I am running both netbeans and tomcat are the same machine and dir.exists() returns true on netbeans, but false on tomcat. any help would be great, thanks in advance.

Re: File dir = new File("\\serverlog");

Posted By:   Robert_Lybarger  
Posted On:   Wednesday, March 21, 2007 10:16 PM

You, as a user, are running netbeans, but Tomcat itself is being run as a windows system service via the Local System account, right? If so, the Local System account does *NOT* have network access priviledges. Bit me about half a year ago. Go cry to Microsoft and/or reconfigure your Tomcat service to run as a "real" user. Google around for more details.
About | Sitemap | Contact