配置 JBOss 缓存以在 JBoss 服务器 4.2.3.GA 上运行 [英] Configure JBOss cache to run on JBoss server 4.2.3.GA

查看:18
本文介绍了配置 JBOss 缓存以在 JBoss 服务器 4.2.3.GA 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的商业应用程序曾经运行在不同的应用服务器上,我们开始调整它以在 JBoss 服务器上运行.问题是该应用程序运行 JBoss 缓存,作为与该框架集成的一部分,web-inflib 包含以下 jars:
jboss-aop.jar、jbosscache-core.jar、jboss-common.jar、jboss-common-core.jar、jboss-j2ee.jar、jboss-jmx.jar、jboss-logging-spi.jar这会导致通过应用程序使用 JNDI 出现问题,因为 jboss-common-core.jar 包含导致 JBoss JNDI 无法正常工作的命名包.所以我需要找到一种方法来组织我的 jar,一方面 jboss 缓存将继续工作,另一方面不干扰 JNDI 的工作

Our commercial application used to run on different application server and letely we started adjust it to run on JBoss server. The problem is that that application runs JBoss cache and as part of the integration with this framework, the web-inflib contains the follwing jars:
jboss-aop.jar, jbosscache-core.jar, jboss-common.jar, jboss-common-core.jar, jboss-j2ee.jar, jboss-jmx.jar, jboss-logging-spi.jar This causes a problem to use JNDI through the application because the jboss-common-core.jar contain naming package that cause JBoss JNDI to work incorrect. So I need to find a way to organise my jars that on one hand jboss cache will keep working and on the other hand not to interfere to the work of JNDI

也许它包括将一些或所有这些 jars 从 web-inflib 移动到/server/default/lib寻找熟悉这方面的人

Perhaps it include moving the some or all those jars from the web-inflib to the /server/default/lib Looking for someone who is familiar in this subject

(继续这个线程:https://stackoverflow.com/questions/2847375/problem-configure-jboss-to-work-with-jndi3)

推荐答案

JBoss appserver 附带预先打包的 JBossCache,因此您的 web 应用程序不需要包含它.如果您尝试,那么您会遇到类加载器问题,因为 JBossCache 使用了一些非常低级的库.

JBoss appserver comes with JBossCache pre-packaged, so your webapp doesn't need to include it. If you try, then you'll get classloader problems, since JBossCache uses some pretty low-level libraries.

这个问题有一个副作用,就是似乎没有办法在 JBoss appserver 中升级 JBossCache 的版本(由于那些相同的共享低级库).JBossAS 4.2.3 附带 JBossCache 1.4.1,它比当前版本晚了 2 代.我花了很长时间试图解决这个问题,但我还没有管理它,所以我的应用程序都停留在 1.4.1.

There is a side-effect to this problem, which is that there seems to be no way to upgrade the version of JBossCache within JBoss appserver (due to those same shared low-level libraries). JBossAS 4.2.3 ships with JBossCache 1.4.1, which is 2 generations behind the current release. I've spent quite some time trying to get around this, but I've yet to manage it, and so my apps are all stuck on 1.4.1.

这篇关于配置 JBOss 缓存以在 JBoss 服务器 4.2.3.GA 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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