请问openfire用clustering怎么配置集群?

shmily480 杭州龙骞科技有限公司 2011-11-14 02:23:57
用openfire和clustering配置集群,配置了好多次了,出现了一系列的问题:如登录后台改错、用户/组无法打开报空指针、要么就是后台看的到两台主机,但都登录客户端的话,中间通讯不来,求帮忙!!!!!!
...全文
400 点赞 收藏 1
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
yangyangcwu 2011-11-14
我也遇到同样的问题
coherence 与 openfire 集群

用openfire实现服务器之间的通信,想使用oracle的coherence
步骤如下
1.使用coherence3.3+openfire3.7.1+clustering.jar1.2.0
2.将coherence3.3中的三个jar包coherence.jar+coherence-work.jar+tangosol.jar拷贝到openfire的安装目录的lib下
3.将clustering.jar拷贝到openfire的安装目录下的插件plugin包中
4.重启服务,登陆到web管理控制台,在clustering目录下设置enable
5.再重启服务,登陆管理控制台时,初始化错误异常
java.lang.ExceptionInInitializerError
at org.jivesoftware.openfire.lockout.LockOutManager.getInstance(LockOutManager.java:58)
at org.jivesoftware.openfire.auth.AuthFactory.authenticate(AuthFactory.java:154)
at org.jivesoftware.openfire.admin.login_jsp._jspService(login_jsp.java:149)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:66)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:42)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:70)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:146)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.IllegalStateException: Unable to access backing cache for Locked Out Accounts. BackingMapManager is a com.tangosol.net.DefaultConfigurableCacheFactory$Manager and backing map is com.tangosol.net.cache.LocalCache
at com.jivesoftware.util.cache.ClusteredCache.init(ClusteredCache.java:106)
at com.jivesoftware.util.cache.ClusteredCache.(ClusteredCache.java:59)
at com.jivesoftware.util.cache.CoherenceClusteredCacheFactory.createCache(CoherenceClusteredCacheFactory.java:177)
at org.jivesoftware.util.cache.CacheFactory.createCache(CacheFactory.java:331)
at org.jivesoftware.openfire.lockout.LockOutManager.(LockOutManager.java:70)
at org.jivesoftware.openfire.lockout.LockOutManager.(LockOutManager.java:33)
at org.jivesoftware.openfire.lockout.LockOutManager$LockOutManagerContainer.(LockOutManager.java:37)
... 33 more


起初怀疑是coherence与openfire的版本不兼容,之后试了coherence3.7.1,coherence3.6.1,coherence3.5,coherence3.4与openfire3.7.1、openfire3.6.4的各种排列组合
均报异常。


求助各位大侠啦~~~~~希望能留下联系方式以便交流
yangyangcwu@163.com
回复
相关推荐
发帖
非技术区
创建于2007-09-28

2.3w+

社区成员

Java 非技术区
申请成为版主
帖子事件
创建了帖子
2011-11-14 02:23
社区公告
暂无公告