Hi, Hmm, well, I'm glad you found a workaround. I don't spend much time on the Windows Service, but I know it has some intricacies (as do Windows services in general) with respect to what account they run under.
Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: James Clark [mailto:[EMAIL PROTECTED] >Sent: Friday, October 15, 2004 2:06 PM >To: Tomcat Users List >Subject: Re: null array in FileDirContext? > >Shapira, Yoav wrote: >> Hi, >> We shouldn't crash with an NPE, regardless, but out of curiosity, are >> there actually any files in your docBase? > >Yes, the structure is like this: > WEB-INF > classes > com/dimins/so-on-and-so-forth > lib > diveline.jar > web.xml > cacheroot > pages > header.jsp > status.jsp > >For a time, I guessed that it might be caused by the presence of empty >directories, so I added 'placeholder.txt' to each empty directory - no >good. > > >I hate to report finding a workaround immediately after reporting a >problem, but that's what just happened. I edited the properties of the >tomcat windows service (via right-click, properties, in the 'Services' >dialog). I changed the 'Log On' setting to run the service as my user, >rather than as 'Local System account'. Now I have no errors at all, and > Tomcat is working just as I would expect. > >The reason I did this was because I was also receiving a strange >FileNotFoundException (Access Denied) in an entirely different servlet. > It was claiming that it could not read one of the jar files in that >servlet's WEB-INF/lib directory. I did not know that there was a way to >produce access denied in XP, or how to correctly fix it, but this >workaround also fixed that problem. > >-jamie > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
