Software required:
Windwos 2000
Jdk1.6
Ejbca3.4.4
Mysql5.1
MySQL JDBC driver
Java Cryptography Extension (JCE) unlimited strength jurisdiction policy files 6.0
Http://java.sun.com/javase/downloads/index.jsp
Jboss4.0.4
Apache-ant1.7.0
Install software:
Decompress JBoss, ant, and EJBCA.
Configure Environment Variables
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;
Install EJBCA.
Add the MySQL driver and copy the MySQL driver package to the JBoss directory \ Server \ Default \ Lib.
Decompress the jar package in JCE and overwrite the JRE \ Lib \ SECURITY \ jar package.
Go to the extract directory of EJBCA
# Copy conf \ EJBCA. properties. Sample conf \ EJBCA. Properties
# Copy conf \ database. properties. Sample conf \ database. Properties
Modify the databas. properties File
# ------------- 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: @ FIG: 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 = s
# Database Password.
# Default: (Blank works with HSQLDB)
Database. Password = starxing
# Database. Password = Postgres
Execute ant Bootstrap and wait for the end.
Start JBoss. No error.
Execute ant install
Execute ant deploy
Restart JBoss
If no error is reported, the operation is successful.