tomcat and solr (lucene)

I

imgrey

Can anyone tell what's wrong with my tomcat5.5 installation ?


# syslog
Apr 4 12:57:36 debian jsvc.exec[17363]: 04.04.2008 12:57:36
org.apache.jk.commo
n.MsgAjp processHeader SEVERE: BAD packet signature 18245 04.04.2008
12:57:36 or
g.apache.jk.common.ChannelSocket processConnection SEVERE: Error,
processing con
nection java.lang.IndexOutOfBoundsException ^Iat
java.io.BufferedInputStream.rea
d(BufferedInputStream.java:306) ^Iat
org.apache.jk.common.ChannelSocket.read(Cha
nnelSocket.java:626) ^Iat
org.apache.jk.common.ChannelSocket.receive(ChannelSock
et.java:583) ^Iat
org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
cket.java:691) ^Iat org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(Ch
annelSocket.java:895) ^Iat org.apache.tomcat.util.threads.ThreadPool
$ControlRunn
able.run(ThreadPool.java:689) ^Iat java.lang.Thread.run(Thread.java:
595)
Apr 4 12:57:36 debian jsvc.exec[17363]: 04.04.2008 12:57:36
org.apache.catalina
..startup.Catalina start INFO: Server startup in 5405 ms



# /var/log/syslog/tomcat5.5/catalina.log
04.04.2008 13:28:06 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
04.04.2008 13:28:06 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
04.04.2008 13:28:06 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1057 ms
04.04.2008 13:28:06 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
04.04.2008 13:28:06 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
04.04.2008 13:28:06 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
04.04.2008 13:28:07 org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
04.04.2008 13:28:07 org.apache.solr.core.Config getInstanceDir
INFO: Using JNDI solr.home: /usr/share/solr
04.04.2008 13:28:07 org.apache.solr.core.Config setInstanceDir
INFO: Solr home set to '/usr/share/solr/'
04.04.2008 13:28:07 org.apache.solr.core.SolrConfig initConfig
INFO: Loaded SolrConfig: solrconfig.xml
04.04.2008 13:28:07 org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/etc/default
04.04.2008 13:28:07 org.apache.solr.core.SolrCore <init>
INFO: Opening new SolrCore at /usr/share/solr/, dataDir=/var/lib/solr/
data
04.04.2008 13:28:07 org.apache.solr.schema.IndexSchema readConfig
INFO: Reading Solr Schema
04.04.2008 13:28:07 org.apache.solr.schema.IndexSchema readConfig
INFO: Schema name=example
04.04.2008 13:28:08 org.apache.solr.schema.IndexSchema readConfig
INFO: default search field is text
04.04.2008 13:28:08 org.apache.solr.schema.IndexSchema readConfig
INFO: query parser default operator is OR
04.04.2008 13:28:08 org.apache.solr.schema.IndexSchema readConfig
INFO: unique key field: id
04.04.2008 13:28:08 org.apache.solr.core.SolrCore parseListener
INFO: Searching for listeners: //listener[@event="firstSearcher"]
04.04.2008 13:28:08 org.apache.solr.core.SolrCore parseListener
INFO: Searching for listeners: //listener[@event="newSearcher"]
04.04.2008 13:28:08 org.apache.solr.core.SolrCore initWriters
INFO: adding queryResponseWriter
xslt=org.apache.solr.request.XSLTResponseWriter
04.04.2008 13:28:08 org.apache.solr.request.XSLTResponseWriter init
INFO: xsltCacheLifetimeSeconds=5
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: standard=solr.StandardRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: dismax=solr.DisMaxRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: partitioned=solr.DisMaxRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: instock=solr.DisMaxRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding lazy requestHandler:
spellchecker=solr.SpellCheckerRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /update=solr.XmlUpdateRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding lazy requestHandler: /update/csv=solr.CSVRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /admin/
luke=org.apache.solr.handler.admin.LukeRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /admin/
system=org.apache.solr.handler.admin.SystemInfoHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /admin/
plugins=org.apache.solr.handler.admin.PluginInfoHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /admin/
threads=org.apache.solr.handler.admin.ThreadDumpHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /admin/
properties=org.apache.solr.handler.admin.PropertiesRequestHandler
04.04.2008 13:28:08 org.apache.solr.core.RequestHandlers
initHandlersFromConfig
INFO: adding requestHandler: /debug/dump=solr.DumpRequestHandler
04.04.2008 13:28:08 org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening Searcher@589e56 main
04.04.2008 13:28:08 org.apache.solr.core.SolrCore registerSearcher
INFO: Registered new searcher Searcher@589e56 main
04.04.2008 13:28:08
org.apache.solr.update.DirectUpdateHandler2$CommitTracker <init>
INFO: AutoCommit: disabled
04.04.2008 13:28:08 org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init() done
04.04.2008 13:28:08 org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
04.04.2008 13:28:08 org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
04.04.2008 13:28:08 org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done
04.04.2008 13:28:09 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
04.04.2008 13:28:09 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
04.04.2008 13:28:09 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/102 config=null
04.04.2008 13:28:09 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
04.04.2008 13:28:09 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2908 ms
04.04.2008 13:28:13 org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
04.04.2008 13:28:13 org.apache.jk.common.ChannelSocket
processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:583)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
691)
at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)



I wasn't change anything in config except
TOMCAT5_SECURITY=no
and
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.15


tomcat debian version: 5.5.25-5



Thanks
 
I

imgrey

nevermind.

Now I'd like to know what is wrong with my solr schema:

<?xml version="1.0" encoding="UTF-8" ?>
<schema name="df" version="1.1">
<types>
<fieldType name="string" class="solr.StrField"
sortMissingLast="true" omitNorms="true"/>
<fieldType name="boolean" class="solr.BoolField"
sortMissingLast="true" omitNorms="true"/>
<fieldType name="integer" class="solr.IntField" omitNorms="true"/>
<fieldType name="date" class="solr.DateField"
sortMissingLast="true" omitNorms="true"/>
<!-- A text field that uses WordDelimiterFilter to enable
splitting and matching of
words on case-change, alpha numeric boundaries, and non-
alphanumeric chars,
so that a query of "wifi" or "wi fi" could match a document
containing "Wi-Fi".
Synonyms and stopwords are customized by external files, and
stemming is enabled.
Duplicate tokens at the same position (which may result from
Stemmed Synonyms or
WordDelim parts) are removed.
-->
<!--for text and title fields-->
<fieldType name="text" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- in this example, we will only use synonyms at query time
<filter class="solr.SynonymFilterFactory"
synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
-->
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPorterFilterFactory"
protected="protwords.txt"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory"
synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="0"
catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPorterFilterFactory"
protected="protwords.txt"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>

<!-- Less flexible matching, but less false matches. Probably not
ideal for product names,
but may be good for SKUs. Can insert dashes in the wrong
place and still match. -->
<!-- for files field -->
<fieldType name="textTight" class="solr.TextField"
positionIncrementGap="100" >
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory"
synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="0" generateNumberParts="0" catenateWords="1"
catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPorterFilterFactory"
protected="protwords.txt"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
</types>
<fields>
<field name="id" type="integer" />
<field name="author" type="textTight" indexed="true" stored="true"
multiValued="true" required="true" />
<field name="title" type="text" indexed="true" stored="true"
required="true" />
<field name="text" type="text" indexed="true" stored="true"
required="true" multiValued="true" />
<field name="approved" type="boolean" sortMissingLast="true" />
<field name="created" type="date" required="true"
multiValued="false" />
<field name="file" type="textTight" indexed="true" stored="true"
multiValued="true" />
<field name="tag" type="textTight" indexed="true" stored="true"
multiValued="true" required="true" />
</fields>

<uniqueKey>id</uniqueKey>
<defaultSearchField>text</defaultSearchField>
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
<solrQueryParser defaultOperator="OR"/>
</schema>


When I'm posting data:
<add>
<doc>
<field name="id">3</field>
<field name="author">grey</field><field name="author">grey</field>
<field name="title">qwer</field>
<field name="text">sgsgsdg</field>

<field name="created">2008-04-04T11:12:39Z</field>
<field name="file">server.xml</field>
<field name="tag">qq</field>

</doc>
</add>


it returning this :
Posting file t.xml to http://localhost:8080/solr/update
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">16</int></lst>
</response>

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int
name="QTime">53</int></lst>
</response>


but data cannot be found
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,698
Latest member
LydiaHalle

Latest Threads

Top