tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (Jira)" <j...@apache.org>
Subject [jira] [Created] (TIKA-2958) XmlBeanDefinitionStoreException with SpringExample
Date Sat, 05 Oct 2019 15:16:00 GMT
Tilman Hausherr created TIKA-2958:

             Summary: XmlBeanDefinitionStoreException with SpringExample
                 Key: TIKA-2958
                 URL: https://issues.apache.org/jira/browse/TIKA-2958
             Project: Tika
          Issue Type: Bug
          Components: example
            Reporter: Tilman Hausherr

Running the spring example brings this:
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)
The cause is the Apache license, it must be moved to after the "<?xml" line.

This message was sent by Atlassian Jira

View raw message