Liferay Tomcat bundle Upgrade (Liferay as root webapp)

by

Upgrade from 4.3.3 to 4.4.2 on crusldi2

If try upgrading liferay follow the upgrade instruction from liferay wiki, liferay can start, but system returns some errors-message : org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named, so we do not use the liferay wiki method and use the downloaded liferay-tomcat-4.4.2 bundle to upgrade.

  • Shut down Tomcat.
  • Upload the 4.4.2-tomcat6 bundle to /LDIapps/Tomcat/liferay-portal-tomcat-6.0-4.4.2/
  • cd /usr/local
  • Remove tomcat softlink
  • Create new tomcat softlink by

ln -s /LDIapps/Tomcat/liferay-portal-tomcat-6.0-4.4.2/ tomcat

  • Register wblway theme files
  1. Copy <Tomcat4.3.3>/webapps/liferay/html/themes/wblway to /LDIapps/Tomcat/liferay-portal-tomcat-6.0-4.4.2/webapps/Root/html/themes/wblway
  2. edit /LDIapps/Tomcat/liferay-portal-tomcat-6.0-4.4.2/webapps/Root/WEB-INF/liferay-look-and-feel.xml
  • Copy portal-ext.properties file from 4.3.3/webapps/liferay/WEB-INF/classes/ to 4.4.2/webapps/Root/WEB-INF/classes/ .
  • Copy log4j.properties file from 4.3.3/webapps/liferay/WEB-INF/classes/ to 4.4.2/webapps/Root/WEB-INF/classes/ .
  • Restart Tomcat.
  • Compile all the portlets with new 4.4.2 dependence jar files

replace portal-kenel.jar and portal-service.jar to lib directory at portlet projects source files.

  • Redeploy the portlets from liferay administration portlet.
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: