Liferay是一个企业级Portal的framework或是product,是开源软件,详细情况参照Liferay的web-site:
http://www.liferay.com
Liferay 3.1.0 pro 是最新的一个版本,可以在Tomcat 5.0.x上使用,v2.3 和 v2.5 只可在jboss等一些比较耗资源的server上使用,不过放到tomcat上,一些ejb的特性就失去了,不过轻便的portal还是比较有诱惑力的。
From Liferay
===============================================
Deployment Matrix
Liferay Portal wants to make it a reality the
J2EE promise of write once run anywhere so you can reuse your existing resources and deploy the portal the way you want to when you want to. Reuse what you have or use what's free so you can stick with your budget and get an immediate return on investment that everyone can be happy with.
There are
650 ways you can deploy the portal, with more ways to come as we add support for Resin. Is there another application server or database you use that is not in this list? Contact us at
[email protected] and we'll add support for it as soon as possible.
Application Servers
BAS
—
Borland AS 6.5
JB
—
JBoss 3.2.6
JON
—
JOnAS 4.1.4
JR
—
JRun 4 Updater 3
O
—
Oracle9iAS 9.0.3
ORI
—
Orion 2.0.2
P
—
Pramati 4.1
REX
—
RexIP 2.5
SUN
—
Sun JSAS 8.01
WL
—
WebLogic 8.1 SP2
WS
—
WebSphere 5.1
Servlet Containers
JET
—
Jetty 5.1.0
RES
—
Resin
TOM
—
Tomcat 5.0.28
Databases
DB2
—
DB2
FIRE
—
Firebird
HYP
—
Hypersonic
INT
—
InterBase
JDS
—
JDataStore
MY
—
MySQL
O
—
Oracle
PSQL
—
PostgresSQL
SAP
—
SAP
SQL
—
SQL Server ============================================
我的电脑上有mysql和Sybase两个数据库。mysql不是主流数据库,上面说的主流数据库我又都没有。我就考虑如何用Sybase。
按照Liferay的安装说明,把conf\Catalina\localhost\liferay.xml修改如下:
<Context path="" docBase="../liferay" debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/LiferayPool" auth="Container" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/LiferayPool">
<parameter>
<name>driverClassName</name>
<value>com.sybase.jdbc2.jdbc.SybDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:sybase:Tds:localhost:2638/?SeviceName=lportal</value>
</parameter>
<parameter>
<name>username</name>
<value>test</value>
</parameter>
<parameter>
<name>password</name>
<value>test</value>
</parameter>
</ResourceParams>
<Resource name="mail/MailSession" auth="Container" type="javax.mail.Session" />
<ResourceParams name="mail/MailSession">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.jaas.PortalRole"
debug="99"
useContextClassLoader="false"
/>
</Context>
用红色显示的地方为Sybase数据库的设定。
现在需要做的是,在Sybase里创建数据库lportal,从Sybase Central里创建一个database,取名为lportal,并创建一个user名字为test,密码为test,权限为DBA(这么做完全是为了同Liferay网站上对其他数据库的设定)。然后,打开,InteractiveSQL,用test/test连接数据库。打开sql文件portal-db2.sql (这个是供db2使用的sql文件,同样适用于Sybase,这个文件在从Liferay上下载到的sql语句包里),打开后F5执行一下,通过OK!到此Sybase的工作就做完了,是不是很简单?
从Sybase的相关文件夹里找到jconn2.jar,放到common/lib下,现在启动你的Tomcat吧!
附:Liferay相关的package下载(SourceForge),click here
本文地址:http://com.8s8s.com/it/it23454.htm