cẤu hÌnh jboss as

2
“Cùng Thành Công” CÔNG TY CPHN PHN MM SÀI GÒN MI NSS Địa chỉ: 243/78 Chu Văn An, P.12, Q.Bình Thạnh, TP.HCM Văn phòng: 180/21 Nguyễn Hu Cnh, P.22, Q.Bình Thnh, TP.HCM Điện thoi: (+84 8) 38 999 810 Fax: (+84 8) 35 127 147 Website: http://newsaigonsoft.com Email: [email protected] 1 CẤU HÌNH JBOSS AS Trong thư mục jboss-7.1.1\standalone\configuration mfile standalone.xml 1 Cu hình jboss htrunicode Trong thserver thêm đoạn sau <system-properties> <property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/> <property name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/> <property name="org.jboss.as.logging.per-deployment" value="false"/> </system-properties> 2 Bthông báo li ca quartz Tìm đến chcu hình logger của jboss thêm đoạn sau <logger category="org.quartz"> <level name="ERROR"/> </logger> 3 Cu hình PortalRealm Comment các ni dung có sn ca jboss và thay thế bi <security-domains> <security-domain name="PortalRealm"> <authentication> <login-module code="com.liferay.portal.security.jaas.PortalLoginModule" flag="required"/> </authentication> </security-domain> <security-domain name="other" cache-type="default"> <authentication> <login-module code="Disabled" flag="required"/> </authentication> </security-domain> </security-domains> 4 Tt cu hình trang mặc định Đặt giá trfalse cho thuc tính enable-welcome-root trong thvirtual-server <virtual-server name="default-host" enable-welcome-root="false"> 5 Bt htrajax push <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual- server="default-host" native="true">

Upload: le-ngoc-anh

Post on 01-Dec-2015

56 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: CẤU HÌNH JBOSS AS

“Cùng Thành Công”

CÔNG TY CỔ PHẦN PHẦN MỀM SÀI GÒN MỚI NSS

Địa chỉ: 243/78 Chu Văn An, P.12, Q.Bình Thạnh, TP.HCM

Văn phòng: 180/21 Nguyễn Hữu Cảnh, P.22, Q.Bình Thạnh, TP.HCM

Điện thoại: (+84 8) 38 999 810 Fax: (+84 8) 35 127 147

Website: http://newsaigonsoft.com Email: [email protected]

1

CẤU HÌNH JBOSS AS

Trong thư mục jboss-7.1.1\standalone\configuration mở file standalone.xml

1 Cấu hình jboss hỗ trợ unicode

Trong thẻ server thêm đoạn sau <system-properties>

<property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>

<property

name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING"

value="true"/>

<property name="org.jboss.as.logging.per-deployment" value="false"/>

</system-properties>

2 Bỏ thông báo lỗi của quartz

Tìm đến chỗ cấu hình logger của jboss thêm đoạn sau <logger category="org.quartz">

<level name="ERROR"/>

</logger>

3 Cấu hình PortalRealm

Comment các nội dung có sẵn của jboss và thay thế bởi <security-domains>

<security-domain name="PortalRealm">

<authentication>

<login-module

code="com.liferay.portal.security.jaas.PortalLoginModule"

flag="required"/>

</authentication>

</security-domain>

<security-domain name="other" cache-type="default">

<authentication>

<login-module code="Disabled" flag="required"/>

</authentication>

</security-domain>

</security-domains>

4 Tắt cấu hình trang mặc định

Đặt giá trị false cho thuộc tính enable-welcome-root trong thẻ virtual-server

<virtual-server name="default-host" enable-welcome-root="false">

5 Bật hỗ trợ ajax push <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-

server="default-host" native="true">

Page 2: CẤU HÌNH JBOSS AS

“Cùng Thành Công”

CÔNG TY CỔ PHẦN PHẦN MỀM SÀI GÒN MỚI NSS

Địa chỉ: 243/78 Chu Văn An, P.12, Q.Bình Thạnh, TP.HCM

Văn phòng: 180/21 Nguyễn Hữu Cảnh, P.22, Q.Bình Thạnh, TP.HCM

Điện thoại: (+84 8) 38 999 810 Fax: (+84 8) 35 127 147

Website: http://newsaigonsoft.com Email: [email protected]

2

6 Cấu hình jboss bind tất cả các interfaces <interface name="public">

<inet-address value="${jboss.bind.address:0.0.0.0}"/>

</interface>

7 Cấu hình tăng thời gian deploy timeout <deployment-scanner path="deployments" relative-

to="jboss.server.base.dir" scan-interval="5000" deployment-

timeout="900"/>

8 Cấu hình một số lỗi liên quan đến class not found trong jdk

$JBOSS_HOME/modules/sun/jdk/main/module.xml

and add following lines on appropriate place:

<path name="com/sun/crypto"/>

<path name="com/sun/crypto/provider"/>

<path name="com/sun/image/codec/jpeg"/>

This issue should be fixed in Jboss 7.2

9 Bỏ cấu hình module system trong jboss-deployment-structure.xml

của portal nếu có

10 Cấu hình các thư viện trong module portal

Vào đường dẫn:

jboss-7.1.1\modules\com\liferay\portal\main

Mở file module.xml và thêm vào đó các thư viện cần thiết để chạy ứng dụng. Các

thư viện không được khai báo sẽ không được jBoss load vào classpath.