{"id":13,"date":"2007-05-15T12:57:27","date_gmt":"2007-05-15T17:57:27","guid":{"rendered":"https:\/\/sendai77.com\/blog\/?p=13"},"modified":"2007-05-18T15:30:46","modified_gmt":"2007-05-18T20:30:46","slug":"liferay-and-tomcat","status":"publish","type":"post","link":"https:\/\/sendai77.com\/blog\/liferay-and-tomcat\/","title":{"rendered":"Liferay and Tomcat"},"content":{"rendered":"<p>The road less traveled&#8230;<\/p>\n<p>Well, of course, I am attempting to go my own way on this one. I want to install Liferay 4.2.2 on Tomcat 5.5.23 without having Liferay become the root context. In other words, I want my Liferay and I want my other webapps, too.<\/p>\n<p>Why am I being fussy about this? Well, I don&#8217;t know. I&#8217;m not particularly attached to the default Tomcat homepage, straight out of the box. But I guess I just want finer-grained control over my Tomcat webapps. That way, if I wanted to install another rev or Liferay, or another CMS someplace else, I can just configure such as I please and assign a new URL for it &#8211; rather than getting confused about which Liferay is currently at the root context.<\/p>\n<p>So, here I am <a href=\"http:\/\/content.liferay.com\/4.2\/doc\/installation\/liferay_4_installation_guide\/onepage\/#d0e1028\">following the directions<\/a> and installing Liferay. &#8220;Connect the dots&#8230; La la la la&#8230;&#8221; Well, I&#8217;ve gotten to the part where I&#8217;ve renamed the file ROOT.xml to liferay.xml&#8230;<\/p>\n<p>Well, things didn&#8217;t work right off the bat because I didn&#8217;t have log4j installed. So, I downloaded it and tried to compile it, but this being a fresh computer, I didn&#8217;t have ant, so I <a href=\"http:\/\/ant.apache.org\/\">went and got that<\/a>.<\/p>\n<p>I tried to compile log4j and got an &#8220;invalid target: 1.1&#8221; error, which upon further research, I found a post which suggested I downgrade my Java JDK &#8211; which I did, since I&#8217;m not doing anything that takes advantage of the new JDK.<\/p>\n<p>To get log4j working in Tomcat, I added the log4j-1.2.14.jar to $CATALINA_HOME\/common\/lib\/ , then I grabbed a basic configuration example from the web and put the log4j config file at $CATALINA_HOME\/common\/classes\/log4j.properties. I cranked Tomcat, and life was good, as far as fixing the &#8220;Set up logging properly&#8221; error goes.<\/p>\n<p>Now it&#8217;s just plain old blowing up &#8211; Liferay won&#8217;t start properly. But at least now I have logging, so I know where the stack trace goes now&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The road less traveled&#8230; Well, of course, I am attempting to go my own way on this one. I want to install Liferay 4.2.2 on Tomcat 5.5.23 without having Liferay become the root context. In other words, I want my &hellip; <a href=\"https:\/\/sendai77.com\/blog\/liferay-and-tomcat\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-webtech"],"_links":{"self":[{"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":0,"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendai77.com\/blog\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}