JBoss 7.1.1和JBoss Web Native [英] JBoss 7.1.1 and JBoss Web Native
问题描述
我正在尝试在JBoss 7.1.1中启用 JBoss Web Native库.我已经阅读了这个问题和答案,并有尝试了以下步骤来启用JBoss中的本机库,但是到目前为止,它尚不起作用.我在OS X上:
I'm trying to enable the JBoss Web Native libraries in JBoss 7.1.1. I have read this question and the answers and have tried the following steps to enable the native libraries in JBoss, but it didn't work so far. I'm on OS X:
- 从macosx 档案> http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10
- 将其解压缩到JBoss目录中,因此归档的内容可在
bin/native
中找到. - 更新了
bin/standalone.conf
以包含库路径:JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/path/to/jboss-as-7.1.1.Final-native/bin/native:$PATH"
- Downloaded the macosx archive from http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10
- Unzipped it into the JBoss directory, so the contents of the archive are available in
bin/native
. - Updated
bin/standalone.conf
to include the library path:JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/path/to/jboss-as-7.1.1.Final-native/bin/native:$PATH"
启动JBoss,我仍然可以在日志文件中看到以下内容:
Starting JBoss, I can still see the following in the log file:
[org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
而不是预期的Http11AprProtocol
.
我想念什么?
推荐答案
结果表明,对于JBoss 7.1.1,不再需要执行上述步骤,因为本机库现在捆绑在modules/org/jboss/as/web/main/lib
下.
Turns out the above steps are no longer necessary for JBoss 7.1.1, as the native libraries are now bundled under modules/org/jboss/as/web/main/lib
.
要启用它们的用法,我必须在standalone.xml
的 web 子系统中将 native 属性设置为 true .由于某种原因,在默认配置中将其设置为 false :
To enable their usage, I had to set the native attribute to true in the web subsystem in standalone.xml
. For some reason it was set to false in the default configuration:
<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>
</subsystem>
这篇关于JBoss 7.1.1和JBoss Web Native的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!