JBoss Install Note

发表于:2007-05-26来源:作者:点击数: 标签:
Install Jboss on Linux # cd /download# sh j2sdk-1_4_2_08- linux -i586.bin to unzip it # mv j2sdk1.4.2_08 /usr/local# tar zxvf jboss-4.0.0.tar.gz# mv jboss-4.0.0 /usr/local# tar zxvf apache- ant -1.6.5-bin.tar.gz # mv mv apache-ant-1.6.5 /u
Install Jboss on Linux

# cd /download
# sh j2sdk-1_4_2_08-linux-i586.bin to unzip it 
# mv j2sdk1.4.2_08 /usr/local
# tar zxvf jboss-4.0.0.tar.gz
# mv jboss-4.0.0 /usr/local
# tar zxvf apache-ant-1.6.5-bin.tar.gz 
# mv mv apache-ant-1.6.5 /usr/local

vi ~/.profile or .bash_profile 
export JAVA_HOME=/usr/local/j2sdk1.4.2_08
export JBOSS_HOME=/usr/local/jboss-4.0.0

login again

# cd /usr/local/jboss-4.0.0/docs/examples/jca
# cp -rf oracle-ds.xml /usr/local/jboss-4.0.0/server/standard/deploy

vi oracle-ds.xml with current values.
upload ojdbc14.jar to /usr/local/jboss-4.0.0/server/standard/lib.
upload commons-logging.jar,
  commons-lang-1.0.1.jar
  itext-1.02b.jar,
  jasperreports-0.6.1.jar,
  poi-2.0-final-20040126.jar to JBOSS_HOME/server/standard/lib 
for IReport program.

upload jboss-cache.jar 
  jgroups-2.2.7.jar 
  jta.jar for Hibernate

create a script to run JBoss standard server.
  #!/bin/sh
  export DISPLAY=127.0.0.1:0.0 # for jasper report programe
  $JBOSS_HOME/bin/run.sh -c standard

create a script to run ant
  #!/bin/sh
  export ANT_HOME=/usr/local/apache-ant-1.6.5
  $ANT_HOME/bin/ant $@

The jasper report need the Java AWT package.
add -Djava.awt.headless=true to jboss run script can run it.(/usr/local/jboss-4.0.0/bin/run.sh)
eg: line 142: JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dprogram.name=$PROGNAME"

# useradd oracle-web
  update all source to /home/oracle-web/oracle-web
# cd /usr/local/jboss4.0.0/server
# chown -R oracle-web:oracle-web standard

best use root user to run JBOSS.


-----------------------------
java -Djava.awt.headless=true
java -Dsun.java2d.noddraw=true

原文转自:http://www.ltesting.net