background image

Red Hat Application Stack V.1.1 Release

Notes

1.1

ISBN: N/A

Publication date:

Summary of Contents for APPLICATION STACK 1.1 RELEASE

Page 1: ...Red Hat Application Stack V 1 1 Release Notes 1 1 ISBN N A Publication date ...

Page 2: ...Red Hat Application Stack V 1 ...

Page 3: ...Red Hat Application Stack V 1 1 Release Notes Copyright 2006 2007 Red Hat Inc ...

Page 4: ...Red Hat Application Stack V 1 ...

Page 5: ...6 2 2 Using up2date DVD 7 3 Installing Red Hat Application Stack 9 4 Using JBoss AS 13 1 Using the Linux service production 13 2 Using run sh development 15 3 Creating copies of JBOSS_HOME 16 4 Using the jbossas commands from any directory 16 5 Running multiple instances of JBoss AS 17 5 1 Running multiple instances of JBoss AS using different sets of ports 18 5 2 Running multiple instances of JBo...

Page 6: ...vi ...

Page 7: ...dard middleware environment Note that JBoss AS uses an embedded Tomcat and does not require a stand alone Tomcat Before installing and running JBoss AS you will require a working installation of Java 1 4 or 1 5 Currently Red Hat Application Stack is certified with the Sun JVM version 1 4 2 update 13 or later 1 5 0 update 11 or later and the latest BEA JVM available through RHN Please refer to Chap...

Page 8: ...2 ...

Page 9: ...s 1 Install a supported SDK 1 1 Installing a 32 bit Sun SDK 1 Get the Sun JDK 5 0 from http java sun com javase downloads index_jdk5 jsp by choosing the JDK 5 0 Update N Download button and then choosing RPM in self extracting file for Linux on the page that displays after pressing the button Note If you don t need want to use the SysV service scripts you can also install the Linux self extracting...

Page 10: ...tep not the plain non RPM one For instance for a Sun SDK 1 5 0_11 you should get ftp jpackage hmdc harvard edu JPackage 1 7 generic RPMS non free java 1 5 0 sun compat 1 5 0 11 1jpp i586 rpm and for a Sun SDK 1 4 2_13 you should use ftp jpackage hmdc harvard edu JPackage 1 7 generic RPMS non free java 1 4 2 sun compat 1 4 2 13 1jpp i586 rpm Note If the compat RPM for the latest Sun release is not ...

Page 11: ...cation Stack is certified with the Sun JVM version 1 4 2 update 13 or later 1 5 0 update 11 or later and the latest BEA JVM available through RHN This may change in future releases With RHEL 4 U4 there are 1 4 2 and 1 5 versions of the IBM and BEA JRockit SDKs We have adopted the jpackage org style for the packaging of our Java offerings This requires that the jpackage utils rpm be installed on yo...

Page 12: ... system You should make sure the desired one is selected so that the service script uses the one you want As root issue the following command usr sbin alternatives config java and make sure the desired one is selected marked with a or select it by entering its number as prompted Make sure you do the same for javac and java_sdk_VERSION where VERSION 1 4 2 or 1 5 0 depending on what version java jav...

Page 13: ...ate producing warnings whenever you run up2date again without mounting the Red Hat Application Stack V 1 1 DVD Refer also to Chapter 4 Using JBoss AS below Red Hat Application Stack V 1 1 includes two versions of JBossAS The package jbossas will function with both 1 4 and 5 JVMs The package jbossas ejb3 includes a technology preview of EJB3 1 0 0 RC9 and requires a working Java 5 installation Only...

Page 14: ...8 ...

Page 15: ...arge objects in the database you need to use pg_dump instead of pg_dumpall See http www postgresql org docs 8 1 static largeobjects html and http www postgresql org docs 8 1 static app pg dumpall html For more information see http www postgresql org docs 8 1 static install upgrading html If you are using MySQL Backing up your database is optional but recommended Run as root mysqldump all databases...

Page 16: ... x86_64 variant as or es Note If you wish to use the jbossas ejb3 package needs a working Java 1 5 installation run up2date exclude jbossas installall rhel i386 es 4 appstk 1 Option 2 To install from RPMs on Disk Follow the instructions in Section 2 2 Using up2date DVD to mount the DVD and set up the local RHN channel steps 1 3 Then as root run up2date exclude jbossas ejb3 installall RedHat Applic...

Page 17: ...executing the above command if they are not already installed apr devel apr util devel libc client mx pcre devel 4 Restore your database For PostgreSQL Move or remove the database directory mv var lib pgsql data var lib pgsql data backup Start the new PostgreSQL service sbin service postgresql start Restore your data from back up psql U username tmp pg backup Start the http daemon sbin service htt...

Page 18: ...e MySQL mysql_update Start MySQL sbin service mysqld start Restore your data mysql p tmp mysqldumpfile sql Start the http daemon sbin service httpd start The installation is now complete Chapter 3 Installing Red Hat 12 ...

Page 19: ...erver Settings Services Note For security purposes beginning with Red Hat Application Stack V 1 1 authentication for the jmx console web console jmx invoker and http invoker is turned on Additionally no user accounts are active by default so as to prevent default user password based attacks Accounts for the jmx console and the invokers can be set up by modifying JBOSS_HOME server CONFIG conf props...

Page 20: ...ch the user jboss has no read access in the deployment directory will cause the server to fail to deploy To create additional JBoss AS configurations besides the provided default minimal and all you must create a new directory for your configuration as follows note the switches given to the cp command export JBOSS_BASE var lib jbossas cd JBOSS_HOME cp pL R server default server myownconfig You can...

Page 21: ...atives Tip JAVA_HOME can be set system wide in etc profile But beware some users may not want to have JAVA_HOME set to this same SDK Also some may prefer to use the alternatives selected one instead These users may be affected by this global setting of JAVA_HOME With the Sun RPM the SDK is usually located in usr java it may vary between their releases If the compat RPM is installed but you still n...

Page 22: ...to retain the jboss user and group ownership use instead cp pL R var lib jbossas my_new_jboss_home_directory To run multiple servers simultaneously you will need to adjust the configuration to avoid port conflicts as described in the JBoss AS documentation Refer to Running multiple instances of JBoss AS for more information Note Please note that automated updating of copies created using methods a...

Page 23: ...ltiple SysV services that run JBoss AS by creating additional service scripts The process basically consists of creating a link with the new service name to the original jbossas init script in etc init d copying the jbossas file in etc sysconfig to one with the new service name the init script and the configuration file names must match making the desired configuration changes making sure port con...

Page 24: ...e directory itself if already existent have write permissions for the user jboss Note Starting the server this first time may take a little longer due to the file copying There are 2 ways to run additional instances of JBoss AS and avoid port conflicts By using different sets of ports By binding to different local IP addresses 5 1 Running multiple instances of JBoss AS using different sets of port...

Page 25: ...f JBoss AS binding to different local IP addresses Each JBoss AS instance is bound to a particular IP address 1 Create a new file etc init d service name which is a symlink to etc init d jbossas e g ln s etc init d jbossas etc init d jbossas instance2 2 Create a new config file for service name etc sysconfig service name with instance specific values uncommented and updated e g cp etc sysconfig jb...

Page 26: ...6 More Information More general documentation for JBoss AS is available under usr share doc jbossas 4 0 5 Chapter 4 Using JBoss AS 20 ...

Page 27: ...3807 219743 With an IBM 1 4 2 SDK 32 bit 200992 203647 203668 203682 204425 204426 204427 204428 205256 With an IBM 1 5 0 SDK 32 bit 203682 With BEA 1 4 2 SDK 200992 With BEA 1 5 0 SDK 200992 209481 2 Additional Notes Removing the compat RPM There is an unconfirmed report that if the Sun compat rpm is installed and alternatives are set to it when that compat RPM is uninstalled the alternatives don...

Page 28: ...22 ...

Page 29: ...nt d Will not use or transfer the software for use in any sensitive nuclear chemical or biological weapons or missile technology end uses unless authorized by the U S Government by regulation or specific license e Understand and agree that if you are in the United States and export or transfer the Software to eligible end users you will as required by EAR Section 740 17 e submit semi annual report...

Page 30: ...24 ...

Reviews: