1. Download Tomcat 5.5.17 from http://tomcat.apache.org/download-55.cgi. You can download the zip or executable file.
2. Setup the executable file or release the zip file in the folder %TOMCAT_HOME%.
3. Create and edit %TOMCAT_HOME%/conf/Catalina/localhost/ROOT.xml to set up the portal web application.
<Context path="%JAVA_WORKSPACE%">
</Context>
4. Download portlet.jar and portal-kernel.jar from http://www.liferay.com/web/guest/downloads.
Create a %TOMCAT_HOME%/common/lib/ext directory and copy these two files there.
5. Edit $TOMCAT_HOME/conf/catalina.properties.
common.loader=${catalina.home}/common/classes,\
...\${catalina.home}/common/lib/ext/*.jar
6. Download mysql-connector-java-{$version}-bin.jar from http://www.mysql.com/products/connector/j/, and copy it to %TOMCAT_HOME%/common/lib/ext.
7. Edit catalina.bat, add the following content into it:
rem ----- Execute The Requested Command ---------------------------------------
set JAVA_OPTS=-Xms128m -Xmx512m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config
8. Copy the file named xercesImpl.jar into %TOMCAT_HOME%/common/endorsed, this file can be found in the liferay source folder ROOT\WEB-INF\lib.
9. Edit $TOMCAT_HOME/conf/Catalina/localhost/ROOT.xml.
<Context...>
<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://%mysql server% /lportal?useUnicode=true&characterEncoding=UTF-8"
username=""
password=""
maxActive="100"
maxIdle="30"
maxWait="10000"
/>
</Context>
10. Create a mail session bound to mail/MailSession.
If you have a mail server already, modify ROOT.xml to point your mail server. Or else, you must setup a mail server first, see 4.4. Replace the mail note with the following contents:
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.host="Your mail server name"
mail.smtp.auth="true"
mail.smtp.user="Your mail address"
mail.smtp.password="Your password"
/>
聯(lián)系客服