Hi Otis the point is that Nutch has been already compiled, so if you do not comment this line out: You will get an error
nutchConf is already defined because it is already configured due to this is an include script in search.jsp HTH david [EMAIL PROTECTED] schrieb: > I might be just tired, but I don't see the difference between those two lines. > > Otis > > ----- Original Message ---- > From: Michael Wechner <[EMAIL PROTECTED]> > To: [email protected] > Sent: Tuesday, August 22, 2006 9:07:12 AM > Subject: Ontology compile bug > > Hi > > It seems to me that refine-query-init.jsp should be patch as below, > otherwise search.jsp will not compile because > it already initializes nutchConf (I am using nutch-0.8): > > Index: src/web/jsp/refine-query-init.jsp > =================================================================== > --- src/web/jsp/refine-query-init.jsp (Revision 433565) > +++ src/web/jsp/refine-query-init.jsp (Arbeitskopie) > @@ -13,7 +13,7 @@ > // being loaded into the JVM. Need improvement in future. > > try { > - Configuration nutchConf = NutchConfiguration.get(application); > + //Configuration nutchConf = NutchConfiguration.get(application); > String urls = nutchConf.get("extension.ontology.urls"); > ontology = new > org.apache.nutch.ontology.OntologyFactory(nutchConf).getOntology(); > if (urls==null || urls.trim().equals("")) { > > > HTH > > Michi > >
