Chinaunix首页 | 论坛 | 博客
  • 博客访问: 639872
  • 博文数量: 125
  • 博客积分: 8703
  • 博客等级: 中将
  • 技术积分: 1102
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-10 17:48
文章分类

全部博文(125)

文章存档

2012年(2)

2011年(3)

2010年(11)

2009年(1)

2008年(12)

2007年(58)

2006年(38)

分类: Java

2007-08-02 16:35:44

需要软件:
windwos 2000
JDK1.6
Ejbca3.4.4
mysql5.1
mysql JDBC驱动
Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6.0

JBoss4.0.4
apache-ant1.7.0

安装软件:
解压jboss,ant,Ejbca。

配置环境变量
ANT_HOME=D:\apache-ant-1.6.2

CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jre\lib\rt.jar;%JBOSS_HOME%\client\jbossall-client.jar;%JBOSS_HOME%\client\jboss-j2ee.jar;%JBOSS_HOME%\lib\jboss-system.jar;%JAVA_HOME%\jre\lib\security\local_policy.jar;%JAVA_HOME%\jre\lib\security\US_export_policy.jar;

JAVA_HOME=C:\Program Files\Java\jdk1.6.0
JBOSS_HOME=E:\jboss-4.0.5.GA
Path=%Path%;%ANT_HOME%\bin;.;%JAVA_HOME%/bin;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%PATH%;%JBOSS_HOME%\BIN;%ANT_HOME%\bin;

Ejbca安装。

添加mysql驱动,把mysql驱动包拷贝到 jboss目录\ server\default\lib里面
解压jce吧里面的jar包,覆盖jre\lib\security\ jar包。


进入Ejbca的解压目录下
#copy conf\ejbca.properties.sample conf\ejbca.properties
#copy conf\database.properties.sample conf\database.properties

修改databas.properties文件

# ------------- Database configuration ------------------------

# jndi name of the datasource to use in deployment descriptors of ejbs.
# default: EjbcaDS
datasource.jndi-name=EjbcaDS

# Prefix for the jndi name of the datasource to use in deployment descriptors of ejbs.
# JBoss requires 'java:/' as prefix, while Weblogic does not want anything (''), and Glassfish wants jdbc/
# default: java:/
datasource.jndi-name-prefix=java:/
#datasource.jndi-name-prefix=
#datasource.jndi-name-prefix=jdbc/

# Weblogic in combination with Oracle requires special handling of LONG/BLOB columns
# If, and only if, you are using Weblogic and Oracle, uncomment the row below.
# Use OracleBlob in Weblogic 8.x and Blob in Weblogic 9.x
# default:
#weblogic-oracle-columntype=@weblogic.dbms-column-type Blob

# The database name selected for deployment, used to copy XDoclet merge files.
# All supported databases are defined below, others can easily be added
# See the document doc/howto/HOWTO-database.txt for database specifics and tips and tricks.
# Default: hsqldb
database.name=mysql
#database.name=postgres
#database.name=mssql2000
#database.name=oracle
#database.name=sapdb
#database.name=sybase
#database.name=informix
#database.name=derby

# The datasource mapping selected for deployment.
# The J2EE server needs to be configured with the appropriate datasource mapping.
# For JBoss this maps to a setting in standardjbosscmp-jdbc.xml and must match the database chosen above.
# All supported mappings are defined below, others can easily be added
# Default: Hypersonic SQL
datasource.mapping=mySQL
#datasource.mapping=PostgreSQL 7.2
#datasource.mapping=PostgreSQL 8.0
#datasource.mapping=MS SQLSERVER2000
#datasource.mapping=Oracle8
#datasource.mapping=Oracle9i
#datasource.mapping=SapDB
#datasource.mapping=Sybase
#datasource.mapping=Informix92
#datasource.mapping=InformixDB
#datasource.mapping=Derby

# Database connection url.
# This is the URL used to connect to the database, used to configure a new datasource in JBoss.
# Default: jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB
database.url=jdbc:mysql://127.0.0.1:3306/ejbca
#database.url=jdbc:mysql://127.0.0.1:3306/ejbca?characterEncoding=UTF-8
#database.url=jdbc:postgresql://127.0.0.1/ejbca
#database.url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=ejbca
#database.url=jdbc:oracle:thin:@127.0.0.1:1521:ejbca
#database.url=jdbc:datadirect:oracle://127.0.0.1:1521;SID=ejbca
#database.url=jdbc:informix-sqli://127.0.0.1:1525/ejbca:informixserver=mydbservername;DBDATE=DMY4/;
#database.url=jdbc:derby://127.0.0.1/ejbca;create=true

# JDBC driver classname.
# The J2EE server needs to be configured with the appropriate JDBC driver for the selected database
# Default: org.hsqldb.jdbcDriver
database.driver=org.gjt.mm.mysql.Driver
#database.driver=org.postgresql.Driver
#database.driver=com.microsoft.jdbc.sqlserver.SQLServerDriver
#database.driver=oracle.jdbc.driver.OracleDriver
#database.driver=com.ddtek.jdbc.oracle.OracleDriver
#database.driver=com.informix.jdbc.IfxDriver
#database.driver=org.apache.derby.jdbc.ClientDriver

# Database username.
# Default: sa (works with hsqldb)
database.username=root
#database.username=postgres

# Database password.
# Default: (blank works with hsqldb)
database.password=starxing
#database.password=postgres



执行 ant bootstrap,等待结束。

启动jboss,没有错误就对了

执行 ant install
执行 ant deploy

重启jboss
没有报错就成功了






阅读(1549) | 评论(0) | 转发(0) |
0

上一篇:我笑《三侠剑》ZT

下一篇:不一定!ZT

给主人留下些什么吧!~~