问题
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
?
回答1:
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
回答2:
Follow this link your problem will solve.
I mention all the step.
JBoss 7.1 development issues
来源:https://stackoverflow.com/questions/12400280/migration-issues-to-jboss-as-7-1