<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5336301390652342640</id><updated>2011-12-19T02:04:53.951-08:00</updated><category term='grails hosting'/><category term='grails'/><category term='tomcat private'/><category term='javascript'/><category term='tomcat shared'/><category term='java'/><category term='hostjava'/><category term='hostjava.net'/><category term='groovy'/><category term='gsp'/><category term='grails deployment'/><title type='text'>The Grails Expedition</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://travootrr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5336301390652342640/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://travootrr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>divm</name><uri>http://www.blogger.com/profile/08708182396933801974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5336301390652342640.post-3450081429294745715</id><published>2008-09-04T21:17:00.000-07:00</published><updated>2008-09-05T20:02:55.190-07:00</updated><title type='text'>An Annexure - Grails deployment in Tomcat 6.0/ Ubuntu</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;PLEASE READ THE EARLIER POST FOR COMPLETE INFO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After first upload of your grails app, when you follow the same process to upload an update, the grails app sometimes doesn't work. I have no idea why but here are the steps to solve this.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Always upload the war file into /jakarta_tomcat directory.&lt;/li&gt;&lt;li&gt;After upload copy the file into webapps directory.&lt;/li&gt;&lt;li&gt;In hostjava.net since webapps/ROOT is the default directory, create a backup of the ROOT directory, anywhere outside the webapps directory.&lt;/li&gt;&lt;li&gt;Unzip the newly loaded war file.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Place the contents into the root directory.&lt;/li&gt;&lt;li&gt;Move the .war file outside webapps to avoid automatic deployment. Not moving the war file for some reason causes issues ONLY with grails applications.&lt;/li&gt;&lt;li&gt;Now just restart the tomcat using the shortcut command of &lt;jr&gt; or full command of /jakarta_tomcat/bin/startup.sh&lt;/jr&gt;&lt;/li&gt;&lt;li&gt;On starting up your application should work as expected.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5336301390652342640-3450081429294745715?l=travootrr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://travootrr.blogspot.com/feeds/3450081429294745715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5336301390652342640&amp;postID=3450081429294745715' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5336301390652342640/posts/default/3450081429294745715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5336301390652342640/posts/default/3450081429294745715'/><link rel='alternate' type='text/html' href='http://travootrr.blogspot.com/2008/09/annexure.html' title='An Annexure - Grails deployment in Tomcat 6.0/ Ubuntu'/><author><name>divm</name><uri>http://www.blogger.com/profile/08708182396933801974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5336301390652342640.post-4408743345897521610</id><published>2008-09-02T08:44:00.001-07:00</published><updated>2008-09-04T21:30:01.825-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='hostjava'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat shared'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat private'/><category scheme='http://www.blogger.com/atom/ns#' term='grails hosting'/><category scheme='http://www.blogger.com/atom/ns#' term='grails deployment'/><category scheme='http://www.blogger.com/atom/ns#' term='gsp'/><category scheme='http://www.blogger.com/atom/ns#' term='hostjava.net'/><category scheme='http://www.blogger.com/atom/ns#' term='grails'/><category scheme='http://www.blogger.com/atom/ns#' term='groovy'/><title type='text'>Deploying Grails on Shared and Private Tomcat</title><content type='html'>Hello All,&lt;br /&gt;&lt;br /&gt;I intend to take all through my experience of developing a working (almost professional) website completely using Grails with a bit of Javascript sprinkled in and ample help from &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Dreamweaver&lt;/span&gt; in creating the views. There were several hurdles along the way especially considering that I am not your average Java geek. I have until recently been playing a marketing role and whatever coding I had done in the past had been in C/C++ and that too many eons back. So, if I say that Grails is easy, you better believe it. And to prove it, I have developed &lt;a href="http://www.travootrr.com/"&gt;www.travootrr.com&lt;/a&gt; completely on my own with a wife and a demanding 2 and a half year old! And best of all , I was able to do this in 2 weeks development time + 1-2 week deployment (took longer than usual and hence the need for this post as I couldn't find too many resources that provided this info in sufficient detail) + a couple of days of testing. I intend to write a detailed &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;eBook&lt;/span&gt; of how I went about creating &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Travootrr&lt;/span&gt; including the entire zipped source code. For now here is how you would deploy your Grails application on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;hostjava&lt;/span&gt;.net on a private or a shared tomcat 5.5 or 6.0:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial; font-style: italic;"&gt;Disclaimer: I am sure there are better ways. It's also possible that I might have not understood everything. But, I am certain that the below steps makes a grails app work!!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Shared Tomcat:&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Create a war of your grails application using the "&lt;span style="font-family:courier new;"&gt;grails war&lt;/span&gt;" command on your local grails project directory.&lt;/li&gt;&lt;li&gt;Upload the war file into the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;httpdocs&lt;/span&gt; directory.&lt;/li&gt;&lt;li&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Login&lt;/span&gt; to your &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;hostjava&lt;/span&gt;.net account ssh.&lt;/li&gt;&lt;li&gt;This is the most important part and most people screw up here so listen closely:&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;Before you restart the server, you need to update the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;apache&lt;/span&gt; mappings for grails to work. This will be done differently in different servers but on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;hostjava&lt;/span&gt;.net, you need to execute the command &lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;updatevhost&lt;/span&gt; &lt;yourdomain.com&gt;&lt;/yourdomain.com&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;First add "index.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;gsp&lt;/span&gt;" to the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;DirectoryIndex&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Then add the following lines:&lt;/li&gt;&lt;li&gt;"&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;JkMount&lt;/span&gt; /*.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;gsp&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;" where &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;XXXX&lt;/span&gt; is your port number, which you will see in the file being edited.&lt;/li&gt;&lt;li&gt;Then add, "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;JkMount&lt;/span&gt; /*.gsp/* &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;add, "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;JkMount&lt;/span&gt; / &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;add, "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;JkMount&lt;/span&gt; /* &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;add "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;JkMount&lt;/span&gt; /*.dispatch &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;add "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;JkMount&lt;/span&gt; /*.dispatch/* &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;add "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;JkMount&lt;/span&gt; /grails-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;errorhandler&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;add "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;JkMount&lt;/span&gt; /grails-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;errorhandler&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;wXXXX&lt;/span&gt;&lt;/span&gt;"&lt;/li&gt;&lt;/ul&gt;   5. Once this has been added save the above using F2 and save.&lt;br /&gt;6. Now request restart of your tomcat using the command "&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;restartsharedtomcat&lt;/span&gt;55&lt;/span&gt;" on your ssh prompt.&lt;br /&gt;7. That's it. On restart, your grails application should work. If it doesn't, contact me and I will help if possible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Private Tomcat:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Only a few steps are different here:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download the war file into your tomcat/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;webapps&lt;/span&gt; directory.&lt;/li&gt;&lt;li&gt;Update &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;apache&lt;/span&gt; mapping as above.&lt;/li&gt;&lt;li&gt;restart tomcat using the command "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"  style="font-family:courier new;"&gt;jr&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;And that's it. Your app should be ready to go!&lt;/li&gt;&lt;/ol&gt;Remember folks. These steps are specific to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_36"&gt;hostjava&lt;/span&gt;.net. Although the dropping of the war and editing &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;apache&lt;/span&gt; mapping should be common on all servers that support Java, Spring and Hibernate. Many sites don't so be careful!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5336301390652342640-4408743345897521610?l=travootrr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://travootrr.blogspot.com/feeds/4408743345897521610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5336301390652342640&amp;postID=4408743345897521610' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5336301390652342640/posts/default/4408743345897521610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5336301390652342640/posts/default/4408743345897521610'/><link rel='alternate' type='text/html' href='http://travootrr.blogspot.com/2008/09/deploying-grails-on-shared-and-private.html' title='Deploying Grails on Shared and Private Tomcat'/><author><name>divm</name><uri>http://www.blogger.com/profile/08708182396933801974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
