| RUBiS - RUBiS Configuration | |
Installing RUBiS with JOnAS (by Jacques Cayuela, JOnAS team)We use the following machines :
Create a login rubis password rubis on the machines : wake, fidji, hawai (All the machines involved in your test) Note that RUBIS_HOME refers to the directory where rubis is installed Check the configuration
Verify that rsh is ok. On each host create a file ~/.rhosts with the
allowed machines names.
Check the scripts are executable
With remote shell connect to the remote machine.
Check the ejb jar is present in WEB-INF/lib in the war package. Else no error is displayed in Tomcat logs
JOnAS environment
By default j2sdk1.4.2, apache-ant-1.5.4, httpunit-1.5.3,
jakarta-tomcat-4.1.27 We use the following rules : for each version versions JONAS_ROOT=$HOME/pkg/jonas-3-3-xx and JONAS_BASE=$HOME/jb3.3.x : Customize the files in $JONAS_BASE/conf : In jonas.properties: In MysqlFidji.properties: Mysql, Apache, tomcat environmentMysql is configured to accept requests from a jonas user from any host A database db_rubis is created. Apache 2.0 is installed under /usr/local/apache2. APACHE_HOME is set to this directory. Under $APACHE_HOME/conf tomcat_jk.conf is modified so that it references the worker workerForRubis Then, change the URL relative to Rubis under $APACHE_HOME/conf/jk/workers.properties is the worker definition associated to the Tomcat instance that will run on fidji.
Tomcat-4.1.27 is used in a first step in standalone mode. RubisRubis is installed in : /server/jonas/src/objectweb/rubis (each hosts see this directory with nfs mount) Under $APACHE_HOME/htdocs link ejb_rubis_web -> /server/jonas/src/objectweb/rubis/ejb_rubis_web In non distributed mode (everything is on fidji). This can be a first step to check that the configuration is ok:
Access to RUBiS: http://fidji/ejb_rubis_web/ TroubleshoutingIn case of ClassCast exception problem during UserTransaction look up,
try to : RUBiS requires the DB datasource name to be 'mysql' (all in lowercase) If you are using an EJB implementation that does not make use of the Auth.java servlet the parts for 'Auth' servlet should be commented out in ejb_rubis_web/WEB-INF/web.xml before compiling the bench. Otherwise JOnAS will not be able to load the war file. |
|