This article describes the JBoss configuration method. Share to everyone for your reference, specific as follows:
Jboss-5.1.0.ga-jdk6.zip configuration:
1. JDK Configuration after installation:
Add the Java_home variable in the environment variable with the value set to: The JDK installation path C:\Java\jdk6.0
Add the CLASSPATH variable to the system variable with the value set to:
.; %java_home%\lib\dt.jar; %java_home%\lib\tools.jar;
The path variable is then found in the system variable, and the value is added at the end of the
; %java_home%\bin
2. Download and install JBoss
Download Address: Http://www.jboss.org/jbossas/downloads
When the download is complete, unzip it to complete the installation, decompression and put it into a directory without spaces (if the directory with spaces, for example: C: "Program Files, may produce some inexplicable errors in the future), while in" Environment variable settings, "set named Jboss_ The environment variable of home, the value is the installation path of JBoss,
At this point, the installation of JBoss has ended, and you can test the success of your installation by:
Run the JBoss installation directory "Bin" Run.bat, if no exception appears in the window, and appears:
10:11:08,656 INFO [Serverimpl] JBoss (Microcontainer) [5.1.0.GA (build:svntag=
Jboss_5_1_0_ga date=200905221634)] started in 1m:6s:110ms indicates successful installation.
We can access the JBoss Welcome interface by visiting: http://localhost:8080/, click on the JMX console under JBoss Management to enter JBoss's console.
Failure to start can be caused by the following reasons:
The port used by the ①jboss (8080,1099,1098,8083, etc.) is occupied. Typically 8080 ports are occupied (for example, Oracle occupies 8080 ports) and the JBoss port needs to be modified by entering the JBoss installation directory "jboss-5.1.0.ga\server\default\deploy\ Jbossweb.sar directory, modify the Server.xml directory below, search for 8080 in this file, and change it to the port you want (for example, 8088);
②JDK installation is not correct;
③jboss download is not complete.
3. JBoss Configuration
① log File Settings:
To modify the JBoss default log4j setting, modify the Jboss-log4j.xml file under the JBoss installation directory "server\default\conf, where you can see that the log4j log output is in the JBoss installation directory" server \default\log under the Server.log file. For log4j settings, readers can search for more detailed information on the web.
Modification of the port number of the ②web service:
This is mentioned in the previous article, that is, modify the Server.xml file under the JBoss installation directory "server" default "Deployer" Jboss-web.deployer, as follows:
<connector port= "8080" address= "${jboss.bind.address}"
maxthreads= "maxhttpheadersize=" Emptysessionpath= "true" protocol= "http/1.1"
enablelookups= "false" redirectport=
"8443" acceptcount= " connectiontimeout= "20000" disableuploadtimeout= "true"/>
Change the top 8080 port to the port you want. After restarting JBoss access: http://localhost/: The newly set port can see the JBoss welcome interface.
I hope this article will help you with Java programming.