Re: Using Solr 1.4.1 on most recent Tomcat 7.0.11
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 ' I do have the xml preamble 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: > '', > > > Here is my context file: > > docBase="/home/omim/lib/java/apache-solr-4.0-2011-02-09_08-06-20.war" > debug="0" crossContext="true" > >value="/home/omim/index/" override="true" /> > > --- > > 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 >> >> > crossContext="true"> >> > value="/home/lewis/Downloads/wombra" override="true"/> >> >> >> 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 >
RE: Using Solr 1.4.1 on most recent Tomcat 7.0.11
Hi François, Thank you for your reply. I had made a simple mistake of including comments before '', therefore I was getting a SAX error. As you have correctly pointed out, it is not essential to include the snippet as above in the context file (if using one), however it might be useful to know that Tomcat 7 now validates XML files by default. In time I will get round to editing the wiki accordingly to mitigate against this in the future. Thanks for looking in to this. Lewis ___ From: François Schiettecatte [fschietteca...@gmail.com] Sent: 17 March 2011 13:47 To: solr-user@lucene.apache.org Subject: 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: '', Here is my context file: --- Hope this helps. Cheers François 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
RE: Using Solr 1.4.1 on most recent Tomcat 7.0.11
I do have the xml preamble 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: '', Here is my context file: --- 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 > > crossContext="true"> > value="/home/lewis/Downloads/wombra" override="true"/> > > > 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
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: '', Here is my context file: --- 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 > > crossContext="true"> > value="/home/lewis/Downloads/wombra" override="true"/> > > > 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
Re: Using Solr 1.4.1 on most recent Tomcat 7.0.11
Lewis Quick response, I am currently using Tomcat 7.0.8 with solr (with no issues), I will upgrade to 7.0.11 tonight and see if I run into the same issues. Stay tuned as they say. 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 > > crossContext="true"> > value="/home/lewis/Downloads/wombra" override="true"/> > > > 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