Tomcat deployment is normal, jetty deployment fails

Source: Internet
Author: User
Tags parent directory tomcat

Recently transferred to a project team to help, after the code compiled through the MyEclipse jetty plug-in deployment is not up, and finally helpless only through Tomcat deployment (completion of the task is important).

Now idle, continue to tangle, contrast jetty release and Tomcat release process, the difference is that jetty is directly read Src/main/java after the compiled target directory and directly read the Src/main/resource path under the configuration file, and then publish , while Tomcat copies the Src/main/java compiled target directory and the Src/main/resource configuration file to the WebApps directory and publishes it.

Then look at the jetty release error message, found that the read configuration file path actually has%20 such words,, will not be because the file path in the presence of a space, the attitude of holding a try, re-pull the code (before the SVN project path in the parent directory of the existence of spaces), Ensure that there are no spaces in the local path, compile, publish, find everything OK.


The evil of the space Ah,,,, is again a space pit;



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.