JBOSS EAP 6.0
檢查,如果你有模塊/組織/ JBoss的/因爲/網絡/主/在JBOSS_HOME LIB 。 如果不是在我的JBoss EAP 6.0版本中。
第一:yum install tomcat-native.x86_64
現在你的系統已經得到了tomcat的本地庫在/ usr/lib64下通常是在的java.library.path 然後設置本地=真正的子系統網絡作爲nwinkler商建議:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host"
native="true">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
現在重新啓動JBOSS。
沒有安裝tomcat的機庫,你必須在日誌:
10:12:31,700 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-1) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_37/jre/lib/amd64/server:/usr/java/jdk1.6.0_37/jre/lib/amd64:/usr/java/jdk1.6.0_37/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
10:12:32,203 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http-/127.0.0.1:8080
和Tomcat本機庫安裝到您的日誌中寫道:
10:22:56,147 INFO [org.apache.coyote.http11.Http11AprProtocol] (MSC service thread 1-5) Starting Coyote HTTP/1.1 on http-/127.0.0.1:8080
備選
1)下載本機庫JBoss網站:
wget http://downloads.jboss.org/jbossnative/2.0.10.GA/jboss-native-2.0.10-linux2-x64-ssl.tar.gz
2)解壓
tar xvzf jboss-native-2.0.10-linux2-x64-ssl.tar.gz
3)爲您的本機庫的文件夾:在你的新文件夾
mkdir -p tomcat-native
4)移動斌/本地
mv bin/native tomcat-native
5)讓你的文件夾可見的Java。將其添加到standalone.conf或domain.conf中
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=[the tomcat-native's folder path]
+1到目前爲止最符合目標和最正確的解決方案! – Nikhil 2012-06-01 11:29:35