Hot Deploy In Tomcat(maven)

来源:互联网 发布:自动合成电子相册软件 编辑:程序博客网 时间:2024/04/27 08:23
1. Eclipse configuration

1.1 we need the Eclipse for Java EE version (this version integrated a nice HTML editor and the Tomcat plugin)

1.2 Install the [FileSync] plugin (update site: http://andrei.gmxhome.de/eclipse/)

2. Tomcat plugin configuration

2.1 first add the [Servers] view panel in your Eclipse, then add Tomcat in the server list.





2.2 double click tomcat from the server list to open the configuration, setting as following screen shot.




2.3 Click the [Open launch configuration] in the General Information panel. Add following arguments:

-XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -Xms1024m -Xmx2048m -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl




3. Project Configuration

3.1 Add web facet to project, select [Dynamic Web Module] in project facet list and click [Further configuration available] to edit the content directory as following.



note:if fail ,You need temporarily remove the folder [abc-online/src/main/webapp/WEB-INF/classes], then it will be pass.

3.2 Edit Deployment Assembly as following:





3.3 set Files synchronization





4. Finally Add ABC project to tomcat then launch Tomcat in Debug mode. It’s ready to use.


原创粉丝点击