Hi everyone, Our struts.xml file is getting beastly, so I attempted to break it down into multiple files. I read this page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-strutsxml-file-into-smaller-pieces.html
Specifically: "You can use <include> elements in your struts.xml interchangeably with <package> elements. The configuration objects will be loaded in the order of appearance. The framework reads the configuration from top to bottom and adds objects as they are referenced." Given that note above, I added the included file *after* my base package (where some interceptor stacks are defined). For example (struts.xml): <struts> <package name="baseEAP" extends="struts-default" abstract="true"> <interceptors> <interceptor name="DataPrep" class= "xxx.web.interceptor.DataPreparation" /> <interceptor-stack name="dataPrepStack"> <interceptor-ref name="defaultStack"/> <interceptor-ref name="DataPrep"/> </interceptor-stack> </interceptors> </package> <include file="struts-ajax.xml" /> .... </struts> Further down in struts.xml other packages extend baseEAP and have some actions reference the dataPrepStack interceptor stack --- works great. In struts-ajax.xml, the package also extends baseEAP and one action references dataPrepStack: <struts> <package name="ajax" extends="baseEAP,gwt-default"> <!-- supports ajax calls in the menu management section of support portal --> <action name="ajaxManageMenus" class= "xxx.web.action.MenuManagementServiceImpl"> <interceptor-ref name="dataPrepStack" /> <interceptor-ref name="gwt"/> </action> </package> </struts> I had hoped this would work like a charm too... but alas no: <Jul 31, 2008 9:55:49 AM PDT> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher. Unable to load configuration. - interceptor-ref - file:/C:/workspace_bea10/mhnEAP/exploded/mhnEAP.ear/mhnEAP.war/WEB-INF/classes/struts-ajax.xml:10:53 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:213) at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:320) Truncated. see log file for complete stacktrace Unable to find interceptor class referenced by ref-name dataPrepStack - interceptor-ref - file:/C:/workspace_bea10/mhnEAP/exploded/mhnEAP.ear/mhnEAP.war/WEB-INF/classes/struts-ajax.xml:10:53 at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:46) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1081) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildInterceptorList(XmlConfigurationProvider.java:536) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:374) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:465) Truncated. see log file for complete stacktrace Thoughts? Thanks, -B --------------------------------------------------------------------- This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message, along with any attachments, from your computer. Thank you. --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]