Mailing List Archive

lucene webdemo on a webhosting hosting account
Hello,

first I must say I bought your Book Lucene in Action and it is very good. If it wouldnt't need expierence in ANT, I dont' have, it would be fantastic, but so it is "only" very good. So my question is about the webdemo from Appendix A. I tried it with Tomcat on my Computer and it worked perfectly, a very good explantion how to use it, greetings for the authors. But now I would like to try the same demo on my "mycgiserver.com-account". In your book it is explained that there must be only the "lucene-1.4.3.jar" on the webhost directory. But how to install the files who are imported by "org.apache.lucene.analysis.*, org.apache.lucene.document.*, org.apache.lucene.index.*, org.apache.lucene.search.*, org.apache.lucene.queryParser.*, org.apache.lucene.demo.*, org.apache.lucene.demo.html.Entities" ?
Shall I install the whole lucene source?

I am happy for every answer


Thank You


Gaston
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Gaston,

You need to have just that 1 Lucene Jar file, and make sure that that
Jar file is in your CLASSPATH. If you need help understanding how
CLASSPATH works, please see
http://www.google.com/search?q=classpath%20tutorial .

Otis

--- Gasi <gasi@artentis.com> wrote:

>
>
>
>
> Hello,
>
> first I must say I bought your Book Lucene in Action and it is very
> good. If it wouldnt't need expierence in ANT, I dont' have, it would
> be fantastic, but so it is "only" very good. So my question is about
> the webdemo from Appendix A. I tried it with Tomcat on my Computer
> and it worked perfectly, a very good explantion how to use it,
> greetings for the authors. But now I would like to try the same demo
> on my "mycgiserver.com-account". In your book it is explained that
> there must be only the "lucene-1.4.3.jar" on the webhost directory.
> But how to install the files who are imported by
> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> org.apache.lucene.index.*, org.apache.lucene.search.*,
> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> org.apache.lucene.demo.html.Entities" ?
> Shall I install the whole lucene source?
>
> I am happy for every answer
>
>
> Thank You
>
>
> Gaston
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Hallo Otis,

sorry when my question is a little studpid, but I wrote in my Mail that the
example from your book worked on my PC excellent, and on my PC I am able to
set the Classpath Variable "-classpath lucene-1.4.3.jar". But how to manage
this on a webhosting account without root permission? Is this possible? My
question is : which files should I upload to run the lucenewebdemo? the
whole luceneweb directory, lucene-1.4.3.jar, and the webindex of course. #
But I have an error that this directives cannot be found on my webspace:
"org.apache.lucene.analysis.*, org.apache.lucene.document.*,
org.apache.lucene.index.*, org.apache.lucene.search.*,
org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
org.apache.lucene.demo.html.Entities". I understand this that they cannot be
found. And here is my question: Which files schould I also upload to solve
this problem?
I cannot set a Classpathvariable on a webhosting account like
mycgiserver.com.

Thank you for your answer


Greetings


Gaston

----- Original Message -----
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: <general@lucene.apache.org>
Sent: Tuesday, August 30, 2005 10:46 PM
Subject: Re: lucene webdemo on a webhosting hosting account


> Gaston,
>
> You need to have just that 1 Lucene Jar file, and make sure that that
> Jar file is in your CLASSPATH. If you need help understanding how
> CLASSPATH works, please see
> http://www.google.com/search?q=classpath%20tutorial .
>
> Otis
>
> --- Gasi <gasi@artentis.com> wrote:
>
>>
>>
>>
>>
>> Hello,
>>
>> first I must say I bought your Book Lucene in Action and it is very
>> good. If it wouldnt't need expierence in ANT, I dont' have, it would
>> be fantastic, but so it is "only" very good. So my question is about
>> the webdemo from Appendix A. I tried it with Tomcat on my Computer
>> and it worked perfectly, a very good explantion how to use it,
>> greetings for the authors. But now I would like to try the same demo
>> on my "mycgiserver.com-account". In your book it is explained that
>> there must be only the "lucene-1.4.3.jar" on the webhost directory.
>> But how to install the files who are imported by
>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>> org.apache.lucene.index.*, org.apache.lucene.search.*,
>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>> org.apache.lucene.demo.html.Entities" ?
>> Shall I install the whole lucene source?
>>
>> I am happy for every answer
>>
>>
>> Thank You
>>
>>
>> Gaston
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Gaston,

You might be best posting this to the java-user e-mail list instead
of general@lucene which surely has less subscribers.

My hunch is that you need to have Lucene's JAR in the WEB-INF/lib
directory of the WAR (or WAR-structured directory) you're deploying.
You'll also need the demo JAR for indexing, though I don't think you
need that for searching.

Please consult with your hosting company's support as this issue is
primarily with integrating with their environment and not with Lucene
itself.

Erik


On Aug 30, 2005, at 5:04 PM, Gasi wrote:

> Hallo Otis,
>
> sorry when my question is a little studpid, but I wrote in my Mail
> that the
> example from your book worked on my PC excellent, and on my PC I
> am able to
> set the Classpath Variable "-classpath lucene-1.4.3.jar". But how
> to manage
> this on a webhosting account without root permission? Is this
> possible? My
> question is : which files should I upload to run the lucenewebdemo?
> the
> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of
> course. #
> But I have an error that this directives cannot be found on my
> webspace:
> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> org.apache.lucene.index.*, org.apache.lucene.search.*,
> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> org.apache.lucene.demo.html.Entities". I understand this that they
> cannot be
> found. And here is my question: Which files schould I also upload
> to solve
> this problem?
> I cannot set a Classpathvariable on a webhosting account like
> mycgiserver.com.
>
> Thank you for your answer
>
>
> Greetings
>
>
> Gaston
>
> ----- Original Message -----
> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> To: <general@lucene.apache.org>
> Sent: Tuesday, August 30, 2005 10:46 PM
> Subject: Re: lucene webdemo on a webhosting hosting account
>
>
>
>> Gaston,
>>
>> You need to have just that 1 Lucene Jar file, and make sure that that
>> Jar file is in your CLASSPATH. If you need help understanding how
>> CLASSPATH works, please see
>> http://www.google.com/search?q=classpath%20tutorial .
>>
>> Otis
>>
>> --- Gasi <gasi@artentis.com> wrote:
>>
>>
>>>
>>>
>>>
>>>
>>> Hello,
>>>
>>> first I must say I bought your Book Lucene in Action and it is very
>>> good. If it wouldnt't need expierence in ANT, I dont' have, it would
>>> be fantastic, but so it is "only" very good. So my question is about
>>> the webdemo from Appendix A. I tried it with Tomcat on my Computer
>>> and it worked perfectly, a very good explantion how to use it,
>>> greetings for the authors. But now I would like to try the same
>>> demo
>>> on my "mycgiserver.com-account". In your book it is explained that
>>> there must be only the "lucene-1.4.3.jar" on the webhost directory.
>>> But how to install the files who are imported by
>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>>> org.apache.lucene.demo.html.Entities" ?
>>> Shall I install the whole lucene source?
>>>
>>> I am happy for every answer
>>>
>>>
>>> Thank You
>>>
>>>
>>> Gaston
>>>
>>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Hallo Erik,

thank you for your both answers, you was right that it has to work. The
error were these both directives: " org.apache.lucene.demo.*,
org.apache.lucene.demo.html.Entities" who are of course not part of the
lucene-1.4.3.jar. But in your book you could give a hint that these two
directives cannot be used on webserver. But I understand that this only a
simple, because as in your book described lucene is very powerful. Your
lucene book is very good, and now I thinking to buy your Book about "Ant".

Greetings

Thank you very match


Gaston
----- Original Message -----
From: "Erik Hatcher" <erik@ehatchersolutions.com>
To: <general@lucene.apache.org>
Sent: Wednesday, August 31, 2005 8:25 PM
Subject: Re: lucene webdemo on a webhosting hosting account


> Gaston,
>
> You might be best posting this to the java-user e-mail list instead
> of general@lucene which surely has less subscribers.
>
> My hunch is that you need to have Lucene's JAR in the WEB-INF/lib
> directory of the WAR (or WAR-structured directory) you're deploying.
> You'll also need the demo JAR for indexing, though I don't think you
> need that for searching.
>
> Please consult with your hosting company's support as this issue is
> primarily with integrating with their environment and not with Lucene
> itself.
>
> Erik
>
>
> On Aug 30, 2005, at 5:04 PM, Gasi wrote:
>
>> Hallo Otis,
>>
>> sorry when my question is a little studpid, but I wrote in my Mail
>> that the
>> example from your book worked on my PC excellent, and on my PC I
>> am able to
>> set the Classpath Variable "-classpath lucene-1.4.3.jar". But how
>> to manage
>> this on a webhosting account without root permission? Is this
>> possible? My
>> question is : which files should I upload to run the lucenewebdemo?
>> the
>> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of
>> course. #
>> But I have an error that this directives cannot be found on my
>> webspace:
>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>> org.apache.lucene.index.*, org.apache.lucene.search.*,
>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>> org.apache.lucene.demo.html.Entities". I understand this that they
>> cannot be
>> found. And here is my question: Which files schould I also upload
>> to solve
>> this problem?
>> I cannot set a Classpathvariable on a webhosting account like
>> mycgiserver.com.
>>
>> Thank you for your answer
>>
>>
>> Greetings
>>
>>
>> Gaston
>>
>> ----- Original Message -----
>> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
>> To: <general@lucene.apache.org>
>> Sent: Tuesday, August 30, 2005 10:46 PM
>> Subject: Re: lucene webdemo on a webhosting hosting account
>>
>>
>>
>>> Gaston,
>>>
>>> You need to have just that 1 Lucene Jar file, and make sure that that
>>> Jar file is in your CLASSPATH. If you need help understanding how
>>> CLASSPATH works, please see
>>> http://www.google.com/search?q=classpath%20tutorial .
>>>
>>> Otis
>>>
>>> --- Gasi <gasi@artentis.com> wrote:
>>>
>>>
>>>>
>>>>
>>>>
>>>>
>>>> Hello,
>>>>
>>>> first I must say I bought your Book Lucene in Action and it is very
>>>> good. If it wouldnt't need expierence in ANT, I dont' have, it would
>>>> be fantastic, but so it is "only" very good. So my question is about
>>>> the webdemo from Appendix A. I tried it with Tomcat on my Computer
>>>> and it worked perfectly, a very good explantion how to use it,
>>>> greetings for the authors. But now I would like to try the same
>>>> demo
>>>> on my "mycgiserver.com-account". In your book it is explained that
>>>> there must be only the "lucene-1.4.3.jar" on the webhost directory.
>>>> But how to install the files who are imported by
>>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
>>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>>>> org.apache.lucene.demo.html.Entities" ?
>>>> Shall I install the whole lucene source?
>>>>
>>>> I am happy for every answer
>>>>
>>>>
>>>> Thank You
>>>>
>>>>
>>>> Gaston
>>>>
>>>
>>
>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Oh, I see what the problem is. Tthose org.apache.lucene.demo.* things
(classes) are in the lucene _demo_ Jar file, so you have to make sure
that Jar file is in your CLASSPATH (or maybe in WEB-INF/lib, if you are
dealing with a web app).

Otis


--- Gasi <gasi@artentis.com> wrote:

> Hallo Erik,
>
> thank you for your both answers, you was right that it has to work.
> The
> error were these both directives: " org.apache.lucene.demo.*,
> org.apache.lucene.demo.html.Entities" who are of course not part of
> the
> lucene-1.4.3.jar. But in your book you could give a hint that these
> two
> directives cannot be used on webserver. But I understand that this
> only a
> simple, because as in your book described lucene is very powerful.
> Your
> lucene book is very good, and now I thinking to buy your Book about
> "Ant".
>
> Greetings
>
> Thank you very match
>
>
> Gaston
> ----- Original Message -----
> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> To: <general@lucene.apache.org>
> Sent: Wednesday, August 31, 2005 8:25 PM
> Subject: Re: lucene webdemo on a webhosting hosting account
>
>
> > Gaston,
> >
> > You might be best posting this to the java-user e-mail list instead
> > of general@lucene which surely has less subscribers.
> >
> > My hunch is that you need to have Lucene's JAR in the WEB-INF/lib
> > directory of the WAR (or WAR-structured directory) you're
> deploying.
> > You'll also need the demo JAR for indexing, though I don't think
> you
> > need that for searching.
> >
> > Please consult with your hosting company's support as this issue is
> > primarily with integrating with their environment and not with
> Lucene
> > itself.
> >
> > Erik
> >
> >
> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
> >
> >> Hallo Otis,
> >>
> >> sorry when my question is a little studpid, but I wrote in my Mail
> >> that the
> >> example from your book worked on my PC excellent, and on my PC I
> >> am able to
> >> set the Classpath Variable "-classpath lucene-1.4.3.jar". But how
> >> to manage
> >> this on a webhosting account without root permission? Is this
> >> possible? My
> >> question is : which files should I upload to run the
> lucenewebdemo?
> >> the
> >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of
> >> course. #
> >> But I have an error that this directives cannot be found on my
> >> webspace:
> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> org.apache.lucene.demo.html.Entities". I understand this that they
> >> cannot be
> >> found. And here is my question: Which files schould I also upload
> >> to solve
> >> this problem?
> >> I cannot set a Classpathvariable on a webhosting account like
> >> mycgiserver.com.
> >>
> >> Thank you for your answer
> >>
> >>
> >> Greetings
> >>
> >>
> >> Gaston
> >>
> >> ----- Original Message -----
> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> >> To: <general@lucene.apache.org>
> >> Sent: Tuesday, August 30, 2005 10:46 PM
> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >>
> >>
> >>
> >>> Gaston,
> >>>
> >>> You need to have just that 1 Lucene Jar file, and make sure that
> that
> >>> Jar file is in your CLASSPATH. If you need help understanding
> how
> >>> CLASSPATH works, please see
> >>> http://www.google.com/search?q=classpath%20tutorial .
> >>>
> >>> Otis
> >>>
> >>> --- Gasi <gasi@artentis.com> wrote:
> >>>
> >>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> Hello,
> >>>>
> >>>> first I must say I bought your Book Lucene in Action and it is
> very
> >>>> good. If it wouldnt't need expierence in ANT, I dont' have, it
> would
> >>>> be fantastic, but so it is "only" very good. So my question is
> about
> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
> Computer
> >>>> and it worked perfectly, a very good explantion how to use it,
> >>>> greetings for the authors. But now I would like to try the same
> >>>> demo
> >>>> on my "mycgiserver.com-account". In your book it is explained
> that
> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
> directory.
> >>>> But how to install the files who are imported by
> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >>>> org.apache.lucene.demo.html.Entities" ?
> >>>> Shall I install the whole lucene source?
> >>>>
> >>>> I am happy for every answer
> >>>>
> >>>>
> >>>> Thank You
> >>>>
> >>>>
> >>>> Gaston
> >>>>
> >>>
> >>
> >
> >
>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Dear Otis,

I don't want be childish but I have both jars in WEB-INF/lib and I get an
error message like:

"
/~gasi/luceneweb/results.jsp:17: package org.apache.lucene.demo does not
exist
import org.apache.lucene.demo.*;
^
/~gasi/luceneweb/results.jsp:18: package org.apache.lucene.demo.html does
not exist
import org.apache.lucene.demo.html.Entities;
^
Note: /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java uses
or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java uses
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

"When I delete "import org.apache.lucene.demo.*;" and "import
org.apache.lucene.demo.html.Entities;" the webexample works without
anInternal Server Error but shows no results where results have to exits,
because the index is proper uploaded. I think that it is a very small
mistakebut I cannot find it.GreetingsGaston


----- Original Message -----
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: <general@lucene.apache.org>
Sent: Wednesday, August 31, 2005 10:02 PM
Subject: Re: lucene webdemo on a webhosting hosting account


> Oh, I see what the problem is. Tthose org.apache.lucene.demo.* things
> (classes) are in the lucene _demo_ Jar file, so you have to make sure
> that Jar file is in your CLASSPATH (or maybe in WEB-INF/lib, if you are
> dealing with a web app).
>
> Otis
>
>
> --- Gasi <gasi@artentis.com> wrote:
>
>> Hallo Erik,
>>
>> thank you for your both answers, you was right that it has to work.
>> The
>> error were these both directives: " org.apache.lucene.demo.*,
>> org.apache.lucene.demo.html.Entities" who are of course not part of
>> the
>> lucene-1.4.3.jar. But in your book you could give a hint that these
>> two
>> directives cannot be used on webserver. But I understand that this
>> only a
>> simple, because as in your book described lucene is very powerful.
>> Your
>> lucene book is very good, and now I thinking to buy your Book about
>> "Ant".
>>
>> Greetings
>>
>> Thank you very match
>>
>>
>> Gaston
>> ----- Original Message -----
>> From: "Erik Hatcher" <erik@ehatchersolutions.com>
>> To: <general@lucene.apache.org>
>> Sent: Wednesday, August 31, 2005 8:25 PM
>> Subject: Re: lucene webdemo on a webhosting hosting account
>>
>>
>> > Gaston,
>> >
>> > You might be best posting this to the java-user e-mail list instead
>> > of general@lucene which surely has less subscribers.
>> >
>> > My hunch is that you need to have Lucene's JAR in the WEB-INF/lib
>> > directory of the WAR (or WAR-structured directory) you're
>> deploying.
>> > You'll also need the demo JAR for indexing, though I don't think
>> you
>> > need that for searching.
>> >
>> > Please consult with your hosting company's support as this issue is
>> > primarily with integrating with their environment and not with
>> Lucene
>> > itself.
>> >
>> > Erik
>> >
>> >
>> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
>> >
>> >> Hallo Otis,
>> >>
>> >> sorry when my question is a little studpid, but I wrote in my Mail
>> >> that the
>> >> example from your book worked on my PC excellent, and on my PC I
>> >> am able to
>> >> set the Classpath Variable "-classpath lucene-1.4.3.jar". But how
>> >> to manage
>> >> this on a webhosting account without root permission? Is this
>> >> possible? My
>> >> question is : which files should I upload to run the
>> lucenewebdemo?
>> >> the
>> >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of
>> >> course. #
>> >> But I have an error that this directives cannot be found on my
>> >> webspace:
>> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
>> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>> >> org.apache.lucene.demo.html.Entities". I understand this that they
>> >> cannot be
>> >> found. And here is my question: Which files schould I also upload
>> >> to solve
>> >> this problem?
>> >> I cannot set a Classpathvariable on a webhosting account like
>> >> mycgiserver.com.
>> >>
>> >> Thank you for your answer
>> >>
>> >>
>> >> Greetings
>> >>
>> >>
>> >> Gaston
>> >>
>> >> ----- Original Message -----
>> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
>> >> To: <general@lucene.apache.org>
>> >> Sent: Tuesday, August 30, 2005 10:46 PM
>> >> Subject: Re: lucene webdemo on a webhosting hosting account
>> >>
>> >>
>> >>
>> >>> Gaston,
>> >>>
>> >>> You need to have just that 1 Lucene Jar file, and make sure that
>> that
>> >>> Jar file is in your CLASSPATH. If you need help understanding
>> how
>> >>> CLASSPATH works, please see
>> >>> http://www.google.com/search?q=classpath%20tutorial .
>> >>>
>> >>> Otis
>> >>>
>> >>> --- Gasi <gasi@artentis.com> wrote:
>> >>>
>> >>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> Hello,
>> >>>>
>> >>>> first I must say I bought your Book Lucene in Action and it is
>> very
>> >>>> good. If it wouldnt't need expierence in ANT, I dont' have, it
>> would
>> >>>> be fantastic, but so it is "only" very good. So my question is
>> about
>> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
>> Computer
>> >>>> and it worked perfectly, a very good explantion how to use it,
>> >>>> greetings for the authors. But now I would like to try the same
>> >>>> demo
>> >>>> on my "mycgiserver.com-account". In your book it is explained
>> that
>> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
>> directory.
>> >>>> But how to install the files who are imported by
>> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
>> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>> >>>> org.apache.lucene.demo.html.Entities" ?
>> >>>> Shall I install the whole lucene source?
>> >>>>
>> >>>> I am happy for every answer
>> >>>>
>> >>>>
>> >>>> Thank You
>> >>>>
>> >>>>
>> >>>> Gaston
>> >>>>
>> >>>
>> >>
>> >
>> >
>>
>>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Hm, sorry, but I can't really tell which part is misconfigured.

Otis

--- Gasi <gasi@artentis.com> wrote:

> Dear Otis,
>
> I don't want be childish but I have both jars in WEB-INF/lib and I
> get an
> error message like:
>
> "
> /~gasi/luceneweb/results.jsp:17: package org.apache.lucene.demo does
> not
> exist
> import org.apache.lucene.demo.*;
> ^
> /~gasi/luceneweb/results.jsp:18: package org.apache.lucene.demo.html
> does
> not exist
> import org.apache.lucene.demo.html.Entities;
> ^
> Note: /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> uses
> or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> uses
> unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 2 errors
>
> "When I delete "import org.apache.lucene.demo.*;" and "import
> org.apache.lucene.demo.html.Entities;" the webexample works without
> anInternal Server Error but shows no results where results have to
> exits,
> because the index is proper uploaded. I think that it is a very small
>
> mistakebut I cannot find it.GreetingsGaston
>
>
> ----- Original Message -----
> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> To: <general@lucene.apache.org>
> Sent: Wednesday, August 31, 2005 10:02 PM
> Subject: Re: lucene webdemo on a webhosting hosting account
>
>
> > Oh, I see what the problem is. Tthose org.apache.lucene.demo.*
> things
> > (classes) are in the lucene _demo_ Jar file, so you have to make
> sure
> > that Jar file is in your CLASSPATH (or maybe in WEB-INF/lib, if you
> are
> > dealing with a web app).
> >
> > Otis
> >
> >
> > --- Gasi <gasi@artentis.com> wrote:
> >
> >> Hallo Erik,
> >>
> >> thank you for your both answers, you was right that it has to
> work.
> >> The
> >> error were these both directives: " org.apache.lucene.demo.*,
> >> org.apache.lucene.demo.html.Entities" who are of course not part
> of
> >> the
> >> lucene-1.4.3.jar. But in your book you could give a hint that
> these
> >> two
> >> directives cannot be used on webserver. But I understand that this
> >> only a
> >> simple, because as in your book described lucene is very powerful.
> >> Your
> >> lucene book is very good, and now I thinking to buy your Book
> about
> >> "Ant".
> >>
> >> Greetings
> >>
> >> Thank you very match
> >>
> >>
> >> Gaston
> >> ----- Original Message -----
> >> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> >> To: <general@lucene.apache.org>
> >> Sent: Wednesday, August 31, 2005 8:25 PM
> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >>
> >>
> >> > Gaston,
> >> >
> >> > You might be best posting this to the java-user e-mail list
> instead
> >> > of general@lucene which surely has less subscribers.
> >> >
> >> > My hunch is that you need to have Lucene's JAR in the
> WEB-INF/lib
> >> > directory of the WAR (or WAR-structured directory) you're
> >> deploying.
> >> > You'll also need the demo JAR for indexing, though I don't think
> >> you
> >> > need that for searching.
> >> >
> >> > Please consult with your hosting company's support as this issue
> is
> >> > primarily with integrating with their environment and not with
> >> Lucene
> >> > itself.
> >> >
> >> > Erik
> >> >
> >> >
> >> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
> >> >
> >> >> Hallo Otis,
> >> >>
> >> >> sorry when my question is a little studpid, but I wrote in my
> Mail
> >> >> that the
> >> >> example from your book worked on my PC excellent, and on my PC
> I
> >> >> am able to
> >> >> set the Classpath Variable "-classpath lucene-1.4.3.jar". But
> how
> >> >> to manage
> >> >> this on a webhosting account without root permission? Is this
> >> >> possible? My
> >> >> question is : which files should I upload to run the
> >> lucenewebdemo?
> >> >> the
> >> >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex
> of
> >> >> course. #
> >> >> But I have an error that this directives cannot be found on my
> >> >> webspace:
> >> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> >> org.apache.lucene.demo.html.Entities". I understand this that
> they
> >> >> cannot be
> >> >> found. And here is my question: Which files schould I also
> upload
> >> >> to solve
> >> >> this problem?
> >> >> I cannot set a Classpathvariable on a webhosting account like
> >> >> mycgiserver.com.
> >> >>
> >> >> Thank you for your answer
> >> >>
> >> >>
> >> >> Greetings
> >> >>
> >> >>
> >> >> Gaston
> >> >>
> >> >> ----- Original Message -----
> >> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> >> >> To: <general@lucene.apache.org>
> >> >> Sent: Tuesday, August 30, 2005 10:46 PM
> >> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >> >>
> >> >>
> >> >>
> >> >>> Gaston,
> >> >>>
> >> >>> You need to have just that 1 Lucene Jar file, and make sure
> that
> >> that
> >> >>> Jar file is in your CLASSPATH. If you need help understanding
> >> how
> >> >>> CLASSPATH works, please see
> >> >>> http://www.google.com/search?q=classpath%20tutorial .
> >> >>>
> >> >>> Otis
> >> >>>
> >> >>> --- Gasi <gasi@artentis.com> wrote:
> >> >>>
> >> >>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>> Hello,
> >> >>>>
> >> >>>> first I must say I bought your Book Lucene in Action and it
> is
> >> very
> >> >>>> good. If it wouldnt't need expierence in ANT, I dont' have,
> it
> >> would
> >> >>>> be fantastic, but so it is "only" very good. So my question
> is
> >> about
> >> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
> >> Computer
> >> >>>> and it worked perfectly, a very good explantion how to use
> it,
> >> >>>> greetings for the authors. But now I would like to try the
> same
> >> >>>> demo
> >> >>>> on my "mycgiserver.com-account". In your book it is
> explained
> >> that
> >> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
> >> directory.
> >> >>>> But how to install the files who are imported by
> >> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> >>>> org.apache.lucene.demo.html.Entities" ?
> >> >>>> Shall I install the whole lucene source?
> >> >>>>
> >> >>>> I am happy for every answer
> >> >>>>
> >> >>>>
> >> >>>> Thank You
> >> >>>>
> >> >>>>
> >> >>>> Gaston
> >> >>>>
> >> >>>
> >> >>
> >> >
> >> >
> >>
> >>
> >
>
>
RE: lucene webdemo on a webhosting hosting account [ In reply to ]
Hi Gasti,
I have a similar layout. It works fine. This is what I have
(tomcat 5.30)

LuceneWeb/results.jsp
LuceneWeb/WEB-INF/lib/lucene-1.4-rc1-dev.jar
LuceneWeb/WEB-INF/lib/lucene-demos-1.4-rc1-dev.jar

Do you have the same layout? If nothing works, try putting those
jar files in the same directory as results.jsp.

Rajesh Munavalli

> -----Original Message-----
> From: Gasi [mailto:gasi@artentis.com]
> Sent: Thursday, September 01, 2005 1:38 PM
> To: general@lucene.apache.org
> Subject: Re: lucene webdemo on a webhosting hosting account
>
> Dear Otis,
>
> I don't want be childish but I have both jars in WEB-INF/lib
> and I get an error message like:
>
> "
> /~gasi/luceneweb/results.jsp:17: package
> org.apache.lucene.demo does not exist import
> org.apache.lucene.demo.*; ^
> /~gasi/luceneweb/results.jsp:18: package
> org.apache.lucene.demo.html does not exist import
> org.apache.lucene.demo.html.Entities;
> ^
> Note:
> /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note:
> /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 2 errors
>
> "When I delete "import org.apache.lucene.demo.*;" and "import
> org.apache.lucene.demo.html.Entities;" the webexample works
> without anInternal Server Error but shows no results where
> results have to exits, because the index is proper uploaded.
> I think that it is a very small mistakebut I cannot find
> it.GreetingsGaston
>
>
> ----- Original Message -----
> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> To: <general@lucene.apache.org>
> Sent: Wednesday, August 31, 2005 10:02 PM
> Subject: Re: lucene webdemo on a webhosting hosting account
>
>
> > Oh, I see what the problem is. Tthose
> org.apache.lucene.demo.* things
> > (classes) are in the lucene _demo_ Jar file, so you have to
> make sure
> > that Jar file is in your CLASSPATH (or maybe in
> WEB-INF/lib, if you are
> > dealing with a web app).
> >
> > Otis
> >
> >
> > --- Gasi <gasi@artentis.com> wrote:
> >
> >> Hallo Erik,
> >>
> >> thank you for your both answers, you was right that it has to work.
> >> The
> >> error were these both directives: " org.apache.lucene.demo.*,
> >> org.apache.lucene.demo.html.Entities" who are of course not part of
> >> the
> >> lucene-1.4.3.jar. But in your book you could give a hint that these
> >> two
> >> directives cannot be used on webserver. But I understand that this
> >> only a
> >> simple, because as in your book described lucene is very powerful.
> >> Your
> >> lucene book is very good, and now I thinking to buy your Book about
> >> "Ant".
> >>
> >> Greetings
> >>
> >> Thank you very match
> >>
> >>
> >> Gaston
> >> ----- Original Message -----
> >> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> >> To: <general@lucene.apache.org>
> >> Sent: Wednesday, August 31, 2005 8:25 PM
> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >>
> >>
> >> > Gaston,
> >> >
> >> > You might be best posting this to the java-user e-mail
> list instead
> >> > of general@lucene which surely has less subscribers.
> >> >
> >> > My hunch is that you need to have Lucene's JAR in the WEB-INF/lib
> >> > directory of the WAR (or WAR-structured directory) you're
> >> deploying.
> >> > You'll also need the demo JAR for indexing, though I don't think
> >> you
> >> > need that for searching.
> >> >
> >> > Please consult with your hosting company's support as
> this issue is
> >> > primarily with integrating with their environment and not with
> >> Lucene
> >> > itself.
> >> >
> >> > Erik
> >> >
> >> >
> >> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
> >> >
> >> >> Hallo Otis,
> >> >>
> >> >> sorry when my question is a little studpid, but I wrote
> in my Mail
> >> >> that the
> >> >> example from your book worked on my PC excellent, and
> on my PC I
> >> >> am able to
> >> >> set the Classpath Variable "-classpath
> lucene-1.4.3.jar". But how
> >> >> to manage
> >> >> this on a webhosting account without root permission? Is this
> >> >> possible? My
> >> >> question is : which files should I upload to run the
> >> lucenewebdemo?
> >> >> the
> >> >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of
> >> >> course. #
> >> >> But I have an error that this directives cannot be found on my
> >> >> webspace:
> >> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> >> org.apache.lucene.demo.html.Entities". I understand
> this that they
> >> >> cannot be
> >> >> found. And here is my question: Which files schould I
> also upload
> >> >> to solve
> >> >> this problem?
> >> >> I cannot set a Classpathvariable on a webhosting account like
> >> >> mycgiserver.com.
> >> >>
> >> >> Thank you for your answer
> >> >>
> >> >>
> >> >> Greetings
> >> >>
> >> >>
> >> >> Gaston
> >> >>
> >> >> ----- Original Message -----
> >> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> >> >> To: <general@lucene.apache.org>
> >> >> Sent: Tuesday, August 30, 2005 10:46 PM
> >> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >> >>
> >> >>
> >> >>
> >> >>> Gaston,
> >> >>>
> >> >>> You need to have just that 1 Lucene Jar file, and make
> sure that
> >> that
> >> >>> Jar file is in your CLASSPATH. If you need help understanding
> >> how
> >> >>> CLASSPATH works, please see
> >> >>> http://www.google.com/search?q=classpath%20tutorial .
> >> >>>
> >> >>> Otis
> >> >>>
> >> >>> --- Gasi <gasi@artentis.com> wrote:
> >> >>>
> >> >>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>> Hello,
> >> >>>>
> >> >>>> first I must say I bought your Book Lucene in Action and it is
> >> very
> >> >>>> good. If it wouldnt't need expierence in ANT, I dont' have, it
> >> would
> >> >>>> be fantastic, but so it is "only" very good. So my question is
> >> about
> >> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
> >> Computer
> >> >>>> and it worked perfectly, a very good explantion how to use it,
> >> >>>> greetings for the authors. But now I would like to
> try the same
> >> >>>> demo
> >> >>>> on my "mycgiserver.com-account". In your book it is explained
> >> that
> >> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
> >> directory.
> >> >>>> But how to install the files who are imported by
> >> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> >>>> org.apache.lucene.demo.html.Entities" ?
> >> >>>> Shall I install the whole lucene source?
> >> >>>>
> >> >>>> I am happy for every answer
> >> >>>>
> >> >>>>
> >> >>>> Thank You
> >> >>>>
> >> >>>>
> >> >>>> Gaston
> >> >>>>
> >> >>>
> >> >>
> >> >
> >> >
> >>
> >>
> >
>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Ok,

I understand it.


thank you


Greetings

Gaston
----- Original Message -----
From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
To: <general@lucene.apache.org>
Sent: Thursday, September 01, 2005 8:56 PM
Subject: Re: lucene webdemo on a webhosting hosting account


> Hm, sorry, but I can't really tell which part is misconfigured.
>
> Otis
>
> --- Gasi <gasi@artentis.com> wrote:
>
>> Dear Otis,
>>
>> I don't want be childish but I have both jars in WEB-INF/lib and I
>> get an
>> error message like:
>>
>> "
>> /~gasi/luceneweb/results.jsp:17: package org.apache.lucene.demo does
>> not
>> exist
>> import org.apache.lucene.demo.*;
>> ^
>> /~gasi/luceneweb/results.jsp:18: package org.apache.lucene.demo.html
>> does
>> not exist
>> import org.apache.lucene.demo.html.Entities;
>> ^
>> Note: /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
>> uses
>> or overrides a deprecated API.
>> Note: Recompile with -Xlint:deprecation for details.
>> Note: /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
>> uses
>> unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> 2 errors
>>
>> "When I delete "import org.apache.lucene.demo.*;" and "import
>> org.apache.lucene.demo.html.Entities;" the webexample works without
>> anInternal Server Error but shows no results where results have to
>> exits,
>> because the index is proper uploaded. I think that it is a very small
>>
>> mistakebut I cannot find it.GreetingsGaston
>>
>>
>> ----- Original Message -----
>> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
>> To: <general@lucene.apache.org>
>> Sent: Wednesday, August 31, 2005 10:02 PM
>> Subject: Re: lucene webdemo on a webhosting hosting account
>>
>>
>> > Oh, I see what the problem is. Tthose org.apache.lucene.demo.*
>> things
>> > (classes) are in the lucene _demo_ Jar file, so you have to make
>> sure
>> > that Jar file is in your CLASSPATH (or maybe in WEB-INF/lib, if you
>> are
>> > dealing with a web app).
>> >
>> > Otis
>> >
>> >
>> > --- Gasi <gasi@artentis.com> wrote:
>> >
>> >> Hallo Erik,
>> >>
>> >> thank you for your both answers, you was right that it has to
>> work.
>> >> The
>> >> error were these both directives: " org.apache.lucene.demo.*,
>> >> org.apache.lucene.demo.html.Entities" who are of course not part
>> of
>> >> the
>> >> lucene-1.4.3.jar. But in your book you could give a hint that
>> these
>> >> two
>> >> directives cannot be used on webserver. But I understand that this
>> >> only a
>> >> simple, because as in your book described lucene is very powerful.
>> >> Your
>> >> lucene book is very good, and now I thinking to buy your Book
>> about
>> >> "Ant".
>> >>
>> >> Greetings
>> >>
>> >> Thank you very match
>> >>
>> >>
>> >> Gaston
>> >> ----- Original Message -----
>> >> From: "Erik Hatcher" <erik@ehatchersolutions.com>
>> >> To: <general@lucene.apache.org>
>> >> Sent: Wednesday, August 31, 2005 8:25 PM
>> >> Subject: Re: lucene webdemo on a webhosting hosting account
>> >>
>> >>
>> >> > Gaston,
>> >> >
>> >> > You might be best posting this to the java-user e-mail list
>> instead
>> >> > of general@lucene which surely has less subscribers.
>> >> >
>> >> > My hunch is that you need to have Lucene's JAR in the
>> WEB-INF/lib
>> >> > directory of the WAR (or WAR-structured directory) you're
>> >> deploying.
>> >> > You'll also need the demo JAR for indexing, though I don't think
>> >> you
>> >> > need that for searching.
>> >> >
>> >> > Please consult with your hosting company's support as this issue
>> is
>> >> > primarily with integrating with their environment and not with
>> >> Lucene
>> >> > itself.
>> >> >
>> >> > Erik
>> >> >
>> >> >
>> >> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
>> >> >
>> >> >> Hallo Otis,
>> >> >>
>> >> >> sorry when my question is a little studpid, but I wrote in my
>> Mail
>> >> >> that the
>> >> >> example from your book worked on my PC excellent, and on my PC
>> I
>> >> >> am able to
>> >> >> set the Classpath Variable "-classpath lucene-1.4.3.jar". But
>> how
>> >> >> to manage
>> >> >> this on a webhosting account without root permission? Is this
>> >> >> possible? My
>> >> >> question is : which files should I upload to run the
>> >> lucenewebdemo?
>> >> >> the
>> >> >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex
>> of
>> >> >> course. #
>> >> >> But I have an error that this directives cannot be found on my
>> >> >> webspace:
>> >> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>> >> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
>> >> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>> >> >> org.apache.lucene.demo.html.Entities". I understand this that
>> they
>> >> >> cannot be
>> >> >> found. And here is my question: Which files schould I also
>> upload
>> >> >> to solve
>> >> >> this problem?
>> >> >> I cannot set a Classpathvariable on a webhosting account like
>> >> >> mycgiserver.com.
>> >> >>
>> >> >> Thank you for your answer
>> >> >>
>> >> >>
>> >> >> Greetings
>> >> >>
>> >> >>
>> >> >> Gaston
>> >> >>
>> >> >> ----- Original Message -----
>> >> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
>> >> >> To: <general@lucene.apache.org>
>> >> >> Sent: Tuesday, August 30, 2005 10:46 PM
>> >> >> Subject: Re: lucene webdemo on a webhosting hosting account
>> >> >>
>> >> >>
>> >> >>
>> >> >>> Gaston,
>> >> >>>
>> >> >>> You need to have just that 1 Lucene Jar file, and make sure
>> that
>> >> that
>> >> >>> Jar file is in your CLASSPATH. If you need help understanding
>> >> how
>> >> >>> CLASSPATH works, please see
>> >> >>> http://www.google.com/search?q=classpath%20tutorial .
>> >> >>>
>> >> >>> Otis
>> >> >>>
>> >> >>> --- Gasi <gasi@artentis.com> wrote:
>> >> >>>
>> >> >>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>> Hello,
>> >> >>>>
>> >> >>>> first I must say I bought your Book Lucene in Action and it
>> is
>> >> very
>> >> >>>> good. If it wouldnt't need expierence in ANT, I dont' have,
>> it
>> >> would
>> >> >>>> be fantastic, but so it is "only" very good. So my question
>> is
>> >> about
>> >> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
>> >> Computer
>> >> >>>> and it worked perfectly, a very good explantion how to use
>> it,
>> >> >>>> greetings for the authors. But now I would like to try the
>> same
>> >> >>>> demo
>> >> >>>> on my "mycgiserver.com-account". In your book it is
>> explained
>> >> that
>> >> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
>> >> directory.
>> >> >>>> But how to install the files who are imported by
>> >> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
>> >> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
>> >> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
>> >> >>>> org.apache.lucene.demo.html.Entities" ?
>> >> >>>> Shall I install the whole lucene source?
>> >> >>>>
>> >> >>>> I am happy for every answer
>> >> >>>>
>> >> >>>>
>> >> >>>> Thank You
>> >> >>>>
>> >> >>>>
>> >> >>>> Gaston
>> >> >>>>
>> >> >>>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>>
>>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Hallo Rajesh,

I have the same layout, but instead of lucene-1.4-rc1-dev.jar and
lucene-demos-1.4-rc1-dev.jar I have lucene-1.4.3.jar and
lucene-demos-1.4.3.jar. Where can I download the jars you have? Here I don't
see them: http://mirrorspace.org/apache/jakarta/lucene/binaries/

Thank you

Greetings


Gaston
----- Original Message -----
From: "Rajesh Munavalli" <rajeshm@dessci.com>
To: <general@lucene.apache.org>
Sent: Thursday, September 01, 2005 9:08 PM
Subject: RE: lucene webdemo on a webhosting hosting account


Hi Gasti,
I have a similar layout. It works fine. This is what I have
(tomcat 5.30)

LuceneWeb/results.jsp
LuceneWeb/WEB-INF/lib/lucene-1.4-rc1-dev.jar
LuceneWeb/WEB-INF/lib/lucene-demos-1.4-rc1-dev.jar

Do you have the same layout? If nothing works, try putting those
jar files in the same directory as results.jsp.

Rajesh Munavalli

> -----Original Message-----
> From: Gasi [mailto:gasi@artentis.com]
> Sent: Thursday, September 01, 2005 1:38 PM
> To: general@lucene.apache.org
> Subject: Re: lucene webdemo on a webhosting hosting account
>
> Dear Otis,
>
> I don't want be childish but I have both jars in WEB-INF/lib
> and I get an error message like:
>
> "
> /~gasi/luceneweb/results.jsp:17: package
> org.apache.lucene.demo does not exist import
> org.apache.lucene.demo.*; ^
> /~gasi/luceneweb/results.jsp:18: package
> org.apache.lucene.demo.html does not exist import
> org.apache.lucene.demo.html.Entities;
> ^
> Note:
> /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note:
> /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 2 errors
>
> "When I delete "import org.apache.lucene.demo.*;" and "import
> org.apache.lucene.demo.html.Entities;" the webexample works
> without anInternal Server Error but shows no results where
> results have to exits, because the index is proper uploaded.
> I think that it is a very small mistakebut I cannot find
> it.GreetingsGaston
>
>
> ----- Original Message -----
> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> To: <general@lucene.apache.org>
> Sent: Wednesday, August 31, 2005 10:02 PM
> Subject: Re: lucene webdemo on a webhosting hosting account
>
>
> > Oh, I see what the problem is. Tthose
> org.apache.lucene.demo.* things
> > (classes) are in the lucene _demo_ Jar file, so you have to
> make sure
> > that Jar file is in your CLASSPATH (or maybe in
> WEB-INF/lib, if you are
> > dealing with a web app).
> >
> > Otis
> >
> >
> > --- Gasi <gasi@artentis.com> wrote:
> >
> >> Hallo Erik,
> >>
> >> thank you for your both answers, you was right that it has to work.
> >> The
> >> error were these both directives: " org.apache.lucene.demo.*,
> >> org.apache.lucene.demo.html.Entities" who are of course not part of
> >> the
> >> lucene-1.4.3.jar. But in your book you could give a hint that these
> >> two
> >> directives cannot be used on webserver. But I understand that this
> >> only a
> >> simple, because as in your book described lucene is very powerful.
> >> Your
> >> lucene book is very good, and now I thinking to buy your Book about
> >> "Ant".
> >>
> >> Greetings
> >>
> >> Thank you very match
> >>
> >>
> >> Gaston
> >> ----- Original Message -----
> >> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> >> To: <general@lucene.apache.org>
> >> Sent: Wednesday, August 31, 2005 8:25 PM
> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >>
> >>
> >> > Gaston,
> >> >
> >> > You might be best posting this to the java-user e-mail
> list instead
> >> > of general@lucene which surely has less subscribers.
> >> >
> >> > My hunch is that you need to have Lucene's JAR in the WEB-INF/lib
> >> > directory of the WAR (or WAR-structured directory) you're
> >> deploying.
> >> > You'll also need the demo JAR for indexing, though I don't think
> >> you
> >> > need that for searching.
> >> >
> >> > Please consult with your hosting company's support as
> this issue is
> >> > primarily with integrating with their environment and not with
> >> Lucene
> >> > itself.
> >> >
> >> > Erik
> >> >
> >> >
> >> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
> >> >
> >> >> Hallo Otis,
> >> >>
> >> >> sorry when my question is a little studpid, but I wrote
> in my Mail
> >> >> that the
> >> >> example from your book worked on my PC excellent, and
> on my PC I
> >> >> am able to
> >> >> set the Classpath Variable "-classpath
> lucene-1.4.3.jar". But how
> >> >> to manage
> >> >> this on a webhosting account without root permission? Is this
> >> >> possible? My
> >> >> question is : which files should I upload to run the
> >> lucenewebdemo?
> >> >> the
> >> >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of
> >> >> course. #
> >> >> But I have an error that this directives cannot be found on my
> >> >> webspace:
> >> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> >> org.apache.lucene.demo.html.Entities". I understand
> this that they
> >> >> cannot be
> >> >> found. And here is my question: Which files schould I
> also upload
> >> >> to solve
> >> >> this problem?
> >> >> I cannot set a Classpathvariable on a webhosting account like
> >> >> mycgiserver.com.
> >> >>
> >> >> Thank you for your answer
> >> >>
> >> >>
> >> >> Greetings
> >> >>
> >> >>
> >> >> Gaston
> >> >>
> >> >> ----- Original Message -----
> >> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> >> >> To: <general@lucene.apache.org>
> >> >> Sent: Tuesday, August 30, 2005 10:46 PM
> >> >> Subject: Re: lucene webdemo on a webhosting hosting account
> >> >>
> >> >>
> >> >>
> >> >>> Gaston,
> >> >>>
> >> >>> You need to have just that 1 Lucene Jar file, and make
> sure that
> >> that
> >> >>> Jar file is in your CLASSPATH. If you need help understanding
> >> how
> >> >>> CLASSPATH works, please see
> >> >>> http://www.google.com/search?q=classpath%20tutorial .
> >> >>>
> >> >>> Otis
> >> >>>
> >> >>> --- Gasi <gasi@artentis.com> wrote:
> >> >>>
> >> >>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>> Hello,
> >> >>>>
> >> >>>> first I must say I bought your Book Lucene in Action and it is
> >> very
> >> >>>> good. If it wouldnt't need expierence in ANT, I dont' have, it
> >> would
> >> >>>> be fantastic, but so it is "only" very good. So my question is
> >> about
> >> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
> >> Computer
> >> >>>> and it worked perfectly, a very good explantion how to use it,
> >> >>>> greetings for the authors. But now I would like to
> try the same
> >> >>>> demo
> >> >>>> on my "mycgiserver.com-account". In your book it is explained
> >> that
> >> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
> >> directory.
> >> >>>> But how to install the files who are imported by
> >> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> >> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
> >> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> >> >>>> org.apache.lucene.demo.html.Entities" ?
> >> >>>> Shall I install the whole lucene source?
> >> >>>>
> >> >>>> I am happy for every answer
> >> >>>>
> >> >>>>
> >> >>>> Thank You
> >> >>>>
> >> >>>>
> >> >>>> Gaston
> >> >>>>
> >> >>>
> >> >>
> >> >
> >> >
> >>
> >>
> >
>
>
RE: lucene webdemo on a webhosting hosting account [ In reply to ]
Hi Gasi,
The jar file names doesn't matter. Your jar files should work
as well.

If you give me more information on the exact layout as well as
information on web server, I might be able to help you. But before that
try putting those jar files (lucene-1.4.3.jar and
lucene-demos-1.4.3.jar) into the directory where you have results.jsp?

Rajesh Munavalli

> -----Original Message-----
> From: Gasi [mailto:gasi@artentis.com]
> Sent: Thursday, September 01, 2005 4:27 PM
> To: general@lucene.apache.org
> Subject: Re: lucene webdemo on a webhosting hosting account
>
> Hallo Rajesh,
>
> I have the same layout, but instead of lucene-1.4-rc1-dev.jar
> and lucene-demos-1.4-rc1-dev.jar I have lucene-1.4.3.jar and
> lucene-demos-1.4.3.jar. Where can I download the jars you
> have? Here I don't see them:
> http://mirrorspace.org/apache/jakarta/lucene/binaries/
>
> Thank you
>
> Greetings
>
>
> Gaston
> ----- Original Message -----
> From: "Rajesh Munavalli" <rajeshm@dessci.com>
> To: <general@lucene.apache.org>
> Sent: Thursday, September 01, 2005 9:08 PM
> Subject: RE: lucene webdemo on a webhosting hosting account
>
>
> Hi Gasti,
> I have a similar layout. It works fine. This is what I have
> (tomcat 5.30)
>
> LuceneWeb/results.jsp
> LuceneWeb/WEB-INF/lib/lucene-1.4-rc1-dev.jar
> LuceneWeb/WEB-INF/lib/lucene-demos-1.4-rc1-dev.jar
>
> Do you have the same layout? If nothing works, try
> putting those
> jar files in the same directory as results.jsp.
>
> Rajesh Munavalli
>
> > -----Original Message-----
> > From: Gasi [mailto:gasi@artentis.com]
> > Sent: Thursday, September 01, 2005 1:38 PM
> > To: general@lucene.apache.org
> > Subject: Re: lucene webdemo on a webhosting hosting account
> >
> > Dear Otis,
> >
> > I don't want be childish but I have both jars in WEB-INF/lib
> > and I get an error message like:
> >
> > "
> > /~gasi/luceneweb/results.jsp:17: package
> > org.apache.lucene.demo does not exist import
> > org.apache.lucene.demo.*; ^
> > /~gasi/luceneweb/results.jsp:18: package
> > org.apache.lucene.demo.html does not exist import
> > org.apache.lucene.demo.html.Entities;
> > ^
> > Note:
> > /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> > uses or overrides a deprecated API.
> > Note: Recompile with -Xlint:deprecation for details.
> > Note:
> > /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> > uses unchecked or unsafe operations.
> > Note: Recompile with -Xlint:unchecked for details.
> > 2 errors
> >
> > "When I delete "import org.apache.lucene.demo.*;" and "import
> > org.apache.lucene.demo.html.Entities;" the webexample works
> > without anInternal Server Error but shows no results where
> > results have to exits, because the index is proper uploaded.
> > I think that it is a very small mistakebut I cannot find
> > it.GreetingsGaston
> >
> >
> > ----- Original Message -----
> > From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> > To: <general@lucene.apache.org>
> > Sent: Wednesday, August 31, 2005 10:02 PM
> > Subject: Re: lucene webdemo on a webhosting hosting account
> >
> >
> > > Oh, I see what the problem is. Tthose
> > org.apache.lucene.demo.* things
> > > (classes) are in the lucene _demo_ Jar file, so you have to
> > make sure
> > > that Jar file is in your CLASSPATH (or maybe in
> > WEB-INF/lib, if you are
> > > dealing with a web app).
> > >
> > > Otis
> > >
> > >
> > > --- Gasi <gasi@artentis.com> wrote:
> > >
> > >> Hallo Erik,
> > >>
> > >> thank you for your both answers, you was right that it
> has to work.
> > >> The
> > >> error were these both directives: " org.apache.lucene.demo.*,
> > >> org.apache.lucene.demo.html.Entities" who are of course
> not part of
> > >> the
> > >> lucene-1.4.3.jar. But in your book you could give a hint
> that these
> > >> two
> > >> directives cannot be used on webserver. But I understand
> that this
> > >> only a
> > >> simple, because as in your book described lucene is very
> powerful.
> > >> Your
> > >> lucene book is very good, and now I thinking to buy your
> Book about
> > >> "Ant".
> > >>
> > >> Greetings
> > >>
> > >> Thank you very match
> > >>
> > >>
> > >> Gaston
> > >> ----- Original Message -----
> > >> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> > >> To: <general@lucene.apache.org>
> > >> Sent: Wednesday, August 31, 2005 8:25 PM
> > >> Subject: Re: lucene webdemo on a webhosting hosting account
> > >>
> > >>
> > >> > Gaston,
> > >> >
> > >> > You might be best posting this to the java-user e-mail
> > list instead
> > >> > of general@lucene which surely has less subscribers.
> > >> >
> > >> > My hunch is that you need to have Lucene's JAR in the
> WEB-INF/lib
> > >> > directory of the WAR (or WAR-structured directory) you're
> > >> deploying.
> > >> > You'll also need the demo JAR for indexing, though I
> don't think
> > >> you
> > >> > need that for searching.
> > >> >
> > >> > Please consult with your hosting company's support as
> > this issue is
> > >> > primarily with integrating with their environment and not with
> > >> Lucene
> > >> > itself.
> > >> >
> > >> > Erik
> > >> >
> > >> >
> > >> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
> > >> >
> > >> >> Hallo Otis,
> > >> >>
> > >> >> sorry when my question is a little studpid, but I wrote
> > in my Mail
> > >> >> that the
> > >> >> example from your book worked on my PC excellent, and
> > on my PC I
> > >> >> am able to
> > >> >> set the Classpath Variable "-classpath
> > lucene-1.4.3.jar". But how
> > >> >> to manage
> > >> >> this on a webhosting account without root permission? Is this
> > >> >> possible? My
> > >> >> question is : which files should I upload to run the
> > >> lucenewebdemo?
> > >> >> the
> > >> >> whole luceneweb directory, lucene-1.4.3.jar, and the
> webindex of
> > >> >> course. #
> > >> >> But I have an error that this directives cannot be found on my
> > >> >> webspace:
> > >> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> > >> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
> > >> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> > >> >> org.apache.lucene.demo.html.Entities". I understand
> > this that they
> > >> >> cannot be
> > >> >> found. And here is my question: Which files schould I
> > also upload
> > >> >> to solve
> > >> >> this problem?
> > >> >> I cannot set a Classpathvariable on a webhosting account like
> > >> >> mycgiserver.com.
> > >> >>
> > >> >> Thank you for your answer
> > >> >>
> > >> >>
> > >> >> Greetings
> > >> >>
> > >> >>
> > >> >> Gaston
> > >> >>
> > >> >> ----- Original Message -----
> > >> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> > >> >> To: <general@lucene.apache.org>
> > >> >> Sent: Tuesday, August 30, 2005 10:46 PM
> > >> >> Subject: Re: lucene webdemo on a webhosting hosting account
> > >> >>
> > >> >>
> > >> >>
> > >> >>> Gaston,
> > >> >>>
> > >> >>> You need to have just that 1 Lucene Jar file, and make
> > sure that
> > >> that
> > >> >>> Jar file is in your CLASSPATH. If you need help
> understanding
> > >> how
> > >> >>> CLASSPATH works, please see
> > >> >>> http://www.google.com/search?q=classpath%20tutorial .
> > >> >>>
> > >> >>> Otis
> > >> >>>
> > >> >>> --- Gasi <gasi@artentis.com> wrote:
> > >> >>>
> > >> >>>
> > >> >>>>
> > >> >>>>
> > >> >>>>
> > >> >>>>
> > >> >>>> Hello,
> > >> >>>>
> > >> >>>> first I must say I bought your Book Lucene in
> Action and it is
> > >> very
> > >> >>>> good. If it wouldnt't need expierence in ANT, I
> dont' have, it
> > >> would
> > >> >>>> be fantastic, but so it is "only" very good. So my
> question is
> > >> about
> > >> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
> > >> Computer
> > >> >>>> and it worked perfectly, a very good explantion how
> to use it,
> > >> >>>> greetings for the authors. But now I would like to
> > try the same
> > >> >>>> demo
> > >> >>>> on my "mycgiserver.com-account". In your book it
> is explained
> > >> that
> > >> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
> > >> directory.
> > >> >>>> But how to install the files who are imported by
> > >> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> > >> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
> > >> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> > >> >>>> org.apache.lucene.demo.html.Entities" ?
> > >> >>>> Shall I install the whole lucene source?
> > >> >>>>
> > >> >>>> I am happy for every answer
> > >> >>>>
> > >> >>>>
> > >> >>>> Thank You
> > >> >>>>
> > >> >>>>
> > >> >>>> Gaston
> > >> >>>>
> > >> >>>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >
> >
> >
>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
I putted these both jar files in the same diretory as results.jsp but I
still don't have any results.
The struture is:
everything is in a folder called luceneweb
+luceneweb
+META-INF
+WEB-INF
+webindex
+configuration.jsp
+footer.jsp
+header.jsp
+index.jsp
+lucene-1.4.3.jar
+lucene-demos-1.4.3.jar
+results.jsp

In the webindex you will find the index consists of:
_9m.cfs
delateable
segments


And the same files are working excellent on my PC at home and show results
and on the Internet everything works but there are no results.


Gaston
----- Original Message -----
From: "Rajesh Munavalli" <rajeshm@dessci.com>
To: <general@lucene.apache.org>
Sent: Thursday, September 01, 2005 11:48 PM
Subject: RE: lucene webdemo on a webhosting hosting account


Hi Gasi,
The jar file names doesn't matter. Your jar files should work
as well.

If you give me more information on the exact layout as well as
information on web server, I might be able to help you. But before that
try putting those jar files (lucene-1.4.3.jar and
lucene-demos-1.4.3.jar) into the directory where you have results.jsp?

Rajesh Munavalli

> -----Original Message-----
> From: Gasi [mailto:gasi@artentis.com]
> Sent: Thursday, September 01, 2005 4:27 PM
> To: general@lucene.apache.org
> Subject: Re: lucene webdemo on a webhosting hosting account
>
> Hallo Rajesh,
>
> I have the same layout, but instead of lucene-1.4-rc1-dev.jar
> and lucene-demos-1.4-rc1-dev.jar I have lucene-1.4.3.jar and
> lucene-demos-1.4.3.jar. Where can I download the jars you
> have? Here I don't see them:
> http://mirrorspace.org/apache/jakarta/lucene/binaries/
>
> Thank you
>
> Greetings
>
>
> Gaston
> ----- Original Message -----
> From: "Rajesh Munavalli" <rajeshm@dessci.com>
> To: <general@lucene.apache.org>
> Sent: Thursday, September 01, 2005 9:08 PM
> Subject: RE: lucene webdemo on a webhosting hosting account
>
>
> Hi Gasti,
> I have a similar layout. It works fine. This is what I have
> (tomcat 5.30)
>
> LuceneWeb/results.jsp
> LuceneWeb/WEB-INF/lib/lucene-1.4-rc1-dev.jar
> LuceneWeb/WEB-INF/lib/lucene-demos-1.4-rc1-dev.jar
>
> Do you have the same layout? If nothing works, try
> putting those
> jar files in the same directory as results.jsp.
>
> Rajesh Munavalli
>
> > -----Original Message-----
> > From: Gasi [mailto:gasi@artentis.com]
> > Sent: Thursday, September 01, 2005 1:38 PM
> > To: general@lucene.apache.org
> > Subject: Re: lucene webdemo on a webhosting hosting account
> >
> > Dear Otis,
> >
> > I don't want be childish but I have both jars in WEB-INF/lib
> > and I get an error message like:
> >
> > "
> > /~gasi/luceneweb/results.jsp:17: package
> > org.apache.lucene.demo does not exist import
> > org.apache.lucene.demo.*; ^
> > /~gasi/luceneweb/results.jsp:18: package
> > org.apache.lucene.demo.html does not exist import
> > org.apache.lucene.demo.html.Entities;
> > ^
> > Note:
> > /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> > uses or overrides a deprecated API.
> > Note: Recompile with -Xlint:deprecation for details.
> > Note:
> > /usr/local/resin2/work/__27egasi/_luceneweb/_results__jsp.java
> > uses unchecked or unsafe operations.
> > Note: Recompile with -Xlint:unchecked for details.
> > 2 errors
> >
> > "When I delete "import org.apache.lucene.demo.*;" and "import
> > org.apache.lucene.demo.html.Entities;" the webexample works
> > without anInternal Server Error but shows no results where
> > results have to exits, because the index is proper uploaded.
> > I think that it is a very small mistakebut I cannot find
> > it.GreetingsGaston
> >
> >
> > ----- Original Message -----
> > From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> > To: <general@lucene.apache.org>
> > Sent: Wednesday, August 31, 2005 10:02 PM
> > Subject: Re: lucene webdemo on a webhosting hosting account
> >
> >
> > > Oh, I see what the problem is. Tthose
> > org.apache.lucene.demo.* things
> > > (classes) are in the lucene _demo_ Jar file, so you have to
> > make sure
> > > that Jar file is in your CLASSPATH (or maybe in
> > WEB-INF/lib, if you are
> > > dealing with a web app).
> > >
> > > Otis
> > >
> > >
> > > --- Gasi <gasi@artentis.com> wrote:
> > >
> > >> Hallo Erik,
> > >>
> > >> thank you for your both answers, you was right that it
> has to work.
> > >> The
> > >> error were these both directives: " org.apache.lucene.demo.*,
> > >> org.apache.lucene.demo.html.Entities" who are of course
> not part of
> > >> the
> > >> lucene-1.4.3.jar. But in your book you could give a hint
> that these
> > >> two
> > >> directives cannot be used on webserver. But I understand
> that this
> > >> only a
> > >> simple, because as in your book described lucene is very
> powerful.
> > >> Your
> > >> lucene book is very good, and now I thinking to buy your
> Book about
> > >> "Ant".
> > >>
> > >> Greetings
> > >>
> > >> Thank you very match
> > >>
> > >>
> > >> Gaston
> > >> ----- Original Message -----
> > >> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> > >> To: <general@lucene.apache.org>
> > >> Sent: Wednesday, August 31, 2005 8:25 PM
> > >> Subject: Re: lucene webdemo on a webhosting hosting account
> > >>
> > >>
> > >> > Gaston,
> > >> >
> > >> > You might be best posting this to the java-user e-mail
> > list instead
> > >> > of general@lucene which surely has less subscribers.
> > >> >
> > >> > My hunch is that you need to have Lucene's JAR in the
> WEB-INF/lib
> > >> > directory of the WAR (or WAR-structured directory) you're
> > >> deploying.
> > >> > You'll also need the demo JAR for indexing, though I
> don't think
> > >> you
> > >> > need that for searching.
> > >> >
> > >> > Please consult with your hosting company's support as
> > this issue is
> > >> > primarily with integrating with their environment and not with
> > >> Lucene
> > >> > itself.
> > >> >
> > >> > Erik
> > >> >
> > >> >
> > >> > On Aug 30, 2005, at 5:04 PM, Gasi wrote:
> > >> >
> > >> >> Hallo Otis,
> > >> >>
> > >> >> sorry when my question is a little studpid, but I wrote
> > in my Mail
> > >> >> that the
> > >> >> example from your book worked on my PC excellent, and
> > on my PC I
> > >> >> am able to
> > >> >> set the Classpath Variable "-classpath
> > lucene-1.4.3.jar". But how
> > >> >> to manage
> > >> >> this on a webhosting account without root permission? Is this
> > >> >> possible? My
> > >> >> question is : which files should I upload to run the
> > >> lucenewebdemo?
> > >> >> the
> > >> >> whole luceneweb directory, lucene-1.4.3.jar, and the
> webindex of
> > >> >> course. #
> > >> >> But I have an error that this directives cannot be found on my
> > >> >> webspace:
> > >> >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> > >> >> org.apache.lucene.index.*, org.apache.lucene.search.*,
> > >> >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> > >> >> org.apache.lucene.demo.html.Entities". I understand
> > this that they
> > >> >> cannot be
> > >> >> found. And here is my question: Which files schould I
> > also upload
> > >> >> to solve
> > >> >> this problem?
> > >> >> I cannot set a Classpathvariable on a webhosting account like
> > >> >> mycgiserver.com.
> > >> >>
> > >> >> Thank you for your answer
> > >> >>
> > >> >>
> > >> >> Greetings
> > >> >>
> > >> >>
> > >> >> Gaston
> > >> >>
> > >> >> ----- Original Message -----
> > >> >> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> > >> >> To: <general@lucene.apache.org>
> > >> >> Sent: Tuesday, August 30, 2005 10:46 PM
> > >> >> Subject: Re: lucene webdemo on a webhosting hosting account
> > >> >>
> > >> >>
> > >> >>
> > >> >>> Gaston,
> > >> >>>
> > >> >>> You need to have just that 1 Lucene Jar file, and make
> > sure that
> > >> that
> > >> >>> Jar file is in your CLASSPATH. If you need help
> understanding
> > >> how
> > >> >>> CLASSPATH works, please see
> > >> >>> http://www.google.com/search?q=classpath%20tutorial .
> > >> >>>
> > >> >>> Otis
> > >> >>>
> > >> >>> --- Gasi <gasi@artentis.com> wrote:
> > >> >>>
> > >> >>>
> > >> >>>>
> > >> >>>>
> > >> >>>>
> > >> >>>>
> > >> >>>> Hello,
> > >> >>>>
> > >> >>>> first I must say I bought your Book Lucene in
> Action and it is
> > >> very
> > >> >>>> good. If it wouldnt't need expierence in ANT, I
> dont' have, it
> > >> would
> > >> >>>> be fantastic, but so it is "only" very good. So my
> question is
> > >> about
> > >> >>>> the webdemo from Appendix A. I tried it with Tomcat on my
> > >> Computer
> > >> >>>> and it worked perfectly, a very good explantion how
> to use it,
> > >> >>>> greetings for the authors. But now I would like to
> > try the same
> > >> >>>> demo
> > >> >>>> on my "mycgiserver.com-account". In your book it
> is explained
> > >> that
> > >> >>>> there must be only the "lucene-1.4.3.jar" on the webhost
> > >> directory.
> > >> >>>> But how to install the files who are imported by
> > >> >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*,
> > >> >>>> org.apache.lucene.index.*, org.apache.lucene.search.*,
> > >> >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*,
> > >> >>>> org.apache.lucene.demo.html.Entities" ?
> > >> >>>> Shall I install the whole lucene source?
> > >> >>>>
> > >> >>>> I am happy for every answer
> > >> >>>>
> > >> >>>>
> > >> >>>> Thank You
> > >> >>>>
> > >> >>>>
> > >> >>>> Gaston
> > >> >>>>
> > >> >>>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >
> >
> >
>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
On Sep 1, 2005, at 6:08 PM, Gasi wrote:
> I putted these both jar files in the same diretory as results.jsp
> but I
> still don't have any results.
> The struture is:
> everything is in a folder called luceneweb
> +luceneweb
> +META-INF
> +WEB-INF
> +webindex
> +configuration.jsp
> +footer.jsp
> +header.jsp
> +index.jsp
> +lucene-1.4.3.jar
> +lucene-demos-1.4.3.jar
> +results.jsp

This is off-topic for this list to discuss WAR directory structure.
JAR files *must* go in WEB-INF/lib. Please read up on this
structure. The first best hit on Google for "java war structure" is
this:

http://www.onjava.com/pub/a/onjava/2001/03/15/tomcat.html

> In the webindex you will find the index consists of:
> _9m.cfs
> delateable
> segments

delateable? That is an incorrect name. Is this a typo in your mail
or did you rename the file when you uploaded the index? Is it
possible that you mangled the index during the upload?

> And the same files are working excellent on my PC at home and show
> results
> and on the Internet everything works but there are no results.

Are you catching and ignoring any exceptions? Have you modified the
JSP pages from your original configuration? Are you pointing to the
right index location on your server?

Erik
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Hi Erik,

one user asked me to send him my webstructure, because he has your webdemo
and it works perfect. And he said that it worked when these jars where in
the same directory as results.jsp. 'delateable' is a typo. I have uploaded
the same files that have worked on my laptop with jakarta-tomcat-3.3.2 on
the webserver. And I have chnaged the diretory in the configuration.jsp
file. And the webindex is found, has a size of 1,3MB and for every search he
delivers null results.
I think that I have done everything allright and it should work, but it does
not. so now I am trying exotical solutions because I have thought about all
possible errors. I am ignoring Murphy's Laws at this time ;-)

Another User wrote to me that he has the same problem.

I try much and for 4 days now and it still doesn' work.

Greetings


Gaston
----- Original Message -----
From: "Erik Hatcher" <erik@ehatchersolutions.com>
To: <general@lucene.apache.org>
Sent: Friday, September 02, 2005 11:50 AM
Subject: Re: lucene webdemo on a webhosting hosting account


>
> On Sep 1, 2005, at 6:08 PM, Gasi wrote:
>> I putted these both jar files in the same diretory as results.jsp
>> but I
>> still don't have any results.
>> The struture is:
>> everything is in a folder called luceneweb
>> +luceneweb
>> +META-INF
>> +WEB-INF
>> +webindex
>> +configuration.jsp
>> +footer.jsp
>> +header.jsp
>> +index.jsp
>> +lucene-1.4.3.jar
>> +lucene-demos-1.4.3.jar
>> +results.jsp
>
> This is off-topic for this list to discuss WAR directory structure.
> JAR files *must* go in WEB-INF/lib. Please read up on this
> structure. The first best hit on Google for "java war structure" is
> this:
>
> http://www.onjava.com/pub/a/onjava/2001/03/15/tomcat.html
>
>> In the webindex you will find the index consists of:
>> _9m.cfs
>> delateable
>> segments
>
> delateable? That is an incorrect name. Is this a typo in your mail
> or did you rename the file when you uploaded the index? Is it
> possible that you mangled the index during the upload?
>
>> And the same files are working excellent on my PC at home and show
>> results
>> and on the Internet everything works but there are no results.
>
> Are you catching and ignoring any exceptions? Have you modified the
> JSP pages from your original configuration? Are you pointing to the
> right index location on your server?
>
> Erik
>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Gaston,

At this point there is nothing further I can do to help. It works on
your local environment, but not on your 3rd party hosting
environment. Therefore the difference must be environment related.
It certainly is not a Lucene issue.

Erik


On Sep 2, 2005, at 11:30 AM, Gasi wrote:

> Hi Erik,
>
> one user asked me to send him my webstructure, because he has your
> webdemo
> and it works perfect. And he said that it worked when these jars
> where in
> the same directory as results.jsp. 'delateable' is a typo. I have
> uploaded
> the same files that have worked on my laptop with jakarta-
> tomcat-3.3.2 on
> the webserver. And I have chnaged the diretory in the
> configuration.jsp
> file. And the webindex is found, has a size of 1,3MB and for every
> search he
> delivers null results.
> I think that I have done everything allright and it should work,
> but it does
> not. so now I am trying exotical solutions because I have thought
> about all
> possible errors. I am ignoring Murphy's Laws at this time ;-)
>
> Another User wrote to me that he has the same problem.
>
> I try much and for 4 days now and it still doesn' work.
>
> Greetings
>
>
> Gaston
> ----- Original Message -----
> From: "Erik Hatcher" <erik@ehatchersolutions.com>
> To: <general@lucene.apache.org>
> Sent: Friday, September 02, 2005 11:50 AM
> Subject: Re: lucene webdemo on a webhosting hosting account
>
>
>
>>
>> On Sep 1, 2005, at 6:08 PM, Gasi wrote:
>>
>>> I putted these both jar files in the same diretory as results.jsp
>>> but I
>>> still don't have any results.
>>> The struture is:
>>> everything is in a folder called luceneweb
>>> +luceneweb
>>> +META-INF
>>> +WEB-INF
>>> +webindex
>>> +configuration.jsp
>>> +footer.jsp
>>> +header.jsp
>>> +index.jsp
>>> +lucene-1.4.3.jar
>>> +lucene-demos-1.4.3.jar
>>> +results.jsp
>>>
>>
>> This is off-topic for this list to discuss WAR directory structure.
>> JAR files *must* go in WEB-INF/lib. Please read up on this
>> structure. The first best hit on Google for "java war structure" is
>> this:
>>
>> http://www.onjava.com/pub/a/onjava/2001/03/15/tomcat.html
>>
>>
>>> In the webindex you will find the index consists of:
>>> _9m.cfs
>>> delateable
>>> segments
>>>
>>
>> delateable? That is an incorrect name. Is this a typo in your mail
>> or did you rename the file when you uploaded the index? Is it
>> possible that you mangled the index during the upload?
>>
>>
>>> And the same files are working excellent on my PC at home and show
>>> results
>>> and on the Internet everything works but there are no results.
>>>
>>
>> Are you catching and ignoring any exceptions? Have you modified the
>> JSP pages from your original configuration? Are you pointing to the
>> right index location on your server?
>>
>> Erik
>>
>>
>
Re: lucene webdemo on a webhosting hosting account [ In reply to ]
Erik,

I understand this but I hoped that somebody else had the same problem like
me an perhaps you could know a solution.

Thank you for your time

Greetings


Gaston
----- Original Message -----
From: "Erik Hatcher" <erik@ehatchersolutions.com>
To: <general@lucene.apache.org>
Sent: Friday, September 02, 2005 6:08 PM
Subject: Re: lucene webdemo on a webhosting hosting account


> Gaston,
>
> At this point there is nothing further I can do to help. It works on
> your local environment, but not on your 3rd party hosting
> environment. Therefore the difference must be environment related.
> It certainly is not a Lucene issue.
>
> Erik
>
>
> On Sep 2, 2005, at 11:30 AM, Gasi wrote:
>
>> Hi Erik,
>>
>> one user asked me to send him my webstructure, because he has your
>> webdemo
>> and it works perfect. And he said that it worked when these jars
>> where in
>> the same directory as results.jsp. 'delateable' is a typo. I have
>> uploaded
>> the same files that have worked on my laptop with jakarta-
>> tomcat-3.3.2 on
>> the webserver. And I have chnaged the diretory in the
>> configuration.jsp
>> file. And the webindex is found, has a size of 1,3MB and for every
>> search he
>> delivers null results.
>> I think that I have done everything allright and it should work,
>> but it does
>> not. so now I am trying exotical solutions because I have thought
>> about all
>> possible errors. I am ignoring Murphy's Laws at this time ;-)
>>
>> Another User wrote to me that he has the same problem.
>>
>> I try much and for 4 days now and it still doesn' work.
>>
>> Greetings
>>
>>
>> Gaston
>> ----- Original Message -----
>> From: "Erik Hatcher" <erik@ehatchersolutions.com>
>> To: <general@lucene.apache.org>
>> Sent: Friday, September 02, 2005 11:50 AM
>> Subject: Re: lucene webdemo on a webhosting hosting account
>>
>>
>>
>>>
>>> On Sep 1, 2005, at 6:08 PM, Gasi wrote:
>>>
>>>> I putted these both jar files in the same diretory as results.jsp
>>>> but I
>>>> still don't have any results.
>>>> The struture is:
>>>> everything is in a folder called luceneweb
>>>> +luceneweb
>>>> +META-INF
>>>> +WEB-INF
>>>> +webindex
>>>> +configuration.jsp
>>>> +footer.jsp
>>>> +header.jsp
>>>> +index.jsp
>>>> +lucene-1.4.3.jar
>>>> +lucene-demos-1.4.3.jar
>>>> +results.jsp
>>>>
>>>
>>> This is off-topic for this list to discuss WAR directory structure.
>>> JAR files *must* go in WEB-INF/lib. Please read up on this
>>> structure. The first best hit on Google for "java war structure" is
>>> this:
>>>
>>> http://www.onjava.com/pub/a/onjava/2001/03/15/tomcat.html
>>>
>>>
>>>> In the webindex you will find the index consists of:
>>>> _9m.cfs
>>>> delateable
>>>> segments
>>>>
>>>
>>> delateable? That is an incorrect name. Is this a typo in your mail
>>> or did you rename the file when you uploaded the index? Is it
>>> possible that you mangled the index during the upload?
>>>
>>>
>>>> And the same files are working excellent on my PC at home and show
>>>> results
>>>> and on the Internet everything works but there are no results.
>>>>
>>>
>>> Are you catching and ignoring any exceptions? Have you modified the
>>> JSP pages from your original configuration? Are you pointing to the
>>> right index location on your server?
>>>
>>> Erik
>>>
>>>
>>
>