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
Dear all,
I'm trying to create a form in order to register visitors to a conference.
Thus I've created a XWiki class to store data concerning visitors.
I've created this document :
Main.RegistrationClass that contains the class
Main.RegistrationClassTemplate that contains an object of the previous class
Main.RegistrationClassSheet
I need to make some verifications when people registering. Thus I've created a
Document that I called Main.RegistrationNewVisitor that displays a form and
control data.
The problem I have is that I don't know with using velocity script how I can
forward. Thus I've created a javascript script that forward to the desired
page by clicking on the hidden form.
Any idea ?
Regards
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau
There are still several question which need to be answered but are not in this
documentation:
1a. Does this create a new database for the new XWiki?
1b. If so, where is this database created? or Is it necessary to manually create
a new database?
Following the instructions in the documentation without any additional work
results in the following error:
[code:xml]
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
javax.servlet.ServletException: Error number 2 in 0: The wiki lcswiki does not
exist
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java
:516)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.
java:423)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter
.java:127)
root cause
com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki lcswiki does not
exist
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:241)
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.
java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter
.java:127)
{code}
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Thursday, July 28, 2005 6:00 AM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Create a new instance of Xwiki
Hi,
This is one way of create multiple wikis served from the same servlet
engine.
However if you start having over 3 or 4 wikis, this will become a
resource hog with many connections open to the database and multiple
caches..
The solution is to use real virtual servers. See
http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis
We could improve a little this documentation.
Ludovic
Lichman, Mark Eugene wrote:
> Hi Cwiki users,
>
> I noticed the instructions for adding another space, unfortunately this isn't
> quite what I needed.
>
> Here are some instuctions for creating a new instance of Xwiki in case you'd
> like to keep two completly separate databases (i.e. searching one will not
give
> results for the other). I wasn't quite sure where to put this online.
>
>
> 1 Create a new instance of Xwiki
> # Create a folder with the name of the new Xwiki (i.e. support) in the
> tomcat/webapps folder)
> # Extract the xwiki war file into this folder
> # In the webinf/hibernate.cfg.xml file
> * modify {code:xml} <property
> name="connection.url">jdbc:mysql://localhost/xwiki</property> {code} replacing
> xwiki with the name of the new database you wish to create
> # create a new database with the same name as in the line above
> # import the sample database located here
> [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your new
database
>
> All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome to check
it
> out.
>
> Caution, you may wish to modify the index.html file to point to your url just
in
> case.
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
and what is
xwiki.base=../../
in the wiki.cfg used for?
Best Regards
Thomas
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Friday, July 29, 2005 7:44 AM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Create a new instance of Xwiki
It is technically possible from an XWiki standpoint but you need to send all these URLs to the same web app in the servlet engine.. I have never done this setup in tomcat yet..
Ludovic
Thomas.Duehrsen(a)sicap.com wrote:
> Hi
>
> is there also a way to setup virtual wikis based on the same hostname but different URL patterns?
>
> Example:
> http://www.myhost.ch/xwiki/wiki-1/
> http://www.myhost.ch/xwiki/wiki-2/
> http://www.myhost.ch/xwiki/wiki-3/
>
> All URLs point to same Context.
>
> In addition, could you please quickly explain the usage of
>
> xwiki.base=../../
>
> which can be found in the config file?
>
> thanks a lot
>
> Thomas
>
> -----Original Message-----
> From: Ludovic Dubost [mailto:ludovic@xwiki.com]
> Sent: Thursday, July 28, 2005 12:00 PM
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users] Create a new instance of Xwiki
>
>
> Hi,
>
> This is one way of create multiple wikis served from the same servlet engine.
> However if you start having over 3 or 4 wikis, this will become a resource hog with many connections open to the database and multiple caches..
> The solution is to use real virtual servers. See
> http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis
> We could improve a little this documentation.
>
> Ludovic
>
> Lichman, Mark Eugene wrote:
>
>> Hi Cwiki users,
>>
>> I noticed the instructions for adding another space, unfortunately
>> this isn't quite what I needed.
>>
>> Here are some instuctions for creating a new instance of Xwiki in
>> case you'd like to keep two completly separate databases (i.e.
>> searching one will not give results for the other). I wasn't quite sure where to put this online.
>>
>>
>> 1 Create a new instance of Xwiki
>> # Create a folder with the name of the new Xwiki (i.e. support) in
>> the tomcat/webapps folder) # Extract the xwiki war file into this
>> folder # In the webinf/hibernate.cfg.xml file
>> * modify {code:xml} <property
>> name="connection.url">jdbc:mysql://localhost/xwiki</property> {code}
>> replacing xwiki with the name of the new database you wish to create
>> # create a new database with the same name as in the line above #
>> import the sample database located here
>> [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your
>> new database
>>
>> All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome
>> to check it out.
>>
>> Caution, you may wish to modify the index.html file to point to your
>> url just in case.
>>
>>
>> ---------------------------------------------------------------------
>> -
>> --
>>
>>
>> --
>> 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
>
>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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
is there also a way to setup virtual wikis based on the same hostname but different URL patterns?
Example:
http://www.myhost.ch/xwiki/wiki-1/http://www.myhost.ch/xwiki/wiki-2/http://www.myhost.ch/xwiki/wiki-3/
All URLs point to same Context.
In addition, could you please quickly explain the usage of
xwiki.base=../../
which can be found in the config file?
thanks a lot
Thomas
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Thursday, July 28, 2005 12:00 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Create a new instance of Xwiki
Hi,
This is one way of create multiple wikis served from the same servlet engine.
However if you start having over 3 or 4 wikis, this will become a resource hog with many connections open to the database and multiple caches..
The solution is to use real virtual servers. See http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis
We could improve a little this documentation.
Ludovic
Lichman, Mark Eugene wrote:
> Hi Cwiki users,
>
> I noticed the instructions for adding another space, unfortunately
> this isn't quite what I needed.
>
> Here are some instuctions for creating a new instance of Xwiki in case
> you'd like to keep two completly separate databases (i.e. searching
> one will not give results for the other). I wasn't quite sure where to put this online.
>
>
> 1 Create a new instance of Xwiki
> # Create a folder with the name of the new Xwiki (i.e. support) in the
> tomcat/webapps folder) # Extract the xwiki war file into this folder #
> In the webinf/hibernate.cfg.xml file
> * modify {code:xml} <property
> name="connection.url">jdbc:mysql://localhost/xwiki</property> {code}
> replacing xwiki with the name of the new database you wish to create #
> create a new database with the same name as in the line above # import
> the sample database located here
> [http://www.xwiki.org/xwiki/bin/view/Main/XWikiDownload] into your new
> database
>
> All set! Go to http://localhost/your_wiki_here/bin/view/Main/WebHome
> to check it out.
>
> Caution, you may wish to modify the index.html file to point to your
> url just in case.
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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
Luis Arias wrote:
> This is probably best in the developers list. Maybe Alexis can give
> you a hand with this. From what I know the user documents *do* have
> to exist in the wiki. But I'm afraid I don't know enough to point
> about the
> dug around a bit in the LDAP service code, and don't see anywhere where
> it creates the xwiki user document, so I'm wondering what I'm missing.
Never mind, I think my glasses were dirty or something =)
com.xpn.xwiki.user.impl.LDAP.LDAPAuthServiceImpl.CreateUserFromLDAP()
Does what I thought should be there. So assuming I model my auth
service on the LDAP one, everything should work - please correct me if
I'm wrong.
Matt
Hi all,
I've noticed that if I delete a class document, xwiki does not delete
the entry from the xwikiclasses table, nor does it delete the properties
asscoiated with that class from the xwikiclassesprop table. Thus when I
recreate the class document, all the old properties are still there. Is
this intentional or a bug?
This all stemmed from me trying to delete a class property (can only do
so with direct db modification), so I was hoping that deleting the class
doc would be a workaround, but doesn't seem to be - unless I'm missing
something ...? I'm still new to xwiki to trying to understand the
relationships between entities. Thanks,
Matt
I'd like to be able to use XWiki with an alternate source for user
authentication and I thought creating my own auth service might do the
trick. However, on further thought, I'm not sure how this would work -
doesn't the XWiki user document still need to exist as a place to store
user settings (e.g email notification plugin stores an object there)? I
dug around a bit in the LDAP service code, and don't see anywhere where
it creates the xwiki user document, so I'm wondering what I'm missing.
I was thinking that maybe it should should auth the user then create the
user doc if it doesn't already exist. I guess the code/pages I have
that register that user could also send a message to xwiki to create the
user, but for LDAP user management clients that may not be possible, so
I must be missing something.
Is there a better way to do auth that I don't know about? Our user data
is in a set of DB tables.
Thanks,
Matt