How to startup XWiki-8.4.2 with Centos-7 and Tomcat-7?
I downloaded a .WAR version package of XWiki-8.4.2 under Centos-7.
And run it with Tomcat-7
The servlet always cannot be initialized:
Package versions:
tomcat-7.0.69-10.el7.noarch
java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2.x86_64
The error message is below:
#] cat localhost.2016-12-13.log
Dec 13, 2016 6:59:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [action] in context with path [/xwiki] threw exception
javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class com.xpn.xwiki.web.XWikiRequestProcessor: java.lang.NullPointerException
at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:614)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1910)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:136)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Dec 13, 2016 6:59:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Dec 13, 2016 6:59:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Dec 13, 2016 6:59:06 PM org.apache.catalina.core.ApplicationDispatcher invoke
WARNING: Servlet action is currently unavailable
Dec 13, 2016 6:59:06 PM org.apache.catalina.core.ApplicationDispatcher invoke
WARNING: Servlet action is currently unavailable
Dec 13, 2016 6:59:14 PM org.apache.catalina.core.ApplicationDispatcher invoke
WARNING: Servlet action is currently unavailable
Dec 13, 2016 7:00:34 PM org.apache.catalina.core.ApplicationDispatcher invoke
WARNING: Servlet action is currently unavailable
--
Kirby Zhou - 分机2557
Hi! I happily use comments to add somehow structured information to
documents. The most frequent case is to add new "tagged" attributes to
documents holding instances of the XWiki.XWikiUsers class. I'm sure there
must be better ways of doing that, but I've had no time yet to go deeper
into them, and I keep surviving that way.
What I'm not able to do is to select a set of documents not containing a
given string in any of the instances of XWiki.XWikiComments. Doing this...
select doc.fullName from Document as doc, doc.object(XWiki.XWikiComments)
as note where doc.parent like '%XWikiIDIS%' and length(doc.parent)=19 and
doc.parent not like '%Area%' and doc.parent not like '%Committee%' and
doc.parent not like '%Metagroup%' and doc.name not like '%Evidences%' and
doc.name not like '%OI' and doc.parent not like '%DirectionBoard%' and
doc.translation = 0 and note.comment not like '%IDIS Group Leader%' order
by doc.parent"
I get as many entries of each document as comments not containing '%IDIS
Group Leader%' are held by that document. But, please, how could I get one
entry for each document not containing that string in any of its comments?
Thanks for your help!
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
The problem is, I am not even getting an error message when trying to
install. I simply cannot select to install on the extension manager.
See here:
http://imgur.com/a/FZtCr
I am using the war I got here:
http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-8.4.2.war
And I am at a loss to explain why this won't do at all. Especially since
installing pegdown manually did not seem to help, since pegdown has a
dependency on parboiled and that seems to have been ignored, or maybe I
did something wrong there.
Hi Vincent,
I deduced (possibly wrongly) that from the fact that there's only a
Markdown Syntax 8.3 extension available, and the extension manager was
not able to install said extension at all.
When I downloaded it and placed the jar into WEB-INF/libs, the container
would not even start correctly, since it was missing the
org/xwiki/contrib/rendering/markdown10/internal/parser/AbstractMarkdownStreamParser
- after building and installing the 8.3 extension of markdown 1.1, there
was a missing pegdown dependency and so on.
And since github seems to have a 8.4-SNAPSHOT-Tag on the markdown
parser, I assumed that so far, 8.4 has no support for it.
Can you maybe tell me how to install it? Or is that because I already
set markdown/1.1 as possible renderer in xwiki.properties?
Hey,
I tried to google a solution but I did not found anything. Maybe somebody here can help me :-)
I observed the following behaviour on my XWiki (v 7.1.1): Using the XWiki Syntax 2.1 for inserting images leads to a problem if I am using parameters. Let's say im using [[image:img.png||width="25px"]]. When I am saving the page the source code of the generated html is something like <img src="/xwiki/bin/download/Space/img.png?width=25" width="25px" alt="img.png">.
After a refresh of the page the source code gets <img src="/xwiki/bin/download/Space/img.png?width=25&width=25" width="25px" alt="img.png">. After another refresh the source code gets <img src="/xwiki/bin/download/Space/img.png?width=25&width=25&width=25" width="25px" alt="img.png">. And so on and so on .....
After a lot of refreshes the src path is too long for my server (restricted to 1024 chars) and the image is not shown anymore.
When I edit the page and save it the path gets "normal" again.
Am I using the syntax wrong or is it (I guess that is the problem) a XWiki problem? I guess the path resolving has a bug but maybe somebody can help me without updating the XWiki?
Thanks in advance,
Patrick
Hello,
since there is so far no official support for parsing and rendering
markdown 1.1 in XWiki Enterprise 8.4, and so far we failed to plug in an
older version of it into the 8.4 infrastructure, I'd like to know if
there is any way to test if the parser is compatible with our markdown
docs, and if it is likely that said parser and renderer will be
available when 7.4 hits end of life (or maybe even earlier)
Hey,
I reproduced the problem 2 times:
1. I created a page with content: [[image:img.png||width="25px]] on our system.
2. I started the linked jetty/hsqldb package and have the same issue when creating a page (and refresh it multiple times)
Maybe this is interesting: My browser is Google Chrome.
Kind regards,
Patrick
What and how should I supply solr-config parameters to:
- Not generate the Facet, drill down feature (as there is a button in the UI!)
- Enable/Disable highlighting (as there is a button in the UI!)
- How can I specify the spaces (multiple) (Actually Nested pages as I'm on 8.xx) that should be excluded or Included in the search? Are there other paramaters that need to be supplied when using the spaces (nested Pages)
What is the place to add/remove HtML-classes to tune what the user will see; as the default displays a lot of metadata of the pages (Located in, Last modified, ...)
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
I didn't found equivalent of {{spaceindex sort="modificationDate" count="20" /}} then I must modify hql query in: /bin/edit/Main/SpaceIndex?editor=object
but I failed too too! :-(
I would to list all documents (terminale page and child space) under a root space, the i use this query :
#set ($docNames = $services.query.hql("from XWikiSpace as space where doc.space = space.reference and ((doc.space like ? )) order by $sortQuery").addFilter('currentlanguage').addFilter('hidden').setLimit($limit).bindValues([${spaceParam}]).execute())
- $spaceParam is my root Space
- $sortQuery = 'doc.contentUpdateDate desc'
but the query displayed this error:
Caused by: org.hibernate.hql.ast.QuerySyntaxException: Invalid path: 'doc.space' [from com.xpn.xwiki.doc.XWikiSpace as space where doc.space = space.reference and ((doc.space like ? )) order by doc.contentUpdateDate desc]
Thxs.
(I didn't found the query of Document Tree in source code either)
Pascal B
--------------------------------------------
En date de : Jeu 8.12.16, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
Objet: Nested document killed {{spaceindex}} macro?
À: "XWiki Users" <users(a)xwiki.org>
Date: Jeudi 8 décembre 2016, 18h18
Hello,
With my xwiki7.0.1 to 8.4 upgrade process, I noticed that
all my WebHome on spaces (with dashboard+{{spaceindex}}
macro) are "broken".
After a little bit of search, I understood that spaceindex
macro list only direct children terminal page...
In some different post from dev list, it seem that I must
use {{documentTree}} macro instead.
My spaces dashboard use
{{spaceindex sort="modificationDate" count="20" /}}
to list the 20 more recents page and I added a shortcut to
/bin/view/Main/SpaceIndex?space=MySpace (broken too:-( )
Could you give me some advices how can I replace my
"spaceindex" to:
- list the 20 more recents page (terminale and none
terminale) on current space?
I didn't found a "modificationDate" sorting parameter in
{{documentTree}}
- replace my target /Main/SpaceIndex?space=MySpace by ...
???
Probably I must create a custom LT to list every sub pages
Finaly, may be a caution text must be added on this page: http://extensions.xwiki.org/xwiki/bin/view/Extension/SpaceIndex+Macro
(ie "don't use this macro anymore with nested page!" or
"list only direct children terminal page ")
Thxs for your help.
Pascal BASTIEN