My JBoss Use notes

Source: Internet
Author: User
Tags jboss jboss application server port number log4j


First, JBoss installation
1) unzip directly to the directory path without spaces. Example: D:\C\Java\jboss-5.0.1.GA\
JBoss folder description: \ bin does not explain the \server home directory, which is divided into default, all, minimal, and several "users"
Commonly used: \server\default\ This directory, publish the project directory is: \server\default\deploy\
2) Configure the Windows environment variable: Create a new jboss_home with the installation path for JBoss, for example D:\C\Java\jboss-5.0.1.GA then add:%jboss_home%/bin to the PATH variable.
3) Verify the installation is successful:
Run \bin\run.bat to start. The default is port 8080, and the JBoss page will appear when you enter http://localhost:8080
When off, do not click Shutdown.bat directly, should run the following command in the CMD window: Enter the \ Bin directory, enter the Shutdown-s

4) Install Eclipse's JBoss plugin with JBoss Tools, with the following address: Http://www.jboss.org/tools/download/installation and other Eclipse plug-in installation methods, there are installation instructions.

5) under Eclipse new a JBoss application server, and then double-click on the server name to open the settings.
Second, JBoss configuration
1) Modify the HTTP port number for example, to modify the default user's port number: Find \server\default\ deploy\jbossweb.sar\server.xml Modify.
2) Modify JVM parameters find \bin\run.bat starting at the end, find the following: set java_opts=%java_opts%-xms256m-xmx1024m-xx:maxpermsize=256m

Third, problem solving
1) Error after startup: Invalid console appender config detected,spring Bean failed to initialize. log4j problem, find Log4jservice in \server\default\conf\jboss-service.xml, and add <attribute name= "Catchsystemout" >false </attribute>, as follows:

1 2 3) 4 5 < Mbean code = "Org.jboss.logging.Log4jService" name = "Jboss.system:type=log4jservice,service=logging" > < Attribute name = "ConfigurationURL" >resource:log4j.xml</attribute > < attribute name = "Catchsystemout" >false</attribute >

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.