!Solr

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

!Solr

Karl Wettin-3
Hi all,

I need to get something up and running in 12 hours, so I thought
it could be fun to see if Solr would work out of the box for me.

Neither the example nor the dist war would start.

No big deal, I'll hack something up another way. Just thought it
would be a good thing to report this.

I'm on IBM 1.5 on my PPC Linux.

Here are the logs:

kalle@limax:~/download/solr-nightly/example$ java -jar start.jar
18:52:16.463 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:110) >14> added org.mortbay.log.OutputStreamLogSink@301be5c0
18:52:16.215 INFO   [main] org.mortbay.util.FileResource.<clinit>(FileResource.java:61) >09> Checking Resource aliases
18:52:16.774 WARN!! [main] org.mortbay.xml.XmlParser.<init>(XmlParser.java:82) >10> Schema validation may not be supported
18:52:17.335 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >07> Version Jetty/5.1.11RC0
18:52:17.537 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >11> Started org.mortbay.jetty.servlet.ServletHandler@301c5280
18:52:17.645 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >08> Started ServletHttpContext[/,/]
18:52:17.756 INFO   [main] org.mortbay.http.SocketListener.start(SocketListener.java:206) >08> Started SocketListener on 127.0.0.1:8081
18:52:17.864 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >06> Started org.mortbay.jetty.Server@314eaed8
18:52:18.417 INFO   [main] org.mortbay.http.HttpServer.setStatsOn(HttpServer.java:1131) >12> Statistics on = false for org.mortbay.jetty.Server@314ead48
18:52:18.533 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >07> Version Jetty/5.1.11RC0
18:52:18.987 INFO   [main] org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:249) >10> Extract jar:file:/home/kalle/download/solr-nightly/example/webapps/solr.war!/ to /tmp/Jetty__8983__solr/webapp
18:52:19.427 WARN!! [main] org.mortbay.xml.XmlParser.<init>(XmlParser.java:82) >14> Schema validation may not be supported
18:52:22.850 WARN!! [main] org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:520) >09> Configuration error on jar:file:/home/kalle/download/solr-nightly/example/webapps/solr.war!/
java.net.MalformedURLException: Absolute URL required with null context: ../../../conf/web.external.xml
   at java.net.URL.<init>(libgcj.so.7)
   at java.net.URL.<init>(libgcj.so.7)
   at gnu.xml.aelfred2.SAXDriver.absolutize(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseEntityDecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseMarkupdecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseProlog(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseDocument(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.doParse(libgcj.so.7)
   at gnu.xml.aelfred2.SAXDriver.parse(libgcj.so.7)
   at gnu.xml.aelfred2.XmlReader.parse(libgcj.so.7)
   at javax.xml.parsers.SAXParser.parse(libgcj.so.7)
   at org.mortbay.xml.XmlParser.parse(XmlParser.java:218)
   at org.mortbay.xml.XmlParser.parse(XmlParser.java:235)
   at org.mortbay.jetty.servlet.XMLConfiguration.configureWebApp(XMLConfiguration.java:190)
   at org.mortbay.jetty.servlet.WebApplicationContext.configureWebApp(WebApplicationContext.java:422)
   at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:481)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.jetty.Server.main(Server.java:466)
   at java.lang.reflect.Method.invoke(libgcj.so.7)
   at org.mortbay.start.Main.invokeMain(Main.java:151)
   at org.mortbay.start.Main.start(Main.java:481)
   at org.mortbay.start.Main.main(Main.java:99)

18:52:23.264 INFO   [main] org.mortbay.http.SocketListener.start(SocketListener.java:206) >08> Started SocketListener on 0.0.0.0:8983
18:52:23.375 WARN!! [main] org.mortbay.jetty.Server.main(Server.java:454) >05> EXCEPTION
org.mortbay.util.MultiException[java.net.MalformedURLException: Absolute URL required with null context: ../../../conf/web.external.xml]
   at org.mortbay.http.HttpServer.doStart(HttpServer.java:686)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.jetty.Server.main(Server.java:466)
   at java.lang.reflect.Method.invoke(libgcj.so.7)
   at org.mortbay.start.Main.invokeMain(Main.java:151)
   at org.mortbay.start.Main.start(Main.java:481)
   at org.mortbay.start.Main.main(Main.java:99)
java.net.MalformedURLException: Absolute URL required with null context: ../../../conf/web.external.xml
   at java.net.URL.<init>(libgcj.so.7)
   at java.net.URL.<init>(libgcj.so.7)
   at gnu.xml.aelfred2.SAXDriver.absolutize(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseEntityDecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseMarkupdecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseProlog(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseDocument(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.doParse(libgcj.so.7)
   at gnu.xml.aelfred2.SAXDriver.parse(libgcj.so.7)
   at gnu.xml.aelfred2.XmlReader.parse(libgcj.so.7)
   at javax.xml.parsers.SAXParser.parse(libgcj.so.7)
   at org.mortbay.xml.XmlParser.parse(XmlParser.java:218)
   at org.mortbay.xml.XmlParser.parse(XmlParser.java:235)
   at org.mortbay.jetty.servlet.XMLConfiguration.configureWebApp(XMLConfiguration.java:190)
   at org.mortbay.jetty.servlet.WebApplicationContext.configureWebApp(WebApplicationContext.java:422)
   at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:481)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.jetty.Server.main(Server.java:466)
   at java.lang.reflect.Method.invoke(libgcj.so.7)
   at org.mortbay.start.Main.invokeMain(Main.java:151)
   at org.mortbay.start.Main.start(Main.java:481)
   at org.mortbay.start.Main.main(Main.java:99)
[0]=java.net.MalformedURLException: Absolute URL required with null context: ../../../conf/web.external.xml
   at java.net.URL.<init>(libgcj.so.7)
   at java.net.URL.<init>(libgcj.so.7)
   at gnu.xml.aelfred2.SAXDriver.absolutize(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseEntityDecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseMarkupdecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseProlog(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.parseDocument(libgcj.so.7)
   at gnu.xml.aelfred2.XmlParser.doParse(libgcj.so.7)
   at gnu.xml.aelfred2.SAXDriver.parse(libgcj.so.7)
   at gnu.xml.aelfred2.XmlReader.parse(libgcj.so.7)
   at javax.xml.parsers.SAXParser.parse(libgcj.so.7)
   at org.mortbay.xml.XmlParser.parse(XmlParser.java:218)
   at org.mortbay.xml.XmlParser.parse(XmlParser.java:235)
   at org.mortbay.jetty.servlet.XMLConfiguration.configureWebApp(XMLConfiguration.java:190)
   at org.mortbay.jetty.servlet.WebApplicationContext.configureWebApp(WebApplicationContext.java:422)
   at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:481)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
   at org.mortbay.util.Container.start(Container.java:73)
   at org.mortbay.jetty.Server.main(Server.java:466)
   at java.lang.reflect.Method.invoke(libgcj.so.7)
   at org.mortbay.start.Main.invokeMain(Main.java:151)
   at org.mortbay.start.Main.start(Main.java:481)
   at org.mortbay.start.Main.main(Main.java:99)


Tomcat:


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.apache.solr.core.SolrCore
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: org.apache.solr.core.SolrCore
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
        org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:278)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org.apache.solr.core.SolrCore
        java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
        org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:69)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.



Reply | Threaded
Open this post in threaded view
|

Re: !Solr

Yonik Seeley
Thanks for the report Karl, much appreciated.
It looks like a problem with your servlet container/JVM not liking the
XML entity "../../../conf/web.external.xml" in the web.xml
I guess the IBM JVM uses some stricter XML parsing rules or something.

If you remove that from the web.xml, it should be fine (in fact I had
removed it in the past already... I don't know how it came back).
I'll remove it now so it will be fixed for the next nightly build.

-Yonik


On 6/1/06, karl wettin <[hidden email]> wrote:

> Hi all,
>
> I need to get something up and running in 12 hours, so I thought
> it could be fun to see if Solr would work out of the box for me.
>
> Neither the example nor the dist war would start.
>
> No big deal, I'll hack something up another way. Just thought it
> would be a good thing to report this.
>
> I'm on IBM 1.5 on my PPC Linux.
>
> Here are the logs:
>
> kalle@limax:~/download/solr-nightly/example$ java -jar start.jar
> 18:52:16.463 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:110) >14> added org.mortbay.log.OutputStreamLogSink@301be5c0
> 18:52:16.215 INFO   [main] org.mortbay.util.FileResource.<clinit>(FileResource.java:61) >09> Checking Resource aliases
> 18:52:16.774 WARN!! [main] org.mortbay.xml.XmlParser.<init>(XmlParser.java:82) >10> Schema validation may not be supported
> 18:52:17.335 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >07> Version Jetty/5.1.11RC0
> 18:52:17.537 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >11> Started org.mortbay.jetty.servlet.ServletHandler@301c5280
> 18:52:17.645 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >08> Started ServletHttpContext[/,/]
> 18:52:17.756 INFO   [main] org.mortbay.http.SocketListener.start(SocketListener.java:206) >08> Started SocketListener on 127.0.0.1:8081
> 18:52:17.864 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >06> Started org.mortbay.jetty.Server@314eaed8
> 18:52:18.417 INFO   [main] org.mortbay.http.HttpServer.setStatsOn(HttpServer.java:1131) >12> Statistics on = false for org.mortbay.jetty.Server@314ead48
> 18:52:18.533 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >07> Version Jetty/5.1.11RC0
> 18:52:18.987 INFO   [main] org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:249) >10> Extract jar:file:/home/kalle/download/solr-nightly/example/webapps/solr.war!/ to /tmp/Jetty__8983__solr/webapp
> 18:52:19.427 WARN!! [main] org.mortbay.xml.XmlParser.<init>(XmlParser.java:82) >14> Schema validation may not be supported
> 18:52:22.850 WARN!! [main] org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:520) >09> Configuration error on jar:file:/home/kalle/download/solr-nightly/example/webapps/solr.war!/
> java.net.MalformedURLException: Absolute URL required with null context: ../../../conf/web.external.xml
>    at java.net.URL.<init>(libgcj.so.7)
>    at java.net.URL.<init>(libgcj.so.7)
>    at gnu.xml.aelfred2.SAXDriver.absolutize(libgcj.so.7)
Reply | Threaded
Open this post in threaded view
|

Re: !Solr

Karl Wettin-3
That was it. Runs smooth now.

On Thu, 2006-06-01 at 13:19 -0400, Yonik Seeley wrote:

> Thanks for the report Karl, much appreciated.
> It looks like a problem with your servlet container/JVM not liking the
> XML entity "../../../conf/web.external.xml" in the web.xml
> I guess the IBM JVM uses some stricter XML parsing rules or something.
>
> If you remove that from the web.xml, it should be fine (in fact I had
> removed it in the past already... I don't know how it came back).
> I'll remove it now so it will be fixed for the next nightly build.
>
> -Yonik
>
>
> On 6/1/06, karl wettin <[hidden email]> wrote:
> > Hi all,
> >
> > I need to get something up and running in 12 hours, so I thought
> > it could be fun to see if Solr would work out of the box for me.
> >
> > Neither the example nor the dist war would start.
> >
> > No big deal, I'll hack something up another way. Just thought it
> > would be a good thing to report this.
> >
> > I'm on IBM 1.5 on my PPC Linux.
> >
> > Here are the logs:
> >
> > kalle@limax:~/download/solr-nightly/example$ java -jar start.jar
> > 18:52:16.463 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:110) >14> added org.mortbay.log.OutputStreamLogSink@301be5c0
> > 18:52:16.215 INFO   [main] org.mortbay.util.FileResource.<clinit>(FileResource.java:61) >09> Checking Resource aliases
> > 18:52:16.774 WARN!! [main] org.mortbay.xml.XmlParser.<init>(XmlParser.java:82) >10> Schema validation may not be supported
> > 18:52:17.335 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >07> Version Jetty/5.1.11RC0
> > 18:52:17.537 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >11> Started org.mortbay.jetty.servlet.ServletHandler@301c5280
> > 18:52:17.645 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >08> Started ServletHttpContext[/,/]
> > 18:52:17.756 INFO   [main] org.mortbay.http.SocketListener.start(SocketListener.java:206) >08> Started SocketListener on 127.0.0.1:8081
> > 18:52:17.864 INFO   [main] org.mortbay.util.Container.start(Container.java:75) >06> Started org.mortbay.jetty.Server@314eaed8
> > 18:52:18.417 INFO   [main] org.mortbay.http.HttpServer.setStatsOn(HttpServer.java:1131) >12> Statistics on = false for org.mortbay.jetty.Server@314ead48
> > 18:52:18.533 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:686) >07> Version Jetty/5.1.11RC0
> > 18:52:18.987 INFO   [main] org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:249) >10> Extract jar:file:/home/kalle/download/solr-nightly/example/webapps/solr.war!/ to /tmp/Jetty__8983__solr/webapp
> > 18:52:19.427 WARN!! [main] org.mortbay.xml.XmlParser.<init>(XmlParser.java:82) >14> Schema validation may not be supported
> > 18:52:22.850 WARN!! [main] org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:520) >09> Configuration error on jar:file:/home/kalle/download/solr-nightly/example/webapps/solr.war!/
> > java.net.MalformedURLException: Absolute URL required with null context: ../../../conf/web.external.xml
> >    at java.net.URL.<init>(libgcj.so.7)
> >    at java.net.URL.<init>(libgcj.so.7)
> >    at gnu.xml.aelfred2.SAXDriver.absolutize(libgcj.so.7)
>