This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Install To Weblogic
- Notations Used In This Document
- {USERNAME}
- (For Precompile Only)
- Prerequisites
- Install Ant
- Install JDK
- Add ANT_HOME, and JAVA_HOME to environment variables in “My Computer”->”Properties”->”Advanced”->”Environment Variables” to where you installed Ant and JDK
- Add “%ANT_HOME%\bin” and “%JAVA_HOME%\bin” to PATH system variable in “Environment Variables”.
- Setup Folder Structure
- Create a folder for your version, “D:\devtools\LifeRay\5.1.2” for our usage
- Create a folder for source “D:\devtools\LifeRay\5.1.2\source”
- Create a folder for ext ‘“D:\devtools\LifeRay\5.1.2\ext”
- Server Setup
- Create a liferay weblogic domain.
- Remove or backup the jars below if they exist
commerce_system.jar
content_system.jar
groupspace_system.jar
netuix_system-full.jar
nf-jspcmods.jar
nf-system.jar
wlp-schemas.jar
wps_system.jar
wsrp-client.jar
- Download “Liferay Portal 5.1.2 Dependencies:”
- Unzip them in to the server’s global classpath.
- If you are using weblogic 9.2SP2 add -Dfile.encoding=utf-8 to the JAVA_OPT.
- Additional files needed in that global classpath are
- JDK endorsed files
- Follow the rest of the instructions here
- Setup the EXT Environment (original instructions from here)
- Download the version of the source you are needing from liferay website
- unzip the source to the “source” folder
- Make a copy of the “release.properties” file and rename it to “release.{ USERNAME}.properties” example mine is “release.jisacw3.properties” this much match your login or it will not work.
- Edit your “release.{USERNAME}.properties” file change or create the following lines
- Open a command window and go to the source folder and type “ant clean start build-ext” this will build your ext environment.
- Go to the ext directory and make a copy of ‘app.server.properties’ and then rename it to ‘app.server.{USERNAME}.properties’
- Append the entry below underneath the TOMCAT settings in the original app.server.properties
app.server.weblogic.bin.dir=${app.server.weblogic.dir}/server/bin
app.server.weblogic.lib.endorsed.dir=${app.server.weblogic.dir}/common/endorsed
app.server.weblogic.classes.portal.dir=${app.server.weblogic.portal.dir}/WEB-INF/classes
app.server.weblogic.lib.portal.dir=${app.server.weblogic.portal.dir}/WEB-INF/lib
app.server.weblogic.lib.support.dir=${app.server.weblogic.dir}/server/lib
- Update your app.server.{USERNAME}.properties. This will owerride the properties in app.server.properties file. Those properties files are included in build-common.xml
- (For Precompile Only) edit the web.xml file under ext\ext-web\docroot\WEB-INF (if it doesn’t exist create it (there is an example attached to this wiki)
- edit the ext/build-parent.xml file (there is an example attached)
- (For Precompile Only) After the deploy-properties target insert this (You will need to updated the path elements and file sets to match your environment)
<target name="precompile" description="Precompiles all JSP's">
<echo message="This will take a few minutes"/>
<echo message="If this fails you will need to fix the problems in the ext environment to continue"/>
<java classname="weblogic.jspc" fork="true" failonerror="true">
<classpath>
<pathelement location="D:/devtools/BEA/WebLogic/Server/9.2_MP3/server/lib/weblogic.jar"/>
<pathelement location="D:/devtools/Java/jdk1.5.0_15/lib/tools.jar"/>
<fileset dir="D:/DevTools/BEA/WebLogic/Server/9.2_MP3/Domains/MKT">
<include name="*/*.jar" />
</fileset>
</classpath>
<jvmarg value="-Xms384m"/>
<jvmarg value="-Xmx384m"/>
<jvmarg value="-XX:NewRatio=2"/>
<jvmarg value="-XX:PermSize=128m"/>
<jvmarg value="-XX:MaxPermSize=512m" />
<jvmarg value="-Dweblogic.jsp.windows.caseSensitive=true"/>
<arg line="-k -verbose -compileAll -webapp ${app.server.portal.dir} -d ${app.server.portal.dir}/WEB-INF/classes"/>
</java>
<echo message="Successfully Compiled"/>
</target>
Now when you run “ant clean deploy” in the ext folder it will create a war file that runs nicely on weblogic 9.2 MP3.- Special Thanks To, For without their help/posts I wouldn’t have figured it out.