lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: NewBie with Lucene 1.4RC : issue on Demo3 HTML with result.jsp.java import error ???
Date Fri, 14 May 2004 12:39:50 GMT
I have not used Lucene demo in a looong time, and have not used Tomcat
in a few years, but it looks like you need to add a Lucene jar either
in your WAR (Lucene demo WAR, I guess), or you can just put Lucene Jar
in some lib directory from which Tomcat loads his Jars.

Otis


--- Bruno Tirel <bruno.tirel@club-internet.fr> wrote:
> Hello,
> 
> Could somebody help?
> 
> I am trying to discover and use Lucene to search within HTML pages
> within
> Apache/Tomcat server. I have found Lucene, and tried the demos...
> With issue
> running Demo3 and indexHTML, at search.JSP. I have modified
> CLASSPATH,
> created the index directory, the index, modified indexLocation into
> Configuration.jsp, started sucessfully search.jsp... 
> But it always come to an HTTP 500 with these context :
> 
> Etat HTTP 500 - 
>  
> type Rapport d''exception
> message 
> description Le serveur a recontrer une erreur interne () qui l'a
> empèché de
> satisfaire la requête. exception 
> v	org.apache.jasper.JasperException: Unable to compile class for JSP
> v	An error occurred at line: 18 in the jsp file: /results.jsp
> v	
> v	Generated servlet error:   [javac] Compiling 1 source file
> v	
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:10:
> package org.apache.lucene.analysis does not exist
> v	import org.apache.lucene.analysis.*;
> v	^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:11:
> package org.apache.lucene.document does not exist
> v	import org.apache.lucene.document.*;
> v	^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:12:
> package org.apache.lucene.index does not exist
> v	import org.apache.lucene.index.*;
> v	^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:13:
> package org.apache.lucene.search does not exist
> v	import org.apache.lucene.search.*;
> v	^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:14:
> package org.apache.lucene.queryParser does not exist
> v	import org.apache.lucene.queryParser.*;
> v	^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:15:
> package org.apache.lucene.demo does not exist
> v	import org.apache.lucene.demo.*;
> v	^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:16:
> package org.apache.lucene.demo.html does not exist
> v	import org.apache.lucene.demo.html.Entities;
> v	                                   ^
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:101:
> cannot resolve symbol
> v	symbol  : class IndexSearcher  
> v	location: class org.apache.jsp.results_jsp
> v	        IndexSearcher searcher = null;          //the searcher used
> to open/search the index
> v	        ^
> v	An error occurred at line: 18 in the jsp file: /results.jsp
> v	
> v	Generated servlet error:
> v
>
C:\www\tomcat4.1\work\Standalone\localhost\luceneweb\results_jsp.java:102:
> cannot resolve symbol
> v	symbol  : class Query  
> v	location: class org.apache.jsp.results_jsp
> v	        Query query = null;                     //the Query created
> by the QueryParser
> v	        ^
> v	        ^
> v	17 errors
> v	
> v		at
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
> r.java:130)
> v		at
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
> 93)
> v		at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
> v		at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
> v		at
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
> 73)
> v		at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
> 90)
> v		at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> v		at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> v		at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> v		at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> v		at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> v		at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
> v		at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> v		at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> v		at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> v		at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> v		at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> v		at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> v		at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> v		at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
> v		at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> v		at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> v		at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:171)
> v		at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> v		at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
> v		at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> v		at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> v		at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> v		at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> v		at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> v		at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> v		at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> v		at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
> v		at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
> v		at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:549)
> v		at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
> v		at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:666)
> v		at java.lang.Thread.run(Thread.java:536)
>  
> Apache Tomcat/4.1.29-LE-jdk14
> 
> 
> Best regards,
> 
> Bruno
> Bruno.tirel@club-internet.fr
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message