This content has been marked as final.
Show 4 replies
-
1. Re: Only 1 messages.properties files loaded in 2 WARs
reind Jan 31, 2008 11:18 AM (in response to reind)In case this helps someone else...
If I remove jboss-app.xml from app.ear/META-INF/ then the messages.properties file in each WAR is loaded for the appropriate context.
With jboss-app.xml included, only one of the messages.properties files is loaded, the others are ignored.
I'm not certain whether it is better to include jboss-app.xml or not on an app server with only a single seam application. -
2. Re: Only 1 messages.properties files loaded in 2 WARs
pmuir Feb 3, 2008 5:30 PM (in response to reind)what does jboss-app.xml contain in your case?
-
3. Re: Only 1 messages.properties files loaded in 2 WARs
reind Feb 4, 2008 12:58 PM (in response to reind)pete:
I've used the jboss-app.xml from the Registration example. I've since merged all messages into 1 properties file, which works for my project, but I've looked into it further in the hopes that it'll be of some use.
I've created a JIRA bug and sample application:
example app A:<jboss-app> <loader-repository> seam.jboss.org:loader=seam-registration </loader-repository> </jboss-app>
example app B:<jboss-app> <loader-repository> seam.jboss.org:loader=zseam-registration </loader-repository> </jboss-app>
(note "z" in 2nd loader name)
A)
2 Seam EARs are deployed
with jboss-app.xml
- only 1 messages.properties file works
B)
2 Seam EARs are deployed
without jboss-app.xml
- only 1 messages.properties file works
C)
1 Seam EARs is deployed
with jboss-app.xml
- both messages.properties files works
D)
1 Seam EARs is deployed
with jboss-app.xml
- both messages.properties files works
n.b. This only affects one of the two EARs that are deployed. -
4. Re: Only 1 messages.properties files loaded in 2 WARs
reind Feb 4, 2008 1:02 PM (in response to reind)