You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "McGibbney, Lewis John" <Le...@gcu.ac.uk> on 2011/03/16 19:38:00 UTC

Using Solr 1.4.1 on most recent Tomcat 7.0.11

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

Re: Using Solr 1.4.1 on most recent Tomcat 7.0.11

Posted by François Schiettecatte <fs...@gmail.com>.
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:fschiettecatte@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
> 


RE: Using Solr 1.4.1 on most recent Tomcat 7.0.11

Posted by Pierre GOSSE <pi...@arisem.com>.
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:fschiettecatte@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


RE: Using Solr 1.4.1 on most recent Tomcat 7.0.11

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Hi François,

Thank you for your reply. I had made a simple mistake of including comments before
'<?xml version="1.0" encoding="utf-8"?>', 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 [fschiettecatte@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: '<?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

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

Posted by François Schiettecatte <fs...@gmail.com>.
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


Re: Using Solr 1.4.1 on most recent Tomcat 7.0.11

Posted by François Schiettecatte <fs...@gmail.com>.
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
> <?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