迁移到JBoss AS 7.1的问题 [英] Migration issues to JBoss AS 7.1
问题描述
我正在将应用程序从JBoss AS 4.X迁移到JBoss AS 7.1.我正面临以下问题
我有一个用户定义的xml,其中包含一些与配置有关的东西,例如路径,初始负载设置等,这些东西我曾经放在JBoss AS 4.X的Application Server/bin
中.工作正常.
现在,我在jboss-as-7.1.1.Final\bin
中放置了相同的文件,但是在服务器启动时它无法正常工作并正在加载.
我需要在哪里将此类XML保留在7.1服务器中?
我是否需要在jboss-deployment-structure.xml
中明确提及?
您可以尝试编写自定义如何将外部文件放入类路径 >
I am migrating application from JBoss AS 4.X to JBoss AS 7.1. I am facing the following problem
I have a userdefined xml which has some configuration related stuff like paths, initial load setting etc which I used to place in Application Server/bin
in JBoss AS 4.X. It was working fine.
Now i placed the same file in jboss-as-7.1.1.Final\bin
but it is not working and loading on start up of server.
Where do I need to keep such XML's in 7.1 Server?
And do I need to explicitly mention in jboss-deployment-structure.xml
?
You could try writing a custom module and place the xml file there. And then make your application depend on this module.
Edit:
The following Wiki page outlines it nicely How to put an external file in the classpath
这篇关于迁移到JBoss AS 7.1的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!