注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

阿弥陀佛

街树飘影未见尘 潭月潜水了无声 般若观照心空静...

 
 
 

日志

 
 
关于我

一直从事气象预报、服务建模实践应用。 注重气象物理场、实况场、地理信息、本体知识库、分布式气象内容管理系统建立。 对Barnes客观分析, 小波,计算神经网络、信任传播、贝叶斯推理、专家系统、网络本体语言有一定体会。 一直使用Java、Delphi、Prolog、SQL编程。

网易考拉推荐

安装GateIn(未完成...)  

2012-05-18 11:39:42|  分类: JBoss |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

yum update
updatedb

yum install mysql-server
service mysqld restart
mysqladmin -u root password 'njwxxxx'
mysql -u root -p

create database mygateindb_portal
create database gateinjcr;
create database gateinidm;
show databases;
create user 'gainuser'@'localhost' identified by 'njwxxxx';
grant all privileges on mygateindb_portal.* to 'gateinuser'@'localhost' identified by 'njwxxxx' with grant option;
grant all privileges on gateinjcr.* to 'gateinuser'@'localhost' identified by 'njwxxxx' with grant option;
grant all privileges on gateinidm.* to 'gateinuser'@'localhost' identified by 'njwxxxx' with grant option;

cat /proc/version

cd /opt
gtar -xvzf jdk*.gz
ln -s jdk1.7.0_04 latest

/etc/profile.d/java.sh
export JAVA_HOME=/opt/jdk/latest
export PATH=$JAVA_HOME/bin:$PATH

http://www.jboss.org/gatein/downloads

unzip GateIn*
ln -s GateIn* gatein
gedit /opt/gatein/gatein/configuration.properties
gatein.data.dir=/var/lib/mysql/data

# JCR
gatein.jcr.config.type=local
gatein.jcr.datasource.name=jdbcjcr
gatein.jcr.datasource.dialect=auto
gatein.jcr.datasource.driver=com.mysql.jdbc.Driver
gatein.jcr.datasource.url=jdbc:mysql://localhost:3306/gateinjcr
gatein.jcr.datasource.username=geteinuser
gatein.jcr.datasource.password=njw0718

# IDM
gatein.idm.datasource.name=jdbcidm
gatein.jcr.datasource.driver=com.mysql.jdbc.Driver
gatein.jcr.datasource.url=jdbc:mysql://localhost:3306/gateinidm
gatein.jcr.datasource.username=geteinuser
gatein.jcr.datasource.password=njwxxxx

# EMail
gatein.email.smtp.username=hxfcalf@gmail.com
gatein.email.smtp.password=xxxxxx

====================================================================================================


As you know, Convertigo Mashup Composer is based on eXo/JBoss Gatein Open Source portal.  See here how to configure Gatein to use MySQL instead of the built in HSQLDB demo database.

The database is used for two purposes :

  1. The JCR repository to hold all the portal pages widgets and data
  2. The user database (idm) to store all user identity management.
First we start with the JCR.
  • Create a 'mygateindb_portal' database in you mysql server. Beware the '_portal' suffix is mandatory
  • Create a 'gateinuser' with a 'gateinpassword' in your mysql database
  • Grant all the privileges on 'mygateindb_portal' for 'gateinuser'
  • Locate in the installation directory the 'gatein/conf/configuration.properties' file
  • Edit the file to replace the JCR connection :
# JCR
gatein.jcr.config.type=local
gatein.jcr.datasource.name=jdbcjcr
gatein.jcr.datasource.dialect=auto
gatein.jcr.datasource.driver=com.mysql.jdbc.Driver
gatein.jcr.datasource.url=jdbc:mysql://localhost:3306/mygateindb_portal
gatein.jcr.datasource.username=gateinuser
gatein.jcr.datasource.password=gateinpassword
  • Download the MYSQL jdbc driver from  http://dev.mysql.com/downloads/connector/j/ , extract the JDBC connector 'mysql-connector-java-5.1.xx-bin.jar' from the tar/zip file and copy it to your installation's /lib directory in order to have the jdbc connector automatically added to your class path.
Then we configure the IDM :
  • Create a 'mygateindb_idm' database in you mysql server.
  • Grant all the privileges on 'mygateindb_idm' for 'gateinuser'
  • Locate in the installation directory the 'gatein/conf/configuration.properties' file
  • Edit the file to replace the IDM connection :
# IDM
gatein.idm.datasource.name=jdbcidm
gatein.idm.datasource.driver=com.mysql.jdbc.Driver
gatein.idm.datasource.url=jdbc:mysql://localhost:3306/mygateindb_idm
gatein.idm.datasource.username=gateinuser
gatein.idm.datasource.password=gateinpassword

Run the gatein portal by using the gatetin.bat run or the gatein.sh run command in your /bin installation's directory. The portal should run and create automatically all the needed tables in the databases you configured.

  评论这张
 
阅读(1267)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017