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 > |