Hello,

First of all, I have finished a web project with Struts 2, it's working
without errors at real environment.

All Struts2's libraries are installed at "tomcat/commons" directory to
be used for all web projects.

 

First Project 

-           Uses struts-2.1.8.1 distribution with Tiles Plugin and java
1.5_10 version. 

-           All labels of jsp views are with "java bundle resources", so
I have a "package.properties" that contains all jsp texts. Like <s:text
name=" application" />

-           The Project/WEB-INF/lib is empty because all Struts 2 jars
are at tomcat commons directory

-           No Global resources declared at Struts.config, i have
defined one package.properties for the entire First Aplicacion

 

Second Project 

-           Uses struts-2.1.8.1 distribution with Tiles Plugin and java
1.5_10 version.

-           All labels of views are with java bundle resources, so I
have a "package.properties" that contains all jsp texts. Like <s:text
name=" application" />

-           The Project/WEB-INF/lib is empty because all Struts 2 jar
are at tomcat commons directory

-           No Global resources declared at Struts.config,  i have
defined one package.properties for the entire First Aplicacion

 

Both web projects are very similar, and they work fine when they are
installed separately, but when I put the two WARS (without jars, all at
tomcat) and i restart tomcat server, only one of the two projects loads
the package.properties properly, the other project only display keys,
and not values from package properties.

I can see this warning for all keys (second project) at tomcat log

The default value expression 'mpt.label.consultar' was evaluated and did
not match a property.  The literal value 'mpr.label.consultar' will be
used.

 

I tried to configure "java bundle resouerces" by different ways, one
with global bundle and the other at level package, but I have the same
problem. 

 

This is my constants configuration at struts.config. Constants are the
same for the two web projects

            <constant name="struts.enable.DynamicMethodInvocation"
value="true" />

            <constant name="struts.devMode" value="false" />

            <constant name="struts.ui.theme" value="simple" />

 

So, can you help me? Perhaps the problem is to put all Struts2's jars
inside tomcat/commons/ directory. Separately both  projects displays all
values from package.properties properly but together only one of them is
displaying values correctly and the other displays keys (not values)

 

Thanks for your help



Este mensaje se dirige exclusivamente a su destinatario y puede contener 
información privilegiada o confidencial. Si no es Vd. el destinatario indicado, 
queda notificado de que la lectura, utilización, divulgación y/o copia sin 
autorización está prohibida en virtud de la legislación vigente. Si ha recibido 
este mensaje por error, le rogamos que lo destruya y notifique el hecho a la 
dirección electrónica del remitente. El correo electrónico vía Internet no 
permite asegurar la confidencialidad de los mensajes que se transmiten ni su 
integridad o correcta recepción. El Ministerio de la Presidencia no asume 
ninguna responsabilidad por estas circunstancias.

This message is intended exclusively for its addressee and may contain 
information that is CONFIDENTIAL and protected by a professional privilege or 
whose disclosure is prohibited by law. If you are not the intended recipient 
you are hereby notified that any read, dissemination, copy or disclosure of 
this communication is strictly prohibited by law. If this message has been 
received in error, please immediately notify us via e-mail and delete it. 
Internet e-mail neither guarantees the confidentiality nor the integrity or 
proper receipt of the messages sent. The Ministry of the Presidency does not 
assume any liability for those circumstances.

Antes de imprimir este mensaje, asegúrese de que es realmente necesario. EL 
MEDIO AMBIENTE ES COSA DE TODOS

Reply via email to