You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by og...@yahoo.com on 2006/09/08 07:25:00 UTC
Re: Ontology compile bug
I might be just tired, but I don't see the difference between those two lines.
Otis
----- Original Message ----
From: Michael Wechner <mi...@wyona.com>
To: nutch-dev@lucene.apache.org
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
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
Re: Ontology compile bug
Posted by David Podunavac <da...@wyona.com>.
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
ogjunk-nutch@yahoo.com schrieb:
> I might be just tired, but I don't see the difference between those two lines.
>
> Otis
>
> ----- Original Message ----
> From: Michael Wechner <mi...@wyona.com>
> To: nutch-dev@lucene.apache.org
> 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
>
>
Re: Ontology compile bug
Posted by Michael Wechner <mi...@wyona.com>.
ogjunk-nutch@yahoo.com 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 <mi...@wyona.com>
>To: nutch-dev@lucene.apache.org
>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
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61