[ https://issues.apache.org/struts/browse/WW-2003?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Husted updated WW-2003:
---------------------------
Fix Version/s: Future
Setting Fix Version to "future" for issues without
a set fix version.
> 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
> Fix For: Future
>
>
> 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.XmlConfigurationPro
vider.register(XmlConfigurationProvider.java:209)
> at
org.apache.struts2.config.StrutsXmlConfigurationProvider.reg
ister(StrutsXmlConfigurationProvider.java:101)
> at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.rel
oad(DefaultConfiguration.java:130)
> at
com.opensymphony.xwork2.config.ConfigurationManager.getConfi
guration(ConfigurationManager.java:52)
> at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfigu
ration(Dispatcher.java:394)
> at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.jav
a:450)
> at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDi
spatcher.java:201)
> at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(A
pplicationFilterConfig.java:223)
> at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDe
f(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.
|