[ 
https://issues.apache.org/struts/browse/WW-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Don Brown resolved WW-1651.
---------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.0.x)
         Assignee: Don Brown

Thanks for the update

> 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
>         Assigned To: Don Brown
>            Priority: Blocker
>
> 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.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:695)
>     
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
>     
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:97)
>     
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:46)
>     
> org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(DefaultActionMapper.java:238)
>     
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.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.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:690)
>     
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
>     
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:97)
>     
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(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.reportError(XMLErrorReporter.java:382)
>     
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(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.XMLNSDocumentScannerImpl.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-archive.com/[email protected]/msg26587.html

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

Reply via email to