I have a need to override a bean that is present in the struts default 
configuration.  Specifically: 
org.apache.struts2.components.template.TemplateEngineManager

However, it appears that the default configuration loader does not allow for 
this to be overwritten.  As a result, I get the following error during 
deployment:

 Caused by: Unable to load bean: 
type:org.apache.struts2.components.template.TemplateEngineManager 
class:com.premierinc.sca.actions.util.ScaTemplateEngineManager - bean - 
vfsfile:/C:/jboss5/server/sca-app/deploy/scaEar.ear/webapp.war/WEB-INF/classes/struts.xml:40:71
        at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
        at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
        at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
        at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)

I would like to be able to specify my own configuration loader (specifically 
override the class:  org.apache.struts2.config.StrutsXmlConfigurationProvider).

I thought that this would just be a matter of utilizing the struts.properties 
setting (http://struts.apache.org/2.1.8.1/docs/strutsproperties.html):

### Specifies the Configuration used to configure Struts
### one could extend org.apache.struts2.config.Configuration
### to build one's customize way of getting the configurations parameters into 
Struts
# struts.configuration=org.apache.struts2.config.DefaultConfiguration

However, it does not appear to be working as I thought.  Now I am not sure what 
this setting does at all.  The class specified in the help 
(org.apache.struts2.config.Configuration) does not even exist.

Can someone please point me in the right direction?

Thanks in advance,
Ken






-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer.  Thank you.  Premier Inc.

Reply via email to