When I try to deploy an application with eclipse on tomcat in local, I have this error:
[windowsazurepackage] cspack.exe: Error : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
I have already change the environment variable _CSRUN_STATE_DIRECTORY.
But I haven’t this error when I don’t choose the JDK and my Tomcat when I create he Azure Project deployment. But in this case, my application doesn’t start.
Can you help me?
I solved this by editing
package.xmlin the deployment project root and changing the destination folder by searching for the following line:…and then changing
${basedir}to a shorter and absolute path likec:\publish