1、解压apr包到bin目录
2、在standalone.conf.bat配置目录
set "JAVA_OPTS=-Xms256M -Xmx512M -XX:MaxPermSize=128M -Djava.library.path=E:/jboss-eap-6.2/bin/native"
3、standalone.xml设置APR协议,并启用native
<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="true">
<connector name="http" protocol="org.apache.coyote.http11.Http11AprProtocol" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>