May 3, 2020
Estimated Post Reading Time ~

How to Deploy CQ/AEM on Tomcat Server

Assume that, you are now in C:\Users\example

1. Place your apache-tomcat-7.0.34.zip here in above location and extract it
Now, you’re here C:\Users\
example\apache-tomcat-7.0.34

2. Open C:\Users\
example\apache-tomcat-7.0.34\bin\cataline.bat and add the heap as below:
set JAVA_OPTS=-Xmx1792m -XX:MaxPermSize=512m
(or)
Add below Environment variables:
JAVA_OPTS = “-Xms512m -Xmx1792m”
CATALINA_HOME = "C:\Users\
example\apache-tomcat-7.0.34"
CATALINA_OPTS = "-Dsling.run.modes=author,stage -Dsling.home=C:\Users\ramakrishnak\apache-tomcat-7.0.34\crx-quickstart -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"

3. Go to C:\Users\
example\apache-tomcat-7.0.34\conf\server.xml and change Connecter port to 4502 from 8080 (at line no: 70)

<Connector port="4502" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

4. Remove ROOT war file from C:\Users\
example\apache-tomcat-7.0.34\webapp

5. Copy cq-quickstart-5.5.0-20120220.war file to C:\Users\
example\apache-tomcat-7.0.34\webapps and rename it to ROOT.war file

6. Create a crx folder C:\Users\
example\apache-tomcat-7.0.34\crx-quickstart - This is the location of your JCR repository created by CQ/AEM

7. Change param-value at line no: 62 in “C:\Users\
example\apache-tomcat-7.0.34\webapps\ROOT\WEB-INF\web.xml” to new location created in 6th step.

<init-param>
<param-name>sling.home</param-name>
<param-value>C:\Users\
example\apache-tomcat-7.0.34\crx-quickstart</param-value>
</init-param>


8. Finally go to below location in command line C:\Users\
example\apache-tomcat-7.0.34\bin and type in the following command to start your CQ on Tomcat.



Now you can see, your ROOT.war is deployed.



9. Check the folder C:\Users\
example\apache-tomcat-7.0.34\crx-quickstart and the following folders should have been created.
  • launchpad
  • logs
  • monitoring
  • repository

10) It may take several minutes for the first time the server to start and get to a running state, wait and check the log C:\Users\
example\apache-tomcat-7.0.34\crx-quickstart\logs\error.log to see if all services are starting up properly.

11) Open a browser window and type http://localhost:4502 and it should redirect to http://localhost:8080/system/granite/license/index.html for license information. If you have license.properties get the customer name and license key from file, and enter in the form.

12) Check http://localhost:4502/system/console/bundles and http://localhost:4502/crx/de

Credentials are admin/admin


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.