[jira] [Resolved] (TIKA-2958) XmlBeanDefinitionStoreException with SpringExample

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (TIKA-2958) XmlBeanDefinitionStoreException with SpringExample

ASF GitHub Bot (Jira)

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

Tilman Hausherr resolved TIKA-2958.
-----------------------------------
    Fix Version/s: 1.23
                   2.0.0
       Resolution: Fixed

So that was my first change here, I guess it is good. The failing windows tests aren't related to my change and came up before I came on board.

> XmlBeanDefinitionStoreException with SpringExample
> --------------------------------------------------
>
>                 Key: TIKA-2958
>                 URL: https://issues.apache.org/jira/browse/TIKA-2958
>             Project: Tika
>          Issue Type: Bug
>          Components: example
>    Affects Versions: 1.22
>            Reporter: Tilman Hausherr
>            Priority: Trivial
>             Fix For: 2.0.0, 1.23
>
>
> Running the spring example brings this:
> {noformat}
> Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [org/apache/tika/example/spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 16; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.
> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)
> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:337)
> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
> {noformat}
> The cause is the Apache license, it must be moved after the "<?xml" line.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)