This article describes the jboss configuration method. Share it for your reference, as follows:
jboss-5.1.0.GA-jdk6.zip configuration:
1. JDK installation configuration:
Add the JAVA_HOME variable to the environment variable, and its value is set to: JDK installation path C:/Java/jdk6.0
Add the CLASSPATH variable to the system variable, and its value is set to:
.;%JAVA_HOME%/lib/dt.jar; %JAVA_HOME%/lib/tools.jar;
Then find the path variable in the system variable and add it at the end
; %JAVA_HOME%/bin
2. Download and install jboss
Download address: http://www.jboss.org/jbossas/downloads
After the download is completed, decompress it and complete the installation. After decompressing, place it in a directory without spaces (if the directory has spaces, for example: C:"Program Files, some inexplicable errors may occur in the future). At the same time, set an environment variable named JBOSS_HOME in the "Environment Variable Settings" and the installation path of the value JBoss.
Here, the installation of JBoss has ended. You can test whether the installation is successful by:
Run the JBoss installation directory "bin" run.bat, if no exception appears in the window and it 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, it means the installation is successful.
We can enter the JBoss welcome interface by visiting: http://localhost:8080/ and click the JMX Console under JBoss Management to enter the JBoss console.
If the startup fails, it may be caused by the following reasons:
① The ports used by JBoss (8080, 1099, 1098, 8083, etc.) are occupied. Generally speaking, port 8080 is occupied (for example, Oracle occupies port 8080). At this time, you need to modify the port of JBoss. The method is to enter the JBoss installation directory "jboss-5.1.0.GA/server/default/deploy/jbossweb.sar directory, modify the server.xml directory under it, search for 8080 in this file, and change it to the port you want (for example, 8088);
② The JDK installation is incorrect;
③ The JBoss download is incomplete.
3. JBoss configuration
① Log file settings:
If you need to modify the default log4j settings of JBoss, you can modify the jboss-log4j.xml file under the "server/default/conf" directory of JBoss. In this file, you can see that the log output of log4j is in the server.log file under the "server/default/log" directory of JBoss installation directory. For log4j settings, readers can search for more detailed information online.
② Modify the port number of the web service:
This point is mentioned in the previous article, that is, modify the server.xml file under the JBoss installation directory "server"default"deployer"jboss-web.deployer, and the content is as follows:
<Connector port="8080" address="${jboss.bind.address}" maxThreads="250" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />Just modify the above 8080 port to the port you want. After restarting JBoss, visit: http://localhost/: The newly set port can be seen.
I hope this article will be helpful to everyone's Java programming.