I'm currently trying to troubleshoot an issue with a Java web application that is stumping me along with the vendor of the software. We're running on Windows Server 2012 with Tomcat 8. In my scenario, the application uses an installer to set up the files and environment. As part of the setup process, the service account that Tomcat will run under is supplied. For this example, I'll call the service account
Context: Tomcat running as Windows Service
With Tomcat running in this context, we can log in and interact with the UI. However, the application fails when it attempts to create a new directory on disk. (E:\xxx\xxx) During troubleshooting, we've given the service account full control over the directory and a file share and the problem remains. The logs only tell us that a directory cannot be created.
Context: Tomcat running from Administrator Command Prompt
When Tomcat is launched in an administrator command prompt running under the same account as the the failure above, everything works. The application can create directories on disk.
There is no difference that I know of between the configuration options used when running as a Windows Service (failing) to running from a administrator command prompt (working). Are there any new security options with Windows Server 2012 that may be causing this issue?