如何在 JBoss 5 中指定外部依赖项
好的,我有几个 JBoss 应用程序运行所需的 jar。在正常情况下,我只需将这些 jar 复制到我的应用程序 WEB-INF/lib 文件夹中即可继续使用。
但是,这些 jar 是第三方库的一部分,它们依赖于它们所在目录中的整个 .dll 主机和其他内容。所以我不能只是复制罐子,因为复制品不起作用,因为它们不像原件那样拥有所有周围的东西。
那么,我想做的是告诉 JBoss 在哪里可以找到这些 jar,它们位于 C:/Program Files/SomeDirectory/Common 中。我尝试将这些 jar 添加到我的 ClassPath 中,但这不起作用,因为 JBoss 的类加载器不会将其用于用户应用程序(对吗?)。
有没有办法告诉 JBoss 的类加载器“嘿,看这里!这些是你想要的 jars!”?
OK so I have a couple of jars that I need for my JBoss application to run. Under normal circumstances, I would just copy these jars into my apps WEB-INF/lib folder and rock on.
However, these jars are part of a third party library and they have dependencies on a whole host of .dlls and other stuff in the directory where they live. So I can't just copy the jars because the copies won't work because they don't have all of the stuff surrounding them like the originals do.
What I want to do, then, is tell JBoss where to look to find these jars, which will be in C:/Program Files/SomeDirectory/Common. I tried just adding these jars to my ClassPath, but that doesn't work because JBoss's classloader won't use that for user apps (right?).
Is there a way I can tell JBoss's Class loader "Hey, look over here! These are the jars you want!"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论