配置 JBOss 缓存以在 JBoss 服务器 4.2.3.GA 上运行
我们的商业应用程序过去运行在不同的应用程序服务器上,后来我们开始将其调整为在 JBoss 服务器上运行。 问题是该应用程序运行 JBoss 缓存,并且作为与该框架集成的一部分,web-inf\lib 包含以下 jar:
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 的工作
也许它包括从网络上移动一些或所有这些 jar - inf\lib 到 /server/default/lib 寻找熟悉该主题的人
(继续该主题: https://stackoverflow.com/questions/2847375/problem-configure-jboss-与 jndi3 一起工作 )
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-inf\lib 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
Perhaps it include moving the some or all those jars from the web-inf\lib to the /server/default/lib
Looking for someone who is familiar in this subject
(continue of this thread:
https://stackoverflow.com/questions/2847375/problem-configure-jboss-to-work-with-jndi3
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JBoss 应用程序服务器附带了预先打包的 JBossCache,因此您的 Web 应用程序不需要包含它。如果您尝试,那么您将遇到类加载器问题,因为 JBossCache 使用一些相当低级的库。
这个问题有一个副作用,那就是似乎没有办法在 JBoss appserver 中升级 JBossCache 的版本(由于那些相同的共享低级库)。 JBossAS 4.2.3 附带 JBossCache 1.4.1,它比当前版本落后 2 代。我花了相当多的时间试图解决这个问题,但我还没有管理它,所以我的应用程序都停留在 1.4.1 上。
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.
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.