迁移到JBoss AS 7.1的问题 [英] Migration issues to JBoss AS 7.1

查看:104
本文介绍了迁移到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屋!

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