2011/12/31 Naveen Alex <naveen.a...@gmail.com>: > Hi, > > I am stuck with an issue on Tomcat 6.x version. > > I have two folder under /webapps/ folder called "appstore" and > 'static-content". appstore has a UI which will write files to a folder in > "static-content" directory under webapps. > > Everything works fine when i run tomcat as a standalone version but when i > run it as a windows services, the application called "appstore" is not able > to create any folders or files under "static-content".
1. Do you know that you can configure Service to use a user's account when it runs? That can be done in the Windows Control Panel or in the Tomcat Service configuration program (tomcat6w.exe). If you not not configure it to use a user's account it will use a special system account called LocalService and that might not have necessary permissions. 2. UAC of Windows Vista and later can interfere with the above. Especially if you have installed Tomcat to C:\Program Files. (IIRC it is possible to circumvent it by assigning some permissions to the installation folder, but the FAQ does not mention it) See http://wiki.apache.org/tomcat/FAQ/Windows > > I tried giving security manager options in the registry but still it doesnt > work. Pls help me out. Cant understand why it works for standalone or not > as a windows service. What do you mean by "security manager"? Java security manager is quite a different beast. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org