You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Matthew L. Helm" <mh...@historykat.com> on 2008/10/14 22:56:14 UTC

Problem with Quote in search.jsp

I've been running Nutch 0.8 for a year or so without any problems.  
Then, I decided to move my server content to a dedicated hosted solution 
off-site.  I configured the server in the same way using Xampp, but 
decided to migrate to Nutch 0.9.  Other than that, the only difference 
is that the hosted server runs Fedora and my old server was on Red Hat.  
I was able to index content fine, but when I put up the search interface 
and conduct a search, I received the following error:

org.apache.jasper.JasperException: /search.jsp(303,19) quote symbol expected
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
	org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:205)
	org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:155)
	org.apache.jasper.compiler.Parser.parseInclude(Parser.java:869)
	org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1136)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1466)
	org.apache.jasper.compiler.Parser.parse(Parser.java:138)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

I receive this error when using my search.war that I used on my old server.  It also happens when I use the default Nutch search interface.  I installed Nutch 0.8 and receive the same error.

If I escape out the quotation, then I receive an error that it was expecting a quote.

I know I must have something configured wrong -- just stumped as to what it is.

Any ideas?

Thanks.

Matthew



Re: Problem with Quote in search.jsp

Posted by John Logan <jl...@nxar.com>.
Matthew,

I didn't have the exact error you received, but I had a similar problem
that was resolved by making the following change in search.jsp
(somewhere around line 150) maybe this will help...
change:
<jsp:include page="<%= language + "/include/header.html"%>"/>
to
<jsp:include page="<%= language + \"/include/header.html\"%>"/>

(added escape characters to the inner set of quotation marks)

John


Matthew L. Helm wrote:
> I've been running Nutch 0.8 for a year or so without any problems.  
> Then, I decided to move my server content to a dedicated hosted 
> solution off-site.  I configured the server in the same way using 
> Xampp, but decided to migrate to Nutch 0.9.  Other than that, the only 
> difference is that the hosted server runs Fedora and my old server was 
> on Red Hat.  I was able to index content fine, but when I put up the 
> search interface and conduct a search, I received the following error:
>
> org.apache.jasper.JasperException: /search.jsp(303,19) quote symbol 
> expected
>     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) 
>
>     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) 
>
>     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) 
>
>     org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:205)
>     org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:155)
>     org.apache.jasper.compiler.Parser.parseInclude(Parser.java:869)
>     org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1136) 
>
>     org.apache.jasper.compiler.Parser.parseElements(Parser.java:1466)
>     org.apache.jasper.compiler.Parser.parse(Parser.java:138)
>     org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) 
>
>     org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) 
>
>     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
>     org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
>     org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
>     org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
>     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) 
>
>     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) 
>
>     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) 
>
>     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> I receive this error when using my search.war that I used on my old 
> server.  It also happens when I use the default Nutch search 
> interface.  I installed Nutch 0.8 and receive the same error.
>
> If I escape out the quotation, then I receive an error that it was 
> expecting a quote.
>
> I know I must have something configured wrong -- just stumped as to 
> what it is.
>
> Any ideas?
>
> Thanks.
>
> Matthew
>
>
>
>
>