Hello All

I am trying to write a search class that supports search by regular
expressions in Lucene.  But I am not able to compile the source because
I don't seem to have the correct javacc library Lucene is expecting.

Where can I get a JavaCC distribution from that's expected by Lucene? I
downloaded one from https://javacc.dev.java.net/.  This distribution
however has different packages than the one Lucene's build.xml is
looking for.

The Main class Lucene expects is COM.sun.labs.javacc.Main (as per the
build.xml), but the one I have is org.javacc.parser.Main and
org.javacc.jjtree.Main(yeah there are 2, don't know which one its
expecting).  The one that Lucene is looking for appears to be a sun
distribution. 

Someone please help! I am stuck not being able to compile Lucene!

Thanks
Renuka 
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, November 04, 2005 11:56 AM
To: [email protected]
Subject: Re: Cached document errors

Hi,
 I will try it right away.
 Do I need to restart after changes?
 /usr/local/tomcat/tomcat4/bin/catalina.sh stop
/usr/local/tomcat/tomcat4/bin/catalina.sh start
//restart tomcat
 When you say over, does that mean replace the existing line with the
new
lines or insert new line before existing lines having both old and new
lines
in file?
 Sorry I am new to this.
 Lawrence

 On 11/4/05, YourSoft <[EMAIL PROTECTED]> wrote:
>
> Dear Lawrence,
>
> There is a problem with the following line in the cached.jsp:
>
> String contentType = (String) metaData.get("Content-Type");
>
> In the segments data there is some times not equals "Content-Type",
there
> are "content-type" or "Content-type" etc.
>
> The solution, insert these lines over the above line:
>
> for (Enumeration eNum = metaData.propertyNames();
eNum.hasMoreElements();)
> {
> content = (String) eNum.nextElement();
> if ("content-type".equalsIgnoreCase (content)) {
> break;
> }
> }
> final String contentType = (String) metaData.get(content);
>
> Regards,
> Ferenc
>
> [EMAIL PROTECTED] wrotte:
>
> >Hello Ferenc,
> > Thanks for your reply.
> > Should I uninstall Nutch 0.7.1 and try 0.7 or 0.6
> > Is there any way to force a document's boost so it appears first for
> >keywords all the time?
> > Thanks
> >Lawrence
> >
> > On 11/4/05, YourSoft <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Dear Lawrence,
> >>
> >>There is a bug in cached.jsp.
> >>I fix it, but I have servlets, and older version of nutch.
> >>I need to check the latest cached.jsp.
> >>Please give me a litle time to report the bug solution.
> >>
> >>Regards,
> >>Ferenc
> >>
> >>
> >>
> >>[EMAIL PROTECTED] wrotte:
> >>
> >>
> >>
> >>>Hi,
> >>>I have Java 2 SDK 1.4.2, Tomcat 4.1.31 and Nutch 0.7.1 successfully
> >>>installed and a test database was created as per tutorial.
> >>>It searches fine but on some of the results when I click (cached)
it
> >>>returns a "The server encountered an internal error () that
prevented
> it
> >>>
> >>>
> >>>from fulfilling this request."
> >>
> >>
> >>>**
> >>>I deleted the database and re-created it but it had the same
problem on
> >>>
> >>>
> >>some
> >>
> >>
> >>>results.
> >>>Any ideas I appreciate your help.
> >>>Lawrence
> >>>HTTP Status 500 -
> >>>------------------------------
> >>>
> >>>*type* Exception report
> >>>
> >>>*message* **
> >>>
> >>>*description* *The server encountered an internal error () that
> prevented
> >>>
> >>>
> >>it
> >>>from fulfilling this request.*
> >>
> >>
> >>>*exception*
> >>>
> >>>org.apache.jasper.JasperException
> >>>at org.apache.jasper.servlet.JspServletWrapper.service(
> >>>
> >>>
> >>JspServletWrapper.java:207)
> >>
> >>
> >>>at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> >>>
> >>>
> >>:240)
> >>
> >>
> >>>at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> >>>at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:200)
> >>
> >>
> >>>at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:146)
> >>
> >>
> >>>at org.apache.catalina.core.StandardWrapperValve.invoke(
> >>>
> >>>
> >>StandardWrapperValve.java:209)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardContextValve.invoke(
> >>>
> >>>
> >>StandardContextValve.java:144)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java
> >>>
> >>>
> >>:2358)
> >>
> >>
> >>>at org.apache.catalina.core.StandardHostValve.invoke(
> >>>
> >>>
> >>StandardHostValve.java:133)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
> >>>
> >>>
> >>ErrorDispatcherValve.java:118)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorReportValve.invoke(
> >>>
> >>>
> >>ErrorReportValve.java:116)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardEngineValve.invoke(
> >>>
> >>>
> >>StandardEngineValve.java:127)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java
> >>>
> >>>
> >>:152)
> >>
> >>
> >>>at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java
> >>>
> >>>
> >>:799)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection
> >>(Http11Protocol.java:705)
> >>
> >>
> >>>at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
> PoolTcpEndpoint.java
> >>>
> >>>
> >>:577)
> >>
> >>
> >>>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >>>
> >>>
> >>ThreadPool.java:683)
> >>
> >>
> >>>at java.lang.Thread.run(Thread.java:534)
> >>>
> >>>*root cause*
> >>>
> >>>java.lang.NullPointerException
> >>>at org.apache.jsp.cached_jsp._jspService(cached_jsp.java:82)
> >>>at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> >>>at org.apache.jasper.servlet.JspServletWrapper.service(
> >>>
> >>>
> >>JspServletWrapper.java:162)
> >>
> >>
> >>>at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> >>>
> >>>
> >>:240)
> >>
> >>
> >>>at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
> >>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> >>>at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:200)
> >>
> >>
> >>>at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >>>
> >>>
> >>ApplicationFilterChain.java:146)
> >>
> >>
> >>>at org.apache.catalina.core.StandardWrapperValve.invoke(
> >>>
> >>>
> >>StandardWrapperValve.java:209)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardContextValve.invoke(
> >>>
> >>>
> >>StandardContextValve.java:144)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java
> >>>
> >>>
> >>:2358)
> >>
> >>
> >>>at org.apache.catalina.core.StandardHostValve.invoke(
> >>>
> >>>
> >>StandardHostValve.java:133)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
> >>>
> >>>
> >>ErrorDispatcherValve.java:118)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.valves.ErrorReportValve.invoke(
> >>>
> >>>
> >>ErrorReportValve.java:116)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:594)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at org.apache.catalina.core.StandardEngineValve.invoke(
> >>>
> >>>
> >>StandardEngineValve.java:127)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext
> >>(StandardPipeline.java:596)
> >>
> >>
> >>>at org.apache.catalina.core.StandardPipeline.invoke(
> >>>
> >>>
> >>StandardPipeline.java:433)
> >>
> >>
> >>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
> :948)
> >>>at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java
> >>>
> >>>
> >>:152)
> >>
> >>
> >>>at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java
> >>>
> >>>
> >>:799)
> >>
> >>
> >>>at
> >>>
> >>>
> >>
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection
> >>(Http11Protocol.java:705)
> >>
> >>
> >>>at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
> PoolTcpEndpoint.java
> >>>
> >>>
> >>:577)
> >>
> >>
> >>>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >>>
> >>>
> >>ThreadPool.java:683)
> >>
> >>
> >>>at java.lang.Thread.run(Thread.java:534)
> >>>
> >>>------------------------------
> >>>Apache Tomcat/4.1.31
> >>>I
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
>


The information contained in this communication may be CONFIDENTIAL and is 
intended only for the use of the recipient(s) named above.  If you are not the 
intended recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication, or any of its contents, is 
strictly prohibited.  If you have received this communication in error, please 
notify the sender and delete/destroy the original message and any copy of it 
from your computer or paper files.

Reply via email to