Hi Ricardo
Thanks. I'd already checked the CSS out (I use Chrome's Developer tools but will checkout firebug) and was hoping there was a built in way or a pre-written extension to save some time.
Thanks for the "View Source" tip. I didn't have this option available as I hadn’t registered on xwiki.org yet (didn't have an actual need until now).
Kind regards,
Mahomed
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es
Sent: 15 April 2015 13:46
To: users(a)xwiki.org
Subject: Re: [xwiki-users] Keyboard icons in XWiki articles
Hi Mahomed!
Once again CSS is king! Install Firebug or Firebug Lite (http://getfirebug.com) or any other software that allow you to inspect the page and you'll see how CSS class key does the trick!
XWiki view source feature is also useful for understanding the whole picture. A XWiki.StyleSheetExtension holds the CSS code rendering this nice key images.
Hope this helps,
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
________________________________________
De: users [users-bounces(a)xwiki.org] en nombre de Mahomed Hussein [Mahomed(a)CustodianDC.com]
Enviado: miércoles, 15 de abril de 2015 14:27
Para: XWiki Users
Asunto: [xwiki-users] Keyboard icons in XWiki articles
Hi
Can anyone please tell me how I can create keyboard icons in my own wiki/document similar to how the icons appear on this page - http://platform.xwiki.org/xwiki/bin/view/Features/KeyboardShortcuts ? Hopefully this is built in ☺
Thanks in advance.
Kind regards,
Mahomed
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
________________________________
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi
Can anyone please tell me how I can create keyboard icons in my own wiki/document similar to how the icons appear on this page - http://platform.xwiki.org/xwiki/bin/view/Features/KeyboardShortcuts ? Hopefully this is built in ☺
Thanks in advance.
Kind regards,
Mahomed
Hi everybody,
I recently migrated our XWiki Windows Server installation to an Ubuntu
Server 14.10 (x64) setup with XWiki 7, Tomcat 8, Java 8 and Nginx proxy.
All issues that occurred were fixed and everything is running smoothly now
except for one thing.
JPG images don't show up on XWiki, I get the error output appended below.
The crucial line seems to be: "Could not initialize class
com.sun.imageio.plugins.jpeg.JPEGImageReader". I searched on google and
downgraded to JRE 7 but that didn't fix the issue so I re-installed JRE-8
and purged JRE-7 again.
Could someone please point me in the right direction how to fix this?
---[CATALINA LOG OUTPUT]---
WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 0
in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:368)
[XWikiAction.class:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
[XWikiAction.class:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
[RequestProcessor.class:1.3.10]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
[RequestProcessor.class:1.3.10]
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
[ActionServlet.class:1.3.10]
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
[ActionServlet.class:1.3.10]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
[tomcat8-servlet-api-8.0.9.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
[tomcat8-servlet-api-8.0.9.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
[ActionFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
[ConversionFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
[tomcat8-websocket-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
[SetHTTPHeaderFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
[XWikiDavFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
[SavedRequestRestorerFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
[SetCharacterEncodingFilter.class:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
[tomcat8-catalina-8.0.9.jar:8.0.9]
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
[tomcat8-coyote-8.0.9.jar:8.0.9]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_40-internal]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_40-internal]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat8-util-8.0.9.jar:8.0.9]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40-internal]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.sun.imageio.plugins.jpeg.JPEGImageReader
at
com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(JPEGImageReaderSpi.java:85)
~[na:1.8.0_40-internal]
at
javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:529)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:513)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO.read(ImageIO.java:1443)
~[na:1.8.0_40-internal]
at javax.imageio.ImageIO.read(ImageIO.java:1352)
~[na:1.8.0_40-internal]
at
com.xpn.xwiki.internal.plugin.image.DefaultImageProcessor.readImage(DefaultImageProcessor.java:58)
~[DefaultImageProcessor.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.shrinkImage(ImagePlugin.java:311)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadImageFromCache(ImagePlugin.java:285)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadImage(ImagePlugin.java:248)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadAttachment(ImagePlugin.java:221)
~[ImagePlugin.class:na]
at
com.xpn.xwiki.plugin.XWikiPluginManager.downloadAttachment(XWikiPluginManager.java:287)
~[XWikiPluginManager.class:na]
at com.xpn.xwiki.web.DownloadAction.render(DownloadAction.java:111)
~[DownloadAction.class:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:345)
[XWikiAction.class:na]
... 47 common frames omitted
Thanks in advance,
Dennis
Hello,
I wrote a component in eclipse using maven.
@Inject
private Container container;
....
HttpServletRequest request = (HttpServletRequest) container.getRequest();
String environement = request.getParameter(PARAM_ENVIRONNEMENT);
String referer = request.getHeader(REFERER);
...
And i tried to access this component in an xwiki page by :
def jsonObject = services.jenkinsJobsPresenter.presentJobs(); /*this method returns a jsonNode*/
But i have got this error
org.xwiki.container.servlet.ServletRequest cannot be cast to javax.servlet.ServletRequest
I want to get the HttpServletRequest , to get the parameters and the headers
First, i was trying to get the request from the XwikiContext but i noticed that it was deprecated.
Sincerely,
PS : i'm a junior developper and i have just started using xwiki from 2 weeks for a specific project.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Hello,
I wrote a component in eclipse using maven.
@Inject
private Container container;
....
ServletRequest request = (ServletRequest) container.getRequest();
HttpServletRequest req = (HttpServletRequest) request;
String environement = req.getParameter(PARAM_ENVIRONNEMENT);
String referer = req.getHeader(REFERER);
...
And i tried to access this component in an xwiki page by :
def jsonObject = services.jenkinsJobsPresenter.presentJobs(); /*this method returns a jsonNode*/
But i have got this error
org.xwiki.container.servlet.ServletRequest cannot be cast to javax.servlet.ServletRequest
I want to get the HttpServletRequest , to get the parameters and the headers
First, i was trying to get the request from the XwikiContext but i noticed that it was deprecated.
Sincerely,
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Hi!
In a user profile page with new tabs, I wish div dashboardleft occupy all available width for privateSpacePane.
I'm not able to find the right place to inject a width: 100%; property that is working for me when trying it with Inspector (Mac OS X, Safari)
http://atriumkm.idisantiago.es/bin/download/ICT/CSS/css.OnPrivateSpace02.png
Please, could you point me in the right direction? Must I add a XWiki.StyleSheetExtension object to XWiki.XWikiUserSheet? Must I add it to each user page? Could I use inline code in the concerned div element? I've tried a number of things but failed all and every time!
Thanks for your help!
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
________________________________
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
Hello,
My problems:
1. Double button on the top panel (How to switch off this?) (screen shot
is in attachment)
2. How to hide who modified something?
Greetings,
Maciek.
Hi All
I have problem to configure xwiki7
To attach big file to wiki
The steps that I did are:
Size Limit
The maximum size of an attachment is limited by a configuration parameter in the XWikiPreferences document. It is set to about 32MB by default.
To change it follow these steps:
1. Go to http://<yourwiki>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object<http://%3cyourwiki%3e/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object>
2. Click on the line that says XWikiPreferences 0 (right below the line that says Objects of type XWiki.XWikiPreferences (1))
1. Scroll down to the field that says Maximum Upload Size and change the number to 10737418240 bytes which is 10GB
2. Scroll to the bottom and click "Save"
3. Restarted the tomcat 8
This didn't work:
I am getting message that I can't attach files larger then 32mb
1. I have tried to attach a video file that about 32mb I got those messages:
[Caused by: java.lang.OutOfMemoryError: Java heap space among the long message]
A problem occurred while trying to process your request. Please contact the webmaster if this happens again.
Detailed information:
Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:368)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2367)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
at java.lang.StringBuffer.append(StringBuffer.java:232)
at org.suigeneris.jrcs.util.ToString.arrayToString(ToString.java:110)
at org.suigeneris.jrcs.rcs.impl.Node.setText(Node.java:349)
at org.suigeneris.jrcs.rcs.Archive.<init>(Archive.java:243)
at org.suigeneris.jrcs.rcs.Archive.<init>(Archive.java:214)
at com.xpn.xwiki.doc.XWikiAttachmentArchive.updateArchive(XWikiAttachmentArchive.java:185)
at com.xpn.xwiki.doc.XWikiAttachment.updateContentArchive(XWikiAttachment.java:891)
at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1643)
at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1602)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:543)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:177)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:170)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1423)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1367)
at com.xpn.xwiki.web.UploadAction.uploadAttachment(UploadAction.java:214)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:344)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
2. I have change the attachment location to:
a. To change the storage location do:
[root@ cat /usr/apache-tomcat-8.0.20/webapps/xwiki-enterprise-web-7.0/WEB-INF/xwiki.properties |grep -n environment.permanentDirectory
78:# environment.permanentDirectory=/var/local/xwiki/
b. I will change it to :
environment.permanentDirectory=/usr/apache-tomcat-8.0.20/Attachments
a. c. My vim setenv.sh
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"
CATALINA_OPTS="-server -Xms800m -Xmx800m -XX:MaxPermSize=196m -Dfile.encoding=utf-8 -Djava.awt.headless=true -XX:+UseParallelGC -XX:MaxGCPauseMillis=100"
export JAVA_OPTS CATALINA_OPTS
Please advise how to change the configuration to be able to attach big files to wikis
Thanks