setXIncludeAware(boolean) is undefined for the type DocumentBuilderFactory Config.java

2011-09-09 Thread swiss knife
Hello,

 Sorry for the newbie question, I just checked out Solr using maven and I get 
the following compile error on Eclipse:

 The method setXIncludeAware(boolean) is undefined for the type 
DocumentBuilderFactory Config.java

 /solr/core/src/java/org/apache/solr/core line 113 Java Problem

 Am I missing components ? where do you guys go to checks in case of similar 
problems ?

 Thank you.


Re: setXIncludeAware(boolean) is undefined for the type DocumentBuilderFactory Config.java

2011-09-09 Thread Erick Erickson
DocumentBuilderFactory is a Java class, not a Solr class, what version
of Java are you trying to compile against?

Best
Erick

On Fri, Sep 9, 2011 at 5:53 AM, swiss knife swiss_kn...@email.com wrote:

 Hello,

 Sorry for the newbie question, I just checked out Solr using maven and I get
 the following compile error on Eclipse:

 The method setXIncludeAware(boolean) is undefined for the type
 DocumentBuilderFactory    Config.java

     /solr/core/src/java/org/apache/solr/core    line 113    Java Problem

 Am I missing components ? where do you guys go to checks in case of similar
 problems ?

 Thank you.



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



Re: setXIncludeAware(boolean) is undefined for the type DocumentBuilderFactory Config.java

2011-09-09 Thread Andrzej Bialecki

On 09/09/2011 14:08, Erick Erickson wrote:

DocumentBuilderFactory is a Java class, not a Solr class, what version
of Java are you trying to compile against?

Best
Erick

On Fri, Sep 9, 2011 at 5:53 AM, swiss knifeswiss_kn...@email.com  wrote:


Hello,

Sorry for the newbie question, I just checked out Solr using maven and I get
the following compile error on Eclipse:

The method setXIncludeAware(boolean) is undefined for the type
DocumentBuilderFactoryConfig.java

 /solr/core/src/java/org/apache/solr/coreline 113Java Problem

Am I missing components ? where do you guys go to checks in case of similar
problems ?


I had a similar problem in another project, it turned out to be a 
conflicting version of the XML API-s in the JRE and a particular version 
of Xerces. AFAIK this issue has been resolved in the recent versions of 
Xerces. If you can't upgrade Xerces, try swapping the order of classpath 
entries, so that one (or the other, can't remember which one...) API 
takes precedence.



--
Best regards,
Andrzej Bialecki 
 ___. ___ ___ ___ _ _   __
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



Re: setXIncludeAware(boolean) is undefined for the type DocumentBuilderFactory Config.java

2011-09-09 Thread swiss knife
Thank you?

 Actually javax.xml.parsers.DocumentBuilderFactory.class in included in the 
JRE1.6 and also in xml-apis-1.0.b2.jar where the versions of 
DocumentBuilderFactory differ.

 I removed the dependency on xml-apis-1.0.b2.jar and it went through.

 What am I supposed to do from here ? Enter a JIRA, see what need to be done to 
commit the change ?



 On 09/09/2011 14:08, Erick Erickson wrote:  DocumentBuilderFactory is a Java 
class, not a Solr class, what version  of Java are you trying to compile 
against?   Best  Erick   On Fri, Sep 9, 2011 at 5:53 AM, swiss 
knifeswiss_kn...@email.com wrote:   Hello,   Sorry for the newbie 
question, I just checked out Solr using maven and I get  the following 
compile error on Eclipse:   The method setXIncludeAware(boolean) is 
undefined for the type  DocumentBuilderFactory Config.java   
/solr/core/src/java/org/apache/solr/core line 113 Java Problem   Am I 
missing components ? where do you guys go to checks in case of similar  
problems ? I had a similar problem in another project, it turned out to be a 
conflicting version of the XML API-s in the JRE and a particular version of 
Xerces. AFAIK this issue has been resolved in the recent versions of Xerces. If 
you can't upgrade Xerces, try swapping the order of classpath entries, so that 
one (or the other, ca
 n't remember which one...) API takes precedence. -- Best regards, Andrzej 
Bialecki  ___. ___ ___ ___ _ _ __ [__ || 
__|__/|__||\/| Information Retrieval, Semantic Web ___|||__|| \| || | Embedded 
Unix, System Integration http://www.sigram.com Contact: info at sigram dot com 
- To 
unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, 
e-mail: dev-h...@lucene.apache.org