Assume that, you are now in C:\Users\ramakrishnak
1. Place your apache-tomcat-7.0.34.zip here in above location and extract it
Now, you’re here C:\Users\ ramakrishnak \apache-tomcat-7.0.34
1. Place your apache-tomcat-7.0.34.zip here in above location and extract it
Now, you’re here C:\Users\ ramakrishnak \apache-tomcat-7.0.34
2. Open C:\Users\ ramakrishnak \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\ramakrishnak\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\ ramakrishnak \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\ ramakrishnak
\apache-tomcat-7.0.34\webapp
5. Copy cq-quickstart-5.5.0-20120220.war file to C:\Users\ ramakrishnak \apache-tomcat-7.0.34\webapps and
rename it to ROOT.war file
6. Create a crx folder C:\Users\ ramakrishnak \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\ramakrishnak\apache-tomcat-7.0.34\webapps\ROOT\WEB-INF\web.xml” to new location created in 6th step.
6. Create a crx folder C:\Users\ ramakrishnak \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\ramakrishnak\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-name>sling.home</param-name>
<param-value>C:\Users\ramakrishnak\apache-tomcat-7.0.34\crx-quickstart</param-value>
</init-param>
8. Finally go to below location in command line C:\Users\ramakrishnak\apache-tomcat-7.0.34\bin and type in following command to start your CQ on Tomcat.
8. Finally go to below location in command line C:\Users\ramakrishnak\apache-tomcat-7.0.34\bin and type in following command to start your CQ on Tomcat.
Now you can see, your ROOT.war is deployed.
9. Check the folder C:\Users\ramakrishnak\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\ramakrishnak\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
Hi Ram,
ReplyDeleteIt is really nice post,I had one question regarding deploying CQ in tomcat
We are planning to deploy the CQ war in the tomcat server. Can you please let me know is there any Pros and Cons deploying in tomcat than in there own CQSE container?
Thanks ,
Chandu
Hi Chandrasekhar,
DeleteAs per my knowledge, We can use this tomcat server to deploy other web applications too and also we get all the benefits of Tomcat apart from CQ container. If you use only CQ container, we may not deploy the other web applications.
Let me gather if any advantages are there.
Thank you.
Hi Ramakrishna,
ReplyDeleteDo you have the download link for the CQ war or can you share the same through Gdrive?
Barath
I am not sure, but you can download the war file through the package share.
DeleteNice info. visit this site
ReplyDelete