This document contains just a brief summary of the original CTS5 installation instructions.
Setup Java
Must be Java 5. Set JAVA_HOME accordingly.
Install TCK
TCK is available on :ext:[ser]@cvs.jboss.com:/home/cvs, under the module "javaee5-cts".
Unzip javaee5_cts-patch_A_b03.zip. The javaeetck directory created during extraction becomes TS_HOME
Install RI
The javaee5-cts module has javaee5_ri-9.0-linux.jar or javaee5_ri-9.0-windows.jar. Unjar the RI corresponding to your OS.
java -Xmx256m -jar javaee5_ri-9.0-linux.jar
This should create a glassfish directory.
From the glassfish directory, run ant &150;f setup.xml setup to configure the JAVAEE5_RI. The glassfish directory is your JAVAEE_HOME, JAVAEE5_RI.
Install and compile JBoss
Check it out from https://svn.jboss.org/repos/jbossas/branches/JEE5_TCK/. The build/output/jboss-5.0.0.Beta directory becomes JBOSS_HOME
Modify $JBOSS_HOME/bin/run.conf by adding:
JAVA_OPTS="-server -Xms256m -Xmx256m -Djboss.server.temp.dir=C:\jb5tmp"
On Windows, jboss.server.temp.dir must be set to be the shortest possible path. On Linux, it doesn't matter, it's not necessary to use it.
If you want to be able to debug the server instance, use this instead:
JAVA_OPTS="-server -Xms256m -Xmx256m -Djboss.server.temp.dir=C:\jb5tmp -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
Check out and build j2eetck-mods
From within j2eetck-mods, build the mods:
[ant clean] ant
Modify mailuser1 and mailhost in $TS_HOME/bin/ts.jte.
Configure JBoss as Vendor Implementation
Make sure JBoss is NOT running.
Do not use cygwin; in $TS_HOME/bin run
[tsant.bat clean.vi] (or just delete $JBOSS_HOME/server/cts) tsant.bat config.vi
This creates $JBOSS_HOME/server/cts.
Start and intialize Derby
$TS_HOME/bin/tsant -f xml/s1as.xml start.javadb $TS_HOME/bin/tsant init.javadb
To stop Derby:
$TS_HOME/bin/tsant -f xml/s1as.xml stop.javadb
Start JBoss
cd $JBOSS_HOME/bin ./run.sh -c cts
(to shutdown, ./shutdown.sh -s jnp://localhost:1199 -S)
Run tests
Make sure you uncomment the Messaging jboss.client.classpath from $TS_HOME/bin/ts.jte and use that one to run tests.
Do not use cygwin:
$TS_HOME/bin/tsant gui
Comments