eclipse编译zookeeper
来源:互联网 发布:张学友演唱会 知乎 编辑:程序博客网 时间:2024/06/03 18:50
部署在weblogic上的web应用需要访问zookeer服务,从中获取信息。但是访问过程中总是报错如下错误:
26 nov. 2012 12:17:29,250 WARN : Session 0x0 for server null, unexpectederror, closing socket connection and attempting reconnectjava.lang.IllegalArgumentException: No Configuration was registered thatcan handle the configuration named Clientatcom.bea.common.security.jdkutils.JAASConfiguration.getAppConfigurationEntry(JAASConfiguration.java:124)
通过搜索,找到问题所在,主要原因是weblogic抛出的异常,zookeeper不能接收到,所以需要将捕获的异常改为zk能捕获到的异常,即:RuntimeException。具体分析参考如下网址:
1.http://qnalist.com/questions/440202/disabling-sasl
2.https://gist.github.com/barkbay/4153107
接下来的问题,就是修改zookeeper源码,然后编译。
此处使用eclipse自带的ant工具进行编译:
1、首先从ANT官网http://ant.apache.org/下载ANT
2、配置环境变量: ANT_HOME: C:\apache-ant-1.9.4;PATH:%ANT_HOME%\bin
3、测试ANT安装是否成功。在cmd窗口下运行ant,如果出现如下信息,则表示ant安装成功
Buildfile:build.xml does not exist!
Build failed
4、下载zookeeper源码,进入到build.xml目录下,使用命令ant eclipse 自动构建eclipse工程
5、将生成的工程导入到eclipse
6、修改zk,并编译。具体操作请参照下图:
正常情况下编译无问题,若遇问题,可参考网址:
1、http://www.myexception.cn/eclipse/1616862.html
2、http://blog.csdn.net/vah101/article/details/24378575
- eclipse编译zookeeper
- eclipse编译zookeeper
- Zookeeper 源代码编译导入Eclipse
- win7下Ant编译Zookeeper源码为Eclipse工程
- Zookeeper源码编译为Eclipse工程(win7下Ant编译)
- 如何编译Zookeeper源码
- zookeeper C API 编译
- zookeeper 源码编译
- zookeeper c client编译
- eclipse zookeeper plugin
- ZooKeeper源码导入Eclipse
- eclipse安装zookeeper插件
- ZooKeeper之.net客户端编译
- hadoop,hbase,zookeeper源码编译
- 编译Eclipse。
- eclipse编译
- zookeeper可视化Eclipse插件安装
- eclipse连不上linux的zookeeper
- 发送短信和打电话的方法
- 城市的秋天
- maven项目文件乱码问题
- 像素是什么意思?一个像素有多大? 告诉你像素和分辨率的关系!
- usim
- eclipse编译zookeeper
- 【Spring】AOP
- eclipse的LogCat不显示信息问题的解决
- Tomcat项目部署
- Jxl修改excel单元格的值、删除excel表格的某一行
- MVC实现验证码
- 802.11(wifi)的MAC层功能
- Android Handler leak 分析及解决办法
- 【Spring】AOP