本站首页    管理页面    写新日志    退出


«September 2025»
123456
78910111213
14151617181920
21222324252627
282930


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7612567
建立时间:2006年5月29日




[Java Open Source]【转摘】Liferay Portal学习笔记(一):安装
软件技术

lhwork 发表于 2006/8/10 10:07:02

一、 简单安装 1)下载并安装 JDK1.5 1、  下载并安装 Windows Platform J2SE(TM) Development Kit 5.0 Update ,下载网址 http://java.sun.com/j2se/1.5.0/download.jsp 2、  在控制面板 --> 系统 --> 高级选项 --> 环境变量,新增一个用户变量 JAVA_HOME 并指向 JDK 的安装目录 2)   下载并安装 Liferay Portal 1.         下载并安装 Liferay Portal Professional 4.0.0 (Bundled with Tomcat and JDK 5.0), 下载网址 http://www.liferay.com/web/guest/download 2.         解压缩到一个目录,并确保硬盘上有足够的空间,我们称这个目录为 TOMCAT_HOME 3)   启动 TOMCAT 到 TOMCAT/bin 目录下,运行 startup.bat 。 你的 Apache Tomcat server 能够编译并运行 Liferay Portal 。默认情况下, portal 使用自带的 HSQL 数据库。在浏览器中输入 http://localhost:8080 ,将会看见 portal 首页。 二、  专业安装 1)   下载并安装 JDK1.5 1、  下载并安装 Windows Platform J2SE(TM) Development Kit 5.0 Update ,下载网址 http://java.sun.com/j2se/1.5.0/download.jsp 2、  在控制面板 --> 系统 --> 高级选项 --> 环境变量,新增一个用户变量 JAVA_HOME 并指向 JDK 的安装目录 2)   下载并安装 TOMCAT 1、  下载 apache-tomcat-5.5.17.zip 并解压缩到一个目录,我们称这个目录为 TOMCAT 。 3) 下载并安装 Liferay Portal 1、  下载 liferay-portal-4.0.0.war, 下载网址 http://www.liferay.com/web/guest/download 2、  解压缩 liferay-portal-4.0.0.war 到 TOMCAT 目录下并改名为 liferay ,然后将 liferay/WEB-INF/lib 下除 util-taglib.jar 外的其他 jar 包剪切到 TOMCAT/common/lib/ext 下 3、  在 TOMCAT/conf/Catalina/localhost 目录下,删除该目录下已有的文件,然后新建 ROOT.xml 文件(这里的 ROOT 必须是大写) ROOT.xml : 500)this.width=500'> < Context path = ""  docBase = " ../liferay "  debug = " 0 "  reloadable = " true "  crossContext = " true " > 500)this.width=500'> 500)this.width=500'>        < Resource500)this.width=500'>500)this.width=500'>              name = " jdbc/LiferayPool " 500)this.width=500'> 500)this.width=500'>              auth = " Container " 500)this.width=500'> 500)this.width=500'>              type = " javax.sql.DataSource " 500)this.width=500'> 500)this.width=500'>              driverClassName = " org.hsqldb.jdbcDriver " 500)this.width=500'> 500)this.width=500'>              url = " jdbc:hsqldb:test " 500)this.width=500'> 500)this.width=500'>              username = " sa " 500)this.width=500'> 500)this.width=500'>              password = "" 500)this.width=500'> 500)this.width=500'>              maxActive = " 20 " 500)this.width=500'> 500)this.width=500'>        /> 500)this.width=500'> 500)this.width=500'>        < Resource500)this.width=500'>500)this.width=500'>              name = " mail/MailSession " 500)this.width=500'> 500)this.width=500'>              auth = " Container " 500)this.width=500'> 500)this.width=500'>              type = " javax.mail.Session " 500)this.width=500'> 500)this.width=500'>              mail.transport.protocol = " smtp " 500)this.width=500'> 500)this.width=500'>              mail.smtp.host = " localhost " 500)this.width=500'> 500)this.width=500'>        /> 500)this.width=500'> 500)this.width=500'>        < Realm 500)this.width=500'>500)this.width=500'>              className = " org.apache.catalina.realm.JAASRealm " 500)this.width=500'> 500)this.width=500'>              appName = " PortalRealm " 500)this.width=500'> 500)this.width=500'>              userClassNames = " com.liferay.portal.security.jaas.PortalPrincipal " 500)this.width=500'> 500)this.width=500'>              roleClassNames = " com.liferay.portal.security.jaas.PortalRole " 500)this.width=500'> 500)this.width=500'>              debug = " 99 " 500)this.width=500'> 500)this.width=500'>              useContextClassLoader = " false " 500)this.width=500'> 500)this.width=500'>        /> 500)this.width=500'> 500)this.width=500'> </ Context > 500)this.width=500'> 500)this.width=500'> 4、  在TOMCAT/conf目录下,新建jaas.config文件 jaas.config : PortalRealm {   com.liferay.portal.security.jaas.PortalLoginModule required; }; 5、  修改 TOMCAT/conf 目录下 catalina.properties 文件中的下面一段: common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar,${catalina.home}/common/lib/ext/*.jar 6、  修改 TOMCAT/bin 目录下 catalina.bat 文件,增加下面内容: rem ----- Execute The Requested Command ---------------------------------------   set JAVA_OPTS=-Xms128m -Xmx512m -Dfile.encoding=UTF8 -Duser.timezone=GMT+08 -Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config 7、  到 TOMCAT/bin 目录下,运行 startup.bat 。在浏览器中输入 http://localhost:8080 ,将会看见 portal 首页。 三、  连接数据库 1) 连接 HSQLDB 修改 TOMCAT/conf/Catalina/localhost/ROOT.xml 文件并将 SQL SERVER 驱动包 hsql.jar 拷贝到 TOMCAT/common/lib/ext 下        <Resource               name="jdbc/LiferayPool"               auth="Container"               type="javax.sql.DataSource"               driverClassName="org.hsqldb.jdbcDriver"               url="jdbc:hsqldb:test"               username="sa"               password=""               maxActive="20"        /> 2)   连接 SQL SERVER 修改 TOMCAT/conf/Catalina/localhost/ROOT.xml 文件并将 SQL SERVER 驱动包 jtds-1.2.jar 拷贝到 TOMCAT/common/lib/ext 下        <Resource               name="jdbc/LiferayPool"               auth="Container"               type="javax.sql.DataSource"               driverClassName="net.sourceforge.jtds.jdbc.Driver"               url="jdbc:jtds:sqlserver://localhost:1433;DatabaseName=lportal4"               username="sa"         password="sa"         maxActive="100"        />


阅读全文(1903) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.063 second(s), page refreshed 144778929 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号