Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
I think that would be a good idea. That's more or less what I ended up doing myself. Gary On 12/8/2021 2:27 PM, Juan Pablo Santos Rodríguez wrote: Hi Gary, Glad that you were able to make it work :-) To avoid this kind of situations onwards I was thinking of tweaking the workDir property so that the generated work dir would be calculated as jspwiki.workDir + '/' + jspwiki.applicationName. Did you set up this last property in any of your 3 wikis? @all, do you think that would this be an improvement? Best regards, juan pablo El mié., 8 dic. 2021 8:22, Gary Kephart escribió: 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.(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
Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
Hi Gary, Glad that you were able to make it work :-) To avoid this kind of situations onwards I was thinking of tweaking the workDir property so that the generated work dir would be calculated as jspwiki.workDir + '/' + jspwiki.applicationName. Did you set up this last property in any of your 3 wikis? @all, do you think that would this be an improvement? Best regards, juan pablo El mié., 8 dic. 2021 8:22, Gary Kephart escribió: > 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.(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
Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
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 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 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=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.
Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
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.(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 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
Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
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.(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 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
Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
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 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 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=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.
Re: textToHtml methods from WikiEngine + ReferringPagesPlugin [was: Re: [ANNOUNCE] Apache JSPWiki 2.11.0 released]
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 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=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. 2021-12-07 08:10:24,712 DEBUG [io.undertow.request] (management I/O-2) Matched prefix path /management for path /management/subsystem/logging 2021-12-07 08:10:24,713 DEBUG [io.undertow.request.security] (management I/O-2) Setting authentication required for exchange HttpServerExchange{ GET /management/subsystem/logging request {Accept=[application/dmr-encoded], Accept-Language=[en-US,en;q=0.5], Accept-Encoding=[gzip, deflate], Sec-Fetch-Mode=[cors], DNT=[1], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0], X-Management-Client-Name=[HAL], Sec-Fetch-Dest=[empty], Connection=[keep-alive], Authorization=[Digest username="admin", realm="ManagementRealm", nonce="AQAHH+bodTW0dnQj1HaMofPAH9H4B9JYl9ax2iLZR2I1rN07ihKcc2E=", uri="/management/subsystem/logging?operation=resource=true=2", algorithm=MD5, response="4be79c1cd6cd8bdc2aafbb6ac31e7a3a", opaque="", qop=auth, nc=0042, cnonce="0362d73bd30b38cc"], Sec-Fetch-Site=[same-origin], Content-Type=[application/dmr-encoded], Cookie=[__utmc=111872281; Bugzilla_login_request_cookie=V8yrEohl5V; screenResolution=1920x1080], Referer=[http://localhost:9990/console/index.html], Host=[localhost:9990]} response {X-Frame-Options=[SAMEORIGIN]}} 2021-12-07 08:10:24,714 DEBUG [io.undertow.request.security] (management task-2) Authenticated as admin, roles [] 2021-12-07 08:10:24,755 DEBUG [org.apache.wiki.WatchDog] (JSPWiki Lucene Indexer) JSPWiki Lucene Indexer: Entering state Emptying index queue, expected completion in 60 s 2021-12-07 08:10:24,755 DEBUG