JBOSS-5.1.0.GA installation Configuration

Source: Internet
Author: User
Tags constructor jboss jboss server

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




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.