marcfr
Elite Observer

FS Search

Jump to solution

Hallo zusammen,

ich beschäftige mich gerade mit der Standard-Suche.

Meine fs-search.xml sieht folgendermaßen aus:

<?xml version="1.0" encoding="UTF-8"?>

<service class="de.espirit.firstspirit.opt.search.service.proxy.MultiServiceProxy">

  <attribute name="services" type="list">

  <service class="de.espirit.firstspirit.opt.search.service.adapter.ServerService">

    <server class="de.espirit.firstspirit.opt.search.server.SimpleServer">

      <engine name="myspider" class="de.espirit.firstspirit.opt.search.engine.spider.SpiderEngine">

        <attribute name="urls" type="list">

          <attribute>http://localhost:8080/de/holding/form.jsp</attribute>

        </attribute>

        <attribute name="index">C:/Search/</attribute>

        <attribute name="maxThreads">2</attribute>

        <attribute name="threadPriority">1</attribute>

        <attribute name="allowed" type="list">

          <attribute class="de.espirit.firstspirit.opt.search.engine.spider.link.RegexWebLinkFilter">http://localhost</attribute>

        </attribute>

        <attribute name="maxDocuments">1000</attribute>

        <attribute name="maxTime">60m</attribute>

      </engine>

    </server>

    <attribute name="localName">mysearch</attribute>

    <attribute name="bindTo">local</attribute>

    <attribute name="createRMI">false</attribute>

  </service>

  <service class="de.espirit.firstspirit.opt.search.service.RebuildIndexTimerService">

      <attribute name="engineURL">mysearch[myspider]</attribute>

      <attribute name="startTime">6:00</attribute>

      <attribute name="period">24h</attribute>

      <attribute name="startNow">true</attribute>

    </service>   

  </attribute>

</service>

Wenn ich auf http://localhost:8080/de/holding/form.jsp das Formular abschicken, dann wird an das SearchServlet weitergeleitet:

<form action="do.search" method="post">..</form>

Leider kommt nach Abschicken des Formulars jedes Mal die Meldung:

HTTP Status 400 - no urls specified!


type Status report

message no urls specified!

description The request sent by the client was syntactically incorrect (no urls specified!).


Kann mir da jemand weiterhelfen?

0 Kudos
1 Solution

Accepted Solutions

Hat sich mittlerweile erledigt. Mit der entsprechenden Modul-Version und der korrekten Config läuft nun alles

View solution in original post

0 Kudos
2 Replies
marcfr
Elite Observer

Im Log-File steht beim Server-Start als Fehler:

SCHWERWIEGEND: fss-Init: couldn't start service!

de.espirit.firstspirit.opt.search.util.xml.XmlFactoryException: couldn't instantiate element!: <server>

          at de.espirit.firstspirit.opt.search.util.DefaultFactory$ConfigurableElementFactory.createObject(DefaultFactory.java:108)

          at de.espirit.firstspirit.opt.search.util.DefaultFactory$ConfigurableElementFactory.create(DefaultFactory.java:92)

          at de.espirit.firstspirit.opt.search.util.xml.DefaultXmlDocumentFactory$ResolverElementFactory.create(DefaultXmlDocumentFactory.java:248)

          at de.espirit.firstspirit.opt.search.util.DefaultFactory$ConfigurableElementFactory.create(DefaultFactory.java:87)

          at de.espirit.firstspirit.opt.search.util.xml.DefaultXmlDocumentFactory$ResolverElementFactory.create(DefaultXmlDocumentFactory.java:248)

          at de.espirit.firstspirit.opt.search.util.xml.GenericElementFactory.create(GenericElementFactory.java:42)

          at de.espirit.firstspirit.opt.search.util.xml.DefaultXmlDocumentFactory$ResolverElementFactory.create(DefaultXmlDocumentFactory.java:248)

          at de.espirit.firstspirit.opt.search.util.DefaultFactory$ConfigurableElementFactory.create(DefaultFactory.java:87)

          at de.espirit.firstspirit.opt.search.util.xml.DefaultXmlDocumentFactory$ResolverElementFactory.create(DefaultXmlDocumentFactory.java:248)

          at de.espirit.firstspirit.opt.search.util.xml.DefaultXmlDocumentFactory.create(DefaultXmlDocumentFactory.java:129)

          at de.espirit.firstspirit.opt.search.admin.web.ServiceServlet.createService(ServiceServlet.java:189)

          at de.espirit.firstspirit.opt.search.admin.web.ServiceServlet.reload(ServiceServlet.java:141)

          at de.espirit.firstspirit.opt.search.admin.web.ServiceServlet.init(ServiceServlet.java:63)

          at javax.servlet.GenericServlet.init(GenericServlet.java:160)

          at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1201)

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1114)

          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1021)

          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)

          at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)

          at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoSuchMethodException: de.espirit.firstspirit.opt.search.server.SearchServer.<init>(java.util.Map)

          at java.lang.Class.getConstructor0(Unknown Source)

          at java.lang.Class.getConstructor(Unknown Source)

          at de.espirit.firstspirit.opt.search.util.DefaultFactory$ConfigurableElementFactory.createObject(DefaultFactory.java:106)

          ... 24 more

27.09.2011 16:51:45 org.apache.catalina.core.StandardContext loadOnStartup

SCHWERWIEGEND: Servlet /project_69502_live threw load() exception

javax.servlet.ServletException: couldn't start service: de.espirit.firstspirit.opt.search.util.xml.XmlFactoryException: couldn't instantiate element!: <server>

          at de.espirit.firstspirit.opt.search.admin.web.ServiceServlet.init(ServiceServlet.java:69)

          at javax.servlet.GenericServlet.init(GenericServlet.java:160)

          at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1201)

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1114)

          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1021)

          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)

          at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)

          at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

Ich sehe gerade, dass die FS-Version 4.2.446 ist und das Such-Modul 4.2.437

0 Kudos

Hat sich mittlerweile erledigt. Mit der entsprechenden Modul-Version und der korrekten Config läuft nun alles

0 Kudos