如何在JBoss 7中加载APR连接器(本机) [英] How to load APR Connector (Native) in JBoss 7

查看:158
本文介绍了如何在JBoss 7中加载APR连接器(本机)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Atmosphere XMPP,但我需要加载本机连接器APR.到目前为止,我对JBoss 7还不是很熟悉,所以我想知道是否有人知道该怎么做? Windows x64或Linux x64环境.没关系谢谢

I want to use Atmosphere XMPP but i need to load native connector APR. I am not very familiar as of yet with JBoss 7 so i was wondering if anyone knows how to do this? WIndows x64 or Linux x64 environment. Doesn't matter. Thanks

推荐答案

此处使用Linux x64.我正在使用Ubuntu 11.04 x64.

Assuming Linux x64 here. I am using Ubuntu 11.04 x64.

  1. 下载JBoss7发行版并将其解压缩到合适的目录(从这里我假设您将其保存在'/home/myname/tools/jboss701/'文件夹中.
  2. 使用/jboss701/bin/standalone.sh启动它,并验证它是否正确启动(检查localhost:8080 url).立即关闭jboss.

  1. Download JBoss7 distribution and unzip it to a suitable directory ( from here I am assuming that you have it in your '/home/myname/tools/jboss701/' folder.
  2. Start it using /jboss701/bin/standalone.sh and verify that it started properly ( check localhost:8080 url). Close the jboss for now.

从此处下载本机库 http ://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html .我已经下载了这个jboss-native-2.0.9-linux2-x64-ssl.tar.gz

Download the native libraries from here http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html . I have downloaded this one jboss-native-2.0.9-linux2-x64-ssl.tar.gz

将其解压缩到"/home/myname/tools/jboss701/"文件夹中.您应该在"/home/myname/tools/jboss701/bin"文件夹中看到档案的内容.另外,请确认您在"/home/myname/tools/jboss701/bin"下有本地"文件夹

Unpack it to the '/home/myname/tools/jboss701/' folder. You should see the contents of the archive in '/home/myname/tools/jboss701/bin' folder. Also, verify that you have 'native' folder under the '/home/myname/tools/jboss701/bin'

重要提示:很遗憾,它开箱即用.您必须进行以下更改:添加

IMPORTANT: unfortunately, it doesn't work out of the box. You must make the following change: add the

JAVA_OPTS ="$ JAVA_OPTS -Djava.library.path =/home/myname/tools/jboss701/bin/native:$ PATH"

JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/home/myname/tools/jboss701/bin/native:$PATH"

字符串到您的"standalone.conf"文件.

string to your 'standalone.conf' file.

使用"standalone.sh"脚本启动JBoss.验证在JBoss启动期间控制台中是否具有以下行:'org.apache.coyote.http11.Http11AprProtocol'.如果您看到的是"org.apache.coyote.http11.Http11AprProtocol"而不是"org.apache.coyote.http11.Http11Protocol",则说明一切正常.

Start JBoss with the 'standalone.sh' script. Verify that you have the following line in the console during the JBoss startup: 'org.apache.coyote.http11.Http11AprProtocol'. If you see 'org.apache.coyote.http11.Http11AprProtocol' instead of 'org.apache.coyote.http11.Http11Protocol' then everything is working as expected.

这篇关于如何在JBoss 7中加载APR连接器(本机)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆