top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

conflict between message.properties for multiple Struts war files

+1 vote
38 views

I have three different applications that were developed using Struts2 framework. I deployed three different war files on the JBoss AS6. But, now I am having problem with global message.properties files. Each war file has its own message.properties file.

message.properties file for the App1.war consists of app.title="State Database"
message.properties file for the App2.war consists of app.title="Agency Database"
message.properties file for the App3.war consists of app.title="Database Status Report"

In JSP file for the App1.war there is application title
In JSP file for the App2.war there is application title
In JSP file for the App3.war there is application title

When I run the App1, I see "Agency Database" as App1 title.
When I run the App2, again I see "Agency Database" as App2 title.
When I run the App3, again I see "Agency Database" as App3 title.

Any idea how to resolve the conflict?

posted Aug 15, 2013 by Meenal Mishra

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

No, All these WAR files are separate. I renamed the message.properties for App1 as you suggested "app1-message.properties", but did not rename the other properties files. but the problem is still there when I run the App1.

I understand that you want me to rename all the properties files as you suggested. But what the reason behind?

answer Aug 16, 2013 by Deepankar Dubey
Similar Questions
+2 votes

I have a couple of old struts 2 apps that are using 2.2.1. I want to upgrade them to 2.3. What is the minimal set of jar files I need in WEB-INF/lib?

I currently have:
commons-beanutils-1.7.jar
commons-collections-2.1.jar
commons-digester-1.7.jar
commons-fileupload-1.2.1.jar
commons-io-1.4.jar
commons-javaflow-20060411.jar
commons-lang-2.5.jar
commons-logging-1.0.4.jar
freemarker-2.3.16.jar
ibatis-2.3.2.715.jar
itext-1.3.1.jar
jasperreports-2.0.5.jar
javamail.jar
javassist-3.8.0.GA.jar
jdt-compiler-3.1.1.jar
jstl.jar
jxl-2.6.jar
log4j-1.2.14.jar
ognl-3.0.jar
poi-3.0.1-FINAL-20070705.jar
spring.jar
standard.jar
struts2-core-2.2.1.jar
struts2-jasperreports-plugin-2.0.11.1.jar
urlrewrite-3.2.0.jar
xalan.jar
xercesImpl.jar
xwork-core-2.2.1.jar

+1 vote

Facing some issue, while we use wildfly-deploy maven plugin to deploy strut2 application to wildfly aka jboss 7, struts2 is unable to read package.properties file packaged inside .war. If i deploy from an IDE or manually then there is no issue.

The only difference is wildfly-deploy plugin is deploying application war inside {WILDFLY_HOME}/standalone/data/ folder where as manual or IDE will deploy it under {WILDFLY_HOME}/standalone/deployments/ folder.

In essence struts2 unable to read package.properties file if deployed under certain location.

Any thoughts, application is working perfectly except label's are not coming only label key is coming in screens.

0 votes

i need to have multiple on single web page,

(at top panel, our site always provide parts search box/)
(at middle panel, could have other form such as checkout section, login section, etc)

when any single form's validation triggered, then and displayed at all form's textfields place,

how to solve it? or that is struts 2 bug? please help...


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...