Actually I saw that code. The simplest fix I could figure was this...
In the page http://.../xwiki/bin/edit/XWiki/WebRssCode,
I replaced this line
<dc:date>$currentdoc.date</dc:date>
with
<dc:date>$xwiki.formatDate($currentdoc.date, "yyyy-MM-dd'T'HH:mm:ss")</dc:date>
The fix however omits the timezone.
There is java code at http://www.dpawson.co.uk/relaxng/schema/datetime.html
which handles the timezone as well.
The SimpleDateFormat pattern "yyyy-MM-dd'T'HH:mm:ss.SSSZ" is close as it gives
2005-06-29T17:20:46.171-0800
This however does not work because of the missing colon. It needs to
be 2005-06-29T17:20:46.171-08:00
The simplest way seems to be to use commons-lang utilities
DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format(new Date())
Since commons-lang is already part of the distribution is there a easy
way to add this code? I just don't know how to incorporate it in here
at this point due to unfamiliarity with velocity, groovy etc.
Thanks very much.
regards
Sudhir
On 6/29/05, Ludovic Dubost <ludovic(a)xwiki.com> wrote:
>
> Yes.. You need to customize the code in BlogRssCode
>
> http://www.xwiki.com/xwiki/bin/view/XWiki/BlogRssCode?xpage=code
>
> You can get this code and put it in your wiki and modify it.
> The line <dc:date>$currentdoc.display("date", "view", $currentobj)</dc:date>
> Should be changed to some conversion.. I'm not sure which one though
> If you send us some java code that does the conversion and right
> formatting we can adapt it for the scripting
>
> Ludovic
>
> Sudhir Rao a écrit :
>
> >Is there any easy way to change the timestamp format in the rss feed
> >which gets generated without modifying xwiki source code?
> >
> >The field
> ><dc:date>Tue Jun 28 16:31:33 PDT 2005</dc:date>
> >should have been formatted as per the dateTime spec at
> >http://www.w3.org/TR/xmlschema-2/#dateTime
> >
> >The current behavior seems to throw off the date/time sorting in RSS
> >readers as they just ignore the value.
> >
> >A SimpleDateFormat conversion has been given here..
> >
> >http://lists.xml.org/archives/xml-dev/200311/msg00153.html
> >which uses the format
> >"yyyy-MM-dd'T'HH:mm:ss,SSS'Z'"
> >
> >Any thoughts?
> >
> >-Sudhir
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> >To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> >For general help: mailto:sympa@objectweb.org?subject=help
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
>
>
> --
> Ludovic Dubost
> XPertNet: http://www.xpertnet.fr/
> Blog: http://www.ludovic.org/blog/
> XWiki: http://www.xwiki.com
> Skype: ldubost AIM: nvludo Yahoo: ludovic
>
>
Hi,
I try to set up virtual wikis by following the documentation :
http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis
However when I went to the page XWiki.XWikiServerClass, I got the following
error. I was using xWiki 0.9.840 with UTF-8 configuration :
Error number 0 in 11: Uncaught exception
Wrapped Exception: String index out of range: -7
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: String index out of range: -7
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:224)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
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.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
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()V(Unknown Source)
Wrapped Exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: -7
at java.lang.String.substring(II)Ljava.lang.String;(Unknown Source)
at com.xpn.xwiki.XWiki.getDocumentFromPath(XWiki.java:627)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2428)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:133)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
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.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
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()V(Unknown Source)
Any clue ?
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau
While trying to upgrade an XWiki installation from 0.9.793 to 0.9.840 I
face a MySQL connection problem.
My server config:
=======
MySQL 4.1.12
Tomcat 5.5.9
JDK 1.5
Mandrake Linux virtual server kernel 2.6.9-vs1.9.3
XWiki runs in non virtual mode
URL: http://www.edos-project.org
======
XWiki 0.9.793 works perfectly on that server since a while. When trying
to run the 0.9.840 version with the same Hibernate and XWiki
configuration files, I get the exception below. MySQL "skip-networking"
option is correctly set in /etc/my.cnf. I noticed that the error appears
in some of previous XWiki build reports such as this one:
http://build.xpertnet.biz/cc/buildresults/xwiki?log=log20050628171819Lbuild…
Any hint is welcome!
Note: getting a simple connection to MySQL with the lines below works
perfectly fine on the server.
======================
String url = "jdbc:mysql://localhost/xwiki";
String username = "xwiki";
String password = "passwd";
Connection conn = DriverManager.getConnection(url, username, password);
======================
Exception when running XWiki webapp:
21:32:16,675 WARN http-80-Processor25 http://www.edos-project.org/xwiki/
Configurator:configure:126 - No configuration found. Configuring ehcache
from ehcache-failsafe.xml found in the classpath:
jar:file:/usr/local/tomcat/jakarta-tomcat-5.5.9/webapps/xwiki/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
21:32:21,112 WARN http-80-Processor25 http://www.edos-project.org/xwiki/
JDBCExceptionReporter:logExceptions:71 - SQL Error: 0, SQLState: 08S01
21:32:21,113 ERROR http-80-Processor25
http://www.edos-project.org/xwiki/
JDBCExceptionReporter:logExceptions:72 - Communications link failure due
to underlying exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
at
com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1347)
at
com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:958)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1705)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:118)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1239)
at org.hibernate.loader.Loader.doQuery(Loader.java:374)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:210)
at org.hibernate.loader.Loader.doList(Loader.java:1562)
at org.hibernate.loader.Loader.list(Loader.java:1545)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:840)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
============================
--
Stéphane Laurière
slauriere(a)mandriva.com
Mandriva Club - http://club.mandriva.com
Mandrakesoft becomes Mandriva!
Any help from this side?
On 29.09.2005, at 21:35, Yves Langisch wrote:
> I defined a class with several properties and I created some
> documents based on this class. Now I added some new properties to
> this class but I'm not able to supplement the new properties in the
> existing objects (field is read-only, no input field). When I
> create a new one the property can be set.
>
> Is this a normal behaviour?
>
> Yves
>
>
> --
> You receive this message as a subscriber of the xwiki-
> dev(a)objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/
> wws
>
Hi all,
I'm having troubles to separate the editing/authoring view from the
normal view. When creating a new object instance I'd like to have a
completely different authoring form from the later read-only view.
When I'm right a sheet and a template per class should help
separating these two things?!? I also played around with the FAQ
sample application (http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQs
+Tutorial) but without success. The problem seems to be that the when
creating a new document the template content is copied into the new
document and is used for both editing and viewing. Do I get anything
wrong?
Thanks
Yves
Is it possible to have groovy script in the "*.vm" templates that are
in a custom (or default) skin?
I tried adding some groovy script, but the script just got echoed
verbatim to the output html.
I have no problem adding groovy to an xwiki document.
Matt
All,
I have a few questions concerning the readiness of xwiki for production:
- how 'production-ready' is xwiki in the actual version?
- are there any known issues which can affect the production (load,
leaks, ...)?
- there are links which generates a stack trace (e.g.
http://www.xwiki.org/xwiki/bin/view/Mai ) . Is there a way to define a
general error page so that any stack trace is caught by this page (and
can be hidden)?
Thanks
Yves
Hi all,
I know that this question is not a functionality question, but it affects
directly the usability of Xwiki, especially to convince non-programmers to
use wiki. Then, here it goes:
Using the xwiki syntax to build tables, I find the resulting code a little
unreadable once it is not allowed to insert line breaks.
I tried to insert HTML comments to solve the problem, but it did not work.
I put the code just below to illustrate my point. Is there any way for doing
something like the third way?
a) How it is:
{table}
Header 1|Header 2
A value|A Value
A value|A Value
A value|A Value
{table}
b) the way I tried:
{table}
Header 1|Header 2
A value|A Value
<!-- cleanning the code -->
A value|A Value
<!-- cleanning the code -->
A value|A Value
{table}
c) how I would like to see:
{table}
Header 1|Header 2
A value|A Value
A value|A Value
A value|A Value
{table}
Rodrigo Paes
PHD Student - Computer Science - PUC-Rio - <mailto:rbp@les.inf.puc-rio.br>
rbp(a)les.inf.puc-rio.br
Messenger - <mailto:r0drigopaes@hotmail.com> r0drigopaes(a)hotmail.com
Web-page: <http://www.teccomm.les.inf.puc-rio.br/rodrigo/>
http://www.teccomm.les.inf.puc-rio.br/rodrigo/
"Só existem duas certezas na vida: a morte e os impostos"