I am deploying my Java application with Ant. Unfortunately my test deployment on the local machine doesn\'t work because of Vista. The Program Files directionaries are prote
I tried in Apache tomcat version 8.5 and simply using appBase="c:\path\to\webapps"
worked seamlessly
What if you copy the same webapps directory to another location and change the path in server.xml file. If we would do this then definitely i believe we won't have any probs because whenever things webapps need to deploy an application it will have.
Thanks & Best regards, Kiran
I have very the same security issue with Vista and I resolve it by providing "Full control" access level for "Users" group on "Program Files\Apache Software Foundation\Tomcat XYZ" folder.
It resolved deployment issues with tomcat for me as well as question on starting tomcat as a service. Of course you can assign permissions more strictly (per deployment user group or per user). IMO it's more quicker way then reconfigure the tomcat.
Regarding your original question how to change path outside of ${catalina.home} under Windows:
It's very the same as you have to accomplish it on *nix:
<Host name="localhost" appBase="/c:/webapps2"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
Did you have ROOT folder in you folder mentioned in appBase? The approach is tested under Tomcat 6.0
for windows
appBase="c://webapps2"
The following should work in Windows:
C:/Users/maerch/Workspaces/Tomcat6.0_webapps/
/Users/maerch/Workspaces/Tomcat6.0_webapps/
Windows also support Unix's slash (/), so it's a good idea to use this instead of Windows's (\). Also the 'default root' for Windows is C:, so you shouldn't need it in an absolute path.
I don't think this is a problem with the path. Perhaps you could try use a relative path:
"../../../Users/..."
It may also be good idea to install Tomcat in a directory where you have full access.