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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED] > > 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" <[EMAIL PROTECTED]> > > 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > > >> 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 [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> > > >> >> 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 <[EMAIL PROTECTED]> 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 > > >> >>>> > > >> >>> > > >> >> > > >> > > > >> > > > >> > > >> > > > > > > > > >