Archived from the Feedback page:
I'm going to be out of town a lot over the next week, so it may be a while before the next release. The following list is the current schedule of items that might make it into JAMWiki 0.3.4. Let me know if there's anything that seems to be missing:
Here's the first beta for 0.3.4:
This beta allows moving a page as described in #Move topic below, includes a few cleanups, and includes functionality to add a "n" next to new topics on the recent changes, contributions and history pages. This beta is not recommended for those who use JAMWiki in file persistency mode, although any testing feedback would be appreciated. -- Ryan 11-Sep-2006 23:23 PDT
Here's the second beta for 0.3.4:
This beta drops log4j and uses the java.util.logging classes for logging. Sites using a custom /WEB-INF/classes/log4j.properties will need to make appropriate updates to the /WEB-INF/classes/logging.properties file. For sites that are already using the java.util.logging classes, the new code will obey existing logging.property values. -- Ryan 13-Sep-2006 21:39 PDT
Here's the third beta for 0.3.4:
This beta (finally) introduces Scott's request for configurable signatures, includes some look & feel changes (recent changes page is sectioned by date, Special:Admin updated, user contributions link on history page), fixes a parser bug with tables, and probably adds one or two other changes that I'm forgetting. As always, feedback is appreciated. The plan for the next beta is to work on making the setup and upgrade process more robust, and once that's done I'll probably get ready to push the final release - hopefully by early next week. -- Ryan 14-Sep-2006 16:54 PDT
Here's the fourth beta for 0.3.4:
I'd really appreciate any testing and feedback for this beta - it's not well tested, so don't use it with production data, but it should mostly work. I'm not planning on adding any other significant changes and will just be making bug fixes and cleanups until JAMWiki 0.3.4 is released. Changes in this beta include:
There are other cleanups and changes in this release - check Subversion if you're interested. I'll be testing for the next couple of days, and will probably get a final release out early next week. -- Ryan 16-Sep-2006 22:24 PDT
Here is my log-excerpt:
2006-09-17 17:40:16,744 [main] INFO org.apache.catalina.core.StandardHostDeployer - Installing
web application at context path /jamwiki-0.3.4-beta3 from URL
file:/usr/share/tomcat5/webapps/jamwiki-0.3.4-beta3
Unable to load custom JAMWiki logging configuration, using system default Couldn't get lock
for %t/jamwiki.log.%g
java.io.IOException: Couldn't get lock for %t/jamwiki.log.%g
at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
at java.util.logging.FileHandler.<init>(FileHandler.java:346)
at org.jamwiki.utils.WikiLogger.initializeLogParams(WikiLogger.java:86)
at org.jamwiki.utils.WikiLogger.<clinit>(WikiLogger.java:46)
at org.jamwiki.servlets.JAMWikiFilter.<clinit>(JAMWikiFilter.java:39)
Stack trace trimmed
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2006-09-17 17:40:17,780 [main] INFO org.springframework.web.servlet.DispatcherServlet
- Initializing servlet 'jamwiki'
This looks pretty much like no accepted path for jamwiki.log. OK, I adjust the path again. -- Michael Habbert 17-Sep-2006 17:41
2006-09-17 17:44:43,844 [main] INFO org.apache.catalina.core.StandardHostDeployer - Installing
web application at context path /jamwiki-0.3.4-beta3 from URL
file:/usr/share/tomcat5/webapps/jamwiki-0.3.4-beta3
Unable to load custom JAMWiki logging configuration, using system default Couldn't get lock
for /jamwiki-0.3.4-beta3/jamwiki.log
java.io.IOException: Couldn't get lock for /jamwiki-0.3.4-beta3/jamwiki.log
at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
at java.util.logging.FileHandler.<init>(FileHandler.java:346)
at org.jamwiki.utils.WikiLogger.initializeLogParams(WikiLogger.java:86)
at org.jamwiki.utils.WikiLogger.<clinit>(WikiLogger.java:46)
at org.jamwiki.servlets.JAMWikiFilter.<clinit>(JAMWikiFilter.java:39)
stack trace trimmed
at java.lang.Class.newInstance(Class.java:303)
-- Michael 17-Sep-2006 17:46
-- Michael Habbert 17-Sep-2006 18:08
chmod -R 777 on the /jamwiki-0.3.4-beta3 directory, does the install work? Also, I've fixed the source code download links, thanks for pointing that out. -- Ryan 17-Sep-2006 19:04 PDTHere's yet another beta for JAMWiki 0.3.4:
This beta adds additional permission checking to validate that the log file can be written to and that other filesystem permissions are properly set. The setup process should throw an error if it encounters any problems. In addition, the upgrade process will also validate system settings and reports an error message for failed upgrades. This hopefully will be the last time that any translation files are changed prior to the next release - apologies to the translators for changing so many message strings during this release.
Michael, if you're still willing to help test please let me know if this release is more reliable for you. -- Ryan 17-Sep-2006 22:03 PDT
I tried again with 0.3.5. With the plain war-file -> see the log-messages:
Unable to load custom JAMWiki logging configuration, using system default Couldn't get lock
for %t/jamwiki.log.%g
java.io.IOException: Couldn't get lock for %t/jamwiki.log.%g
at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
at java.util.logging.FileHandler.<init>(FileHandler.java:346)
at org.jamwiki.utils.WikiLogger.initializeLogParams(WikiLogger.java:83)
at org.jamwiki.utils.WikiLogger.<clinit>(WikiLogger.java:46)
at org.jamwiki.servlets.JAMWikiFilter.<clinit>(JAMWikiFilter.java:39)
Stack trace trimmed
at java.lang.Class.newInstance(Class.java:303)
Adjusting the logging.properties-file: org.jamwiki.pattern=/jamwiki-0.3.4-beta5/log/jamwiki.log produces the following logs:
2006-09-18 12:45:06,004 [main] INFO org.apache.catalina.core.StandardHostDeployer - Removing
web application at context path /jamwiki-0.3.4-beta5
trimmed
2006-09-18 12:45:21,591 [main] INFO org.apache.catalina.core.StandardHostDeployer - Installing
web application at context path /jamwiki-0.3.4-beta5 from URL
file:/usr/share/tomcat5/webapps/jamwiki-0.3.4-beta5
Unable to load custom JAMWiki logging configuration, using system default
Couldn't get lock for /jamwiki-0.3.4-beta5/log/jamwiki.log
java.io.IOException: Couldn't get lock for /jamwiki-0.3.4-beta5/log/jamwiki.log
at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
at java.util.logging.FileHandler.<init>(FileHandler.java:346)
at org.jamwiki.utils.WikiLogger.initializeLogParams(WikiLogger.java:83)
at org.jamwiki.utils.WikiLogger.<clinit>(WikiLogger.java:46)
at org.jamwiki.servlets.JAMWikiFilter.<clinit>(JAMWikiFilter.java:39)
Stack trace trimmed
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:212)
Here's yet another beta for JAMWiki 0.3.4:
Scott, this adds some loosened rules for topic names, disallowing only newlines, \, <, and >, [ and ]. It also tightens the rules for user logins, allowing only letters, numbers and the underscore. It also adds some fixes for having percent signs in topic names, but I'm still getting an error from either Apache or Tomcat with those symbols. This needs more testing, but should be fairly stable. -- Ryan 19-Sep-2006 00:40 PDT
Here's hopefully one of the last betas for JAMWiki 0.3.4:
The only major change in this beta is a fix for user login validation. This code is also running on jamwiki.org as of five minutes ago. Testing is appreciated, and barring any surprises this should become the final JAMWiki 0.3.4 version in the next day or two. All of the translation files are currently somewhat out of date, so if any of the translators can update their language files it would be much appreciated. -- Ryan 19-Sep-2006 14:02 PDT
WARNING: Unable to load custom JAMWiki logging configuration, using system default Couldn't get lock for %t/jamwiki.log.%g
But I ignored it and started the configuration on: http://localhost:8080/jamwiki-0.3.4-beta7/en/Special:Setup with the know input;-). But:
INFO: Attempting to write file with empty virtual wiki for file topic.id Sep 20, 2006 4:42:46 PM org.jamwiki.utils.WikiLogger info INFO: Attempting to write file with empty virtual wiki for file topic_version.id Sep 20, 2006 4:42:46 PM org.jamwiki.utils.WikiLogger info INFO: Attempting to write file with empty virtual wiki for file admin.xml Sep 20, 2006 4:42:46 PM org.jamwiki.utils.WikiLogger severe SEVERE: Unable to create search instance /usr/share/tomcat5/webapps/jamwiki-0.3.4-beta7/test/base/search/indexen java.io.IOException: Cannot create directory: /temp at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:171) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:141) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:117) at org.jamwiki.search.LuceneSearchEngine.getSearchIndexPath(LuceneSearchEngine.java:318) at org.jamwiki.search.LuceneSearchEngine.addToIndex(LuceneSearchEngine.java:90) at org.jamwiki.persistency.PersistencyHandler.writeTopic(PersistencyHandler.java:997) at org.jamwiki.persistency.PersistencyHandler.setupSpecialPage(PersistencyHandler.java:779) at org.jamwiki.persistency.PersistencyHandler.setupSpecialPages(PersistencyHandler.java:811) at org.jamwiki.persistency.PersistencyHandler.initialize(PersistencyHandler.java:451) at org.jamwiki.persistency.file.FileHandler.initialize(FileHandler.java:535) at org.jamwiki.WikiBase.reset(WikiBase.java:170) at org.jamwiki.servlets.SetupServlet.initialize(SetupServlet.java:115) Stack trace trimmed at java.lang.Thread.run(Thread.java:595) Sep 20, 2006 4:42:46 PM org.jamwiki.utils.WikiLogger severe SEVERE: Exception while adding topic StartingPoints java.io.IOException: Cannot create directory: /temp at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:171) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:141) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:117) at org.jamwiki.search.LuceneSearchEngine.addToIndex(LuceneSearchEngine.java:90) at org.jamwiki.persistency.PersistencyHandler.writeTopic(PersistencyHandler.java:997) at org.jamwiki.persistency.PersistencyHandler.setupSpecialPage(PersistencyHandler.java:779) at org.jamwiki.persistency.PersistencyHandler.setupSpecialPages(PersistencyHandler.java:811) at org.jamwiki.persistency.PersistencyHandler.initialize(PersistencyHandler.java:
so its still the temp-dir for Lucene;-). But what will happen to the logging? if jamwiki could not get a lock on %t/jamwiki.log.%g? Where will all the logging go to catalina.out? OK for me but should jamawiki not check for the dir and the file and create it if not existing? I would suggest so. Next try I will start my mysql-db. -- Michael Habbert 20-Sep-2006 16:53
Here's hopefully the last beta in what has become an amazingly long release cycle for JAMWiki 0.3.4:
This beta should hopefully, finally, and with any luck fix Michael's issue with Lucene - it explicitly specifies that Lucene should use a JAMWiki directory for storing search file locks, and NOT use the java.io.tmpdir property since that directory is apparently not writable on all systems. The only other change is updated Hungarian translations from User:bdanee and new Polish translations from User:dlpa. I'll wait a day to see if this fixes Michael's problem, and will release JAMWiki 0.3.4 after that, barring any other surprises. -- Ryan 20-Sep-2006 12:25 PDT
Starting my usual configuration-attempt i receive the following:
INFO: Attempting to write file with empty virtual wiki for file topic_version.id Sep 21, 2006 9:42:34 AM org.jamwiki.utils.WikiLogger info INFO: Attempting to write file with empty virtual wiki for file admin.xml Sep 21, 2006 9:42:34 AM org.jamwiki.utils.WikiLogger severe SEVERE: Unable to create search instance /usr/share/tomcat5/webapps/jamwiki-0.3.4-beta8/test/base/search/indexen java.io.IOException: Cannot create directory: /temp at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:171) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:141) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:117) at org.jamwiki.search.LuceneSearchEngine.getSearchIndexPath(LuceneSearchEngine.java:318) at org.jamwiki.search.LuceneSearchEngine.addToIndex(LuceneSearchEngine.java:90) at org.jamwiki.persistency.PersistencyHandler.writeTopic(PersistencyHandler.java:997) at org.jamwiki.persistency.PersistencyHandler.setupSpecialPage(PersistencyHandler.java:779) at org.jamwiki.persistency.PersistencyHandler.setupSpecialPages(PersistencyHandler.java:811) at org.jamwiki.persistency.PersistencyHandler.initialize(PersistencyHandler.java:451) at org.jamwiki.persistency.file.FileHandler.initialize(FileHandler.java:535) Stack trace trimmed at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) [...] Sep 21, 2006 9:42:34 AM org.jamwiki.utils.WikiLogger severe SEVERE: Exception while adding topic StartingPoints java.io.IOException: Cannot create directory: /temp at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:171) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:141) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:117) at org.jamwiki.search.LuceneSearchEngine.addToIndex(LuceneSearchEngine.java:90) [...] INFO: Attempting to write file with empty virtual wiki for file admin.xml Sep 21, 2006 9:42:34 AM org.jamwiki.utils.WikiLogger severe SEVERE: Exception while adding topic LeftMenu java.io.IOException: Cannot create directory: /temp at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:171) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:141) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:117) at org.jamwiki.search.LuceneSearchEngine.addToIndex(LuceneSearchEngine.java:90) at org.jamwiki.persistency.PersistencyHandler.writeTopic(PersistencyHandler.java:997) [...]
The attempt to create the temp-dir occures serveral times. -- Michael Habbert, 21-Sep-2006 09:49
This one is for Michael only, provided I haven't scared him off.
If this doesn't work then there are two options:
Thanks again for all of your patience in testing this - my understanding is that it's unusual (but not that unusual) for a system to specify a bad java.io.tmpdir. It can be fixed on your system, but it would also be nice if JAMWiki could handle this case. I'll put out the final JAMWiki 0.3.4 tomorrow morning. -- Ryan 21-Sep-2006 01:01 PDT
Archived from the Feedback page:
When you view a page with redirect=no (for example: http://jamwiki.org/wiki/en/Baby_Elephants?redirect=no), it parses the # in the redirect command as if it were a numbered list.
Here's an example of how wikipedia handles it: http://en.wikipedia.org/w/index.php?title=Elephants&redirect=no
-- scroco 07-Sep-2006 15:36 PDT
Archived from the Feedback page:
If you move a topic, you can't move it back to it's original name (unless you first delete it's original topic, because a redirect has been placed there). Perhaps we could allow a move to an existing topic only if that existing topic is a redirect to the topic we are trying to move. -- scroco 07-Sep-2006 15:49 PDT
What I propose will not allow a backdoor for deletes because only an original topic would be allowed to be moved over a redirect. For example:
Does that make sense? -- scroco 08-Sep-2006 13:26 PDT
Archived from the Feedback page:
Michael's reported error due to the log file being read-only has gotten me looking more closely at JAMWiki's logging, and I'm wondering whether it would be worthwhile to switch from log4j to the Sun java.util.logging package. I'm more familiar with log4j because projects I've worked on in the past have required JDK 1.3 support, but moving to the java.util.logging package would save 350kb on the JAMWiki download size (no need for log4j.jar) and it looks like it provides the same functionality. In addition, it looks like it may be a bit easier to handle configuration errors with the java.util.logging class, which is the issue that Michael encountered.
Does anyone have any experience with the java.util.logging package? Is there any disadvantage to switching? -- Ryan 13-Sep-2006 11:51 PDT
Archived from the Feedback page:
I like the new format of the recent changes page, with the daily date headers. That's a nice improvement. -- scroco 15-Sep-2006 10:14 PDT
Archived from the Feedback page:
After correcting the log4j.properties to: log4j.appender.R.File=jamwiki-0.3.3/log/jamwiki.log (> java.io.FileNotFoundException: /jamwiki.log (Permission denied)<). The depoyment seems to go fine. But starting with the ../en/Special:Setup produced new trouble;-/
Ein unbekannter Systemfehler ist aufgetreten. Die Fehlermeldung lautet: Cannot create directory: /temp. Verzeichnis für das Dateisystem: /path_to_tomcat/jamwiki-0.3.3/test/base Persistenz: [...] Datei Upload Ordner (Webserver muss darauf zugreifen können): /path_to_tomcat/jamwiki-0.3.3/test/upload Relativer Pfad des Upload Ordner bzgl der Webserver Root.: jamwiki-0.3.3/test/upload Administrator Benutzer-Login: Neues Passwort: Neues Passwort bestätigen:
Both directories are under control (user:group) of tomcat. btw: I do not need a webserver (like apache)? the wording (webserver versus applicationserver alias tomcat) sometimes suggest it. At this moment I did not figure out where the temp-dir is from and whether or not the three directory-entries are valid?! Any Hints/Help is welcome.
-- Michael Habbert 14-Sep-2006 20:28
2006-09-14 20:17:51,968 [http-8080-Processor25] WARN org.jamwiki.Environment - Property file /srv/www/tomcat5/base/webapps/jamwiki-0.3.3/WEB-INF/classes/jamwiki.properties does not exist 2006-09-14 20:17:52,996 [http-8080-Processor25] ERROR org.jamwiki.servlets.SetupServlet - Setup error java.io.IOException: Cannot create directory: /temp at org.apache.lucene.store.FSDirectory.init(FSDirectory.java:171) at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:141) at org.jamwiki.search.LuceneSearchEngine.getIndexDirectory(LuceneSearchEngine.java:338) at org.jamwiki.search.LuceneSearchEngine.copyRamIndexToFileIndex(LuceneSearchEngine.java:152) at org.jamwiki.search.LuceneSearchEngine.refreshIndex(LuceneSearchEngine.java:427) at org.jamwiki.WikiBase.reset(WikiBase.java:173) at org.jamwiki.servlets.SetupServlet.initialize(SetupServlet.java:116) at org.jamwiki.servlets.SetupServlet.handleRequestInternal(SetupServlet.java:64) (stack trace trimmed) at java.lang.Thread.run(Thread.java:595) 2006-09-14 20:23:19,761 [http-8080-Processor24] ERROR org.jamwiki.servlets.SetupServlet - Setup error
"Property file /srv/www/tomcat5/base/webapps/jamwiki-0.3.3/WEB-INF/classes/jamwiki.properties does not exist"
As long as we will succeed with our effort to configure everything right so I can start with my experinces with jamwiki i won't complain the troubles to get there;-) Michael Habbert 16-Sep-2006 16:24
Hi Ryan, I found (with the help of newsgroup:de.comp.lang.java) the reason for the wrong temp-dir;-)
catalina.sh: | CATALINA_TMPDIR="$CATALINA_BASE"/temp | [...] | -Djava.io.tmpdir="$CATALINA_TMPDIR"
and CATALINA_BASE was empty;-). -- Michael Habbert 22-Sep-2006 15:07
Archived from the Feedback page:
Have just installed ver 0.3.3 after having to recreate new database and copy across all pages as something went wrong during the install - I was too busy doing other things so unfortunately can't comment on what went wrong.
In any case I have my files all up and running but for some reason images I have uploaded are not showing.
Contents of directory specified in admin page was updated (new file was inserted) with filename as in above error message.
Database records were updated (haven't listed all fields) with:
In my page I am referencing file as
[[Image:arctica1280.jpg]] but nothing showsClicking on "All Pages" does not show any of my image links but assume this is normal.
Any ideas? CB 02-Sep-2006 08:56 PDT
Found something but am not sure it is right even though it is working.
Under admin there is setting "Relative path from web server root to file upload directory" that I set to wiki/wiki and has worked with all prior versions.
Looking at the output source of web page of ver 0.3.0 and ver 0.3.3 sites I see version 0.3.0 img tag as
<a class="wikiimg" href="/jamwiki-0.3.0/en/Image:dcvFormat.png">
<img class="wikiimg" src="/wiki/wiki/2006/8/dcvFormat-01081311.png"
width="756" height="579" alt="" />
</a>
Under version 0.3.3 I see
<a class="wikiimg" href="/wiki/en/Image:dcvFormat.png">
<img class="wikiimg" src="wiki/wiki/2006/9/dcvFormat-02102211.png"
width="756" height="579" alt="" />
</a>
Clear difference in img src...
Changing relative path setting to /wiki/wiki under version 0.3.3 (which is now no longer relative) fixed the problem.
I have gone through several versions with relative path of wiki/wiki, but version 0.3.3 required a change - note I never upgraded to 0.3.1 or 0.3.2 so can't comment on these.
Under tomcat5/conf/Catalina/localhost I have wiki.xml file setting up /wiki as context (with linking enabled) and pointing to latest jamwiki version.
Under webapp/jamwiki-xxx I have symbolic link wiki pointing to my external storage directory - see below:
colinbes@colinbes-home:/usr/share/tomcat5/webapps/jamwiki-0.3.3$ ls -l total 96 -rw-rw-r-- 1 root colinbes 18915 2006-09-02 09:39 CHANGELOG.txt -rw-rw-r-- 1 root colinbes 1854 2006-09-02 09:39 CREDITS.txt drwxrwxr-x 2 root colinbes 4096 2006-09-02 09:39 images -rw-rw-r-- 1 root colinbes 1623 2006-09-02 09:39 index.jsp drwxrwxr-x 2 root colinbes 4096 2006-09-02 09:39 js -rw-rw-r-- 1 root colinbes 26980 2006-09-02 09:39 LICENSE.txt drwxrwxr-x 2 root colinbes 4096 2006-09-02 09:39 META-INF -rw-rw-r-- 1 root colinbes 8350 2006-09-02 09:39 README.txt drwxrwxr-x 5 root colinbes 4096 2006-09-02 11:00 WEB-INF lrwxrwxrwx 1 root colinbes 9 2006-09-02 09:46 wiki -> /var/wiki
Document says relative path must be relative to root. In my case I assume this is my wiki context (which would be same as jamwiki-0.3.3) - is this correct?
Thought I would provide this feedback, cheers CB