Welcome to the central place for JSPWiki support!#

Before posting your question or problem here, you might want to try looking at the links below:

  • JSPWikiDocumentation - the official JSPWiki documentation section
  • JSPWikiFAQ - list of frequently asked questions.
  • Stupid questions - people posted questions here that they thought were stupid (basic).
  • JSPWikiMailingList - which is probably the best place to get answers
  • JIRA - the place where JSPWiki bugs are filed, you might find that your problem has already been solved

You might also want to try running a search of jspwiki.org using the Search feature at the top-right of this page.

If you need help with a specific feature, plugin, or topic, it's preferred that you 'Add a Comment' to the relevant page instead of here since that would help self-organize it. Otherwise, go ahead and post your question or issue here.

Also please be patient as not everyone visits jspwiki.org on a daily basis. Some people may visit jspwiki.org after work, some do so only on weekends, while others visit once a month or less. You can check the RecentChanges page to see if anyone has responded on the page that you posted to.

Table of Contents

Suggestions#

This is still a bit in the making. If you have any suggestions for an area, make a suggestion below.

  • RefactorMe - Q&A's on this page need to be refactored into a JSPWikiFAQ or JSPWikiDocumentation page every now and then. Everyone is welcome to help with this.
  • What kind of other areas should we cover?

Support Questions or Issues#

I would rather that you type your question directly; putting it in an attachment is contrary to the simplicity of Wiki. You can put your example in an attachment, but the question itself should be put on a page.

-- JanneJalkanen

Installation, bad path generated#

I just installed on Windows XP, running JDK 1.6 and Tomcat 5.5. I ran the initial config page, and it generated the properties file just fine. I restarted and loaded the page, but it looked terrible. But worse than that, none of the links on the page worked.

After several fresh installs the app root (after restarting) looks terrible. None of the linked css or javascript files are retrieved. Links are generated such as:

  http://localhost:8080/JSPWikitemplates/default/jspwiki.css 

Please note that the /JSPWikitemplates/ part is regardless of ANY initial settings I enter. I tried changing several things, creating new projects etc, to no avail.

I wouldn't consider just being ugly a blocker bug, but none of the links on the page work either. Login for example:

  http://localhost:8080/JSPWikiLogin.jsp?redirect=Main
Again if simply adding a \ between JSPWik and JSPWikiLogin.jsp?redirect=Main were to solve the problem, I wouldn't consider this a blocker. But it doesn't!

I'm hoping it's just me, but since I can't figure it out, and I don't see anyone else mentioning as something they've done I thought I would at least open defect. (please let me know if it's just me).

ANSWER - apparently absolute urls are required!! I was setting a relative path:

jspwiki.baseURL=http://localhost:8080/ecrt/
and it needed to be:
jspwiki.baseURL=http://localhost:8080/ecrt/

JSPWiki, Editor issue..!#

I am using JSPWiki with FCKeditor. while edition the test with custom styles its giving errors this should be

Text#

asdf
asdf

printing as

Test#



asdf
asdf


can anyone help

JSPWiki , mysql connectivity#

Hi !! I'm new to JSPWiki and i'm trying JSPWiki , mysql connectivity. I tried database provider patch but i'm not able to do the connectivity properly. I couldn't find jspwiki.databaseProvider.url jspwiki.databaseProvider.username jspwiki.databaseProvider.password jspwiki.databaseProvider.driver jspwiki.databaseProvider.default.page.dir

these properties in JSPWiki.properties. I need to set these properties according to the patch. Also i couldn't understand what to do with DatabaseProvider.java file Please please help !! --Rohan

-- PriceAdmin

Hi, i migrate our wiki to a new server with 2.8 version and tomcat 6. The old server run in 2.2.23 with Jboss server. i migrate docs and attachements but on the new server, some links are broken (i must edit page instead of read it). I tried to delete Lucene directory for re-index but nothing done.

I don't try to use Migrator Provider because i don't know how to use it (syntax for source page provider class name ). My two servers are on RH3 for the old and RH4 for the new. If someone have an idea to solve my issue.

thanks

(Solved) Null pointer exception on some peoples browsers#

Solution:Incorrectly configured security. It appears a wrong version of the JSPWiki property file was used to make the CamelCase settings changes.

Problem: I am receiving the following exception on some people only, all using Windows. Other people, using a mixture of IE and FF receive the stack trace. I have tried clearing cookies and all local files, in both IE and FF for the affected users, to no avail. It all started when we tried turning on CamelCase - it is now off.
Apr 22, 2008 11:02:52 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at javax.security.auth.login.LoginContext.init(LoginContext.java:195)
        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:350)
        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:465)
        at com.ecyrd.jspwiki.WikiSession.getLoginContext(WikiSession.java:259)
        at com.ecyrd.jspwiki.auth.AuthenticationManager$3.run(AuthenticationManager.java:441)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.ecyrd.jspwiki.auth.AuthenticationManager.doLogin(AuthenticationManager.java:435)
        at com.ecyrd.jspwiki.auth.AuthenticationManager.login(AuthenticationManager.java:234)
        at com.ecyrd.jspwiki.WikiContext.<init>(WikiContext.java:269)
        at com.ecyrd.jspwiki.WikiEngine.createContext(WikiEngine.java:2097)
        at org.apache.jsp.Error_jsp._jspService(org.apache.jsp.Error_jsp:73)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
        at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
        at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:808)
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
        at org.apache.jsp.Wiki_jsp._jspService(org.apache.jsp.Wiki_jsp:134)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
        at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:91)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:534)

--LyallPearce, 22-Apr-2008

Displaying the documents in the middle frame of a page.#

_Q_:Documents from the LAN/file server to be displayed in the middle frame. I've tried to open a document in the page middle frame but its forwaded to different page instead of opening the document in the same page.Please help me in this regard. mailto praveen.ajay85@gmail.com.

Configuration as default webapp#

Q: Is it possible to set up JSPWiki to use URLs like http://wiki.domain.com/ instead of http://domain.com/wiki ? I successfully set up a JSPWiki at http://automatedgenealogy.com/wiki/ but when I tried to configure a version at http://wiki.automatedgenealogy.com/ the formatting is all messed up. Looking at the page source it seems to expect the css files etc. to be at /wiki/... I tried setting jspwiki.applicationName in the jspwiki.properties file but that doesn't seem to have any effect. The links generated at http://automatedgenealogy.com/wiki/ end up pointing to, for example, http://automatedgenealogy.com/wiki/wiki/Main
Other than reloading the application in the Tomcat manager webapp, is there something else I need to do get changes to jspwiki.properties to take effect? Is there something other than applicationName or baseURL that I need to change? Thanks in advance. --LindsayPatten

Moving data from JSPWiki to MediaWiki#

Q: What is the most efficient way to move data, subset of pages, from JSPWiki to MediaWiki (running on MySQL on System i)? --Simon

Turning on attachments#

Q: Hi, I've just installed 2.4.6-beta and modified jspwiki.properties to setup pageDir, storageDir and workDir. But I don't see the "Attach File" link in my pages. How do I turn on attachments ? Thanks. --anon

Version control (RCS) not working on Debian#

My sysadmin upgraded tomcat4 on Debian 3.0 to the most recent version and since then, when I save a page it is updated, but isn't saved in RCS. Catalina is running as tomcat4 and all the files are owned by tomcat4. Any ideas what else to look at? It doesn't seem to be logging any obviously related errors. My Jspwiki version is 2.0.52

-- NeilYoungman

Please see RCSFileProviderIssues - very likely you have a case of RCS files being locked by the wrong user.

-- JanneJalkanen

Thanks for that. It seems to have been real UID vs. EUID that was causing the problem. RCS is now locking as root, instead of tomcat4. I guess the tomcat4 init script was updated and changed something in the startup.

Singular names#

I don't like the matching of singular names to plural forms. If I link to [test] I don't want to get the page tests. Is it possible to turn this behaviour off?

-- NeilYoungman

A: Set jspwiki.translatorReader.matchEnglishPlurals=false in your jspwiki.properties.

Is this the correct place to ask for support? I'll explain my case anyway ...
I've installed v 2.1.86 but have issues with the Access Control features: I get an awful lot of Warnings in the jspwiki.log file regarding the default AdminGroup:

2004-07-28 16:58:00,238 [service-j2ee] INFO com.ecyrd.jspwiki.auth.UserManager Wiki:WhatsNew Wiki:WhatsNew - AdminGroup is not a group!
2004-07-28 16:58:00,238 [service-j2ee] WARN com.ecyrd.jspwiki.auth.UserManager Wiki:WhatsNew Wiki:WhatsNew - No supergroup 'AdminGroup' exists; you should create one.

Also, everytime someone Edits a page, the User appear as null in the logs, even though they are logged-in :

2004-07-28 17:11:41,316 [service-j2ee] INFO JSPWiki Wiki:AdminGroup - Editing page AdminGroup. User=null, host=129.156.85.11

My properties file contain

  • jspwiki.auth.administrator = AdminGroup
  • jspwiki.authorizer = PageAuthorizer
  • jspwiki.userdatabase = WikiDatabase

and I also have a page called AdminGroup where I specify

[{SET members Caryl}]

Obviously something's not quite right, can anyone help??

-- Caryl - 28-Jul-04

I've got the same problem mailto:drrota@us.ibm.com If you have the solution, please send it to me. Thank you.

I don't think this was the right page; I didn't see this until now... Guys, don't sweat about debugging messages. The auth system is broken in 2.1 anyway, and should not be used... --JanneJalkanen


I'm trying to get an install of JSPWiki to work under the lunarpages environment. Unfortunately I keep getting a null pointer exception. When I drop the .war file into the webapps directory without changing anything in the installation at all. You can check it out:

http://www.squeakydolphin.com/JSPWiki

Any assistance you can provide would be appreciated.

I have tried altering the configuration files with no positive results. Right now I just want to get a basic installation working. Thanks.

You need to point the jspwiki.fileSystemProvider.pageDir to an existing directory by editing jspwiki.properties. --JanneJalkanen

I've installed v2.2.13b, jspwiki.fileSystemProvider.pageDir has pointed to an existing directory. But i've encountered a NullPointerException, the error message as below

    JSPWiki has detected an error
    Error Message
        An unknown exception java.lang.NullPointerException was caught by Error.jsp. 
    Exception
        java.lang.NullPointerException
    Place where detected
        org.apache.jasper.runtime.JspRuntimeLibrary.getContextRelativePath(), line 774 

My Wiki runs on Tomcat 4.1.30.


Searching about more than one wiki

Is it possible to search about more than one wiki ? We have some different wikis running, but we will search about all wikis on the server. 周


Namespaces#

Is there any plan to implement wiki namespaces (mapped to directories)? This would scale better and more importantly, allow for shorter page names, because you would not include the categorization which is now translated into the namespace.

--Bogdan Calmac

Yes, but not in the immediate future; maybe a few months off. This feature is discussed in SubPages.


HTML Import/Export#

Is there a way to import a HTML document to JSPWiki, and export JSPWiki-pages as HTML?

you can see htmltowiki


Talking with XML file using JSPWiki#

I have to make GUI using JSPWiki which takes parameters in form and put it into an XML file as well as when i want to edit it should be read from SML file and should be displayed. please help me if you can. i really need this help i am freshers very new to wiki also so please please help me if you can. Thank you.

WikiServlet as default servlet#

I would like to use the WikiServlet as the default servlet (servlet-mapping to /) in order to be able to use extremely short URLs for WikiPages (i.e. without the usual prefix /wiki/*). The only way of achieving this I can think of would be to use a WikiServlet that serves static content as is and only dispatches requests for WikiPages. Are there alternatives solutions (already available and/or planned)?

--Thomas Zumbrunn


I'd like to have the ability, when creating a new page, to choose from a preformatted page, something like : duplicate an existing page or choose from a template list (not core Templates, but existing txt content).

Has anybody made this or how is it possible in JSPWiki ?

Christophe Cariou


Register.jsp: Where is it?#

I would like to increase security on our wiki and specifically restrict access to some pages to specific users. I setup an ACL on one of those page but anonymous users could still access the page. Further reading of the Security 2.3 just confused me even more. I searched in the WEB-INF directory in the wiki directory but could not find the jspwiki.policy file that is referenced. I then turned over the web.xml file in the same WEB-INF directory. I commented out the example security-constraint block and restarted the server. That seems to work because I am now prompted to enter a user ID. The problem is, I don't know how I can create one in the first place. I had already created my user preferences, but at no point was I prompted to enter a user name, password and the likes. I've tried to access the Register.jsp page that is also mentioned in Security 2.3 but all I got was a Tomcat error that the page doesn't exist, which I found out after checking my wiki installation directory.

So, what am I missing here? the Security 2.3 documentation does a fairly good job at describing the various options to implement security but it seems that the current version (2.2.33) is out of sync from that documentation or there is an initial part to turn security on that is missing somewhere in the doc. Anyone?

-- Laurent Daudelin

Yup. You need to be running JSPWiki 2.3 to get AAA to work.

-- JanneJalkanen

Lupper/Plupii Linux Worm Attacking via XML-RPC#

Cnet News reports on the Lupper/Plupii worm that can attack Linux systems via XML-RPC. Is this an issue for JSPWiki systems? Has anyone had their system infected?

According to the article the XML-RPC threat was discovered earlier this year and patches are now available. Are there patches for JSPWiki's XML-RPC if it does indeed affect the system? What versions are patched and what versions are not?

-- Erik Alm, 10 Nov 2005

No, it should not be an issue with JSPWiki systems. The Lupper worm only affects systems that use the PHP XML-RPC library. Java libraries, in general, seem to be quite safe against those type of attacks.

-- JanneJalkanen


Please Help. I am getting a memory allocation error: mmAllocLargeArray.

Actual error is:

JSPWiki has detected an error
Error Message 
mmAllocLargeArray(jniGetVMThread(env), (ClassP)c, (ObjectP*)res, len) 
Exception 
java.lang.OutOfMemoryError 
Place where detected 
java.lang.StringBuffer.append(), line -1 

If you have changed the templates, please do check them. This error message may show up because of that. 
If you have not changed them, and you are either installing JSPWiki for the first time or have changed
 configuration, then you might want to check your configuration files. If you are absolutely sure that 
JSPWiki was running quite okay or you can't figure out what is going on, then by all means, come over to 
jspwiki.org and tell us. There is more information in the log file (like the full stack trace, which you 
should add to any error report). 

And don't worry - it's just a computer program. Nothing really serious is probably going on: at worst you can 
lose a few nights sleep. It's not like it's the end of the world. 

The page I am attempting to edit and saving contains text, about 5Kbytes. I noticed this problem with a huge page, 1,000Kbytes but this is a mystery. I may be missing something here, but I thought this was all JSP. There are no DLLs I can find, and ObjectP* isn't look like a Java syntax my compiler appreciates.

Can someone suggest a way I can debug this problem more?

We moved our WIKI onto a dedicated machine to try remove the memory error i.e. give it more resources. I am totally lost now as to where to look next, since there is no mention of method mmAllocLargeArray in the JSP code.

I appreciate any help you can give, and thanks in advance.

Mike

--198.240.128.75, 14-Dec-2005

I recommend you increase your maximum heap size using the "-Xmx" argument. For example: "-Xmx512M" to get half-a-gig of memory.

-- JanneJalkanen

Hi JanneJ, thanks for your suggestion.

Are you referring to the application server JVM settings? If so, the current settings I have for the WLS admin server are minimum 128 and maximum 512:

JAVA_OPTIONS="-Dadmin ${DEBUG_OPTIONS} -Dlog4j.configuration=admin.log4j.properties -Dxxx.server.property.file.name=xxx_admin.properties -Xms128m -Xmx512m -Dxxx.property.file.name=xxx.properties -Dweblogic.servlet.ClasspathServlet.disableStrictCheck=true -Dwli.bpm.server.evaluator.supportsNull=true -Dweblogic.ProductionModeEnabled=true -Duser.timezone=Europe/London ${APP_PROPERTIES}"

Can anyone think of anything else? I would be surprised if this is happening with half a gig of VM memory.

Thanks again in advance.

Mike

Hmmm... Have you checked the logs? It's possible that there's an infinite loop somewhere. I'd need to see a full stack trace.

-- JanneJalkanen

 
 I have customised MediaWiki Template but i want to use the features of PageActions used 
by the current WikiJSPtemplate  how can i do it

Q Please any one suggest me how to open a attachement in new window


Installed on XP-pro, JDK1.4, Tomcat 5.0.28. On restart of Tomcat - webapp load fails with:

02-Jan-2006 18:05:32 org.apache.catalina.core.StandardHostDeployer start INFO: standardHost.start /JSPWiki 02-Jan-2006 18:05:32 org.apache.catalina.core.StandardContext start SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/jspwiki.tld in context /JSPWiki javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/jspwiki.tld in context /JSPWiki at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:549) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:301) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4282) at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830) at org.apache.catalina.core.StandardHost.start(StandardHost.java:991) etc. PS I updated jspwiki.properties to reflect windows paths.

--Jon Sharp, 02-Jan-2006


Please consider adding some mechanism for escaping Wiki markup characters. Here's the use case. I'm trying to document a small programming language, and the pipe symbol:

|
is used as a logical or, just like in C and Java. Getting that character to appear in various places is quite a challenge. I have used the triple-curly-bracket approach when possible, but there are situations where I really don't want it on a separate line and enclosed. How about some kind of version of triple-curly that acts like a pure quotation mechanism? Thanks in advance.

--ChrisLott, 02-Feb-2006

You can use the tilde (squiggly, worm, ~) as a generic escape. E.g. ~{{{ ~}}} will produce "{{{ }}}".

-- JanneJalkanen

Hello, I can't see password option under profile. If I try to log in to , it can;t find j_secutiry_check deployed? Ahy help. I am running 2.4.3


Websphere 5.1 Security Issues#

I'm trying to run version 2.4.13 on RAD 6.0 with the built in Websphere security. The new security model is somewhat more difficult to implement because of the policy/jks/jaas files, since I do not have full access to our Websphere server. Moreover, on one server, we also host many other application. How do you deploy JSPWiki without all the jaas configuration? Can't we just use the good old form-based security?

--Paul Wong, 06-Jun-2006


WebLogic 910#

I cannot get JSPWiki 2.4 series working on Weblogic 910, I get a ProtocolException in WikiServletFilter.doFilter(WikiServletFilter.java:120)
"Exceeded stated content-length of: '0' bytes"
I submitted the following Bug Report
--tewr 12-Jul-2006

Oracle Application Server (OAS)#

Problems installing JSPWiki 2.4.6 on Oracle Application Server (OAS) I am attempting to get JSPWiki installed and working on my Oracle Application Server 10.1.0 webserver. I am able to get version 2.2.33 to install and work just fine, but when i try to upgrade to version 2.4.6 or 2.4.14, I get errors saying it cannot locate the jdom.document class (see exact error message below). I checked the deployment of JSPWiki, and the jdom.jar file is in WEB-INF/lib directory, and there is no other jdom.jar file in the webserver's structure.

I would run 2.2.33, but I need the authentication and collapsible menu structures available in later versions.

Any help would be greatly appreciated.


I love the wiki table editor, though I am wondering if its possible to use just this table editing portion and disable the rest. I am java novice, but am pretty familiar with programming in general.

Is this java table editor unique to this JSP Wiki or something else?

--AnonymousCoward, 16-Jul-2006

Yes, at the moment it is. Check WikiWizard for more information.

-- JanneJalkanen


After the latest update of wiki, the search function doesn't work as well the index search. Can anybody help me?

05-Sep-2006

Could you detail the question a bit more? Like which version and what does "as well" mean. And what is index search?

-- JanneJalkanen

We have the Wiki Version 2.2.33. If we try to call the index page, the page opens but there are no pages in the index. the other problem is that the search engine does not find any results.

--Jennifer Rauscher

Hmm... If you don't see any pages in the index, something is deeply wrong. Can't you see even the index page in the list of all pages? Do you have log files?

-- JanneJalkanen

I attached the Log File at the end of this Site. Could you please look principally after other discrepancies in this attachment?

--Jennifer Rauscher


Moved some discussion to BugIPlanetHTTPSessionIncompatibility.


09-17-2006 I am having trouble with a new installation of JSPWiki 2.4.53 under Tomcat 5.5.9 (Linux). This is our first installation of 2.4. Our previous installations (pre 2.4) were without issue.

After Tomcat startup logs show the following:

Exception in thread "JSPWiki Lucene Indexer" com.ecyrd.jspwiki.InternalWikiException: unable to create Lucene index
        at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:142)
Sep 17, 2006 11:34:58 PM org.apache.catalina.core.ApplicationContext log
INFO: JSPWiki: Unable to load and setup properties from jspwiki.properties. Failed to start managers: Attempt to provide a null filter - this should never happen.  Please check your configuration (or if you're a developer, check your own code.)

I would appreciate any help you can offer. -- Harlan

Sounds like a permission issue. Are you sure that JSPWiki has access to the work directory specified in jspwiki.properties?

-- JanneJalkanen

I believe everything is OK with the file system permissions for the work directory; the lucene directory was created along with the segments file within it. I also tried running JSPWiki without specifing the work directory and received the same error.

Any other ideas? Thanks, -- Harlan

Eventually I was able to get 2.4.53 up and running on this troublesome host (I had two installations to other host which were without incident). The only specifc change I can recall making was setting the attachments directory, but I'm not sure that was the fix. It may have just been the benefit of a new day :) Thank you for the help -- Harlan

I had the same problem. Thanks for the info. In my case, it was definitely the attachments directory. When I deleted it and created a brand new empty directory in its place, the problem went away. After some debugging, it turns out the problem was a missing attachment file. Somehow I had deleted attachments/mywiki-att/mylogo.jpg-dir/0.jpg. When I put it back, the problem went away. -- Pat M

I also got this when I had been manually messing with the attachments directories to make Windows happy. I accidentally named an attachment directory without the file name extension or "-dir", e.g. just 2008+projects instead of 2008+projects.ppt-dir. When I put it back as 2008+projects.ppt-dir everything worked fine. -- Pat M


I have had a 2.4.x-beta installation of JSPWiki for a few months now and I just upgraded to 2.4.53 today. I was fooling around with the policy file to restrict Anonymous and Asserted users to basically be view and comment only. This works...mostly. After I restart the server and go to the default url (force JSPWiki to navigate to Main internally) then I can see the Main page, I can also see all other pages. However, if I navigate BACK to the Main page (by clicking on a link, say) then I get an Error message that says "Error: You don't have access to 'Main'. Please log in first."

This seems to be a problem with verifying the security of the page. I also tried to add an ACL to the Main page that looked like

[{ALLOW view ALL}]
[{ALLOW edit ALL}]

But that did not solve the problem. Here is the relevant parts of jspwiki.policy:
grant signedBy "jspwiki", 
  principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*", "view,comment";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "login";
};

grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "Asserted" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*", "view,comment";
    permission com.ecyrd.jspwiki.auth.permissions.GroupPermission "*:*", "view";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "login";
};

I also tried adding permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:Main", "view,comment"; to both blocks with no success.

Did I do something wrong or should I file a Bug Report?


There's a known bug in jspwiki < 2.4.65 which causes the Main page to be visible if accessed through the default URL...

-- JanneJalkanen --ChuckDeal, 19-Sep-2006


Hi all experts,

I'm triying to implement JSPWiki on Web As 6.40 SP17, I've followed the instructions this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2339

This is what a did:

1.- Downlowded the latest version of JSPWiki from http://jspwiki.org 2.- Extracted the JSPWiki.war 3.- Used deploytool to create a JSPWiki.ear and deployed on server 4.- Started the appplication 5.- Called url http://localhost:50000/JSPWiki/Install.jsp as suggested on jspwiki readme.txt 6.- The first 2 pages were displayed without problen.

But when I try to run the app the server drop this message:

Details: javax.servlet.jsp.JspException: Tag failed, check logs: null
at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:90)
at jsp_PageActions1169070742968._jspService(jsp_PageActions1169070742968.java:78)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
at jsp_Header1169070740546._jspx_method_wiki_Include_1(jsp_Header1169070740546.java:65535)
at jsp_Header1169070740546._jspService(jsp_Header1169070740546.java:13)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
at jsp_ViewTemplate1169070738265._jspx_method_wiki_Include_1(jsp_ViewTemplate1169070738265.java:65535)
at jsp_ViewTemplate1169070738265._jspService(jsp_ViewTemplate1169070738265.java:22)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
at jsp_LoginForm1169070737203._jspService(jsp_LoginForm1169070737203.java:41)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:178)
at jsp_Login1169070735953._jspService(jsp_Login1169070735953.java:130)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
at com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:374)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

The wierd thing is that the two latest versionsof wiki gives me the same error, please if you have any clue that could help me I'll really appreciate it.

Thanks in advance, RR.-

--Ramien Rosillo, 18-Jan-2007


Problem with Versions#

does not appear to work in Engine version 2.5.108-cvs (at least that is what my SystemInfo says I am running). Has anyone else run across this issue? I copied my code into the sandbox on jspwiki.org and it worked fine.

Thanks, Ryan Brissette


Hi everyone, where are all the old Versions from "RecentChanges" stored on my filesystem. In the Wiki all "old" versions of the articles can be seen, but I cant find them on my filesystem. Please help.

Greetings Benni


The history pages is stored in a folder called OLD, upper case, in /p/web/www-data/jspwiki when using default installation or just $jspwiki_page_dir/OLD, remove them will be ok.

Web As 6.40 SP17 might not be supported so far... but a early version, v2.2.33, might be ok on that, since that version doesen't using JAAS.

--Jacky Liu, 16-Feb-2007


I mean JSPWiki v2.2.33.

--Jacky Liu, 16-Feb-2007


I'd really like to set up my security as follows:

  • Run in Tomcat 5.5, JSPWiki 2.4.91
  • Use JAAS in conjunction with a LDAP directory.
  • Have three levels of access:
    • Everyone (unauthenticated) can see everything
    • Only authenticated users can edit.
    • Only members of the admin group can delete pages. (this isn't even that important)


The problem I face is that my ldap directory doesn't have the role info I need. I'm trying to figure out how to use the fact that they're authenticated count for something. I've uncommented the security constraint sections and left them pretty much as-is with the exception of commenting out the user-data-constraint sections since I don't want to use SSL right now. Server.xml has the appropriate realm:

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
     			connectionURL="ldap://IP:389"
     			connectionName="uid=uniqueId,ou=something,dc=someDC,dc=com"
     			connectionPassword="password"
       		userPattern="uid={0},ou=people,dc=something,dc=com"

			/>

Although the LDAP stuff seems to work for the Authentication portion, I can't figure out how to give myself the Authenticated role.

Any help? -- BenGeyer

--BenGeyer, 17-Feb-2007


After installation On Tomcat5 running on Fedora Core 6 I have added all jspwiki.properties stuff I think I need (I noticed it wrote data the configured Work Directory) but I get the following

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(jasper5-compiler-5.5.17.jar.so)
	org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.17.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.17.jar.so)
	org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.17.jar.so)
	javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
	com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:100)
	com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:82)

root cause

java.lang.NullPointerException
	java.security.AccessControlContext.<init>(libgcj.so.7rh)
	javax.security.auth.Subject.doAsPrivileged(libgcj.so.7rh)
	com.ecyrd.jspwiki.WikiSession.doPrivileged(WikiSession.java:953)
	com.ecyrd.jspwiki.auth.AuthorizationManager.checkStaticPermission(AuthorizationManager.java:471)
	com.ecyrd.jspwiki.auth.AuthorizationManager.checkPermission(AuthorizationManager.java:179)
	com.ecyrd.jspwiki.WikiContext.hasAccess(WikiContext.java:769)
	com.ecyrd.jspwiki.WikiContext.hasAccess(WikiContext.java:752)
	org.apache.jsp.Install_jsp._jspService(Install_jsp.java:83)
	org.apache.jasper.runtime.HttpJspBase.service(jasper5-runtime-5.5.17.jar.so)
	javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
	org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.17.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.17.jar.so)
	org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.17.jar.so)
	javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
	com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:100)
	com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:82)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

--DaveLeo, 13-Apr-2007

From the looks of this, it seems that this issue has to do with JSPWiki security. Now, I'm just guessing here -- it's possible that the security for the Java implementation distributed with Fedora 6 (GCJ/Classpath) may need tweaking, or the Java implementation itself is simply not compliant enough to handle JSPWiki's security requirements.

Perhaps, you may want to try using Sun's JDK instead? I know this doesn't directly address the issue you are having, but it may help you get JSPWiki running on Fedora 6.

--David Au, 14-Apr-2007


Preview returns null and Apache#

Hi,

I'm using an older jsp wiki version 2.2.28 behind an Apache Webserver. All is working fine, and I'm using an own homebrew UserRealm in Tomcat. Now I have to use https for Apache and use the same name/password as in jsp wiki (e.g. the unix credentials). All is working fine.

I did then upgrade to jsp wiki version 2.4.87. Again I'm using my own authentification and all works great EXCEPT when I want to use preview on a site. Then I allways get null instead of my edited text.

If I access jsp wiki straight from tomcat (ussing http) without going via Apache (and using https) preview works fine. Only when I got via Apache it doesn't work anymore.

Then I tried the newest version 2.4.102 but here I can't use my own authentification code anymore. How can I disable now the authentification in the newest jsp wiki, so that I can still use my own authentification?

--Dieter, 17-Apr-2007


Having a lot of issues with v2.4.102. Tomcat 5.2.23 with jcifs filter for for integration with NTLM. I'm using BrushedTemplate (latest that I found on JSPWiki). My JSPWiki is configured to work with the content that was created by JSPWiki 2.2.28 (Is this a problem?). 1. This most frastrating one - after some browsing and successful page editing, I' getting empty page in edit mode with plain editor. IE showing error in java script on the page... See my attachment. Interestingly, WikiWizard editor works (i.e. showing the page content to edit).

--MM, 25-Apr-2007

You might want to check out the BrushedTemplateDiscussion page. The 2.5.x version of BrushedTemplate might not be as stable as the 2.4.x version.

--David Au, 27-Apr-2007


I freshly installed v2.4.102, unpacked corepages, but several are not there: UnusedPages, JSPWikiTags JSPWikiTips JanneJalkanen MultipleWikis NamedHeadings PNG PageAliases PageFilters ThisPageDoesNotExist URLConstructors UnusedPages WikiAttachments WikiForms WikiName WikiRPCInterface WikiTemplates WikiVariables where can the .txt files be found?

CR --20070425

There's no separate download for these pages, but you can probably copy them from this site. Many of the ones that you listed wouldn't be pertinent for your JSPWiki instance though.

--David Au, 27-Apr-2007


I use v2.4.102, how can I list and edit groups (members)? There is only a link to create a new group in the header.
Christian 26-Apr-2007



security with v2.4.102 on Tomcat 5.2.23, although I log into jspwiki, I always only get the permissions assigned to Role "Asserted", not "Authenticated". any hints?

--Christian, 26-Apr-2007


Hello, I am trying to install the Wiki on an Linux box. I follow the instructions in the Wiki deploying the application. When I access the Install.jsp file I see a 404 resource not available message. When look at the tomcat logs I see:

log4j:ERROR Error occured while converting date.
java.lang.NullPointerException
	at java.lang.System.arraycopy(Native Method)
	at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:331)
	at java.lang.StringBuffer.getChars(StringBuffer.java:202)
	at org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:120)
	at java.text.DateFormat.format(DateFormat.java:314)
	at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:436)
	at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:56)
	at org.apache.log4j.PatternLayout.format(PatternLayout.java:495)
	at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:292)
	at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)
	at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
	at org.apache.log4j.Category.callAppenders(Category.java:187)
	at org.apache.log4j.Category.forcedLog(Category.java:372)
	at org.apache.log4j.Category.error(Category.java:303)
	at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:153)
Exception in thread "WatchDog for 'JSPWiki'" java.lang.NullPointerException
	at org.apache.log4j.NDC.get(NDC.java:201)
	at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:229)
	at org.apache.log4j.helpers.PatternParser$BasicPatternConverter.convert(PatternParser.java:393)
	at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:56)
	at org.apache.log4j.PatternLayout.format(PatternLayout.java:495)
	at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:292)
	at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)
	at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
	at org.apache.log4j.Category.callAppenders(Category.java:187)
	at org.apache.log4j.Category.forcedLog(Category.java:372)
	at org.apache.log4j.Category.error(Category.java:303)
	at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:153)
I've tried deploying the wiki on Tomcat 5.5.23 and 6.0.10 and with Java 1.5.0.08 and Java 1.6.0.01 but still get the same results. Any ideas?

Thanks

--Kenneth Suter, 07-May-2007

The 404 error means that JSPWiki had somehow fail to be deployed. The error log that you provided only indicates that there were problems with log4j. Can you look further back in your logs for something else with a lot of "com.ecyrd.jspwiki" in the lines? That might tell us what the JSPWiki-specific problem was.

--David Au, 07-May-2007

JSPWiki definitely seems to be broken out of the box on Ubuntu 7.04 with Sun Java 6. I seem to have JSPWiki working now on Ubuntu 7.04 with Sun Java 6 (what you get with synaptic), under Tomcat 6.0.10. I changed two things.

  1. Replaced the default log4j.jar with log4j-all-1.3alpha-8.jar as suggested by Florian Hopf in mail, Re: Jspwiki-users Installing JSPWiki on JDK6/Tomcat 6, on May 11, 2007.
    I did this by stopping Tomcat after JSPWiki failed to start, copying the old JSPWiki/WEB-INF/lib/log4j.jar to JSPWiki/WEB-INF/lib/log4j.jar.orig and replacing it with log4j-all-1.3alpha-8.jar. This still was not enough, as at this point JSPWiki seemed to need access to the jspwiki.fileSystemProvider.pageDir. I was still seeing an exception:
    Exception in thread "WatchDog for 'JSPWiki'" com.ecyrd.jspwiki.InternalWikiException at com.ecyrd.jspwiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:154)
  2. Stopped Tomcat again and edited JSPWiki/WEB-INF/jspwiki.properties to set jspwiki.fileSystemProvider.pageDir and jspwiki.basicAttachmentProvider.storageDir to directories to which JSPWiki could write.

Now I can get to the install page at http://localhost:8080/JSPWiki/Install.jsp.

--Mark Craig, 12-May-2007

On Windows XP, where my user is an Administrator, Tomcat 6.0.10 with Sun Java 6 plus JSPWiki 2.4.102 works out of the box... but manages to create C:\p\web\www-data\jspwiki on startup. That could be something it fails to do on Linux, since as a regular user I have no access to create /p.

What if the default paths to the data were under the web app directory itself? At least the user had to be able to write there, even if it is perhaps not a good idea to leave the content there.

--Mark Craig, 12-May-2007


Trying to implement JSPWiki Followed README and dropped JSPWiki into Tomcat6.0.10/webapps dir Went to url http://localhost/JSPWiki/Install.jsp and received the following error page : -

HTTP Status 404 - /JSPWiki/Install.jsp

type Status report

message /JSPWiki/Install.jsp

description The requested resource (/JSPWiki/Install.jsp) is not available.


Apache Tomcat/6.0.10

Performed a check on the Catalina_Log and I see the following information: -

May 11, 2007 12:40:03 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive JSPWiki.war May 11, 2007 12:40:04 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart May 11, 2007 12:40:04 PM org.apache.catalina.core.StandardContext start SEVERE: Context /JSPWiki(info) startup failed due to previous errors

If the Install.jsp does not start I am unable to set the jspwiki.properties file.

Tried to set the values in jspwiki.properties manually and the application still does configure properly and I get the same error.

Any ideas as to why the "SEVERE: Error filterStart" keeps failing?

--Willdon, 11-May-2007


I have a problem with creating new links. Let's say in Main page I create a testpage1 link and save it. Next, on Main page I click on testpage1 link and create a page and save it. Now when I go back to Main page the testpage2 link is still displayed in red color with dotted lines underneath indicating a new page to be created instead of a hyperlink to an already created page. This doesn't take effect unless I edit the main page and save it and view it again or I restart tomcat instance. Any help would be appreciated.

--Roopa, 22-May-2007


Roopa,
By 'go back to Main page' I guess you mean use the browser 'go back' function, right? In that case what the browser shows is most likely the local cache. Also 'testpage2' should be 'testpage1', right? When you edit a page and save it,it forces the browser to retrieve the page again. That's probably why it works when you make another edit. Just wild guess.

--WadeDuck, 23-May-2007


Wadeduck,

Sorry about the testpage2, yes it's testpage1. When I say go to main page I meant clicking on the 'Home' tab on the top right of wiki page. I click on that and testpage1 is displayed as a fresh page to be created eventhough I already created it. Now, if I click on testpage1 link again, it will take me to the created testpage1 page and I can add some more data and save it. Then I click on Home tab and go to main page. Still testpage1 is displayed in red color with dotted lines. As I said before testpage1 doesn't get displayed as a link to a page created unless I make some changes in the main page and save it (which means I have to edit main page atleast once and save it after I create a new page link.) or restart tomcat. I'm using JSPWiki 2.5.51.

--Roopa., 23-May-2007


Roopa,

Just a wild guess - try removing the refmgr.ser file located under the directory where the jspwiki.workDir property was defined. Tomcat should be restarted too.

--David Au, 23-May-2007


David, It didn't work. There were lot of JSPWiki-xxxx/ Lucene, refmgr.ser directories. I removed all of them. Next time I started tomcat and ran JSPwiki trying to work with links, nothing changed and a JSPWiki-xxxx folder containing Lucene and refmgr.ser was created.

Just curious did link tag behaves same for you?

--Roopa, 23-May-2007


Roopa,

Nope, my wiki links appear fine. Might it be possible that you have made changes to the source code somewhere that would have caused this ? (I recall something about the WysiwygEditingPatch files that you really did not need). One thing to try is to get the latest CVS source and do a clean build.

--David Au, 24-May-2007


David,

I downloaded the latest 2.5.62 version that came with war file. Just opened using tomcat and Wiki links act the same way. Link appears in red indicating the page needs to be created. I hope I was clear about my problem. Here it is again just in case,

1. I create a link in Main page to a testpage that doesn't exist. Like this, testpage.

2. When I view Main page 'testpage' link appears in red (as it should).

2. Now I click on testpage link to create that page.

3. I'll add some data and save it.

4. I press Home tab on the right corner of wiki page to go to Main page.

5. The testpage link should appear in blue color since it's already created. But it's still in red color.

It doesn't matter if I view Main page on 'Your trail' area or by clicking on Home tab. Main page with testpage in red color is rendered. The testpage link appears on 'your trail:' though. When I click on the testpage it opens with data I entered previously. Just link won't appear in blue on Main page.

Now, if I make any changes in Main page and save it..and view Main page again the testpage link appears in blue. So I have to edit and save Main page atleast once after I create testpage in order for the testpage link to appear in blue. Or it will take effect if I restart tomcat.

I tried changing cache values in jspwiki properties it didn't work. I have no idea what am I doing wrong.

--Roopa., 24-May-2007


Persistance of an UndefinedPage listed by the ReferringPagesPlugin in a Category page when renamed#

I post this here under a very similar one...

Desc : Under 2.4.104 I create a page, with a link referring to a Category. Then I change my mind and rename that first page, leaving the very same content

Problem : In my Category page, wich consist only in the ReferringPagesPlugin's code, both pages appear - the first one in red, since it doesn't exist anymore.

'Question : How can I get rid of that persistant but forgettable link ?

Nearly Solved (22-Oct-2007): I got rid of that problem, getting rid of the cache...

--Pascal Blondiau, 19-Oct-2007


Group Permission issue within policy file#

I just installed JSPWiki v2.4.102 and created a group called InternetAdmin. The members of that group should be the only users to view and edit pages starting with Private.

I have added this to the policy file but to no avail. All users including Anonymous are able to view the pages. I'm able to give AllPermissions and see the groups permissions upgraded and I'm able to get the Private* pages to work if I put an ACL in the Private pages but I would like to put this at a global level and not use an ACL.

Anonymous and Asserted roles have PagePermission "*:*", "view";
Authenticated role has PagePermission "*:*", "modify,rename";

grant signedBy "jspwiki",
principal com.ecyrd.jspwiki.auth.GroupPrincipal "InternetAdmin" {
permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:Private*","edit";
};

Any ideas?

Thanks, Brian -- May 29, 2007

My guess is that you're inadvertently giving rights to others as well. I mean - up there you are giving the modify permission (and for page editing, modify and edit are the same things; the difference is in upload handling) to Authenticated users to all pages (*:*). Therefore, anyone who is Authenticated (and can therefore belong to a group), already has edit access, so your limiting rules is never even checked.

And this isn't a simple ordering problem either: by default, Java security manages things so that everything is forbidden, except when explicitly allowed. Therefore, all permissions are checked, until you find something which gives you access to the resource. It's not like a firewall which has DENY rules, which can prevent you from checking the rest of the rules.

Therefore, what you are attempting to do is not very easy to do with policy files, since the permission is not really a regexp... However, it would be very easy to lock down the wiki completely, and allow public access to every page starting with "Public*"...

-- JanneJalkanen

-- JanneJalkanen, thanks for the reply. I understand much better what is happening and just for FYI... I've decided that the simple ACL in Private pages is sufficient. There are only a handful of us in the group so it just makes sense to use the ACL instead of trying to over-complicate things.

-- Brian

Login timeout issue#

I setup a Wiki for our Client Support and Software Development staffs. We will often open a browser to the Wiki and leave it open throughout the day. Those of us who regularly contribute to the content can login to JSPWiki (2.4.102) and are able to browse and edit pages as permitted. However, if we have been inactive on the Wiki for a brief period we are automatically logged out.

This is particularly problematic when editing a page. There have been several instances where I (or anyone else) was editing a page, called away from the desk for +/- 10 minutes, returned and continued the edit session. Each time I have lost the work when submitting the completed page by being redirected to the login page. It is clear the timeout period is shorter than the edit lock period because logging in, returning to the page, and editing it again results in a warning that the page is already being edited by me.

I have also observed how the timeout will also prevent viewing pages. A brief period of inactivity inevitably leads to being forced to login again.

Where do I change the configuration to eliminate or at least significantly extend the timeout period? Is it in JSPWiki? Is it in Tomcat? Is it somewhere else entirely? What do I need to do to prevent such frustrations in the future?

-- Marc 17 Jul 2007 (mweintraub at neweratickets dot com)

The timeout is configured in the web.xml file. Put in

    <session-config>
      <session-timeout>600</session-timeout> 
    </session-config>
in the appropriate place to have the sessions timeout every 600 minutes (10 hours) as opposed to the default of 30 minutes. Also, check that nobody has set that timeout to be less. From your description it sounds plausible.

(If all else fails, try increasing the maximum space available to your JVM via the -Xmx switch. There was a known bug with users being logged out in low-memory situations, but that should be solved in 2.4.102.)

-- JanneJalkanen

I thought I had added the code correctly but it did not have the desired effect. I also checked memory usage on the server and found that there is usually in excess of 40% free. Likewise, my workstation generally has at least 5-10% free. Here is where I placed the code:

CODE DELETED

Did I misunderstand where to put it in the WEB.XML file? I did bounce (stop/start) the Tomcat service but was that enough? Were there other services that should have been bounced as well? Did I need to reboot the server?

Never mind, I failed to restart the browser or at least clear the cookie.

Thank you for your help. The Wiki is doing great things for my positive visibility with my superiors. I truly appreciate your swift reply and willingness to assist.

-- Marc 18,19 Jul 2007


when i post the comment from another machine the server reported it to me

Error Message Attempt to post from a different IP address than where the page was originally fetched. An unknown error was caught by Error.jsp Exception java.lang.Exception Place where detected org.apache.jsp.Error_jsp._jspService(), line 109

--basem, 26-Jul-2007


Empty Search Results

I was put into a new work environment with a JSP Wiki that the users have been working on for a while. Recently they have not been able to get any results from searches as they did in the past. There are no error messages that pop up, but with each search, a results page loads with no results, no matter the search. Are there any tips that may help me narrow down the places that I should start looking to see if there has been any code that was broken, etc? (We are currently using JSP Wiki v2.2.28).

Thanks in advance.

-- JohnDodson, 30 Jul 2007

The simplest thing is probably to empty the work directory (where the Lucene indexes are) and restart - this should recreate the index in case it is corrupted.

-- JanneJalkanen, 30 Jul 2007

Together with the wiki admin, we were able to figure out the problem thanks to your help! Thanks again.

-- JohnDodson


Error When Pressing Save Profile

I deployed my Wiki on my test server and everything worked fine, so then I deployed it on my work server, copied my test folder on top of the deployed one, made the jspwiki.properties paths work for the server, and everything is working great except this problem..

JSPWiki has detected an error

Error Message
    An unknown exception java.lang.NoClassDefFoundError was caught by Error.jsp.
Exception
    java.lang.NoClassDefFoundError
Place where detected
    com.ecyrd.jspwiki.auth.UserManager.parseProfile(), line 344

If you have changed the templates, please do check them. This error message may show up because of that. If you have not changed them, and you are either installing JSPWiki for the first time or have changed configuration, then you might want to check your configuration files. If you are absolutely sure that JSPWiki was running quite okay or you can't figure out what is going on, then by all means, come over to jspwiki.org and tell us. There is more information in the log file (like the full stack trace, which you should add to any error report).

And don't worry - it's just a computer program. Nothing really serious is probably going on: at worst you can lose a few nights sleep. It's not like it's the end of the world. 

Anyone have any ideas?

--Xeanor, 09 Aug 2007



Hi,

I have two questions?

First, how to set the page title so that the words in the title sentence are separated by space as it should be, like pages here? For example, I want the title be 'Service Composition' because this is what I have typed, but it shows 'ServiceComposition'.

Second, I am a Chinese User, I have found the last Chinese word in the page title lost in many pages which have Chines words as their title. For example, the title should be '工作流', but it shows '工作', How to solve this problem?

--zjg_robin, 17-Aug-2007


Hi,

I've solved the first question when I found the setting in jspwiki.properties. So, how to solve the second one?

Thanks.

--zjg_robin, 18-Aug-2007


Right have got JSPWiki v2.5.93-beta up and running on a linux server and everything is running fine so far, have added lots of content and it's all going well, apart from just noticed that the version number of each wiki page isn't updating when i edit it, it constantly stays on version 1. In the bottom of the page it says: "this page (revision-) was last changed on 24-Aug-2007 ect." notice how it just says version- as opposed to version-1, also if i click on the date it just says: "Difference between version -1 and -1" no matter how many times i've edited the page, anyone have any idea whats going on or what i have done wrong? Cheers, Chaz

--Chaz_Ahhh, 28-Aug-2007


Trying to run JSPWiki-2.4.103 on WebSphere V6.0.2.9 getting "Error 500: Filter WikiJSPFilter: could not be initialized". Can anyone help?

--AnonymousCoward, 28-Aug-2007


Could you post some stacktrace or other info from the WebSphere logs ?
It would probably be easier to diagnose from here.
(WebSphere is "famous" for its classloader options and the fact that commons-logging jar files are in the WebSphere lib directory, that causes very often problems for applications that werer developend/tested on other (Tomcat) application servers).

--HarryMetske, 28-Aug-2007


WebSphere trace for "Error 500: Filter [WikiJSPFilter]: could not be initialized"

[8/28/07 17:09:05:400 EDT] 00000020 ServletWrappe A   SRVE0242I: [jspWiki] [/wiki] [/Install.jsp]: Initialization successful.
[8/28/07 17:09:05:460 EDT] 00000020 WebApp        A   SRVE0180I: [JSPWiki] [/wiki] [Servlet.LOG]:  Assigning new engine to 1053290
197
[8/28/07 17:09:05:490 EDT] 00000020 WebApp        A   SRVE0180I: [JSPWiki] [/wiki] [Servlet.LOG]: No jspwiki.propertyfile defined 
for this context, using default from /WEB-INF/jspwiki.properties
[8/28/07 17:09:06:461 EDT] 00000020 WebApp        E   SRVE0026E: [Servlet Error]-[/Install.jsp]: java.lang.VerifyError: (class: co
m/ecyrd/jspwiki/plugin/PluginManager, method: parsePluginLine signature: (Lcom/ecyrd/jspwiki/WikiContext;Ljava/lang/String;I)Lorg/
jdom/Content;) Wrong return type in method
	at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:540)
	at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:432)
	at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:331)
	at com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:56)
	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)
	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:326)
	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:152)
	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:200)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:636)
	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:178)
	at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:252)
	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2965)
	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1931)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

--Reed Clarke, 29-Aug-2007


I deployed Tomcat 5.5 on aix (it is running ok) and deployed JSPWiki. When I try to run \JSPWiki\Install.jsp. I get the following message:

HTTP Status 404 - /JSPWiki/Install.jsp

type Status report

message /JSPWiki/Install.jsp

description The requested resource (/JSPWiki/Install.jsp) is not available. Apache Tomcat/5.5.23

please help.

--Reed Clarke, 30-Aug-2007


Reed,

looking at the stacktrace it looks like you have mixed version situation for the jdom library.
This is a known issue with WebSphere, a workaround has been described in Bug Problems With Common Logging

--HarryMetske, 01-Sep-2007


hi there!

i can't get jspwiki to work with jboss AS 4.2.1GA... this is the error trace i get...

15:28:12,605 INFO  [TomcatDeployer] deploy, ctxPath=/JSPWiki, warUrl=.../tmp/dep
loy/tmp28815JSPWiki-exp.war/
15:28:12,885 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppend
er" object is not assignable to a "org.apache.log4j.Appender" variable.
15:28:12,885 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" wa
s loaded by
15:28:12,885 ERROR [STDERR] log4j:ERROR [WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@12c08c7
] whereas object of type
15:28:12,885 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender
" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@173831b].
15:28:12,885 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FI
LE".
15:28:13,486 INFO  [STDOUT] 15:28:13,486 INFO  [[/JSPWiki]]  Assigning new engin
e to 24660241
15:28:13,486 INFO  [STDOUT] 15:28:13,486 INFO  [[/JSPWiki]] No jspwiki.propertyf
ile defined for this context, using default from /WEB-INF/jspwiki.properties
15:28:13,496 INFO  [STDOUT] 15:28:13,496 INFO  [WikiEngine] ********************
***********************
15:28:13,496 INFO  [STDOUT] 15:28:13,496 INFO  [WikiEngine] JSPWiki 2.4.103 star
ting. Whee!
15:28:13,526 INFO  [STDOUT] 15:28:13,526 INFO  [WikiEngine] JSPWiki working dire
ctory is '/tmp/'
15:28:13,686 INFO  [STDOUT] 15:28:13,646 ERROR [[/JSPWiki]] Exception starting f
ilter WikiJSPFilter
java.lang.ExceptionInInitializerError
        at com.ecyrd.jspwiki.providers.CachingProvider.initialize(CachingProvide
r.java:132)
        at com.ecyrd.jspwiki.PageManager.<init>(PageManager.java:107)
        at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:539)
        at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:432)
        at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:331)
        at com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:56
)

can anyone help?

--Bryan Martinez, 05-Sep-2007


Thank you very much Harry, that did the trick. The issue I have now is that when I try to login as "admin" using the assigned password I get a login error "Error: Not a valid login.". Any suggestions?

--Reed Clarke, 05-Sep-2007


Maybe you can turn on a higher debug loglevel in jspwiki.properties, recreate the problem, and see if you can find a clue in the jspwiki.log.

--HarryMetske, 05-Sep-2007

Tabs content displaying all on one page#

Hi,

Does anyone know why all tab content displays on one page when JSPWiki is placed on the server? I also have a local copy and does not have this problem, I am using JSPWiki version 2.5.114 with brush template v3.x Sep-Nov 05. I have not altered any of the javascript.

Any solution will be mostly appreciated

--DH


In an attempt to get jspWiki security enabled, I am trying to run http://localhost:9081/wiki/admin/SecurityConfig.jsp. My app. server is WebSphere 6.0.2.9 on (local os is Windows XP) (production os is AIX 5.3) I am getting the following error:

JSPG0227E: Exception caught while translating /admin/SecurityConfig.jsp: /admin/SecurityConfig.jsp(91,1) --> JSPG0123E: Unable to locate tag attribute info for tag attribute java.security.auth.login.config.

Can anyone provide some help/example of setting up jspWiki Security in WebSphere environment?

--Reed Clarke, 09-Sep-2007


I'm not quite sure, but it looks like you run into the tiny differences between the Tomcat JSP compiler and the IBM WebSphere JSP compiler.
I ran into a few of these bugs too about a year ago, and quickly decided to switch from WebSphere to Tomcat.
Although JSPWiki should run in almost every Servlet/JSP container, it is mainly developed and tested with Tomcat.

Similar bugs have been reported in the past:

Maybe you can check the JSP for tiny errors like unmatched quotes and double quotes ?

--HarryMetske, 10-Sep-2007


NOW can anyone provide an example of setting up JSPWiki security in WebSphere.

The output from admin/SecurityConfig.jsp (see below) was not very helpful.

Inside the JAAS config file, we must be able to find two login configurations: JSPWiki-container and JSPWiki-custom.

Good news: We found the 'JSPWiki-container' login configuration. We found the 'JSPWiki-custom' login configuration.

We found some errors with your configuration:

We could not find the 'JSPWiki-container' login configuration. We could not find the 'JSPWiki-custom' login configuration.

The JAAS configuration looks broken. Users may not be able to log in. You should be able to fix this by locating the JAAS configuration file and appending the contents of WEB-INF/jspwiki.jaas.

one says "Good news: We found.... the other says "...errors...We could not find ..."

Seems a bit of a contradiction.

Again, thank you Harry, I got admin/SecurityConfig.jsp to launch it was """" issue.

--Reed Clarke, 14-Sep-2007


Please Help!#

I have jspwiki, how I can delete sides there? Sorry for me bad english, i am from germany. Thank Sebastian

I am unsure what you mean by "delete sides". Will you clarify what you are attempting to perform?

--Rob Schramm, 09-Oct-2007

How to create Horizontal scrolling text with hyperlinks in JSPWiki?#

Something like banner. HTML provides <merquee> tag for this.

--Sachin Chaudhari chaudhari2k@yahoo.com, 10-oct-2007

How to create Es ist kein InterWiki-Link jar definiert!, 24-oct-2007#



Plugin insertion failed: Not allowed to access plugin ...#

Q: Hi, i'm trying to get my plugin (jar file) working but i only get this message: Plugin insertion failed: Not allowed to access plugin ... What does this mean ? Searching doesn't helped me. I made my package according to those tutorials:

regards jb, 15-oct-2007


jspwiki.policy does not work#

Q: Hi, I have made changes to my jspwiki.policy file, but it is not reflected. I need to set my jspwiki v2.4.104 private for 3 users. I have removed all privileges from Anonymous and Asserted roles. But it is still not enough, as any anonymous user can view any page. What do I need to do? Below is my policy:
grant signedBy "jspwiki", 
  principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:Main", "view";
};

grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "Asserted" {
    permission com.ecyrd.jspwiki.auth.permissions.GroupPermission "*:Main", "view";
};

grant signedBy "jspwiki", 
  principal com.ecyrd.jspwiki.auth.authorize.Role "Authenticated" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*", "modify,rename";
    permission com.ecyrd.jspwiki.auth.permissions.GroupPermission "*:*", "view";
    permission com.ecyrd.jspwiki.auth.permissions.GroupPermission "*:<groupmember>", "edit";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "createPages,createGroups";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editPreferences";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editProfile";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "login";
};

grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.GroupPrincipal "Admin" {
    permission com.ecyrd.jspwiki.auth.permissions.AllPermission "JSPWiki";
};

grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "Admin" {
    permission com.ecyrd.jspwiki.auth.permissions.AllPermission "JSPWiki";
};

Issues with Upgrade to 2.4.104#

We have had JSPWiki running and when we went to upgrade from JSPWiki v2.4.82, we are receiving an error when we try to access any pages. The error is:
javax.servlet.jsp.JspException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
	at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:90)

Any help would be appreciated. -jim


Installed JSPWiki v2.4.104 but when you try to use the wysiwyg editor you get the following error
load: class org.wikiwizard.FlashSplash not found.
java.lang.ClassNotFoundException: org.wikiwizard.FlashSplash
	at sun.applet.AppletClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadCode(Unknown Source)
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
	at sun.applet.AppletClassLoader.getBytes(Unknown Source)
	at sun.applet.AppletClassLoader.access$100(Unknown Source)
	at sun.applet.AppletClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	... 10 more

Any help appreciated Pete



Image Frame - Rounded Corners#

Hello,

The following image frame for rounded corners works well with text, but when you use it to frame an image, the frame gets chopped on the top and bottom, as in the example below. (This problem occurs with an IE browser).

Any suggestions for fixing this?

Thank you!



Sample Text - Rounded Corners work OK with text, but not with an image.


Exception in the tomcat logs:

I am running with jspWiki 2.6 and am seeing the following exceptions in the catalina.out log:

Jan 2, 2008 1:45:36 AM org.apache.catalina.session.StandardSession writeObject WARNING: Cannot serialize session attribute JSONRPCBridge for session 8FCE64F0F6FA8DB5FB62E80BF441CFA8 java.io.NotSerializableException: com.ecyrd.jspwiki.search.SearchManager$JSONSearch at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) at java.util.HashMap.writeObject(HashMap.java:985) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)

Does anybody know the cause for this issue? I am not able to edit and save any of the pages because of this issue. I am using tomcat 6.0.14 as the container. Any advice would be helpful.

--VarunGandhi, 02-Jan-2008


Uploading attachment causes Exception report#

I've just updated to 2.6.0. Everything seems to be working fine apart from attachments. Once you click on Upload I get the following error. I also tried this on a clean install of JSPWiki and get the same problem. Hope someone can help. Thanks.

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.String.contains(Ljava/lang/CharSequence;)Z
	com.ecyrd.jspwiki.dav.WebdavServlet.service(WebdavServlet.java:174)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
root cause

java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
	com.ecyrd.jspwiki.attachment.AttachmentServlet.validateNextPage(AttachmentServlet.java:522)
	com.ecyrd.jspwiki.attachment.AttachmentServlet.upload(AttachmentServlet.java:575)
	com.ecyrd.jspwiki.attachment.AttachmentServlet.doPost(AttachmentServlet.java:454)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	com.ecyrd.jspwiki.dav.WebdavServlet.service(WebdavServlet.java:167)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

-- John Eddie, 18-Jan-2008


Then you probably run with JDK 1.4.
The stacktrace shows java.lang.String.contains(), which was introduced in JDK 5.0.
This statement in AttachmentServlet line 522 was introduced while fixing JSPWIKI-46.

So you can try to run it with JDK 5.0, or file a bug report. The download page tells us that JDK 1.4 should be sufficient for 2.6.

regards, Harry

--HarryMetske, 18-Jan-2008


Hi!

This should be filed as a bug in our issue tracker. It may be that inadvertently something JDK 1.5. has slipped in.

--JanneJalkanen, 19-Jan-2008


Hi,

I am unable to get the JAAS authentication working when deployed on JBOSS. I enabled Log4j on jboss and captured these logs. What roles do I give to the user 'rr' in roles.properties under jboss? Can you please help?

2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.login.XMLLoginConfigImpl JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - End getAppConfigurationEntry(JSPWiki-container), authInfo=AppConfigurationEntry[]:
[0]
LoginModule Class: org.jboss.security.auth.spi.UsersRolesLoginModule
ControlFlag: LoginModuleControlFlag: required
Options:
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - initialize, instance=@6455597
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - Security domain: other
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - findResource: null
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - Properties file=file:/C:/install/Server/jboss-4.0.5.GA/server/default/conf/users.properties, defaults=null
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - Loaded properties, users=[rr, tt, rk]
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - findResource: null
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - Properties file=file:/C:/install/Server/jboss-4.0.5.GA/server/default/conf/roles.properties, defaults=null
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] DEBUG org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - Loaded properties, users=[rr, tt, rk]
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - login
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] TRACE org.jboss.security.auth.spi.UsersRolesLoginModule JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - abort
2008-01-26 22:31:32,484 [http-0.0.0.0-8080-1] ERROR com.ecyrd.jspwiki.auth.AuthenticationManager JSPWiki:/jspwiki/Login.jsp JSPWiki:http://localhost:8080/jspwiki/Login.jsp - Couldn't log in.
Message=CallbackHandler does not support: javax.security.auth.callback.NameCallback@10eb6ae


default group?#

is there an easy way to define a default group every new registered user belongs to? --ArneAnka 21-Feb-2008

notification?#

is there an easy way (ie w/o editing the code of beans) an admin will be notified if someone registers a new account? --ArneAnka 21-Feb-2008

When an unauthenticated user tries to access the main page, he/she is redirected to the Login page#

I'm currently upgrading from 2.4.5 to 2.6.1. First of all I set up 2.6.1 with the jspwiki.policy file configured so that all users can view all pages. When using the sample corepages, everything works fine. However, once I transfer the existing pages from the 2.4.5 wiki, anonymous and asserted users who try to access the Main page always get redirected to the Login page. All other pages are fine (meaning, they can be viewed). This is a sample of the generated log entry:
2008-03-07 18:02:46,522 [http-8080-1] INFO com.ecyrd.jspwiki.WikiContext JSPWiki:/JSPWiki/Wiki.jsp JSPWiki:http://localhost:8080/JSPWiki/Wiki.jsp - User 127.0.0.1 has no access - redirecting (permission=("com.ecyrd.jspwiki.auth.permissions.PagePermission","JSPWiki:Main","view"))
Has anyone encountered this before? --DavidTan 07-Mar-2008

Search Problem#

When using the search box, we get a javascript error: SearchBox.searchForm.query is null or not an object... What can we do? --Assia


Revision function not working properly#

Q: I'm running JSPWiki 2.6.0. It appears that revisions are not being maintained. There is a reference to this same issue within this support page, by --Chaz_Ahhh, 28-Aug-2007, but I see no answers. All of my pages read "This page (revision-) was last changed on..." Does anyone have suggestions on what my problem might be? I've done a site search on jspwiki.org and scanned the FAQ/Support pages.
-Thanks in advance.
-- JaySellers

Jay,

In your jspwiki.properties file, you may need to set the jspwiki.pageProvider property to be VersioningFileProvider .

--DavidAu 03-Apr-2008

Thanks DavidAu!, That was the problem, I really appreciate it thank. -- JaySellers


--kjsimons 06-Apr-2008 - Q - I received the attached exception error while trying to create a new group. When I look at the latest changes, the page shows as created, but when I click on the link, all I see is the error. Does anyone have any suggestions? Thanks! Kirsten


I am trying to deploy JSPWiki 2.4.104 on WebSphere 5.1 but cannot get it to work. It looks like it is a policy file problem. The SecurityConfig shows that it can find the right policy file but it ignores the grants in the file and shows everything *red* when reading the grants. For the same reason after user admin in logged in I get access forbidden for evey page I try to access. Also the profile and preferences pages load blank. Please see the attachment. Logs look clean. I will appreciate if someone can help me. Thanks.

Page Names with blanks#

We recently upgraded to v2.6.1 from 2.4. In the old version, we could create new page links with embedded blanks, and JSPWiki would remove them when creating the page. v2.6 does not; it creates filenames with embedded + signs for the blanks, and this leads to all sorts of problems.

We're wondering why did this behavior change, was it on purpose, and if it can be reverted to act the way it did before?

-- Steve Smith 3 June 2008


Yes, this change was on purpose. JSPWiki now allows pages with spaces in them (as this was a rather frequently asked feature). It cannot be reverted except by changing the source code and recompiling.

During testing we saw no problems at all with the file names. What kind of issues are you having? (BTW: I would recommend joining the jspwiki-users mailing list for better discussion options.)

--JanneJalkanen, 04-Jun-2008


Thanks for the response. The issue is generally getting two pages where there's only supposed to be one. The interaction among page aliases, beautify titles, and our inconsistent use of links with or without blanks make this a hassle.
p.s. I joined the mailing list.

-- Steve Smith 3 June 2008


Hey all, i just installed JSPWiki but cant login as admin :( The Wiki says password wrong (i entered the password from the install.jsp page)

Is there a way to reset it? -- John Smith 17 June 2008


Hey all, I just started with JSPWiki and with the documentation the basic setup was not so bad. But I´m struggling with the ACLs. I checked the Howto for version 2.3 but either my installation is not o.k or ??? e.g. I created the Group "SocialCommitee" as it is described but I do not get the page "GroupSocialCommitee". When I try to insert the example to the jspwiki.properties, the manager doesn´t start anymore. Can anyone assist me? Thanks in advance - Herbert


Hi,

first of all, let me say I am not a Java pro, so please bear with me. I am conducting a JSPWiki 2.6.4 install with Glassfish v2 On Open Solaris. I have glassfish working great, and I've tested it with a test .war file. I have deployed JSPWiki using the directions on this site, and I find everything doable except for copying the "WEB-INF/jspwiki.jks to /domains/domain1/config/" I can't find the file for the life of me, whether I download the binary from the downloads section, or I download the soruce code and compile it in Ant. If I pull up a browser and go to http://localhost:8080/JSPWiki/Install.jsp, I get this:

HTTP Status 503 -


type Status report

message

descriptionThe requested service () is not currently available.


Sun Java System Application Server 9.1_02

Is there a way around not having the jspwiki.jks file? If not, what can I do to obtain or create that file? Also, is that whats causing the install page to produce that error?

Thank you.

--Jude Cadet, 04-Sep-2008


The JKS file is no longer required in 2.6.x, so this error message is coming because of a different problem. What do your log files tell you?

-- JanneJalkanen


I have looked at the log, and see a few errors when I start the server:

1240 INFO Starting Sun-Java-System/Application-Server.(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:45.760 _ThreadID=10;_ThreadName=main; 1241 INFO Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:46.749 _ThreadID=10;_ThreadName=main;8080; 1242 INFO Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:46.949 _ThreadID=10;_ThreadName=main;8181; 1243 INFO Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:46.961 _ThreadID=10;_ThreadName=main;4848; 1244 INFO WebModule/JSPWiki(info) ServletContext.log(): Assigning new engine to 19374604(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:49.312 _ThreadID=10;_ThreadName=main; 1245 INFO WebModule/JSPWiki(info) ServletContext.log():No jspwiki.propertyfile defined for this context, using def... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:49.315 _ThreadID=10;_ThreadName=main; 1246 INFO WebModule/JSPWiki(info) ServletContext.log():Loading cascading properties...(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:49.332 _ThreadID=10;_ThreadName=main; 1247 INFO WebModule/JSPWiki(info) ServletContext.log(): No cascading properties defined for this context(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:49.333 _ThreadID=10;_ThreadName=main; 1248 INFO JSPWiki Lucene Indexer.(details) javax.enterprise.system.stream.out Sep 4, 2008 15:59:50.345 _ThreadID=13;_ThreadName=JSPWiki Lucene Indexer; 1249 INFO WatchDog for 'JSPWiki'.(details) javax.enterprise.system.stream.out Sep 4, 2008 15:59:50.396 _ThreadID=14;_ThreadName=WatchDog for 'JSPWiki'; 1250 INFO WebModule/JSPWiki(info) ServletContext.log():JSPWiki: Unable to load and setup properties from jspwiki.p... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.800 _ThreadID=10;_ThreadName=main; 1251 INFO WebModule/JSPWiki(info) ServletContext.log():ERROR: Failed to create a Wiki engine: JSPWiki: Unable to l... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.801 _ThreadID=10;_ThreadName=main; 1252 SEVERE Exception starting filter WikiJSPFilter com.ecyrd.jspwiki.InternalWikiException: No wiki engine, che... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.802 _ThreadID=10;_ThreadName=main;_RequestID=3531f46b-86cc-45d5-b706-e94d0d9e2c91; 1253 INFO WebModule/JSPWiki(info) ServletContext.log(): Assigning new engine to 19374604(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.806 _ThreadID=10;_ThreadName=main; 1254 INFO WebModule/JSPWiki(info) ServletContext.log():No jspwiki.propertyfile defined for this context, using def... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.807 _ThreadID=10;_ThreadName=main; 1256 INFO WebModule/JSPWiki(info) ServletContext.log(): No cascading properties defined for this context(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.808 _ThreadID=10;_ThreadName=main; 1255 INFO WebModule/JSPWiki(info) ServletContext.log():Loading cascading properties...(details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.808 _ThreadID=10;_ThreadName=main; 1257 INFO WebModule/JSPWiki(info) ServletContext.log():JSPWiki: Unable to load and setup properties from jspwiki.p... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.873 _ThreadID=10;_ThreadName=main; 1258 INFO WebModule/JSPWiki(info) ServletContext.log():ERROR: Failed to create a Wiki engine: JSPWiki: Unable to l... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.874 _ThreadID=10;_ThreadName=main; 1259 SEVERE Exception starting filter WikiServletFilter com.ecyrd.jspwiki.InternalWikiException: No wiki engine,... (details) javax.enterprise.system.container.web Sep 4, 2008 15:59:50.875 _ThreadID=10;_ThreadName=main;_RequestID=3531f46b-86cc-45d5-b706-e94d0d9e2c91; 1260 SEVERE Startup of context /JSPWiki failed due to previous errors(details) org.apache.catalina.core.StandardContext Sep 4, 2008 15:59:50.876 _ThreadID=10;_ThreadName=main;_RequestID=3531f46b-86cc-45d5-b706-e94d0d9e2c91; 1261 INFO JSPWiki Lucene Indexer.(details) javax.enterprise.system.stream.out Sep 4, 2008 15:59:50.917 _ThreadID=15;_ThreadName=JSPWiki Lucene Indexer; 1262 INFO Illegal access: this web application instance has been stopped already (the eventual following stack... (details) org.apache.catalina.loader.WebappClassLoader Sep 4, 2008 15:59:51.647 _ThreadID=13;_ThreadName=JSPWiki Lucene Indexer; 1263 INFO Self Management Rules service is enabled(details) javax.enterprise.system.core.selfmanagement Sep 4, 2008 15:59:51.757 _ThreadID=10;_ThreadName=main; 1264 INFO Application server startup complete.(details) javax.enterprise.system.core Sep 4, 2008 15:59:52.476 _ThreadID=10;_ThreadName=main;

Jude Cadet


We use JSPWiki on z/OS at my office, and it's great. I wanted to set it up at home as well. I've installed JSPWiki on a Windows 2000 SP4 machine, under Tomcat 6.0.16. Tomcat and JSPWiki seemed to install fine. When I go to the JSPWiki Main page, it looks like most of the page is missing, and everything is scrunched on the left side of the screen. There are some links on the page, such as "Home", "Log in", "MyPref", and "Please make a LeftMenu". If I click on any of these links, such as "Please make a LeftMenu", I get a message, "HTTP Status 404 - /JSPWikiEdit.jsp, type: Status report, message: /JSPWikiEdit.jsp, description: The requested resource (/JSPWikiEdit.jsp) is not available."

I get the same sort of message for any of the links. I also notice that, in the address bar of my browser, the URL ends with "/JSPWikiEdit.jsp?page=Main", for example.
I guess I would have expected it to end with "/JSPWiki/Edit.jsp?page=Main".

Any help would be appreciated. I apologize if I have posted this in the wrong place.

Thank you.

--Network Enginering, 24-Nov-2008

A: Check that you have a trailing slash after your jspwiki.baseURL!

-- JanneJalkanen

That was it, thank you.

--Network Enginering, 30-Nov-2008


I have also installed JSPWiki on a openSuse 11.0 machine. I can't even complete the install. When I try to go to localhost:8080/JSPWiki/Install.jsp, I get the following error: "The requested resource () is not available."

So far, I have had no luck getting JSP Wiki up on either platform. Any help would be greatly appreciated. (Windows issue solved)

--Network Enginering, 26-Nov-2008

Anyone have any ideas about this? Could there be something wrong with my Tomcat install? "JSPWiki" does show up in the Tomcat manager under the list of applications, but when I click on it, I get the same message.

30-Nov-2008


Internationalization#

How can I change the JSPWiki language to Portuguese?

--Rômulo Rocha, 15-Jan-2009


Issue with JBOSS-5.0.0.GA and JSPWiki 2.6.4#

I successfully implemented JSPWiki 2.6.4 on JBOSS 3.2.6RC2 on a Windows 2000 Server. To do so I removed log4j from JSPWiki.war as suggested earlier in this page. I was then able to deploy. I then exploded the war file as suggested and that also worked fine.

When I upgraded JBOSS to 5.0.0.GA, I was unable to deploy JSPWiki 2.6.4. When I tried to do so, I got the following errors and warnings:

WARN  [SaxJBossXBParser] SchemaLocation: schemaLocation value = 'http://java.sun.com/xml/ns/j2ee/web-app-2_4.xsd' must have an event number of URI's. @ vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/JSPWiki.war/WEB-INF/web.xml[6,23]
ERROR [AbstractKernelController] error installing to Parse: name-vfszip:/C:/jboss-5.0.0.GA/server/default/deploy/JSPWiki.war state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creaing managed object for vfszip:C:/jboss-5.0.0.GA/server/default/deploy/JSPWiki.war 
...

With the help of Harry Metske and Romano Silva, I was able to resolve this problem.

The resolution to this problem is two-fold. The web.xml in JSPWiki version 2.6.4 is not quite correct (this has already been corrected in JSPWiki 2.8) if you don't want to switch to 2.8, you can try to hack the JSPWiki JSPWiki.war/WEB-INF/web.xml file:

Change:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">

to read

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">

That fixes the first problem you encounter. The second problem happens when you make the fix above. After fixing the above, you get the error:

ERROR [[/JSPWiki]] Exception starting filter WikiJSPFilter
Java.lang.LinkageError: loader constraints violated when linking 
org/xml/sax/DTDHandler class
     at org.jdom.input.SAXBuilder.configureParser(SAXBuilder.java:614)
...

ERROR [[/JSPWiki]] Exception starting filter WikiServletFilter 
Java.lang.NoClassDefFoundError
     at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:504)
...

To fix that error, use the hint found in the BugProblemsWithCommonLogging page:

  • replace JSPWiki.war/WEB-INF/lib/commons-logging-api.jar with commons-logging-adapters-1.1.1.jar which appears in the Apache Commons Logging site
  • remove JSPWiki.war/WEB-INF/lib/xmlrpc.jar

Note: a web posting provides the clue to above.

--Tom Duffy, 15-May-2009 13:24


Is there someplace on this site that contains examples of how to add documents to a jspwiki? Specifically, documents from another box. I have pawed through this site, but have not found relevent examples. I am not a web "programmer", but have been tasked with tending to an existing jspwiki, and examples of typical tasks would be helpful.

August august.grammas@cingular.com

--AB, 22-Jun-2009 21:28


Oracle Application Server 10.1.3.4 Installation#

We have successfully installed JSPWiki 2.8.2 on an OAS 10.1.3.1 version, but it won't go on 10.1.3.4. This is the error message that we get:
2009-08-26 21:27:34,872 [OC4J Launcher] INFO com.ecyrd.jspwiki.WikiEngine  - JSPWiki 2.8.2 starting. Whee!
2009-08-26 21:27:34,872 [OC4J Launcher] INFO com.ecyrd.jspwiki.WikiEngine  - Servlet container: Oracle Containers for J2EE 10g (10.1.3.4.0) 
2009-08-26 21:27:34,888 [OC4J Launcher] INFO com.ecyrd.jspwiki.WikiEngine  - JSPWiki working directory is 'c:\highline\wiki\wikitemp'
2009-08-26 21:27:35,090 [OC4J Launcher] INFO com.ecyrd.jspwiki.util.ClassUtil  - You tried to instantiate an abstract class com.ecyrd.jspwiki.PageManager
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at com.ecyrd.jspwiki.util.ClassUtil.getMappedObject(ClassUtil.java:276)
	at com.ecyrd.jspwiki.util.ClassUtil.getMappedObject(ClassUtil.java:228)
	at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:525)
	at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:399)
	at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:340)
	at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:286)
	at com.ecyrd.jspwiki.WikiServlet.init(WikiServlet.java:54)
	at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
...and so on...
2009-08-26 21:27:35,090 [OC4J Launcher] FATAL com.ecyrd.jspwiki.WikiEngine  - JSPWiki could not start, due to an unknown exception when starting.
com.ecyrd.jspwiki.WikiException: Failed to instantiate class com.ecyrd.jspwiki.PageManager

ANY thoughts on where I can start hunting?

Robert


Robert,

Confirm that you have "jspwiki.pageProvider" defined in your jspwiki.properties file. I had the same issue on OAS 10.1.3.4. I defined it, and that issue went away.

David


Not sure where else to dump this but since this is the only place that mentioned this error (which i got immediately after dropping the war into my webapps dir (Tomcat 6.0.20, RH-ES3, Sun JDK 1.6.0_16)):
Sep 20, 2009 11:06:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Sep 20, 2009 11:06:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/JSPWiki] startup failed due to previous errors
after digging about (and cranking up the log levels) i finally found my way to /tmp/jspwiki.log where i found this:
java.io.IOException: Failed to create page directory /p/web/www-data/jspwiki , please check property jspwiki.fileSystemProvider.pageDir

turns out there are a whole bunch of file paths in the WEB-INF/jspwiki.properties that point to a "/p/web/www-data/jspwiki" directory and if you aren't running tomcat as root (assuming the code tries to create this directory) you get above filterStart error in your catalina.out. once i created a /var/www/jspdata directory and pointed all the file path props there it worked fine.

HTH Ron Reynolds



Support for more URIs?#

I'm looking to add support to JSPWiki for URIs such as rdp:// telnet:// vnc:// . Something so that the link gets to the browser and I don't get "No InterWiki reference defined..."

Thanks,

Brian

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
jspwiki.PNG 12.3 kB 1 25-Apr-2007 08:57 141.202.248.11
« This page (revision-433) was last changed on 10-Jun-2012 10:43 by Janne Jalkanen