I delete the jars, the lines of xwiki.cfg, restart tomcat, down tomcat,
add the jars again, the xwiki.cfg and restart tomcat again, now the
files are created in the lucene index dir, but still i have "noresults"
in the search form for any search, and there is nothing in xwiki.log ...
In the same tomcat now im using Zilverline, and this indexes (Lucene
too) are very well ...
There is other log or something to see why always get "noresults" ?
The index dir:
11/04/2006 14:44 <DIR> .
11/04/2006 14:44 <DIR> ..
11/04/2006 14:44 4 deletable
11/04/2006 14:44 81 segments
11/04/2006 14:41 115.407 _17.cfs
11/04/2006 14:44 137.378 _1i.cfs
11/04/2006 14:44 57.356 _1t.cfs
11/04/2006 14:44 52.720 _24.cfs
11/04/2006 14:44 55.589 _2f.cfs
11/04/2006 14:35 21.804 _a.cfs
11/04/2006 14:35 12.024 _l.cfs
11/04/2006 14:40 124.742 _w.cfs
10 archivos 577.105 bytes
2 dirs 64.725.090.816 bytes libres
The last log of a search:
15:57:35,765 WARN http-8080-Processor24
http://localhost:8080/xwiki/bin/view/Main/Busqueda
XWikiStatsServiceImpl:addCookie:474 - Setting cookie
XEC3UCMHOQCWFZUIONX3BSAH5TA7YGQH for name visitid with domain null and
path / and maxage 1326486
15:57:35,765 WARN http-8080-Processor24
http://localhost:8080/xwiki/bin/view/Main/Busqueda
XWikiStatsServiceImpl:findVisit:314 - Found visit with cookie
NGCJYDVQ9UVYZ6VXMFOZE4AQIHILELMT in session
2FA47B0E66C2E980FDDAAF7D2D56CCFE for request with cookie
XEC3UCMHOQCWFZUIONX3BSAH5TA7YGQH
15:57:35,875 ERROR http-8080-Processor24
http://localhost:8080/xwiki/bin/view/Main/Busqueda
AssertionFailure:<init>:22 - an assertion failure occured (this may
indicate a bug in Hibernate, but is more likely due to unsafe use of the
session)
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at
com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernateStore.java:350)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:982)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
15:57:36,125 WARN Finalizer JDBCContext:finalize:333 -
afterTransactionCompletion() was never called
Ludovic Dubost escribió:
Does the exception happen on reindexing (
#set($lucene = $xwiki.getPlugin("lucene"))
#if($lucene)
#set($documentCount = $lucene.rebuildIndex($xwiki,$context))
)
It should probably be created but I'm not sure at what point. Looking
at the code is the solution
Ludovic
Enrique Ferreyra a écrit :
ok, there is the Exception, some help to
interpret that ?
Why there is no segments directory ? i create a empty one, the plugin
should build the index or not ?
14:30:39,968 WARN http-8080-Processor25
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
14:30:44,140 WARN http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/WebHome
Configurator:configure:126 - No configuration found. Configuring
ehcache from ehcache-failsafe.xml found in the classpath:
jar:file:/C:/Apache/Tomcat%205.5/webapps/xwiki/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
14:30:49,406 ERROR http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/WebHome
XWikiHibernateStore:updateSchema:172 - Schema update deactivated for
wiki xwiki
14:30:50,859 ERROR http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/WebHome
LucenePlugin:createSearchers:281 - cannot open index c:\luc\
java.io.FileNotFoundException: C:\luc\segments (El sistema no puede
hallar el archivo especificado)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at
org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
at org.apache.lucene.store.Lock$With.run(Lock.java:109)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:95)
at
net.jkraemer.xwiki.plugins.lucene.LucenePlugin.createSearchers(LucenePlugin.java:277)
at
net.jkraemer.xwiki.plugins.lucene.LucenePlugin.openSearchers(LucenePlugin.java:297)
at
net.jkraemer.xwiki.plugins.lucene.LucenePlugin.init(LucenePlugin.java:238)
at
net.jkraemer.xwiki.plugins.lucene.LucenePlugin.<init>(LucenePlugin.java:75)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:58)
at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:77)
at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:425)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Ludovic Dubost escribió:
Hi,
Have you run the reindexing (there is a page also for this I think).
The plugin will only index on new modifications.
Do you see anything in the log file with debug turned on or do you
see the index changing on disk ?
Ludovic
Enrique Ferreyra a écrit :
Hi, i install Lucene plugin as instruction says,
but when "buil
index" finish indexing, i try i search and always get a no results...
In the xwiki.conf i add
xwiki.plugins=com.xpn.xwiki.plugin.calendar.CalendarPlugin,com.xpn.xwiki.plugin.feed.FeedPlugin,com.xpn.xwiki.plugin.ldap.LDAPPlugin,com.xpn.xwiki.plugin.google.GooglePlugin,com.xpn.xwiki.plugin.alexa.AlexaPlugin,com.xpn.xwiki.plugin.ipresolver.IPResolverPlugin,com.xpn.xwiki.plugin.terraserver.TerraServerPlugin,com.xpn.xwiki.plugin.google.AdWordsPlugin,com.xpn.xwiki.plugin.flickr.FlickrPlugin,com.xpn.xwiki.plugin.mail.MailPlugin,net.jkraemer.xwiki.plugins.lucene.LucenePlugin
#Lucene plugin
xwiki.plugins.lucene.indexdir=c:\\Lucene\\
xwiki.plugins.lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
xwiki.plugins.lucene.indexinterval=300
Then i copy the search form from plugin's zip, this in a test
enviroment with tomcat 5.5 and postgresql as database in a win
2000, the real enviroment is a sun appserver 8 with postgresql in a
red hat enterprise 4.
Some idea, i need advanced search things, other options ?
------------------------------------------------------------------------
--
You receive this message as a subscriber of the
xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
------------------------------------------------------------------------
--
You receive this message as a subscriber of the
xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
------------------------------------------------------------------------
--
You receive this message as a subscriber of the
xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina