Installing JBoss under Linux

Source: Internet
Author: User
Tags jboss jconsole

I'm installing JBOSS5 here.

1, download jboss-5.1.0.ga.zip, download URL http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/

Download JDK installation package Jdk-6u13-dlj-linux-i586.bin, http://download.chinaunix.net/download.php?ResourceID=61&id=33951

2, put the above download of the installation package in the/OPT directory (you can also put in other directories).

Give these two installation packages Execute permissions

[Email protected] opt]# chmod 755 jboss-5.1.0.ga.zip

[email protected] opt]# Unzip Jboss-5.1.0.ga.zip

[email protected] opt]# chmod 755 Jdk-6u13-dlj-linux-i586.bin

3. Install and configure JDK

[email protected] opt]#./ Jdk-6u13-dlj-linux-i586.bin

[email protected] opt]# LL

Total 208640

Drwxr-xr-x. 8 root root 4096 may Jboss-5.1.0.ga

-rwxr-xr-x. 1 root root 133466607 Dec 19:00 jboss-5.1.0.ga.zip

Drwxr-xr-x. Root root 4096 Mar jdk1.6.0_13

-rwxr-xr-x. 1 root root 80161911 Dec 19:26 jdk-6u13-dlj-linux-i586.bin

Drwxr-xr-x. 2 root root 4096 (RH)

[[email protected] opt] #vi/etc/profile

Export Java_home=/opt/jdk1.6.0_13-This is the path to the JDK folder

Export Jre_home= $JAVA _home/jre-This is the path to the JRE in the JDK folder

Export classpath= $JAVA _home/lib/dt.jar: $JAVA _home/lib/htmlconverter.jar: $JAVA _home/lib/jconsole.jar: $JAVA _home/ Lib/sa-jdi.jar-This is some jar under the Lib path in the JDK folder

Export path= $PATH: $JAVA _home/bin

Add the above content to this configuration file

[[email protected] opt] #source/etc/profile--Make configuration effective

[[email protected] opt] #java-version--View JDK version

Java Version "1.7.0_45"

OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)

OpenJDK 64-bit Server VM (build 24.45-b08, Mixed mode)

Note that the version you see here is 1.7.0_45, but it's actually jdk1.6.0_13, which doesn't match

Below, use the following command to view

[[email protected] opt] #which java--you can see the path where the Java command is located, and then rename the Java under this path to Javabak so that it does not invoke the Java that comes with the system itself, it calls the JDK we join. Shows the version of our JDK

4. JBoss Installation

[[email protected] opt] #cd /opt/jboss-5.1.0.ga/bin

[Email protected] opt]#./run.sh

But it was a bad, bad error.

=========================================================================

JBoss Bootstrap Environment

Jboss_home:/opt/jboss-5.1.0.ga

JAVA:/opt/jdk1.6.0_13/bin/java

Java_opts:-dprogram.name=run.sh-xms128m-xmx512m-xx:maxpermsize=256m-dorg.jboss.resolver.warning=true- Dsun.rmi.dgc.client.gcinterval=3600000-dsun.rmi.dgc.server.gcinterval=3600000-djava.net.preferipv4stack=true

CLASSPATH:/opt/jboss-5.1.0.ga/bin/run.jar

=========================================================================

Error occurred during initialization of VMS

Java/lang/noclassdeffounderror:java/lang/object

With this error, you can go to the JDK directory where the RT and tools inside Lib and jre/lib are rt.pack and Tools.pack

if it is, then using the Unpack200 tool in the bin,

[Email protected] lib]# pwd

/opt/jdk1.6.0_13/jre/lib

[email protected] lib]# LL

Total 20304

Drwxr-xr-x. 2 root root 4096 Mar 9 applet

Drwxr-xr-x. 2 root root 4096 Mar audio

-r--r--r--. 1 root root 1215 Mar 9 calendars.properties

-rw-r--r--. 1 root root 3471822 Mar charsets.pack

-rw-r--r--. 1 root root 79129 Mar 9 classlist

Drwxr-xr-x. 2 root root 4096 Mar CMM

-r--r--r--. 1 root root 5874 Mar 9 content-types.properties

Drwxr-xr-x. 2 root root 4096 Mar deploy

-rw-r--r--. 1 root root 1230687 Mar deploy.pack

Drwxr-xr-x. 5 root root 4096 Mar

Drwxr-xr-x. 2 root root 4096 Mar ext

-r--r--r--. 1 root root 3878 Mar 9 flavormap.properties

-r--r--r--. 1 root root 1678 Mar 9 FONTCONFIG.BFC

-r--r--r--. 1 root Root 1973 Mar 9 fontconfig.properties.src

-r--r--r--. 1 root root 5438 Mar 9 fontconfig. Redhat.2.1.bfc

-r--r--r--. 1 root root 9060 Mar 9 fontconfig. Redhat.2.1.properties.src

-r--r--r--. 1 root root 5760 Mar 9 fontconfig. Redhat.3.bfc

-r--r--r--. 1 root root 11040 Mar 9 fontconfig. Redhat.3.properties.src

-r--r--r--. 1 root root 4494 Mar 9 fontconfig. Redhat.4.bfc

-r--r--r--. 1 root root 8816 Mar 9 fontconfig. Redhat.4.properties.src

-r--r--r--. 1 root root 4532 Mar 9 fontconfig. Redhat.bfc

-r--r--r--. 1 root root 8878 Mar 9 fontconfig. RedHat.properties.src

-r--r--r--. 1 root root 4644 Mar 9 fontconfig. Sun.bfc

-r--r--r--. 1 root root 8679 Mar 9 fontconfig. Sun.properties.src

-r--r--r--. 1 root root 1678 Mar 9 fontconfig. Suse.bfc

-r--r--r--. 1 root root 1972 Mar 9 fontconfig. SuSE.properties.src

-r--r--r--. 1 root root 4668 Mar 9 fontconfig. Turbo.bfc

-r--r--r--. 1 root root 9233 Mar 9 fontconfig. Turbo.properties.src

Drwxr-xr-x. 2 root root 4096 Mar fonts

Drwxr-xr-x. 9 root root 4096 Mar i386

Drwxr-xr-x. 2 root root 4096 Mar im

Drwxr-xr-x. 4 root root 4096 Mar images

-rw-r--r--. 1 root root 189467 Mar javaws.pack

-r--r--r--. 1 root root 88256 Mar 9 Jce.jar

-rwxr-xr-x. 1 root root 15853 Mar 9 jexec

-rw-r--r--. 1 root root 153290 Mar jsse.pack

-r--r--r--. 1 root root 2807 Mar 9 jvm.hprof.txt

Drwxr-xr-x. Root root 4096 Mar locale

-r--r--r--. 1 root root 2245 Mar 9 logging.properties

Drwxr-xr-x. 2 root root 4096 Mar management

-rw-r--r--. 1 root root 382 Mar 9 Management-agent.jar

-rw-r--r--. 1 root Root 1914 Mar 9 Meta-index

-r--r--r--. 1 root root 3070 Mar 9 net.properties

Drwxr-xr-x. 2 root root 4096 Mar oblique-fonts

-rw-r--r--. 1 root root 500450 Mar plugin.pack

-r--r--r--. 1 root root 10669 Mar 9 psfontj2d.properties

-r--r--r--. 1 root root 3070 Mar 9 Psfont.properties.ja

-rw-r--r--. 1 root root 1140700 Mar 9 Resources.jar

-rw-r--r--. 1 root root 13638155 Mar rt.pack

Drwxr-xr-x. 2 root root 4096 Mar security

Drwxr-xr-x. 2 root root 4096 Mar Servicetag

-r--r--r--. 1 root root 1210 Mar 9 sound.properties

Drwxr-xr-x. Root root 4096 Mar Zi

[Email protected] lib]# unpack200 rt.pack Rt.jar

[Email protected] lib]# pwd

/opt/jdk1.6.0_13/lib

[email protected] lib]# LL

Total 20680

-rw-r--r--. 1 root root 15555306 Mar 9 ct.sym

-rw-r--r--. 1 root root 145492 Mar 9 Dt.jar

-rw-r--r--. 1 root root 205973 Mar 9 Htmlconverter.jar

-r--r--r--. 1 root root 18381 Mar 9 ir.idl

-rw-r--r--. 1 root root 393222 Mar 9 Jconsole.jar

-rwxr-xr-x. 1 root root 15853 Mar 9 jexec

-r--r--r--. 1 root root 429 Mar 9 orb.idl

-rw-r--r--. 1 root root 1525858 Mar 9 Sa-jdi.jar

-rw-r--r--. 1 root root 3290417 Mar tools.pack

Drwxr-xr-x. 6 root root 4096 Mar VISUALVM

[Email protected] lib]# uppack200 tools.pack Tools.jar

-bash:uppack200:command not found

[Email protected] lib]# unpack200 tools.pack Tools.jar

Once this is done, start JBoss again.

[Email protected] opt]#./run.sh

=========================================================================

JBoss Bootstrap Environment

Jboss_home:/opt/jboss-5.1.0.ga

JAVA:/opt/jdk1.6.0_13/bin/java

Java_opts:-dprogram.name=run.sh-server-xms128m-xmx512m-xx:maxpermsize=256m-dorg.jboss.resolver.warning=true- Dsun.rmi.dgc.client.gcinterval=3600000-dsun.rmi.dgc.server.gcinterval=3600000-djava.net.preferipv4stack=true

CLASSPATH:/opt/jboss-5.1.0.ga/bin/run.jar:/opt/jdk1.6.0_13/lib/tools.jar

=========================================================================

02:40:25,126 INFO [Serverimpl] starting JBoss (Microcontainer) ...

02:40:25,126 INFO [Serverimpl] Release Id:jboss [the Oracle] 5.1.0.GA (Build:svntag=jboss_5_1_0_ga date=200905221053)

02:40:25,138 INFO [Serverimpl] Bootstrap Url:null

02:40:25,138 INFO [Serverimpl] Home Dir:/opt/jboss-5.1.0.ga

02:40:25,138 INFO [Serverimpl] Home url:file:/opt/jboss-5.1.0.ga/

02:40:25,138 INFO [Serverimpl] Library url:file:/opt/jboss-5.1.0.ga/lib/

02:40:25,140 INFO [Serverimpl] Patch Url:null

02:40:25,140 INFO [Serverimpl] Common Base url:file:/opt/jboss-5.1.0.ga/common/

02:40:25,140 INFO [Serverimpl] Common Library url:file:/opt/jboss-5.1.0.ga/common/lib/

02:40:25,140 INFO [Serverimpl] Server Name:default

02:40:25,140 INFO [Serverimpl] Server Base Dir:/opt/jboss-5.1.0.ga/server

02:40:25,140 INFO [Serverimpl] Server Base url:file:/opt/jboss-5.1.0.ga/server/

02:40:25,140 INFO [Serverimpl] Server Config url:file:/opt/jboss-5.1.0.ga/server/default/conf/

02:40:25,140 INFO [Serverimpl] Server Home Dir:/opt/jboss-5.1.0.ga/server/default

02:40:25,140 INFO [Serverimpl] Server Home url:file:/opt/jboss-5.1.0.ga/server/default/

02:40:25,140 INFO [Serverimpl] Server Data Dir:/opt/jboss-5.1.0.ga/server/default/data

02:40:25,140 INFO [Serverimpl] Server Library url:file:/opt/jboss-5.1.0.ga/server/default/lib/

02:40:25,140 INFO [Serverimpl] Server Log Dir:/opt/jboss-5.1.0.ga/server/default/log

02:40:25,140 INFO [Serverimpl] Server Native Dir:/opt/jboss-5.1.0.ga/server/default/tmp/native

02:40:25,141 INFO [Serverimpl] Server Temp Dir:/opt/jboss-5.1.0.ga/server/default/tmp

02:40:25,141 INFO [Serverimpl] Server Temp Deploy Dir:/opt/jboss-5.1.0.ga/server/default/tmp/deploy

02:40:26,444 INFO [Serverimpl] starting Microcontainer, bootstrapurl=file:/opt/jboss-5.1.0.ga/server/default/conf/ Bootstrap.xml

Start or error, that is the JDK problem, because I re-operate a JDK to replace the installation package, there is no dt.pack and tools.pack. This JDK installation package is still a problem, if the start is not an error, then success. Next article I will again introduce the installation of JBOSS5, that time is relatively smooth, this time just to tell you some solutions to the problem, I hope to help you.


Installing JBoss under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.