[EMAIL PROTECTED] wrote: >I might be just tired, but I don't see the difference between those two lines. > >
nutchConf is already being defined within search.jsp and hence will lead to an error when refine-query-init.jsp is being uncommented resp. enabled. In order to better see this I have just commented, hence the minor difference of the two slashes ;-) HTH Michi >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 > > > -- Michael Wechner Wyona - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED] +41 44 272 91 61 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
