<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unix Surgeon &#187; JBoss</title>
	<atom:link href="http://www.unixsurgeon.com/kb/tag/jboss/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install Jboss Application server on Linux.</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-jboss-application-server-on-linux.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-jboss-application-server-on-linux.html#comments</comments>
		<pubDate>Fri, 26 Dec 2008 16:38:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[howto Jboss]]></category>

		<guid isPermaLink="false">http://unixsurgeon.com/?p=7</guid>
		<description><![CDATA[Howto Install Jboss on Linux ?
# First install JDK
[root@proot /]# cd /usr/local
[root@proot local]# downlaod JDK http://java.sun.com/javase/downloads/index.jsp
/



# Give Excute permission to binary file
[root@proot local]# chmod u+x jdk-6u11-linux-i586.bin
# Now run the binary file
[root@proot local]# ./jdk-6u11-linux-i586.bin
# Now create Softlink
[root@proot local]# ln -s /usr/local/jdk1.6.0_11  jdk
# Export the JAVA HOME and JAVA path
[root@proot local]# vi /root/.bash_profile &#38;  vi /root/.bashrc
# Add the [...]]]></description>
			<content:encoded><![CDATA[<h1><span style="color: #000000;">Howto Install Jboss on Linux ?</span></h1>
<p># First install JDK</p>
<p><strong>[root@proot /]# cd /usr/local</strong></p>
<p><strong>[root@proot local]# downlaod JDK <a href="http://java.sun.com/javase/downloads/index.jsp&lt;br &gt;&lt;/a&gt; /" target="_new">http://java.sun.com/javase/downloads/index.jsp<br />
/</a></strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p># Give Excute permission to binary file</p>
<p><strong>[root@proot local]# chmod u+x jdk-6u11-linux-i586.bin</strong></p>
<p># Now run the binary file</p>
<p><strong>[root@proot local]# ./jdk-6u11-linux-i586.bin</strong></p>
<p># Now create Softlink</p>
<p><strong>[root@proot local]# ln -s /usr/local/jdk1.6.0_11  jdk</strong></p>
<p># Export the JAVA HOME and JAVA path</p>
<p><strong>[root@proot local]# vi /root/.bash_profile &amp;  vi /root/.bashrc</strong></p>
<p># Add the following lines</p>
<p><strong>JAVA_HOME=/usr/local/jdk</strong></p>
<p><strong>export JAVA_HOME</strong></p>
<p><strong>JAVA=/usr/local/jdk/bin</strong></p>
<p><strong>export JAVA</strong></p>
<p># Save and exit</p>
<p><strong>[root@proot local]# source /root/.bash_profile</strong></p>
<p># Now Download JBoss Application Server<br />
<strong><a href="http://downloads.sourceforge.net/jboss/jboss-4.2.3.GA.zip?modtime=1216412104&amp;big_mirror=1&lt;br &gt;&lt;/a&gt; /" target="_new">http://downloads.sourceforge.net/jboss/jboss-4.2.3.GA.zip?modtime=1216412104&amp;big_mirror=1<br />
/</a></strong></p>
<p><strong>[root@proot local]# wget http://downloads.sourceforge.net/jboss/jboss-4.2.3.GA.zip?modtime=1216412104&amp;big_mirror=1</strong><br />
<strong>[root@proot local]# unzip jboss-4.2.3.GA.zip<br />
[root@proot local]# cd jboss-4.2.3.GA</strong></p>
<p># Create Softlink</p>
<p><strong>[root@proot local]# ln -s /usr/local/jboss-4.2.3.GA jboss</strong></p>
<p># Export the JBOSS path</p>
<p><strong>[root@proot local]# vi /root/.bash_profile &amp;  vi /root/.bashrc</strong></p>
<p># Add the following lines</p>
<p><strong>JBOSS_HOME=/usr/local/jboss</strong></p>
<p><strong>export JBOSS_HOME</strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p># Save and exit</p>
<p><strong>[root@proot local]# cd jboss</strong><br />
<strong>[root@proot jboss]# cd bin</strong></p>
<p># Now you have to edit run.sh , shutdown.sh and create start.sh file</p>
<p><strong>[root@proot bin]# vi run.sh</strong></p>
<p># Edit following lines</p>
<p><strong>JAVA_HOME=”/usr/local/jdk/”</strong></p>
<p><strong>export JAVA_HOME</strong></p>
<p><strong>JAVA=”/usr/local/jdk/bin/java”</strong></p>
<p><strong>JBOSS_HOME=”/usr/local/jboss”</strong></p>
<p><strong>export JBOSS_HOME</strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
# Now comment out Setup the JVM section and check following lines as per figure.</p>
<p><strong>runjar=”$JBOSS_HOME/bin/run.jar”</strong></p>
<p><strong>JAVAC_JAR_FILE=”$JAVA_HOME/lib/tools.jar”</strong></p>
<p># These two lines should be as in figure.<br />
# Now after making these changes save and quit from run.sh</p>
<p># Now edit shutdown.sh file</p>
<p><strong>[root@proot bin]# vi shutdown.sh</strong></p>
<p># Now comment out Setup the JVM section and add following lines as per figure.</p>
<p><strong>JAVA_HOME=”/usr/local/jdk/”</strong></p>
<p><strong>export JAVA_HOME</strong></p>
<p><strong>JAVA=”/usr/local/jdk/bin/java”</strong></p>
<p><strong>export JAVA</strong></p>
<p># After adding these lines, save and quit from shutdown.sh script.<br />
# Now is the time to write a small startup script, named start.sh</p>
<p><strong>[root@proot bin]# vi start.sh</strong></p>
<p><strong>#!/bin/bash</strong></p>
<p><strong>JBOSS_HOME=/usr/local/jboss</strong></p>
<p><strong>export JBOSS_HOME</strong></p>
<p><strong>touch $JBOSS_HOME/nohup.out</strong></p>
<p><strong>nohup sh run.sh -c all &amp;</strong></p>
<p><strong>(sleep 5; chmod 755 $JBOSS_HOME/nohup.out) &amp;</strong></p>
<p># Save and Exit</p>
<p># Use start.sh script to start JBoss Server, and tail –f nohup.out command to see the Jboss server output on STDOUT,</p>
<p># You can also bind any ip with it through this command.</p>
<p><strong>[root@proot bin]# ./run.sh -b 192.168.0.1</strong></p>
<p># Now access your Jboss on 8080 port from the Browser !!!</p>
<p>***************** Now JBOSS integration with Apache *********************</p>
<p># Install mod_jk tomcat connector</p>
<p><strong>[root@proot /]# download tomcat-connectors-1.2.27-src.tar.gz<br />
[root@proot /]# tar -zxvf tomcat-connectors-1.2.27-src.tar.gz<br />
[root@proot /]# cd tomcat-connectors-1.2.27-src</strong></p>
<p><strong>[root@proot tomcat-connectors-1.2.27-src]# cd native</strong></p>
<p><strong>[root@proot native]# ./configure &#8211;with-apxs=/usr/local/apache/bin/apxs<br />
[root@proot native]# make<br />
[root@proot native]# make install</strong></p>
<p># Copy mod_jk.so file under modules directory</p>
<p><strong>[root@proot native]# cd apache 2.0</strong></p>
<p><strong>[root@proot native]# cp mod_jk.so /usr/local/apache/modules/</strong></p>
<p># Now create workers.properties file and add the following lines</p>
<p><strong>[root@proot /]# vi /usr/local/apache/conf/workers.properties</strong></p>
<p><strong>workers.jboss_home=/usr/local/jboss</strong></p>
<p><strong>workers.java_home=/usr/local/jdk</strong></p>
<p>ps=/</p>
<p>worker.list=node1</p>
<p>worker.default.port=8009</p>
<p>worker.default.host=localhost</p>
<p>worker.default.type=ajp13</p>
<p>worker.default.lbfactor=1</p>
<p># Save and Exit</p>
<p># Create mod_jk.conf file and add following line</p>
<p><strong>[root@proot /]# vi /usr/local/apache/conf/mod_jk.conf</strong></p>
<p>JkWorkersFile /usr/local/apache/conf/workers.properties</p>
<p>JkLogFile /var/log/mod_jk.log</p>
<p>JkLogLevel info</p>
<p>JkLogStampFormat &#8220;[%a %b %d %H:%M:%S %Y] &#8221;</p>
<p>JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories</p>
<p>JkRequestLogFormat &#8220;%w %V %T&#8221;</p>
<p># Save and Exit</p>
<p># Now add following line in httpd.conf</p>
<p><strong>[root@proot /]# vi /etc/httpd/conf/httpd.conf</strong></p>
<p>LoadModule jk_module modules/mod_jk.so</p>
<p>Include &#8220;/usr/local/apache/conf/mod_jk.conf&#8221;</p>
<p>&lt;VirtualHost 192.168.0.1:80&gt;<br />
ServerName <strong>unixsurgeon.com</strong><br />
ServerAlias <strong>http://www.unixsurgeon.com</strong><br />
DocumentRoot /home/unix/<br />
ServerAdmin <strong>info@unixsurgeon.com</strong><br />
JkMount /* node1<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.0.1:80&gt;<br />
ServerName<strong> linuxsurgeon.org</strong><br />
ServerAlias <strong>http://www.linuxsurgeon.org</strong><br />
DocumentRoot /home/linux/<br />
ServerAdmin <strong>info@linuxsurgeon.org</strong><br />
JkMount /* node1<br />
&lt;/VirtualHost&gt;</p>
<p># Save and Exit</p>
<p># Now you have successfully install and integrate JBoss AP with Apache</p>
<p><strong>[root@p-root /]#</strong></p>
<p>****************************************************************************************</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Enjoy Linux&#8230;&#8230;&#8230;.. !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-jboss-application-server-on-linux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

