In view of the online search is not full, or write a, record, easy to browse later
1. Download Jboss-5.1.0.ga
2. Configure the JBOSS environment variable (optional)
(1) System variable NEW: Jboss_home path: D:\jboss\jboss-5.1.0.GA
(2) system variable path increased:%jboss_home%\bin
3. Configuring the configuration file Default\conf\bootstrap\profile.xml
D:\jboss\jboss-5.1.0.GA\server\default\conf\bootstrap\profile.xml
Configuration add class= "Java.io.File"
<!--the attachment store--
<bean name= "Attachmentstore" class= "Org.jboss.system.server.profileservice.repository.AbstractAttachmentStore ">
<constructor><parameter class= "Java.io.File" ><inject bean= "bootstrapprofilefactory" property= " Attachmentstoreroot "/></parameter></constructor>
<property name= "Maindeployer" ><inject bean= "Maindeployer"/></property>
<property name= "Serializer" ><inject bean= "Attachmentsserializer"/></property>
<property name= "persistencefactory" ><inject bean= "Persistencefactory"/></property>
</bean>
4. Start the JBoss server, default port 8080
5. Access path: http://localhost:8080
6.jboss Port Configuration
If you need to modify the port:
Modify the file JBoss installation path \server\default\deploy\jbossweb.sar server.xml configuration
<!--A http/1.1 Connector on port 8080--
<connector protocol= "http/1.1" port= "8080" address= "${jboss.bind . Address} "
connectiontimeout=" 20000 "redirectport=" 8443 "/>
7. Configure the data source
An instance of a configuration file that uses various databases in DOCS\EXAMPLES\JCA.
For example, the configuration file for Oracle is: Oracle-ds.xml
Copy to the \server\default\deploy directory to modify the configuration, and the Jndi name, referenced in the project when invoking Jndi
8.jboss admin-console Default User name password: admin/admin