Pierre That is a very good point, I have been caught in the past by poor xml (RSS feeds) that included control characters before the '<?xml...' .
And I have add the preamble to my solr.xml files for good form :) François On Mar 17, 2011, at 10:02 AM, Pierre GOSSE wrote: > I do have the xml preamble <?xml version="1.0" encoding="UTF-8"?> in my > config file in conf/Catalina/localhost/ and solr starts ok with Tomcat 7.0.8. > Haven't try with 7.0.11 yet. > > I wonder why your exception point to line 4 column 6, however. Shouldn't it > point to line 1 column 1 ? Do you have some blank lines at the start of your > XML file or some non blank lines ? > > Pierre > > -----Message d'origine----- > De : François Schiettecatte [mailto:fschietteca...@gmail.com] > Envoyé : jeudi 17 mars 2011 14:48 > À : solr-user@lucene.apache.org > Objet : Re: Using Solr 1.4.1 on most recent Tomcat 7.0.11 > > Lewis > > My update from tomcat 7.0.8 to 7.0.11 went with no hitches, I checked my > context file and it does not have the xml preamble your has, specifically: > '<?xml version="1.0" encoding="utf-8"?>', > > > Here is my context file: > ---- > <Context > docBase="/home/omim/lib/java/apache-solr-4.0-2011-02-09_08-06-20.war" > debug="0" crossContext="true" > > <Environment name="solr/home" type="java.lang.String" > value="/home/omim/index/" override="true" /> > </Context> > --- > > Hope this helps. > > Cheers > > François > > > On Mar 16, 2011, at 2:38 PM, McGibbney, Lewis John wrote: > >> Hello list, >> >> Is anyone running Solr (in my case 1.4.1) on above Tomcat dist? In the >> past I have been using guidance in accordance with >> http://wiki.apache.org/solr/SolrTomcat#Installing_Solr_instances_under_Tomcat >> but having upgraded from Tomcat 7.0.8 to 7.0.11 I am having problems >> E.g. >> >> INFO: Deploying configuration descriptor wombra.xml < This is my context >> fragment >> from /home/lewis/Downloads/apache-tomcat-7.0.11/conf/Catalina/localhost >> 16-Mar-2011 16:57:36 org.apache.tomcat.util.digester.Digester fatalError >> SEVERE: Parse Fatal Error at line 4 column 6: The processing instruction >> target matching "[xX][mM][lL]" is not allowed. >> org.xml.sax.SAXParseException: The processing instruction target >> matching "[xX][mM][lL]" is not allowed. >> ... >> 16-Mar-2011 16:57:36 org.apache.catalina.startup.HostConfig >> deployDescriptor >> SEVERE: Error deploying configuration descriptor wombra.xml >> org.xml.sax.SAXParseException: The processing instruction target >> matching "[xX][mM][lL]" is not allowed. >> ... >> some more >> ... >> >> My configuration descriptor is as follows >> <?xml version="1.0" encoding="utf-8"?> >> <Context docBase="/home/lewis/Downloads/wombra/wombra.war" >> crossContext="true"> >> <Environment name="solr/home" type="java.lang.String" >> value="/home/lewis/Downloads/wombra" override="true"/> >> </Context> >> >> Preferably I would upload a WAR file, but I have been working well with >> the configuration I have been using up until now therefore I didn't >> question change. >> I am unfamiliar with the above errors. Can anyone please point me in the >> right direction? >> >> Thank you >> Lewis >> >> Glasgow Caledonian University is a registered Scottish charity, number >> SC021474 >> >> Winner: Times Higher Education's Widening Participation Initiative of the >> Year 2009 and Herald Society's Education Initiative of the Year 2009. >> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html >> >> Winner: Times Higher Education's Outstanding Support for Early Career >> Researchers of the Year 2010, GCU as a lead with Universities Scotland >> partners. >> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html >