When generating a URL to deploy the application on Tomcat, NetBeans
does not escape special characters, which causes Tomcat to mis-interpret them, thus causing deployment to fail.
Instead of default “C:\Documents and Settings\sanjith\Local Settings\Temp” directory location of deployment context.xml file, use simple location (without spaces or any special characters) like D:\temp.
Note: Changing of the windows environment variable “TEMP” will not help here!
Instead add the following in “netbeans.conf” file under the “etc” directory of netbean’s installation home directory to resolve this problem.
So often you would have noticed after tomcat configuration in eclipse, the admin start page never opens!
Eclipse doesn’t copy the default application folders (e.g. ROOT) when it creates the tomcat specific folder inside the workspace.
- Go to your “eclipse-workspace -> .metadata -> .plugins -> org.eclipse.wst.server.core -> tmp<number> -> wtpwebapps” directory
- Copy the ROOT folder from your “apache installation home -> webapps” directory to the directory mentioned in Step 1. If prompted with overwrite dialog box, select yes and proceed.
- Reload http://localhost/ page. Admin start page should now open without any issues!