Startup/bean loading issue when struts-default.xml in classpath other than jar.
-------------------------------------------------------------------------------
Key: WW-2003
URL: https://issues.apache.org/struts/browse/WW-2003
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.6
Environment: Windows, Tomcat 5.5.
Reporter: Parag Mehta
The following issue is caused when struts-default.xml exists outside the jar
ahead in the classpath (e.g. in the classes directory of the webapp). Fix for
now is to remove the xml from classes directory, it has to be loaded from
within the struts core jar.
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean -
jar:file:/<path
hidden>/WEB-INF/lib/org.apache.struts-struts2-core-2.0.3.jar!/struts-default.xml:8:69
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:394)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.