How does idea use Jrebel to deploy a Web project?
Steps
(1) Install Jrebel plugin
file| Settings ...
Enter Jrebel to search, and then install.
Note: You need to restart idea after installing the Jrebel plugin.
(2) Configure Tomcat
run|
In turn, open Defaults-tomcat server-local and enter the Setup interface of the local Tomcat (Tomcat template)
Click Configure, set the Tomcat path, and click OK to save
Modify the Update action and the Tomcat port number
Server tab, set on Update action and on frame deactivation two actions update classes and resources
(3) Configure the input classes directory
file| Project structure
Go to the Project tab page
Modify "projectcompiler output" as d:\software\eclipse\workspace2\< project name >\src\main\webapp\web-inf\classes
Sets the code compilation output directory for modules. Click Modules Settings right use module compile output path
is set to the d:\software\eclipse\workspace2\< project name >\src\main\webapp\web-inf\classes
Specifies the path to Web.xml and Webroot. Click on the Web to specify
Web Module Deployment Descriptor path is D:\software\eclipse\workspace2\convention\src\main\webapp\WEB-INF\web.xml
and Web Resource directory path is D:\software\eclipse\workspace2\convention\src\main\webapp
Click Apply.
Go to Artifacts tab and modify output directory:
(4) add an application server that corresponds to project
Remove "After launch" of the check
After saving and clicking on the Deployment tab,
Choose the exploded.
Right set the URI that is accessed is the application path,
Save, back to Server tab, set on Update action and on frame deactivation two actions update classes and resources
(5) in order to prevent the click of the Reimport button causes Moudels and artifact two tabs inside the path to restore the default problem
(6) Configure Jrebel
(7) Start in Jrebel mode
Or
(8) After the deployment, to Jrebel startup, console information :
D:\software\apache-tomcat-7.0.59-windows-x64_idea\apache-tomcat-7.0.59\bin\catalina.bat Run
[2015-12-28 11:05:48,261] Artifact Convention:war Exploded:server is not connected. Deploy is not available.
Using catalina_base: "C:\Users\Administrator\." Intellijidea15\system\tomcat\unnamed_convention "
Using catalina_home: "D:\software\apache-tomcat-7.0.59-windows-x64_idea\apache-tomcat-7.0.59"
Using catalina_tmpdir: "D:\software\apache-tomcat-7.0.59-windows-x64_idea\apache-tomcat-7.0.59\temp"
Using jre_home: "C:\Program files\java\jdk1.7.0_55"
Using CLASSPATH: "D:\software\apache-tomcat-7.0.59-windows-x64_idea\apache-tomcat-7.0.59\bin\bootstrap.jar;d:\ Software\apache-tomcat-7.0.59-windows-x64_idea\apache-tomcat-7.0.59\bin\tomcat-juli.jar "
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 JRebel: #############################################################
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 Jrebel:jrebel Legacy Agent 6.3.1 (201512181654)
2015-12-28 23:05:49 JRebel: (c) Copyright Zeroturnaround as, Estonia, Tartu.
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 Jrebel:over JRebel prevented
2015-12-28 23:05:49 Jrebel:at least 130 redeploys/restarts saving you about 0.2 hours.
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 jrebel:over 237 days JRebel prevented
2015-12-28 23:05:49 Jrebel:at Least 1375 Redeploys/restarts saving you about 2.3 hours.
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 jrebel:licensed to Wei Huang (yonyou)
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 Jrebel:license type:evaluation
2015-12-28 23:05:49 Jrebel:valid From:december 28, 2015
2015-12-28 23:05:49 jrebel:valid until:january 11, 2016
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 jrebel:you are using an evaluation license.
2015-12-28 23:05:49 Jrebel:days left until license expires:14
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 jrebel:to Extend your evaluation or purchase a license,
2015-12-28 23:05:49 jrebel:contact sales@zeroturnaround.com.
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 jrebel:if You are a error, contact support@zeroturnaround.com.
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 JRebel:
2015-12-28 23:05:49 JRebel: #############################################################
2015-12-28 23:05:49 JRebel:
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: Server Version:apache tomcat/7.0.59
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Server Built:jan 2015 15:51:10 UTC
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: Server number:7.0.59.0
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: OS name:windows 7
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: OS version:6.1
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: architecture:amd64
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: Java Home:c:\program files\java\jdk1.7.0_55\jre
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Info: JVM version:1.7.0_55-b13
December 28, 2015 11:05:52 pm Org.apache.catalina.startup.VersionLoggerListener Log
Information: JVM vendor:oracle Corporation
December 28, 2015 11:05:52 pm Org.ap