List Info

Thread: Updated: (WW-1651) Struts throws "Element type "bean" must be declared" when trying to lo




Updated: (WW-1651) Struts throws "Element type "bean" must be declared" when trying to lo
user name
2007-01-28 21:12:16
     [ https://issues.apache.org/struts/browse/WW-1651?page=com.at
lassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Husted updated WW-1651:
---------------------------

    Fix Version/s: 2.0.x

> Struts throws "Element type "bean" must
be declared" when trying to load struts-default.xml
>
------------------------------------------------------------
-------------------------------
>
>                 Key: WW-1651
>                 URL: https
://issues.apache.org/struts/browse/WW-1651
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.0.x
>         Environment: 2.0.2,2.0.3,2.1.0
>            Reporter: Marco Behler
>            Priority: Blocker
>             Fix For: 2.0.x
>
>
> Whenever Struts (tried it with 2.0.2,2.0.3,2.1.0) tries
to process struts-default.xml, i.e. the <bean> tags,
it throws an exception. The bean element ist definitely
defined in the struts-2.0.dtd, so I dunno what the problem
is! Here the log excerpt:
> Struts has detected an unhandled exception:
> Messages: 	Element type "bean" must be
declared.
> File:
	jar:file:/D:/Struts/Workspace/Progenica/WEB-INF/lib/struts2
-core-2.0.3.jar!/struts-default.xml
> Line number: 	8
> Column number: 	69
> Stacktraces
>
jar:file:/D:/Struts/Workspace/Progenica/WEB-INF/lib/struts2-
core-2.0.3.jar!/struts-default.xml:8:69
>    
com.opensymphony.xwork2.config.providers.XmlConfigurationPro
vider.loadConfigurationFiles(XmlConfigurationProvider.java:6
95)
>    
com.opensymphony.xwork2.config.providers.XmlConfigurationPro
vider.init(XmlConfigurationProvider.java:121)
>    
com.opensymphony.xwork2.config.impl.DefaultConfiguration.rel
oad(DefaultConfiguration.java:97)
>    
com.opensymphony.xwork2.config.ConfigurationManager.getConfi
guration(ConfigurationManager.java:46)
>    
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.get
Mapping(DefaultActionMapper.java:238)
>    
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(Filt
erDispatcher.java:227)
> ..
> .
> .
> Element type "bean" must be declared. -
jar:file:/D:/Struts/Workspace/Progenica/WEB-INF/lib/struts2-
core-2.0.3.jar!/struts-default.xml:8:69
>    
com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:
106)
>    
com.opensymphony.xwork2.config.providers.XmlConfigurationPro
vider.loadConfigurationFiles(XmlConfigurationProvider.java:6
90)
>    
com.opensymphony.xwork2.config.providers.XmlConfigurationPro
vider.init(XmlConfigurationProvider.java:121)
>    
com.opensymphony.xwork2.config.impl.DefaultConfiguration.rel
oad(DefaultConfiguration.java:97)
>    
com.opensymphony.xwork2.config.ConfigurationManager.getConfi
guration(ConfigurationManager.java:46)
> .
> .
> ..
> org.xml.sax.SAXParseException: Element type
"bean" must be declared.
>    
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
createSAXParseException(ErrorHandlerWrapper.java:236)
>    
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
error(ErrorHandlerWrapper.java:172)
>    
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.rep
ortError(XMLErrorReporter.java:382)
>    
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.rep
ortError(XMLErrorReporter.java:316)
>    
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
handleStartElement(XMLDTDValidator.java:1960)
>    
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
emptyElement(XMLDTDValidator.java:816)
>    
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
Impl.scanStartElement(XMLNSDocumentScannerImpl.java:322)
> Any ideas? I found another user on the web with exactly
the same problem in 2.0.2:
> http://www.mail-archi
ve.com/devstruts.apache.org/msg26587.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )