Hi all,
The docstats table doesn't seem to maintain counts for attachments
with v0.9.840.
Is there a way to get attachment download counts?
Regards,
Robin
Is it possible to only allow certain types of files to be attached? Can you
show the user an error when they try to upload a .doc file, but allow .jpg
files?
Thanks,
--Craig
It troubles me that no one has had an answer to this so far.
I tried asking roughly the same question of the velocity-users list and
was told that a new version of Velocity now does arithmetic with
non-integer numbers, but two things make that problematic: first, I
have limited access to the server to install software; second, I can't
believe that no one in all of XWiki's lifetime has ever tried to do any
date calculations, such as the difference of two dates, or
adding/subtracting intervals.
Isn't there an easier way to do this? All I want to do is decide
whether something's a week old.
brain[sic]
-----Original Message-----
From: THOMAS, BRIAN M (SBCSI)
Sent: Friday, March 03, 2006 5:18 PM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] Long arithmetic...?
It seems that a Velocity #set directive fails when the RHS involves any
arithmetic operation with long integers.
Specifically, I just wanted to determine the difference between two
dates, thus:
#set ($age = $xwiki.currentDate.time -
$obj.xWikiObject.getDateValue("donedate").time)
I confirmed that I got credible results from both of the operands by
printing them, and I could assign either of them to another variable
name, but setting $age to the result of any arithmetic operation with
any of them always gave "$age" as the formatted result.
This shouldn't be this hard, should it?
brain[sic]
I've attempted to install xwiki faithfully according to the
instructions, but alas it does not work.
Debian
linux 2.6.15
Tomcat 5.0.30-9
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-rc1)
Can anyone help interpret these errors?
INFO: Installing web application at context path /xwiki from URL file:/var/lib/tomcat5/webapps/xwiki
Mar 9, 2006 4:02:00 PM org.apache.catalina.core.StandardContext processTlds
SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /xwiki
javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /xwiki
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.processTlds(StandardContext.java:4412)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:811)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Mar 9, 2006 4:02:00 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError (Caused by java.lang.NoClassDefFoundError)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:130)
at org.apache.commons.beanutils.BeanUtilsBean.<init>(BeanUtilsBean.java:110)
at org.apache.commons.beanutils.BeanUtilsBean$1.initialValue(BeanUtilsBean.java:68)
at org.apache.commons.beanutils.ContextClassLoaderLocal.get(ContextClassLoaderLocal.java:80)
at org.apache.commons.beanutils.BeanUtilsBean.getInstance(BeanUtilsBean.java:78)
at org.apache.commons.beanutils.ConvertUtilsBean.getInstance(ConvertUtilsBean.java:115)
at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:217)
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:561)
at org.apache.commons.digester.Rule.end(Rule.java:230)
at org.apache.commons.digester.Digester.endElement(Digester.java:1163)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1680)
at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:517)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:626)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:811)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NoClassDefFoundError
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
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:274)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 53 more
Mar 9, 2006 4:02:00 PM org.apache.catalina.startup.ContextConfig defaultConfig
SEVERE: Parse error in default web.xml
org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError (Caused by java.lang.NoClassDefFoundError)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2952)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2978)
at org.apache.commons.digester.Digester.endElement(Digester.java:1166)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1680)
at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:517)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:626)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:811)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Mar 9, 2006 4:02:00 PM org.apache.catalina.startup.ContextConfig defaultConfig
SEVERE: Occurred at line 348 column 46
Mar 9, 2006 4:02:00 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Mar 9, 2006 4:02:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Mar 9, 2006 4:02:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 9, 2006 4:02:00 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file:/var/lib/tomcat5/webapps/ROOT
Mar 9, 2006 4:02:00 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:/var/lib/tomcat5/webapps/servlets-examples
Mar 9, 2006 4:02:00 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:/var/lib/tomcat5/webapps/jsp-examples
Mar 9, 2006 4:02:01 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:/var/lib/tomcat5/webapps/webdav
Mar 9, 2006 4:02:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Mar 9, 2006 4:02:01 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 9, 2006 4:02:01 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=10/63 config=/var/lib/tomcat5/conf/jk2.properties
Mar 9, 2006 4:02:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8548 ms
I get this all the time. I suspect it is due to a changed login page -
as this does not seem to happen on initial installations, only on the
installations that we have modified the login page.
-----Original Message-----
From: Stephen [mailto:steve@colehse.demon.co.uk]
Sent: 07 March 2006 14:59
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] Strange log on behaviour
I have an xwiki on the wiki farm.
Users sometimes experience the following behaviour:
(1) Go to site, see a log on screen
(2) Username and password entered - taken to an html style sheet (I
think)
- this shows up as a new window in IE, takes over existing window in
Firefox
(3) Click back in case of Firefox, or close window for IE
(4) Taken to "normal" log-on screen
see screen shots here:
http://www.thecolehouse.org.uk/screenshots.htm
(trying to get screen shoot of css but all machines to hand have got
password remembered and so this behaviour is skipped)
This is off-putting for non-catechise new users cause they log on and in
their eyes get a page of gobbledygook and then give up.
Can anyone advise?
Thanks
A few months ago, I came across a Wiki syntax conversion utility on the web.
It allowed me to paste some wiki text into a form, specify what kind of Wiki
it came from (jspwiki, xwiki, mediawiki, etc.), specify what Wiki form I
wanted it converted to, and then would convert it for me.
I spent some time Googling today to find it, and I can't. I even searched
this list's archives, because I thought I might have read about it here.
If anyone knows what I'm talking about and could respond on this list, I
would really appreciate it!
Stephen
Hi,
I keep getting this error when I try to use the graphviz plugin. Does
anyone know why this occurs?
graphviz: CreateProcess: dot -Tgif "C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\xwiki\dot\dot-1811682563.dot" -o
"C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\xwiki\dot\dot-1811682563.gif" error=2
Thanks,
ssh
I have an xwiki on the wiki farm.
Users sometimes experience the following behaviour:
(1) Go to site, see a log on screen
(2) Username and password entered - taken to an html style sheet (I think)
- this shows up as a new window in IE, takes over existing window in
Firefox
(3) Click back in case of Firefox, or close window for IE
(4) Taken to "normal" log-on screen
see screen shots here:
http://www.thecolehouse.org.uk/screenshots.htm
(trying to get screen shoot of css but all machines to hand have got
password remembered and so this behaviour is skipped)
This is off-putting for non-catechise new users cause they log on and in
their eyes get a page of gobbledygook and then give up.
Can anyone advise?
Thanks