This page is for comments, questions, or discussion items below. Related discussion pages include:
It would be easiest if any new discussion was listed under its own heading, which can be done by entering the following code:
==This is a new Heading==
This page tends to get crowded, so several discussions that have been resolved have been moved elsewhere:
Also see the Archived Feedback page for more old discussions.
Hi, I am trying to do some templates and infoboxes. I managed to create an infobox template with proper positioning, however I can not find a way to use conditions in it, for example to show {{{picture}}} only if the value is present. mediawiki offers this via parser functions. Example : this only shows value of some_field property if user specified its value
{{#if:{{{some_field<includeonly>|</includeonly>}}}|{{{some_field}}}
however this does not work for JAMwiki. So is there any way to include a property value only if it is specified? Any other info about using Templates (especially infoboxes) would be greatly appreciated. In case I was not clear enough , I would like to get this done: wikipedia:Infobox company
Thank you, Matus
{{if
|test=
|then=test is not empty
|else=test is empty
}}
Result: test is empty
{{if
|test=text
|then=test is not empty
|else=test is empty
}}
Result: test is not empty
Hi I've available some Mediawiki parser functions in the package info.bliki.wiki.template. In the expr subpackage I've started a parser for Mediawiki expressions (like in #Expr: and #Ifexpr). See testcases at the end of TemplateParserTest.java. You can test the #Expr: expression parser interactively with the Console application. -- Axel Kramer 06-Jun-2008 00:07 PDT
I am looking at the code for WikiReference and how it appears to serve as a container for some content, where a vector of citations is passed to the parser. My goal is to implement something along the lines of Purple Numbers that grant fine-grained addressability to sentences, paragraphs, images, etc. Is there an explanation of how WikiReference objects could be extended to support that?
I'm developing a web based database front end that integrates with a wiki. Basically, the idea is that every record can have an associated wiki page. There's a one to many relationship between wiki pages and db records (each wiki page can be linked to from more than one record) and wiki titles can be included in db reports.
JAMWiki is used because amongst other things its db schema is simple to understand and integrate with. You can query the db storage directly to retrieve titles and content. However, somewhere along the way I'll probably look at the interface to choose which wiki page to link to a db record. What would be good would be if I could use the Lucene search engine in JAMWiki to search for content just like you do in JAMWiki itself. I've had a look and can call the JSP search results page by URL directly with a search string. However, for integration I'll need to use a modified template with a different design and probably some JavaScript. Is it / could it be possible to include a parameter in the request to use an alternative JSP results template?
Does anyone have any alternative ideas?
A video showing the product is here: http://www.gtportalbase.com/video/gtwp_section_leader.htm. The wiki stuff is about halfway through.
82.32.115.35 21-Apr-2007 12:29 PDT
Our department wants to put non-public data into JW which can only be viewed by members of our department. It is not plain to me whether it's possible to define rolls to fit to this. -- Frank 14-Sep-2007 04:26 PDT
/WEB-INF/applicationContext-acegi-security.xml file to add the following lines to the "filterInvocationInterceptor" section such as:
<value>
PATTERN_TYPE_APACHE_ANT
/**/Special:Admin=ROLE_SYSADMIN
/**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW
/**/Special:Login=ROLE_ANONYMOUS,ROLE_USER
/**/Special:Maintenance=ROLE_SYSADMIN
/**/Special:Manage=ROLE_ADMIN
/**/Special:Move=ROLE_MOVE
/**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER
/**/Special:Roles=ROLE_SYSADMIN
/**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER
/**/Special:Translation=ROLE_TRANSLATE
/**/Special:Upload=ROLE_UPLOAD
/**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER
/**/DepartmentFoo/**=ROLE_DEPARTMENT_FOO
/**/Special:*DepartmentFoo/**=ROLE_DEPARTMENT_FOO
/**/*.jsp=ROLE_ANONYMOUS,ROLE_USER
/**=ROLE_VIEW
</value>
/WEB-INF/applicationContext-acegi-security.xml file, so if you take this approach you will also need to remember to re-add your customizations after any upgrade. -- Ryan 14-Sep-2007 06:22 PDT
Hi!
I post a question on Tech:User Permissions#Hide the Register Link (on top) for the same situation described by Frank. This workaround work for me too.
Thanks for this tips!!! --Rafael Torres 21-Jul-2008 07:09 PDT
I am trying to setup a JAMWiki for http://publicpress.org , a site that already has a user base with its own set of usernames/passwords etc. I implemented a UserHandler but it only seems to get invoked if I try to login with a user that I have created using JAMWiki. I don't really care about the "All Users" listing etc, so there is a way to easily make JAMWiki completely depend on my UserHandler? It seems to do some checking against some notion of an internal list of users, then not finding the user I want to authenticate, doesn't even call my UserHandler.
I would love to use my LDAP server to authenticate my JAMWiki users - but I was unable to find something like a howto/sample configuration/etc.? Did I miss anything? More precisely my current questions are:
(The other LDAP options on the admin page are pretty much straight forward.)
Thanks! -- Andy 03-Nov-2007 00:26 CET
I've been looking through the code. As an intermediate solutions I would suggest something similar to this:
UserHandler to also retrieve roles for the user (e. g. lookupWikiUser(userName)).UserDetailsService (JAMWikiDaoImpl, InMemoryDaoWithDefaultRoles) use the UserHandler (instead of the DataHandler).DatabaseUserHandler+LdapUserHandler to use the DataHandler to implement the extended UserHandler interface.AcegiLdapUserHandler to use Acegis methods to retrieve the data from LDAP. This would probably require a few more configuration properties but could also reuse a few of the LdapUserHandler.Would such a UserHandler-Implementation still need to create all users in the database (as the InMemoryDaoWithDefaultRoles does)?
What do you think? Did I miss anything? If I find a few hours I could try to provide you with a patch? --Andy 10-Nov-2007 06:34 PST
Hello Ryan,
I'm looking into how to get LDAP working on our Jamwiki installation but am unsuccessfull. Taking into account the date of the last post in this issue, I'm wondering, is there any change/progress on this item? Just commenting out the standard authentication and activating the LDAP authentication doesn't work for me, although credentials are correct and used on various servers in our network. Do I need to install additional things for the Spring Security to work or is it completely integrated in Jamwiki? Kind regards, Eric 22-06-09
Hi Ryan,
--yesesnono 12-Nov-2007 02:53 PST
Hi Ryan, Please, update before the next release, as did some corrections and may not be the last. I have a suggestion: the home page of the wiki could be translated to different languages. I think that would get a lot more people interested in JAMWiki.
One never know if there are people interested in translating jamwiki.org... before trying it. For instance, the www.delilinux.de page, wiki and forum were only in German and English few months ago. I translated it to Galician (fully) Spanish and Portuguese (most of it). Now you can check there that several more languages were included later. About the credits: Would it be possible to include "from bagonix.net and ciberirmandade.org" ?--mmeixide 22-Dec-2007 04:40 PST
I am back from holidays travel but I have some more free days. I have been checking MediaWiki, and they have translated the starting page to 32 languages but other pages are less translated (for instance "Navigation" page is translated to 11 languages). I agree that the pages you have selected are the more interesting to be transtated. I will start to translate it to Galician and Spanish if you create the pages (or if you tell me how to do it). I have found also a volunteer to work with the Portuguese one.--mmeixide 03-Jan-2008 00:47 PST
Hi again! I have translated the "Default Topics", both Galician and Spanish, and uploaded it here, with the Special:Upload page. I hope it is there... I will continue as soon as the virtual wikis are ready--mmeixide 07-Jan-2008 09:36 PST
I can't edit some pages where I forgot to translate some links: http://jamwiki.org/wiki/gl/Special:TopicsAdmin http://jamwiki.org/wiki/gl/Special:Allpages http://jamwiki.org/wiki/gl/Special:Specialpages
There are also some other minor changes that I don't know how to do: I can't change the Page title: LeftMenu, that should be: Menú esquerdo I can't change the Page title: BottomArea, that should be: Pé de páxina
May I have to download the pages again, correct it and upload it again?
The same comments go to the Spanish translation, that was made in paralell and with the same criteria
About your questions: Credits: I prefer bagonix.net (that is our local linux group thet will open to public soon) Publicizing translated files: I agree that a "languages" box like Mediawiki offers will be needed. What I have done with other translations is to publicize it in the net, in apppropiate places, and put a link in the wiki to all that places. That helps to publicize what has been done, to get more users for the trtanslated versions, and to encourage new translations. You can see an example here: http://www.delilinux.org/wiki/doku.php?id=galego:reports:reviews ... that's all for now, and happy new year, if I forgot to say that before (probably I did :) --mmeixide 12-Jan-2008 12:05 PST
Sorry I have explained it in a wrong way: I don't mean to change the page name, but the page title that appears in the page. I changed it in some pages, but I forgot to do it in some others. The same happens with some links that I forgot to change, and now I can't edit them. Anyway, if there is no way to change, it doesn't matter so much, as most of it is already translated.--mmeixide 14-Jan-2008 16:03 PST
We are interested in using a Wiki onboard of a research vessel, and in land at the same time. To sincronice both, we need incremental backups. My question is if JAMWiki has that feature.--mmeixide 18-Jan-2008 00:29 PST
--mmeixide 08-Feb-2008 00:40 PST There is no answer? :)--mmeixide 08-Feb-2008 00:40 PST
Hi there! We are hoping to use JAMWiki in a 'closed' Wiki scenario (I know it's kind of against the spirit of the application!). I have removed all permissions from the anonymous user, which appears to stop all unauthorised access to the wiki, but there doesn't appear to be a way for the admin user to create legitimate accounts for users. Any help gratefully received.
/WEB-INF/applicationContext-acegi-security.xml and update the "filterInvocationInterceptor" to look like the following:<bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> <property name="authenticationManager"> <ref local="authenticationManager" /> </property> <property name="accessDecisionManager"> <ref local="accessDecisionManager" /> </property> <property name="objectDefinitionSource"> <value> PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /upload/**=ROLE_ANONYMOUS,ROLE_USER /**/Special:Account=ROLE_ANONYMOUS,ROLE_USER /**=ROLE_VIEW </value> </property> </bean>
Issue with a new install after saving my database configuration (MySQL 4.1.22). I'm on Tomcat 6.0.16, JDK 1.6.04 and JAMWiki 0.6.3. The error I get is:
java.lang.Exception: Failure while executing CREATE TABLE jam_wiki_user ( wiki_user_id INTEGER NOT NULL, login VARCHAR(100) NOT NULL, display_name VARCHAR(100), create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, last_login_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, create_ip_address VARCHAR(39) NOT NULL, last_login_ip_address VARCHAR(39) NOT NULL, remember_key VARCHAR(100) NOT NULL, default_locale VARCHAR(8), CONSTRAINT jam_p_wuser PRIMARY KEY (wiki_user_id) ) ... Caused by: java.sql.SQLException: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Anyone seen this?
This mysql page http://dev.mysql.com/doc/refman/4.1/en/timestamp.html might help.
-Doug Donohoe (doug (at) donohoe (dot) info
I installed JAMWiki 0.6.3 and was impressed with ease of installation and configuration. Up and running in five minutes.
I work with a number of developers and we are using a few different Wikis to track code snippets and as a knowledge base for support of our systems. I noticed the ability to create user defined roles and I was interested in using roles to provide a private area for a select group. We keep password information for our systems that we want to share with a few developers. So I need the capability to limit viewing to the users with a specific role. Similar to the Admin functionality and is already built into JAMWiki. I could easily set up a user defined role and assign it to users but I could not find documentation on how the role is then used against a specific page. If this type of functionality available or is this still under development? If you can point me to any additional documentation I would appreciate it.
Thanks for a great Wiki. --Tom 28-Feb-2008 08:35 PST
/WEB-INF/applicationContext-acegi-security.xml file and modify the "filterInvocationInterceptor" bean section to restrict a certain path to users with ROLE_RESTRICTED:<property name="objectDefinitionSource"> <value> PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /upload/**=ROLE_ANONYMOUS,ROLE_USER /**/Restricted/**=ROLE_RESTRICTED /**=ROLE_VIEW </value> </property>
Ryan, thanks for the information on roles. Works great and provided exactly the functionality I was looking for. --Tom 02-Mar-2008 13:48 PST
I'd like to add database/SQL support to my JAMWiki (either using a JNDI connection or a JDBC one), then I'd like to display the retrieved data as a table and as a chart, in some case I'd like to make use of pivot tables and/or charts (eg. jPivot).
Then I'd like to add semantic functionallity (Jena and SDB).
How would I accomplish this at the time being? If not as some kind of an extension, maybe via the a detour, like incorprating JSP/JS/etc. code or pages.
--Sil68 02-Apr-2008 03:22 PDT
{{DBType=JNDI
|Resource=jdbc/MyDB
|Page-Break=30
|SQL=SELECT col1, col2, col4 FROM mytable WHERE col3 = 'xyz';
}}
or (in case of a JDBC connection):
{{DBType=JDBC
|URL=jdbc:h2:tcp://localhost:9029/MyDB
|User=sa
|Password=""
|Page-Break=30
|SQL=SELECT col1, col2, col4 FROM mytable WHERE col3 = 'xyz';
}}
with "Page-Break" meaning to repeat the header of the resulting table after every 30 rows.
As for the semantic enhancement, there's the Semantic MediaWiki extension available; on the Java/JSP side there exists amongst others makna built on top of Jena and SDB. And I'd like to add this functionality to JAMWiki (there are some special pages and tags).--Sil68 02-Apr-2008 12:35 PDT
Hi devs,
I've been investigating JAMWiki within my Bachelor's thesis "Application of security test tools in open source" at the Free University of Berlin (FU Berlin). Basically, I am looking for security measures which have been taken to prevent security leaks/vulnerabilities especially with security test tools which provide fuzzing capabilities for SQL injection, parameter tampering, path traversal etc.
So far, I have searched the repository and the homepage. Surefire runs JUnit test cases which are not designed to do any security testing. The homepage revealed some ideas about fuzzing (not available thru lucene anymore) but no measures in this direction have been taken.
Are any measures taken whatsoever to assure security with testing tools, a special test plan or functional requirements?
Thanks in advance,
Michael
/jamwiki-core/src/test/resources/data/topics/ directory and contain "XSS" in the name.I set up jamwiki late one night a couple of weeks ago. Now I'm ready to spend a little more time configuring it, but I can't remember the administrative password. I've tried everything I can think of, but no luck. Is there anything I can do to reset the password other than starting over with a new installation?
JAMWiki stores user passwords in the database (in the jam_wiki_user and jam_wiki_user_info tables), so if you have access to the database you can see and edit the encrypted passwords. I used this to reset the admin password to the know password of a non-admin user using the following sql:
update jam_wiki_user_info set encoded_password = (select encoded_password from jam_wiki_user_info where login = 'user-id-with-known-password') where wiki_user_id = 1; update jam_wiki_user set remember_key = (select remember_key from jam_wiki_user where login = 'user-id-with-known-password') where wiki_user_id = 1; commit;
If you're using the HSQL database it may be necessary to shut down the appserver first (to get exclusive access to the database files).
Was there a default password? Is there any chance I may not have changed it, or did I have to enter a password at some point?
If I need to start over, what's the least I need to do? It appears that the only change that's taken place to the files in the jamwiki webapp folder is that /jamwiki/WEB-INF/classes/jamwiki.properties has been created. Everything else has a modification date of 3/16 or older. Can I just delete that file and restart Tomcat?
How much of the database do I need to get rid of to make it think it hasn't been set up yet? Tables or just the data?
Thanks!
Thanks again, Ryan. I had already dropped all the tables before I read this, since I didn't have any data there yet, so I can't tell you if it works to just delete jamwiki.properties. I thought I'd at least have to delete the admin identity from the user and user_info tables, but maybe not. Anyway, I've got it up and running again.
In case you're interested, I'm running it in Tomcat 6.0.14 with PostgreSQL 8.3.1 on Mac OS X 10.4.11.
It would be better if jamwiki provides a support for approval on registration. so that we can control the unknown users editing the content(in our case our corporate knowledge base).
For time being could you please help me on removing the link "register" on top right corner in wiki pages. --Durga 28-May-2008 11:50 PDT
/WEB-INF/applicationContext-acegi-security.xml. This will prevent any non-logged in users from accessing the registration page:
<bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> <property name="authenticationManager" ref="authenticationManager" /> <property name="accessDecisionManager" ref="accessDecisionManager" /> <property name="objectDefinitionSource"> <value><![CDATA[ PATTERN_TYPE_APACHE_ANT /**/Special:Admin=ROLE_SYSADMIN /**/Special:Edit=ROLE_EDIT_EXISTING,ROLE_EDIT_NEW /**/Special:Login=ROLE_ANONYMOUS,ROLE_USER /**/Special:Maintenance=ROLE_SYSADMIN /**/Special:Manage=ROLE_ADMIN /**/Special:Move=ROLE_MOVE /**/Special:RecentChangesFeed=ROLE_ANONYMOUS,ROLE_USER /**/Special:Roles=ROLE_SYSADMIN /**/Special:Setup=ROLE_ANONYMOUS,ROLE_USER /**/Special:Translation=ROLE_TRANSLATE /**/Special:Upload=ROLE_UPLOAD /**/Special:Upgrade=ROLE_ANONYMOUS,ROLE_USER /**/Special:Account=ROLE_USER /**/*.jsp=ROLE_ANONYMOUS,ROLE_USER /**/*.css=ROLE_ANONYMOUS,ROLE_USER /images/**=ROLE_ANONYMOUS,ROLE_USER /upload/**=ROLE_ANONYMOUS,ROLE_USER /**=ROLE_VIEW ]]></value> </property> </bean>
It would be nice if the user is notified if any change in his topic/pages. Example i posted my feedback here. and i need to continuesly come and visit this page to see if anyone replied to this thread. --Durga 28-May-2008 11:52 PDT
I'll be heading off on a much-needed vacation starting this weekend and lasting until mid-July, so development on the next version of JAMWiki probably won't start in earnest until I return. While I'm gone I'll probably be restricting edits on jamwiki.org to registered users to cut down on any spam, although I'll try to check in occasionally to see how things are going - if anyone else notices spam, unanswered user queries or other issues I'd be grateful for any help in resolving things.
The big plan for the next release is upgrading Acegi, hopefully making LDAP integration simpler in the process and adding some flexibility for those who want to add more control over users. In addition, folks at my workplace are grumbling about not being able to set email alerts when topics are changed, so that may be climbing up the priority list. And as always I suspect that a few contributors may show up with great ideas for features or changes of their own to implement. -- Ryan 04-Jun-2008 21:57 PDT
While a final release of JAMWiki 0.7.0 remains at least a couple of months away, there is a significant amount of work that has already been completed - see the Changelog for the latest updates. The upgrade to Spring Security 2.0 is more-or-less done, although a major piece of work remains in making JAMWiki utilize Spring Security's LDAP and OpenID integrations.
I usually only release the first beta when all database schema updates have been made, and since at this point it's not clear if additional schema changes will be required I'm holding off on a beta. However, if anyone is interested in testing but cannot build from source, please add a comment here and I can put something together. As always, feedback and bug reports are appreciated. -- Ryan 12-Sep-2008 22:35 PDT
In order to get bugfixes out without having to wait longer for 0.7.0 to be finished I've merged all bugfixes from trunk to a 0.6.7 branch. The first beta is available below:
There won't be any new features in this release, but a list of bugfixes and translation updates are available in the CHANGELOG. Feedback is appreciated - barring any surprises I'll make a final release in the next 1-2 weeks. -- Ryan 17-Sep-2008 22:15 PDT
The release notes are done and I've done a quick test of a clean install and an upgrade (both seem fine), so as far as I'm aware JAMWiki 0.6.7 is ready for release. I'll wait until tomorrow to do the final push, so if anyone has a bug report, translation update, or other change that needs to go in speak up now. -- Ryan 27-Sep-2008 15:26 PDT
Is possible translate the contentes of Special:Specialpages ? thanks! --Rafael Torres 21-Jul-2008 07:23 PDT
????--EDVJAR 28-Jul-2008 12:11 PDT
Hey, great piece of work you've got going here. I'm relatively new to the whole wiki deployment scene and I was wondering if it was possible to edit or create pages using code? Sort of an API for adding data to a page without direct user involvement. Say that some data became available, could I automatically take that data and insert it into a page without a user having to know that the data is now available?
Is there a way to automate virtual wikis so the web.xml doesn't have to be updated and the container restarted? I want to automate the creation of virtual wikis and I don't want any of these manual steps in there. -Will 10/30/2008 2:00 MST
I tried to set upload directory to a folder outside WAR. Upload were working fine, downloads were failing. This was obviously because, upload is expected to happen within war. It is fairly easy to keep uploads outside the war by writing a downloadservlet or implementation of JAMWikiServlet which would be responsible to download the files requested. I just implemented this feature to keep uploads outside of war. All I changed is constructing the link for files and images to point it to a download servlet with request parameter as actual file url of the file. It works perfectly for image (inline) and file download. Is there a plan to implement this? Would my implementation be welcomed? BTW, I like JAMWiki after I evaluated JSPWiki and XWiki. I liked its simplicity and code. Way to JAMWiki!!! -- Satish 12-Nov-2008 22:14 EST
I'm using a role to keep a few pages that are restricted so a number of developers in my group can share passwords on our Wiki. I just realized that the restricted pages are being indexed for searching so if I do a search for a keywork like "password" I often get hits on my restricted pages and each hit provides enough context that the passwords are usually visible in the search page. Is there any functionality provided by the search engine to stop indexing of specific pages or better yet to stop searching based on a role? I've been using JAMWiki for about a year now and I'm really impressed at how solid it is and how easy the upgrades have gone. Thanks. --Tom Schueller 03-Dec-2008 23:31 PST
org.jamwiki.search.LuceneSearchEngine.findResults() method to include Lucene's QueryFilter method to exclude topics with certain names. Alternatively you might be able to use Javascript to add an exclusion (such as "-specific_term_to_exclude") to all queries. Longer term some sort of configurable plugin system will probably need to be built, but if a quick fix is needed then this solution should (hopefully!) be enough to get you going. -- Ryan 04-Dec-2008 20:10 PSTHi Ryan, there is still the old problem with the StartingPage. I did install the jamwiki 0.6.7 on my local computer and everything went fine but the StartingPoints - Page had a questionmark and also the link in the left-navigation bar! Wenn I did change the web.xml to use the german context - changed en to de - I got a really strange StartingPoints-page after the restart of the tomcat6.
<script type="text/javascript">
function cancel() {
history.go(-1);
}
</script>
<div class="contents">
<div class="message">Ein Systemfehler ist aufgetreten. Die Fehlermeldung lautet:</div>
<div class="message red">Ein unbekannter Systemfehler ist aufgetreten. Die Fehlermeldung lautet: java.lang.NullPointerException.</div>
<form><input type="button" onClick="cancel();" value="Zurück" /></form>
</div>
<br />
</div>
</div>
and the logs say:
2009-01-04 15:39:47,259 CONFIG: org.jamwiki.utils.WikiLogger - JAMWiki log initialized from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/logging.properties with pattern %t/jamwiki.log.%g
2009-01-04 15:39:47,401 CONFIG: org.jamwiki.Environment - Loading properties from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/jamwiki.properties
2009-01-04 15:39:47,467 CONFIG: org.jamwiki.Environment - Loading properties from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/sql.ansi.properties
2009-01-04 15:39:47,474 CONFIG: org.jamwiki.Environment - Loading properties from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/sql.ansi.properties
2009-01-04 15:39:47,476 CONFIG: org.jamwiki.Environment - Loading properties from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/sql.ansi.properties
2009-01-04 15:39:47,479 CONFIG: org.jamwiki.Environment - Loading properties from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/sql.mysql.properties
2009-01-04 15:40:22,903 SEVERE: org.jamwiki.servlets.ServletUtil - Servlet error
java.lang.NullPointerException
at org.jamwiki.servlets.TopicServlet.view(TopicServlet.java:57)
at org.jamwiki.servlets.TopicServlet.handleJAMWikiRequest(TopicServlet.java:45)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:74)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.jamwiki.authentication.JAMWikiExceptionMessageFilter.doFilter(JAMWikiExceptionMessageFilter.java:71)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.jamwiki.authentication.JAMWikiAnonymousProcessingFilter.doFilter(JAMWikiAnonymousProcessingFilter.java:54)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
2009-01-04 15:40:22,981 SEVERE: org.jamwiki.servlets.ServletUtil - No virtual wiki found for de
2009-01-04 15:40:23,078 CONFIG: org.jamwiki.WikiConfiguration - Configuration values loaded from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/jamwiki-configuration.xml
2009-01-04 15:40:23,096 WARNING: org.jamwiki.servlets.ServletUtil - error getting cached page de / LeftMenu
java.lang.NullPointerException
at org.jamwiki.servlets.ServletUtil.cachedContent(ServletUtil.java:254)
at org.jamwiki.servlets.ServletUtil.buildLayout(ServletUtil.java:101)
at org.jamwiki.servlets.ServletUtil.loadDefaults(ServletUtil.java:563)
at org.jamwiki.servlets.ServletUtil.viewError(ServletUtil.java:771)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:79)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.jamwiki.authentication.JAMWikiExceptionMessageFilter.doFilter(JAMWikiExceptionMessageFilter.java:71)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.jamwiki.authentication.JAMWikiAnonymousProcessingFilter.doFilter(JAMWikiAnonymousProcessingFilter.java:54)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
2009-01-04 15:40:23,260 INFO: org.jamwiki.parser.jflex.JFlexParser - Parse time (parseHTML) for BottomArea (0.066 s.)
2009-01-04 15:40:24,927 CONFIG: org.jamwiki.Environment - Loading properties from /var/lib/tomcat6/webapps/jamwiki/WEB-INF/classes/interwiki.properties
So, is this the old bug - we talked about earlier (identified with my first webtests?). Anyway I will install the 0.7.0 version now and try again. -- greetings from 95.114.106.229 04-Jan-2009 06:51 PST
This seems to be very serious! A lot of pages are defekt or only work if I login as registered user - but most of the time I get forwarded to the englisch context. -- greetings Mbert.
2009-01-04 16:21:42,740 SEVERE: org.jamwiki.servlets.ServletUtil - No virtual wiki found for de
2009-01-04 16:21:42,741 WARNING: org.jamwiki.servlets.ServletUtil - error getting cached page de / LeftMenu
java.lang.NullPointerException
at org.jamwiki.servlets.ServletUtil.cachedContent(ServletUtil.java:254)
at org.jamwiki.servlets.ServletUtil.buildLayout(ServletUtil.java:101)
at org.jamwiki.servlets.ServletUtil.loadDefaults(ServletUtil.java:563)
at org.jamwiki.servlets.ServletUtil.viewError(ServletUtil.java:771)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:79)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.jamwiki.authentication.JAMWikiExceptionMessageFilter.doFilter(JAMWikiExceptionMessageFilter.java:71)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.jamwiki.authentication.JAMWikiAnonymousProcessingFilter.doFilter(JAMWikiAnonymousProcessingFilter.java:54)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
Hi Ryan, for me it is at this moment impossible to use the german context (de) with jamwiki 0.6.7. can you please fix it? After my update to ubuntu 8.10 I'm a little bit lost in space with my jamwiki installation - upgrading to 0.6.7 .... ;-/ -- mbert 05-Jan-2009 00:55 PST
TopicServlet that is failing is the following:VirtualWiki virtualWiki = WikiBase.getDataHandler().lookupVirtualWiki(virtualWikiName); topic = virtualWiki.getDefaultTopicName();
web.xml should probably look something like the following:
<servlet-mapping>
<servlet-name>jamwiki</servlet-name>
<url-pattern>/en/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jamwiki</servlet-name>
<url-pattern>/de/*</url-pattern>
</servlet-mapping>
| Name | Default Topic |
| en | StartingPoints |
| de | StartingPoints |
Hi Ryan, I just made the post and did login with my account. It seem to work, but wenn I did my post and signed with:
~~~~
it was not recognized as my account-shorts... And with the save action I was loged out. -- 95.114.106.229 04-Jan-2009 07:03 PST
Hi Ryan, this is afaik an acceptable behavior - if expected and documented. I wonder that I do not pass that way earlier ;-). -- mbert 04-Jan-2009 09:03 PST
On the Special:History-Page the username of the author is listed (usernames are stored in [jam_recent_change]). Wouldn't it be nice if the displayName of the user (if a displayName exists) would be printed instead? --hp 08-Jan-2009 23:30 PST
"$(userid)" displays as wrh2 "$(FirstName)$(LastName)" displays as Ryan Holliday "$(LastName),$(FirstName) ($(userid))" displays as Holliday, Ryan (wrh2) "$(LastName),$(FirstName) (?(userid))" displays as Holliday, Ryan unless there is a duplicate Holliday, Ryan in which case it displays as above
I'm creating an internal website and am new to jamwiki. Attempting to link to existing internal files [File://], but folders and file names have spaces. Is there a way to get around the spaces for File links. I tried + and %20, but those must only work with external links.
I have a similar problem accessing files links that belong to a network and local drive. I have tried by putting the internal URL link File://device/path/fileName, and I was surprised to see that it doesn't work with firefox but it does work with explorer. This link http://kb.mozillazine.org/Links_to_local_pages_don%27t_work#Firefox_1.5.2C_Mozilla_1.8.2C_and_newer gives some solutions that require firefox extensions. Is there any other known solution for this issue?
12-Jan-2009 Alessandra
tapaya 28-Jan-2009 11:49 PST
Currently running Windows XP / Tomcat 6.0 / HSQLDB (internal db) / Sun JDK 1.4 / JAMWiki 0.6.7.
I tried to move from the internal HSQLDB to a H2 database, so I did the following:
... database-type=org.jamwiki.db.AnsiDataHandler db-password= db-user=sa dbcp-max-active=10 dbcp-max-idle=3 dbcp-min-evictable-idle-time=600 dbcp-num-tests-per-eviction-run=5 dbcp-test-on-borrow=true dbcp-test-on-return=true dbcp-test-while-idle=true dbcp-time-between-eviction-runs=120 dbcp-when-exhausted-action=2 default-topic=StartingPoints driver=org.h2.Driver ... homeDir=C\:\\Programme\\Apache Software Foundation\\Tomcat 6.0\\webapps\\jamwiki-war-0.6.7\\JAMWiki-Systemdateien ... persistenceType=DATABASE print-new-window=true props-initialized=true ... url=jdbc\:h2\:tcp\://localhost/~/../../Programme/Apache Software Foundation/Tomcat 6.0/webapps/jamwiki-war-0.6.7/JAMWiki-Systemdateien/h2/jamwiki use-preview=true use-spam-filter=true user-handler=org.jamwiki.db.DatabaseUserHandler ...
What was I missing?
Can anyone provide step-by-step instructions on how to use H2 database?
2009-01-29 09:08:24,504 SEVERE: org.jamwiki.jsp - Error in JSP page
javax.servlet.jsp.JspException: java.lang.Exception: Failure while executing select * from jam_virtual_wiki
...
...
...
Caused by: org.h2.jdbc.JdbcSQLException: Tabelle JAM_VIRTUAL_WIKI nicht gefunden
Table JAM_VIRTUAL_WIKI not found; SQL statement:
select * from jam_virtual_wiki [42102-107]
at org.h2.message.Message.getSQLException(Message.java:103)
at org.h2.message.Message.getSQLException(Message.java:114)
at org.h2.message.Message.getSQLException(Message.java:77)
at org.h2.command.Parser.readTableOrView(Parser.java:4245)
at org.h2.command.Parser.readTableFilter(Parser.java:973)
at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1504)
at org.h2.command.Parser.parseSelectSimple(Parser.java:1601)
at org.h2.command.Parser.parseSelectSub(Parser.java:1498)
at org.h2.command.Parser.parseSelectUnion(Parser.java:1343)
at org.h2.command.Parser.parseSelect(Parser.java:1331)
at org.h2.command.Parser.parsePrepared(Parser.java:392)
at org.h2.command.Parser.parse(Parser.java:288)
at org.h2.command.Parser.parse(Parser.java:260)
at org.h2.command.Parser.prepareCommand(Parser.java:232)
at org.h2.engine.Session.prepareLocal(Session.java:406)
at org.h2.engine.Session.prepareCommand(Session.java:367)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1048)
at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:71)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at org.jamwiki.db.DatabaseConnection.executeQuery(DatabaseConnection.java:169)
... 72 more
So it seems like the JAM_VIRTUAL_WIKI table doesn't exist; I was under the impression that any tables be created when first accessed ... -- tapaya 29-Jan-2009 00:31 PST
/WEB-INF/classes/sql.ansi.properties file:CREATE UNIQUE INDEX jam_u_wuser_login on jam_wiki_user (lower(login))
Syntax Fehler in SQL Befehl CREATE UNIQUE INDEX JAM_U_WUSER_LOGIN ON JAM_WIKI_USER (LOWER([*]LOGIN)) ; erwartet ) Syntax error in SQL statement CREATE UNIQUE INDEX JAM_U_WUSER_LOGIN ON JAM_WIKI_USER (LOWER([*]LOGIN)) ; expected ); SQL statement: CREATE UNIQUE INDEX jam_u_wuser_login on jam_wiki_user (lower(login)) [42001-107]
/WEB-INF/classes/sql.ansi.properties file to the following and re-testing:CREATE UNIQUE INDEX jam_u_wuser_login on jam_wiki_user (login)
NULL nicht zulssig fr Feld REMEMBER_KEY NULL not allowed for column REMEMBER_KEY [90006-107]
I tried to move my wiki from the internal HSQLDB to a H2 (cp. Installation#H2). This worked fine with a fresh JAMWiki installation with no user data. But now that my database (jamwiki.data) has grown for some time it fails with the error message Referential integrity constraint violation: JAM_F_CAT_CHILD_ID: PUBLIC.JAM_CATEGORY FOREIGN KEY(CHILD_TOPIC_ID) REFERENCES PUBLIC.JAM_TOPIC(TOPIC_ID) [23002-107] (here's the entire jamwiki.log.0). Looks like a bug in the database migration code, right? --tapaya 04-Feb-2009 02:09 PST
/wiki/ while my personal version is deployed as a separate application. Hopefully this solution will work for you. Thanks again for the testing and bug reports. -- Ryan • (comments) • 08-Feb-2009 19:54 PST
I want to put a custom banner across the top of my wiki. I have searched everywhere and tried updating the css but I can not work out how to do this. Is this feature supported? If so, how can i do this?
/WEB-INF/jsp/wiki.jsp file and the StyleSheet topic to get the look that you want. Hope that helps! -- Ryan • (comments) • 05-Feb-2009 20:38 PSTIMHO Wiki Syntax#Links should mention that one can not only link to HTTP sites but also to the file system (at least on Windows and provided that the browser settings allow it):
| What it looks like | What you type |
|---|---|
| file:///C:/link/to/some/file/or/folder | [file:///C:/link/to/some/file/or/folder] |
--tapaya 17-Feb-2009 07:50 PST
I am trying to use the user roles feature (just the standard one supplied by jamwiki - no external database, ldap etc yet) but i dont seem to be able to add a role to a user. When i use the Search for a user in the Roles page it never finds any user, except the admin user ( which is the user i am logged in as , so maybe is filtering on current user or something). I have upgraded to 0.7.0 so i dont know if this is a bug in the beta - or if i am just doing something wrong (i havent used the user roles before).
1. User:admin 2. User:jamesw 3. User:rebecca 4. User:rebeccac
I can't find any easy way to set up permissions per page (jamwiki 0.7.0). I looked at the spring security, i am just trying to get the hang of it, but i think i understand how to set the roles for a page but not really how to allow all users to view all pages, and all users to edit by default, but only allow some users to edit particular pages.
I guess one way would be to set the filter to :
Is this the right way to do it (I am the person above with the user roles problem so i can't test it at the moment (as i can't assign any new roles to users) but is this the right idea or is there a better way to do this? It seems a bit painful if there are a lot of pages - is there a way to group the pages together?
applicationContext-security.xml file and I can take a look, although please wait until after 7:00 PM Pacific time to do so - one of my co-workers pointed out the fact that there is a bug in the current code that breaks non-image uploads, and I haven't yet pushed the fix to jamwiki.org. -- Ryan • (comments) • 26-Feb-2009 07:10 PST
applicationContext-security.xml file for a while and found some weird behaviour.Looks like you're right - Spring Security won't match against query parameters using ANT pattern matching, so you have to change the ANT patterns to regular expressions. The following works for me:
<http auto-config="false" entry-point-ref="authenticationEntryPoint" path-type="regex"> <intercept-url pattern="/(.)+/Special\:Edit(.)+StartingPoints" access="ROLE_NEW_ROLE" /> <intercept-url pattern="/(.)+/Special\:Admin" access="ROLE_SYSADMIN" /> <intercept-url pattern="/(.)+/Special\:Edit" access="ROLE_EDIT_EXISTING,ROLE_EDIT_NEW" /> ... </http>
When I run this locally it isn't redirecting me to the login page on error - instead I get sent to a generic 403 error page - so that's something that needs to be fixed, but otherwise I think it's working as expected. Thanks for your patience! -- Ryan • (comments) • 26-Feb-2009 18:56 PST
A quick note - while investigating the above issues it turns out that for non-logged-in users the system properly redirects to the login page when access is denied. For loggged-in users a generic 403 error is thrown, so I need to add some sort of handling for that. I need a bit of sleep first, but will investigate shortly. -- Ryan • (comments) • 26-Feb-2009 19:31 PST
I am looking into having a single sign on /shared authentication happening with my web site (intranet and wiki working together) They are running under the same tomcat and i saw the following comment.
"It should be easy to set up Tomcat 6 and jamwiki for single login, and to assign the wikis to different domains with simple URLs."
But I dont really have any idea how to do this - I am new to web development. I had a bit of a read about realms and the tomcat single sign on valve but i couldn't get it to work - looks like the spring security stuff bypasses the normal security-contraint thing that tomcat realms use.... Any ideas, tips, nudges in the right direction would be helpful (I'd even be happy to have my intranet use the Jamiwiki authentication system ... )
(Sorry to flood you with questions - i saw you said you are going on holidays and just wanted to get a point in the right direction before you go - if i get it all working i'll write up the process here somewhere)
The __NOEDITSECTION__ magic word isn't implemented in JAMWiki yet (although the help pages mention it), right? I'd wish to make sections in pages created with templates not editable, because any inserts there be dropped anyway. I assume there's currently no way to achieve this. To see what I mean consider these two example pages:
Template:MyExample:
__NOEDITSECTION__
== Ziel ==
{{{Ziel}}}
== Akteure ==
{{{Akteure}}}
Sample page:
{{MyExample
| Ziel=poiu
| Akteure=qwer
}}
--tapaya 02-Mar-2009 14:39 PST
I have been looking around and i can't see that it is - it looks like it has been hard coded to redirect to Special:login - but maybe there is something I haven't found? If it isn't configurable i think it should be - I am using CAS, so I dont want users redirected to the wiki login page as that is useless, and in fact I dont really want the logged in users to be redirected to a login page at all - maybe just a generic permission denied page.
For now i guess i'll change the 403.jsp but it would be nice to have a config param for this.
/WEB-INF/web.xml <error-page> parameter, which may help. I'll see if it's possible to make this functionality a bit more flexible, but please remind me if there aren't any updates to this discussion in the next few days as I'll be traveling. Thanks for pointing this issue out. -- Ryan • (comments) • 21-Mar-2009 18:26 PDTWhere would I set the time till the logged in user be automatically logged out? --tapaya 24-Mar-2009 01:15 PDT
/WEB-INF/web.xml file:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
I realise that the last update on template similar to Mediawiki functionality was done in early 2008. Have there been any updates on the Mediawiki Parser and is there anyway to have the ability to introduce "iframe" either via HTML / Javascript.
Maybe its there but I just havent seem to be able to work it out just yet.
-- User:Jon • (comments) • 25-Mar-2009 16:11 EST
I've been trying to find anywhere that points towards JAMWiki being available for commercial use. I know a firm that has been charging for JAMWiki to install and maintain. I am unsure on what is allowed and what isnt. The system does not indicate anything regarding JAMWiki and only noticed it when looking through the logs once, as there were no references to JAMWiki on the wiki frontend itself
--JJ 31-Mar-2009 07:57 PDT
I cant seem to find a way to move a topic. I searched this site and found some references to the Move tab, but I can't see it anywhere. Is it possible this is broken in the new release ? maybe I just can't find it?
We managed to remove the GROUP_ANONYMOUS (somehow...) and now we cant see to find a way to get it back.
We were playing around with the Group type settings as we are trying to implement a 3 tier system of access to 2 namespace sections of information.
Are we going about this the right way? Or is there some other way to this more effectively?
insert into jam_group ( \
group_id, group_name, group_description \
) values ( \
1, 'GROUP_ANONYMOUS', 'All non-logged in users are automatically assigned to the anonymous group.' \
)
Ok I think I've worked out the problem - it seems that when I removed all privileges from a category it disappeared from the list to re-assign privileges. The entry was still there in the db, so I just assigned it a single permission and it re-appeared in the GUI - thanks for the quick response.
Are there any plans to implement the subst tag (to use with templates) in the near future?
Having my own fresh instance of JAMWiki running, I am constantly looking for information on this wiki. But this and mine look all alike. If I cound change the logo there would be far less danger of mixing them up and making changes to the wrong one. 95.112.143.34 19-Apr-2009 13:12 PDT
When do you expect Ronins WYSIWYG editor to be integrated?? aka when is 0.8.x being released?
I configured the LDAP setup in applicationContext-security.xml. I can successfully authenticate with this configuration but I am not authorized to do anything. Also, with this setup I can no longer login as the admin user I created at setup time. I'd like anonymous users to not be able to view or edit anything and users authenticated via LDAP to be able to do anything. Please Help.
ok here's what I did for anyone following. FWIW, I'm using openLDAP. I created an organization unit "ou=jamwiki,ou=groups,dc=example,dc=com". I then created the following groups underneath the jamwiki ou (ADMIN, EDIT_EXISTING, EDIT_NEW, MOVE, SYSADMIN, TRANSLATE, UPLOAD, VIEW). Then I modified the applicationContext-security.xml as such:
<ldap-server id="ldapServer" url="ldap://localhost/dc=example,dc=com" port="389" manager-dn="cn=admin,dc=example,dc=com" manager-password="*********" />
<ldap-authentication-provider server-ref="ldapServer" group-search-filter="member={0}" group-search-base="ou=jamwiki,ou=groups" user-search-filter="uid={0}" user-search-base="ou=people" user-dn-pattern="cn={0},ou=people" />
<authentication-provider>
<ldap-user-service server-ref="ldapServer" group-search-filter="member={0}" group-search-base="ou=jamiwiki,ou=groups" user-search-filter="uid={0}" user-search-base="ou=people" />
</authentication-provider>
I also set the "useJAMWikiAnonymousRoles" property to false in the applicationContext-security.xml Then restart server.
The best I can tell, the "built-in" GROUP_REGISTERED_USER does not apply when using LDAP, so you have to add every user to every group created above manually. I would like to find a way to have jamwiki utilize my existing LDAP "developer" group and somehow assign roles to the developer group. Any ideas how I might achieve that?
/WEB-INF/applicationContext-security.xml to look for JAMWIKI_ADMIN that users who get that permission will be able to to access resources allowed by that permission. Also, as you've indicated, something like GROUP_REGISTERED_USER will no longer apply when using LDAP since the default authentication provider is no longer being used.I'll have to give that a shot in a test environment. I've already deployed using the setup I created
I've set my file upload directory to be /opt/jamwiki-data/files I've set Relative File Upload Root to /jamwiki/upload/ I can upload files. Files make it into /opt/jamwiki-data/files. However, the links to the files give me 404. The link is to http://mydomain.com:8080/jamwiki/upload/2009/5/image.png. So I created a symlink in $GLASSFISH_HOME/domains/domain1/applications/jamwiki/upload to /opt/jamwiki-data/files but I still get 404 errors. Any idea what I can try.
In case anyone suffers similar problem in glassfish. following symlinks is disabled in glassfish by default. You can enable this by editing glassfish domain.xml and allow symlink following. Find this section and add the allowLinking property as shown
<virtual-server id="server" http-listeners="http-listener-1,http-listen......>
<property name="docroot" value="${com.sun.aas.instanceRoot}/docroot" />
<property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/ac$....../>
<property name="sso-enabled" value="false" />
<property name="allowLinking" value="true" />
</virtual-server>
Hello, is it possible to have access to translation tools in order to translate some text and fix some others. Regards Guillaume FRANCOIS 55 27-May-2009 06:29 PDT
Hi, I have installed Jamwiki in one of my system. But that system is going to be formatted. So I need to move all the content to another system.I'm using External database(MySQL). Please help me how to recreate my portal as it is from my new system. I tried to map the MySQL schema(Existing one) while doing the setup but I'was getting Connection could not established. So I created a new schema in MySQL and given it while installing and JamWiki started working. But I could not get any of my old data. Please help me so that I can recover all pages/documents/images/etc as how it was early. Venkat
/WEB-INF/classes/jamwiki.properties that refer to the old system.