Yes, that was it. When I redefined the working directory on each of the JSPWiki instances to separate directories, everything started working.

Gary

On 12/7/2021 11:05 PM, Gary Kephart wrote:
A closer look at Wildfly's server log showed this:

2021-12-07 14:37:35,215 ERROR [org.apache.wiki.search.LuceneSearchProvider] (JSPWiki Lucene Indexer) Unable to start lucene: java.nio.channels.OverlappingFileLockException
    at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
    at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
    at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1107)
    at java.nio.channels.FileChannel.tryLock(FileChannel.java:1155)
    at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:217)
    at org.apache.lucene.store.Lock.obtain(Lock.java:77)
    at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:702)
    at org.apache.wiki.search.LuceneSearchProvider.getIndexWriter(LuceneSearchProvider.java:537)     at org.apache.wiki.search.LuceneSearchProvider.doFullLuceneReindex(LuceneSearchProvider.java:228)     at org.apache.wiki.search.LuceneSearchProvider$LuceneUpdater.startupTask(LuceneSearchProvider.java:775)     at org.apache.wiki.WikiBackgroundThread.run(WikiBackgroundThread.java:111)

but then later on, I see this:

2021-12-07 15:43:02,676 INFO [org.apache.wiki.search.LuceneSearchProvider] (ServerService Thread Pool -- 124) Lucene enabled, cache will be in: C:\Users\gary_kephart\AppData\Local\Temp\lucene 2021-12-07 15:43:02,677 INFO [org.apache.wiki.search.LuceneSearchProvider] (ServerService Thread Pool -- 74) Lucene enabled, cache will be in: C:\Users\GARY_K~1\AppData\Local\Temp\lucene 2021-12-07 15:43:02,680 WARN [org.apache.wiki.WikiBackgroundThread] (JSPWiki Lucene Indexer) Starting up background thread: JSPWiki Lucene Indexer. 2021-12-07 15:43:02,680 WARN [org.apache.wiki.WikiBackgroundThread] (JSPWiki Lucene Indexer) Starting up background thread: JSPWiki Lucene Indexer. 2021-12-07 15:43:02,682 INFO [org.apache.wiki.ajax.WikiAjaxDispatcherServlet] (ServerService Thread Pool -- 124) WikiAjaxDispatcherServlet registering search=org.apache.wiki.search.SearchManager$JSONSearch@315cce50 perm=("org.apache.wiki.auth.permissions.PagePermission","*:*","view") 2021-12-07 15:43:02,683 INFO [org.apache.wiki.ajax.WikiAjaxDispatcherServlet] (ServerService Thread Pool -- 74) WikiAjaxDispatcherServlet registering search=org.apache.wiki.search.SearchManager$JSONSearch@4fcdc468 perm=("org.apache.wiki.auth.permissions.PagePermission","*:*","view") 2021-12-07 15:43:02,686 WARN [org.apache.wiki.WikiBackgroundThread] (WatchDog for 'OC Politizone') Starting up background thread: WatchDog for 'OC Politizone'. 2021-12-07 15:43:02,687 WARN [org.apache.wiki.WikiBackgroundThread] (WatchDog for 'Campaigner Wiki') Starting up background thread: WatchDog for 'Campaigner Wiki'. 2021-12-07 15:43:02,688 INFO [org.apache.wiki.search.LuceneSearchProvider] (JSPWiki Lucene Indexer) Starting Lucene reindexing, this can take a couple of minutes... 2021-12-07 15:43:02,689 INFO [org.apache.wiki.search.LuceneSearchProvider] (JSPWiki Lucene Indexer) Starting Lucene reindexing, this can take a couple of minutes...

Note that "OC Politizone" is another JSPWiki that I'm running on my local Wildfly, as is "Campaigner Wiki". The first one is running JSPWiki v2.11.0-M6 and the second one is running JSPWiki v2.10.2, while the Encyclopaedia WoT is running JSPWiki 2.11.0. Could this be causing the problem? Three different JSPWikis, with three different versions, all trying to use the same lucene temp folder?

Gary

On 12/7/2021 4:15 PM, Gary Kephart wrote:
Juan Pablo,

I found a folder named "lucene" in the working directory and delete that, then stopped and restarted Wildfly. No change, sadly, in either the search or WikiCategory.

Yes, I will gladly add our site once we get this working.

Gary

On 12/7/2021 2:27 PM, Juan Pablo Santos Rodríguez wrote:
Hi Gary,

lucene index files are stored inside a dir called 'lucene-dir' inside
JSPWiki's working directory (/tmp or c:\temp if you haven't customised
the jspwiki.workDir property inside your jspwiki[-custom]-properties
file). Latest JSPWiki bundles lucene-backwards-codecs, which are
supposed to upgrade the Lucene indexes seamlessly, but if it isn't the
case, we should take a look at it to see what else is needed /
happening.

on a side note, once you're comfortable with the migration to JSPWiki,
would you like/mind adding your site to
https://jspwiki-wiki.apache.org/Wiki.jsp?page=JSPWikiSites ? :-)


best regards,
juan pablo

On Tue, Dec 7, 2021 at 5:29 PM Gary Kephart <gary_keph...@pobox.com> wrote:
Juan,

Attached is a log file. I don't see anything unusual like an exception
being thrown. I'm unfamiliar with Lucene beyond knowing it's for
searching. But it is interesting that the site search is also not
working. It returns no search results. I'm not sure which files are the
Lucene index files.

I'm updating from 2.11.0.M6, however, that may not matter as this is the
first time I've tried to get it running on my local machine. Before, I
just went ahead and put it on my host and dealt with the issues there.
But now it's time for me to switch my website from just an Apache
website to JSPWiki (I had both before and you could access the JSPWiki
from the Apache website, see http://encyclopaedia-wot.org/) and so I'm
testing this on my local machine for the first time before I put it on
my hosted account.

Gary

On 12/7/2021 2:54 AM, Juan Pablo Santos Rodríguez wrote:
Hi Gary,

cc'ing dev@j.a.o, as others migth find this interesting / being able
to help too..

Had to look in the ChangeLog.md file, indeed the textToHtml methods
were moved to RenderingManager on 2.11.0-M7-git-05.

As for the ReferringPagesPlugin, do you see something unusual in the
log? Can you set it to debug level to see if something stands out? My
guess would be to stop the application, delete the Lucene index files,
and start the application again

>From which version are you upgrading from?


best regards,
juan pablo


On Tue, Dec 7, 2021 at 8:33 AM Gary Kephart <gary_keph...@pobox.com> wrote:
Juan,

I think I figured this out:

       RenderingManager rm = engine.getManager(RenderingManager.class);
       String htmlText = rm.getHTML(context, text.toString());

However, I'm having problems with the ReferringPagesPlugin . It's not returning anything. All I get is "...nobody " even on the WikiCategories
page.

Thanks,
     Gary

On 12/6/2021 10:26 PM, Gary Kephart wrote:
Juan,

I'm recompiling my plugins and all is well except for this line:

          String a = engine.textToHTML(context, wlink);

What's the new way of doing this? This is in the old ImageMapPlus
plugin that I downloaded and recompiled to work for M6.

Gary

On 11/23/2021 3:13 AM, Juan Pablo Santos Rodríguez wrote:
The Apache JSPWiki team is pleased to announce the release of JSPWiki
2.11.0.

This is the first release after eight milestones on the 2.11 series of
Apache JSPWiki,
a feature-rich and extensible WikiWiki engine built around the
standard JEE
components.

The release is available here:
https://jspwiki-wiki.apache.org/Wiki.jsp?page=Downloads

JSPWiki Maven artifacts are available under org.apache.jspwiki groupId,
version 2.11.0

The full change log is available here:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310732&version=12345152


A curated change log is also available here:
https://jspwiki-wiki.apache.org/Wiki.jsp?page=NewIn2.11

We welcome your help and feedback. For more information on how to
report problems, and to get involved visit the project website at
http://jspwiki.apache.org/


The Apache JSPWiki Team

--
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart

"The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.


--
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart

"The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.




--
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart

"The penalty that good men pay for not being interested in politics is to be 
governed by lesser men." -- Plato.


--
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart

"The penalty that good men pay for not being interested in politics is to be 
governed by lesser men." -- Plato.

Reply via email to