aspose file tools*
The moose likes Tomcat and the fly likes Run Web application as Specific user. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Run Web application as Specific user." Watch "Run Web application as Specific user." New topic

Run Web application as Specific user.

Kishor Samant

Joined: Apr 11, 2012
Posts: 3
On my application server machine ,I have done drive mapping using specific user.
But with web application running on Tomcat I am not able to access this drive because tomcat runs as a windows service and not with user which has the actual access to drive mapped.
So i want know how to run web application on tomcat server with specific user.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15624

Tomcat itself is an application and therefore it runs under a user ID of its own. Reckless people run it under an administrative/root user ID. Security-minded people create a special ID just for Tomcat.

Since Tomcat is a multi-user system it has to have security privileges that are the greatest common denominator of all the Tomcat users as used by the deployed webapps. Per-appuser environmental characteristics such as drive mappings are not possible, however because Tomcat doesn't attempt to virtualize an entire server OS.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Run Web application as Specific user.
Similar Threads
Where does Eclipse look for the tomcat server
tomcat integration with windows domain
Discrepancy in listing of a file using Windows Explorer and JAVA I/O classes
ODBC connection to MS Access works standalone, but not as servlet
Servlet works on WebSphere but not on Tomcat