Eclipse Classes folder cannot be published to Tomcat problem--tomcat issue slow release

Source: Internet
Author: User

===

Resolves an issue where the classes folder cannot be published to Tomcat under Eclipse _nautilus_ Sina Blog
Http://blog.sina.com.cn/s/blog_484d8777010130n5.html

Just came in the morning, updated the project's SVN, and then released to Tomcat, the strange problem arises, tomcat boot is very simple to complete, the deployment of the project can not be identified. Look at the Publish directory Web-inf only the Lib directory, other such as the classes directory, the Web. xml file does not exist. Don't know where the problem is?

After the investigation, finally found the problem in the eclipse of the. classpath file, in which there is such an article:
The items that work correctly are written like this:
<classpathentry kind= "Output" path= "Target/classes"/>
The. Classpath of a project that is not functioning properly is written like this:
<classpathentry kind= "Output" path= "Webcontent/web-inf/classes"/>

There will be no problem after the change. Waiting to find out why? Do not know what is the problem of the link? See the project has a compiled class file under Target and web-inf/. But why can't we specify the latter?

====

==

The problem with Tomcat publishing is slow
--
Terminate the process with Java and start eclipse again.
--
Remove Eclipse's auto-compiled class and don't let eclipse automatically compile class files
Once you've written some Java code, stop Tomcat, compile it manually, and publish
Frequent hot deployment is going to explode memory, Tomcat has this problem, WebLogic also has
So try to avoid frequent hot deployment, more manual compilation, deployment
---Eclipse.ini
-vmargs
-xms512m
-xmx512m
-xmn128m
-dcom.sun.management.jmxremote
-xx:permsize=96m
-xx:maxpermsize=96m
-xverify:none
-xx:+disableexplicitgc
-xnoclassgc
-xx:+useparnewgc
-xx:+useconcmarksweepgc
-xx:cmsinitiatingoccupancyfraction=85

Eclipse Classes folder cannot be published to Tomcat problem--tomcat issue slow release

Related Article

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.