This installation procedure worked on a Redhat 6.2 Linux server which did 
not have the X Window System installed.

Server Requirements:

Hardware: This procedure worked on a 100 MHz Pentium with 96 MB RAM and a 2 
GB hard disk. The final jBoss installation required about 5 MB hard disk 
space. Xvfb required about 4 MB.

JDK: This procedure worked with JDK 1.2.2, with only one small problem (a 
missing shutdown hook).

1) Login as root and create a new directory, /usr/local/jboss. (You could 
use another directory; you'll need to adjust the paths given in this 
procedure.)
   # mkdir /usr/local/jboss
   # cd /usr/local/jboss

2) Download the binary distribution (zip file) from 
<http://www.jboss.org/binary.htm>. Because you're probably not browsing the 
Web from the Linux box, you could either download the file to your 
workstation then upload it to your server, or you could use this command:
   # lynx -source http://www.dreambean.com/download/rickard/jBoss-2.0.zip > 
jBoss-2.0.zip

3) Unzip the binary distribution:
   # unzip jBoss-2.0.zip
   # rm -f jBoss-2.0.zip

4) jBoss must be able to write to three directories at run time: tmp/, log/ 
and possibly deploy/. A simple (but possibly dangerous) way to set this up 
is to run the jBoss container as user root. You might also need to change 
the permissions so that other users (like user nobody) can write to these 
directories.
   # chmod -R a+rwx deploy log tmp

5) Because the EJX classes use AWT, jBoss currently requires an X server to 
run (even though the container itself doesn't display anything in X), so 
you'll need to install Xvfb (or a full installation of XFree86). (See jBoss 
Bugzilla, bug #42.) This worked for me:
   # rpm --install 
ftp://rpmfind.net/linux/redhat/redhat-6.2/i386/RedHat/RPMS/XFree86-Xvfb-3.3. 
6-20.i386.rpm
   # Xvfb :0 -fp 
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/l 
ib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/ &
   # setenv DISPLAY 0:0
(To set up your server so that Xvfb will run every time you reboot, use 
chkconfig. See the man page.)

OPTIONAL: You may also need to install some X fonts:
   # rpm --install 
ftp://rpmfind.net/linux/conectiva/4.0/i386/conectiva/RPMS//XFree86-75dpi-fon 
ts-3.3.3.1-55cl.i386.rpm

6) At this point, you should have everything ready to run the jBoss container.
   # java -classic -jar /usr/local/jboss/bin/run.jar &
(Again, if you want this to run every time your server reboots, use chkconfig.)

7) Now you should be able to run a test client:
java -cp 
/usr/local/jboss/lib/ext/jndi.jar:/usr/local/jboss/lib/ext/jboss-client.jar: 
/usr/local/jdk1.2.2/lib:/usr/local/jboss/bin/run.jar:/usr/local/jboss/bin/ej 
x.jar:/usr/local/jboss/lib/jmxri.jar:/usr/local/jboss/lib/ext/ejb.jar:/usr/l 
ocal/jboss/lib/ext/jnpserver.jar:/usr/local/jboss/deploy/classes 
org.ejboss.test.hello.client.Main

Please report errors to Ken Jenks, [EMAIL PROTECTED] Eventually, I'll 
work with the rest of the jBoss team to put these procedures on the Web site.

-- Ken Jenks, http://abiblion.com/

    Tools for reading.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to