Configuring tomcat deployment context xml location in Netbeans

Issue:

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.

Solution:

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.


-J-Djava.io.tmpdir="D:\temp"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s