10/10/2006

BIE产品使用-FAQ

本文翻译自:原文
目录
* I installed BIE. What next?
* I installed BIE, but nothing happens when I go to http://localhost:5803.
* How do I build and run from CVS?
* Can I change the session timeout for the dashboard?
* My dom.dbx file keeps growing.
* Can I view the internal Hypersonic Database?
* Can I view the data in the internal eXist xml database?
* How do I change the logging level?
* Can I replace the internal Hypersonic database with database X?

1. 已经安装了BIE,下一步怎么做?
BIE dashboard的入口是http://localhost:5803. 默认用户名为"admin",密码"123qwe"。

2. 安装了BIE后,进入http://localhost:5803什么也没看到?
你可以查看安装日志文件install.log(在logs目录下),检查安装是否成功.

3. 如何从CVS构建和运行BIE?
源码:首先从sourceforge获得源码. 相关步骤参见http://sourceforge.net/cvs/?group_id=79291;
构建:转到源码第一级目录下,执行"ant dist";
配置:转到dist目录下执行"ant installdb"
运行:执行"ant run" from the dist directory.

例如:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/bie login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/bie co -P bie
cd $BIE_HOME$
ant dist
cd dist
ant installdb
ant run
执行ant run后,你可以进入http://localhost:5803

4. 我可以改变BIE dashboard的会话超时配置吗?
会话超时在web.xml中指定($BIE_HOME$/deploy/jboss/bie.sar/dashboard.war/WEB-INF目录下).

5. 我的dom.dbx文件不断的增大.
文件dom.dbx由系统自带的xml数据库eXist使用。在6.0.4版, 这个文件不会清理. 但这个文件可以手工删除,系统会自动重新创建.

6. 我可以查看内置的Hypersonic数据库中存放的数据吗?
你可以使用任何支持JDBC的数据库工具查看Hypersonic数据(如squirrel).
HSQLDB本身也有一个工具,使用步骤如下:
1). 启动
java -cp $BIE_HOME$/services/jboss/server/default/lib/hsqldb.jar org.hsqldb.util.DatabaseManager
2). 配置
Type: HSQL Database Engine In-Memory
Driver: org.hsqldb.jdbcDriver
URL: jdbc:hsqldb:$BIE_HOME$/services/hypersonic/BIE
User: sa
Password: BIE

登陆后,可以执行SQL语句,如:select * from ActivityMetaData。

7. 可以查看内置的eXist xml数据库中的数据吗?
Exist附带一个命令行工具可通过xquery或xpath管理和查询数据库.
为使用该工具你需要启动eXist服务器的一个实例,这可以确保它需要的端口是打开的.
1). 启动eXist服务器实例
BIE_HOME/services/eXist/bin/server.sh
2). 启动管理客户端
BIE_HOME/services/eXist/bin/client.bat -ouri=xmldb:exist://
3). You should now see an authentication box. Leave the password blank and click OK.
4). In the admin client double click the "bie" collection and you should see a list of files.

The admin client also has the ability to run queries and make back ups for your data. For more info check out
http://exist.sourceforge.net/client.html#N10286

8. 如何改变日志级别?
BIE日志记录采用log4j. log4j配置文件在目录$BIE_HOME$/services/jboss/server/default/conf下.
bie-details.log和jboss-server.log的配置都在这个文件中.

9. 可以用其他数据库替换内置的Hypersonic数据库吗?
BIE系统本身不支持在其他数据库上运行,但实际上是可以的.
如下是使用Mysql的步骤,其他数据库类似。

1. 创建MySQL数据库和帐号
2. 安装BIE
3. 编辑$BIE_HOME$/conf/BIE_DB.properties替换MYsql连接信息
4. 编辑$BIE_HOME$/deploy/jboss/bie.sar/META-INF/BIE_DB-ds.xml替换Mysql连接信息
5. 替换$BIE_HOME$/util/create.sql中的SQL语句使之支持mysql
6. 执行"ant installdb"

Trackback: http://tb.donews.net/TrackBack.aspx?PostId=925518




-------------------------------评论------------------------------------------

Technorati :

没有评论:

为什么说普京已经输掉了这场战争

  为什么说普京已经输掉了这场战争 作者: Yuval Noah Harari (历史学家畅销书【智人:人类简史】的作者) 译自: 英国卫报, 2022年2月28日 翻译: Andywho in Canada 原文链接: Why Vladimir Putin has alread...