Re: users Digest, Vol 27, Issue 15

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: users Digest, Vol 27, Issue 15

Luis Ruiz-2
Hi Jean-Vincent and Roman,

First of all, thanks for your fast replies!! Sandbox works great but I would
need admin rights and I installed the windows installer but here I don't
have a servlet container :( .

I will explain my case. I have to develop or integrate a wiki in a whole
university but I have too many technical restrictions. I have seen many
wikis and I think xWiki fits us perfectly but I need to know if it lets me:

   - Store pages in File System.

We have a large amount of data in database, and we need to save pages in
filesystem. I have read about JcrStore, is that up to me?

   - Integrate Authentification with CAS Server (SSO)

I have read about possible ways to do this, but I would like to know if
someone has done it, because we have to take a decision soon.

Maybe this mail fits better in the developers mailing list, sorry!!

Thanks

2009/10/6 <[hidden email]>

> Send users mailing list submissions to
>        [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.xwiki.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>        [hidden email]
>
> You can reach the person managing the list at
>        [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
>   1. Re: [myxwiki] new wiki request (Jean-Vincent Drean)
>   2. Re: [myxwiki] new wiki request ([hidden email])
>   3. Re: how to mask those elements (Bodin Gr?gory)
>   4. Migrate SysWiki To xwiki (Maria Carolina Ramirez)
>   5. Re: how to mask those elements (Caleb James DeLisle)
>   6. Re: FW: xwiki 2.0, task manager application, Error number
>      4001 in 4: Error while parsing velocity page TasksCode.NewTask
>      (Michael Beetz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 5 Oct 2009 12:02:57 +0200
> From: Jean-Vincent Drean <[hidden email]>
> Subject: Re: [xwiki-users] [myxwiki] new wiki request
> To: XWiki Users <[hidden email]>
> Message-ID:
>        <[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Luis,
>
> What about using the existing sandbox wiki to try it stuff out instead ?
> http://playground.xwiki.org/
>
> PS: We don't create wikis on myxwiki.org just to try stuff out.
>
> Thanks,
> JV.
>
> On Mon, Oct 5, 2009 at 10:34 AM, Luis Ruiz <[hidden email]> wrote:
> > Hi,
> >
> > I'm working on a non-profit organization and I want to install xwiki, but
> > first I need to test all features in order to see if it fits to us.
> >
> > Admin username: LuisLuis
> > Domain name prefix: prueba
> >
> >
> > Thanks!!!
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 5 Oct 2009 12:28:53 +0200
> From: <[hidden email]>
> Subject: Re: [xwiki-users] [myxwiki] new wiki request
> To: "XWiki Users" <[hidden email]>
> Message-ID:
>        <[hidden email]>
> Content-Type: text/plain;       charset="iso-8859-1"
>
> Hi Luis,
>
> for extensive testing, including administration etc. you could use a
> standalone installer:
> - Windows: xwiki-enterprise-installer-windows-2.0.exe
> - other platforms: xwiki-enterprise-installer-generic-2.0-standard.jar
> http://www.xwiki.org/xwiki/bin/view/Main/Download
>
> XWiki is runnable directly after installation. User: Admin/admin
>
> Instructions:
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheStandalonedistribution
>
> Regards,
> Roman
>
> -----Urspr?ngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]] Im Auftrag
> von Jean-Vincent Drean
> Gesendet: Montag, 5. Oktober 2009 12:03
> An: XWiki Users
> Betreff: Re: [xwiki-users] [myxwiki] new wiki request
>
> Hi Luis,
>
> What about using the existing sandbox wiki to try it stuff out instead ?
> http://playground.xwiki.org/
>
> PS: We don't create wikis on myxwiki.org just to try stuff out.
>
> Thanks,
> JV.
>
> On Mon, Oct 5, 2009 at 10:34 AM, Luis Ruiz <[hidden email]> wrote:
> > Hi,
> >
> > I'm working on a non-profit organization and I want to install xwiki, but
> > first I need to test all features in order to see if it fits to us.
> >
> > Admin username: LuisLuis
> > Domain name prefix: prueba
> >
> >
> > Thanks!!!
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 5 Oct 2009 21:28:03 +0200
> From: Bodin Gr?gory <[hidden email]>
> Subject: Re: [xwiki-users] how to mask those elements
> To: <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
>  Re- hello !
>
> > > I want to hide some elements of wiki users (but accessible for
> > > administrator) :
> > >
> > > -> The history tab, information and attachments to pages. Only tab
> > > comment must be accessible.
> >
> > See http://bit.ly/3c8O3f
>
> i manage to do it hidden for all groups except for administrators with this
> :
>
> #if ($xwiki.hasAdminRights())#set ($showcomments = "yes")
> #set ($showattachments = "yes")
> #set ($showhistory = "yes")
> #set ($showinformation = "yes")#else#set ($showcomments = "no")
> #set ($showattachments = "no")
> #set ($showhistory = "no")
> #set ($showinformation = "no")#endNow i want this to be automatic on every
> pages of the wiki, or every page i will create.How could i do ? Is there a
> way to choose for every page, without having to manually enter the code ?
> Thanks !
> _________________________________________________________________
> Un avatar ? votre image ? Cr?ez votre mini-moi !
> http://www.ilovemessenger.fr/minimize-me/
>
> ------------------------------
>
> Message: 4
> Date: Mon, 5 Oct 2009 13:40:34 -0700
> From: "Maria Carolina Ramirez" <[hidden email]>
> Subject: [xwiki-users] Migrate SysWiki To xwiki
> To: <[hidden email]>
> Message-ID:
>        <[hidden email]>
> Content-Type: text/plain;       charset="US-ASCII"
>
> Hi All ,
>
>
>
> Could someone explain me if  exists any possibility to migrate a mysql
> database in syswiki to a mysql database in xwiki?
>
>
>
> Thanks in advance,
>
>
>
> Carolina Ramirez
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 05 Oct 2009 18:12:50 -0400
> From: Caleb James DeLisle <[hidden email]>
> Subject: Re: [xwiki-users] how to mask those elements
> To: XWiki Users <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> You could add that code to the view.vm file.
> If you are running your xwiki instance locally, this is very easy, you
> simply put it in the file
> xwiki/skins/colibri/view.vm
>
> If you are running a virtual wiki on a wiki farm, you will have to define a
> custom skin object and put that
> in the view.vm field in the skin.
> You may find this helpful.
> http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiNewSkin
>
> Caleb James DeLisle
>
> Bodin Gr?gory wrote:
> >
> >  Re- hello !
> >
> >>> I want to hide some elements of wiki users (but accessible for
> >>> administrator) :
> >>>
> >>> -> The history tab, information and attachments to pages. Only tab
> >>> comment must be accessible.
> >> See http://bit.ly/3c8O3f
> >
> > i manage to do it hidden for all groups except for administrators with
> this :
> >
> > #if ($xwiki.hasAdminRights())#set ($showcomments = "yes")
> > #set ($showattachments = "yes")
> > #set ($showhistory = "yes")
> > #set ($showinformation = "yes")#else#set ($showcomments = "no")
> > #set ($showattachments = "no")
> > #set ($showhistory = "no")
> > #set ($showinformation = "no")#endNow i want this to be automatic on
> every pages of the wiki, or every page i will create.How could i do ? Is
> there a way to choose for every page, without having to manually enter the
> code ? Thanks !
> > _________________________________________________________________
> > Un avatar ? votre image ? Cr?ez votre mini-moi !
> > http://www.ilovemessenger.fr/minimize-me/
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 6 Oct 2009 10:46:57 +0200
> From: Michael Beetz <[hidden email]>
> Subject: Re: [xwiki-users] FW: xwiki 2.0, task manager application,
>        Error number 4001 in 4: Error while parsing velocity page
>        TasksCode.NewTask
> To: XWiki Users <[hidden email]>
> Message-ID:
>        <[hidden email]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi all,
>
> I am wondering whether it is an authorisation problem .. Are there any
> other examples using "xwiki.search" instead of "xwiki. searchDocuments"?
>
> Thanks and kind regards
> mb
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf
> Of Michael Beetz
> Sent: Saturday, October 03, 2009 10:00 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] FW: xwiki 2.0, task manager application, Error
> number 4001 in 4: Error while parsing velocity page TasksCode.NewTask
>
> Thanks Ludivic,
>
> I am running it on two systems based on MySQL Server 5.4.1 (my playground)
> and 5.1.39 the production system.
> However the point should be somewhere on the wiki farm:  It's running well
> on the single wikis on the same configuration.
>
> Now I've taken the query into a new page - using the group by or not:
>
> #set($sql = "select max(prop.value)+1 from BaseObject as obj,
> IntegerProperty as prop where obj.className='TasksCode.IssueClass' and
> obj.id=prop.id.id and prop.id.name='id' group by obj.className")
> #set($id = $xwiki.search($sql))
> * $id
>
> The result:
> [] (two square brackets)
>
> Running it like
>
> #set($id = $xwiki.search($sql).get(0))
>
> leads to error 4001.
>
> Thanks
> mb
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf
> Of Ludovic Dubost
> Sent: Saturday, October 03, 2009 9:11 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] FW: xwiki 2.0, task manager application, Error
> number 4001 in 4: Error while parsing velocity page TasksCode.NewTask
>
>
> However the query is going to get slower and slower.
>
> Wasn't it just because you had no tasks at all that it returns empty ?
> (I suppose you have check that but it's just to be sure)
>
> Could you try the query with a group by..
>
> Now if your DB does not accept this query it's not so good. Which
> database and version are you using ?
>
> Ludovic
>
>
> Michael Beetz wrote:
> > Hi Ludovic,
> >
> > I seems to work using
> >
> > #set($id = 1)
> > #set ($list = $xwiki.searchDocuments(",BaseObject as obj, IntegerProperty
> as prop
> > where
> > doc.fullName=obj.name
> > and obj.className='TasksCode.IssueClass'
> > and obj.id=prop.id.id
> > and prop.id.name='id'
> > and prop.id.value > 0
> > order by prop.id.value desc
> > ", 0, 0))
> > #foreach ($item in $list)
> >   #set($id = $id + 1)
> > #end
> >
> > Thanks & Kind regards
> > mb
> >
> > -----Original Message-----
> > From: [hidden email] [mailto:[hidden email]] On Behalf
> Of Michael Beetz
> > Sent: Saturday, October 03, 2009 12:04 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] FW: xwiki 2.0, task manager application, Error
> number 4001 in 4: Error while parsing velocity page TasksCode.NewTask
> >
> > Hi Ludovic,
> >
> > It's the query ...
> > #set($sql = "select max(prop.value)+1 from BaseObject as obj,
> > IntegerProperty as prop where obj.className='ITSClasses.IssueClass' and
> > obj.id=prop.id.id and prop.id.name='id'")
> >
> > $xwiki.search($sql)
> >
> > It returns always an empty string.  Even there are tasks already defined.
> >
> > I've spend some time using $xwiki.searchDocuments(...) to count the task
> pages ... but I couldn't fix it (It returns either no or all pages)
> >
> > Thanks
> > mb
> >
> > -----Original Message-----
> > From: [hidden email] [mailto:[hidden email]] On Behalf
> Of Ludovic Dubost
> > Sent: Friday, October 02, 2009 9:44 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] FW: xwiki 2.0, task manager application, Error
> number 4001 in 4: Error while parsing velocity page TasksCode.NewTask
> >
> >
> > Hi Michael,
> >
> >
> > I suspect it is the counter that retrieves the lastest task number. It
> > is running a "search" query with a "select max() and we have seen some
> > differences based on the MySQL/hibernate combination on the way this
> > unique result is returned (as a number directly or as a 1 item list). It
> > could be also because in your case it does not return anything (your
> > need a first task)
> >
> > You should look at this call to "search" and check what it returns
> > exactly and how to retrieve this max number
> >
> > This is the code
> > #set($sql = "select max(prop.value)+1 from BaseObject as obj,
> > IntegerProperty as prop where obj.className='ITSClasses.IssueClass' and
> > obj.id=prop.id.id and prop.id.name='id'")
> > #set($id = $xwiki.search($sql).get(0))
> >
> > Maybe in your case
> >
> > #set($id = $xwiki.search($sql))
> >
> > or
> >
> > #set($res = $xwiki.search($sql))
> > #if($res && $res.size()>0)
> > #set($id = $xwiki.search($sql).get(0))
> > #else
> > #set($id = 0)
> > #end
> >
> > will work.
> >
> > Ludovic
> >
> > Michael Beetz wrote:
> >
> >> Hi Community,
> >>
> >> I am sorry bothering you.  However I am using the task manager
> application in a production environment, therefore I have to decide about
> staying on several single wikis or consolidating them in a farm.
> >>
> >> Is there anybody available instructing me to find that bug?
> >>
> >> I am quite familiar writing code in general; however I haven't done
> something in Java, eclipse or xwiki yet.  Therefore I would appreciate a
> link to some useful code snippet as well.
> >>
> >> Thanks for now and in advance
> >> mb
> >>
> >>
> >>
> >> ________________________________
> >> From: Michael Beetz
> >> Sent: Wednesday, September 30, 2009 10:06 PM
> >> To: 'XWiki Users'
> >> Subject: xwiki 2.0, task manager application,Error number 4001 in 4:
> Error while parsing velocity page TasksCode.NewTask
> >>
> >> Hi all,
> >>
> >> I am running xwiki 2.0 in a farm.  The Task Manager Application fails
> creating a new task.  Any hints?
> >>
> >> Thanks
> >> mb
> >>
> >> Error number 4001 in 4: Error while parsing velocity page
> TasksCode.NewTask Wrapped Exception: Failed to evaluate content with id New
> Task
> >>
> >> Error number 4001 in 4: Error while parsing velocity page
> TasksCode.NewTask
> >> Wrapped Exception: Failed to evaluate content with id New Task
> >> com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
> parsing velocity page TasksCode.NewTask
> >> Wrapped Exception: Failed to evaluate content with id New Task
> >>             at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
> >>             at
> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
> >>             at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
> >>             at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
> >>             at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
> >>             at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
> >>             at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:547)
> >>             at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564)
> >>             at
> com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
> >>             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >>             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
> >>             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> >>             at java.lang.reflect.Method.invoke(Unknown Source)
> >>             at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
> >>             at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> >>             at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> >>             at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> >>             at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
> >>             at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
> >>             at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> >>             at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
> >>             at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
> >>             at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
> >>             at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown
> Source)
> >>             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> >>             at java.lang.reflect.Method.invoke(Unknown Source)
> >>             at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
> >>             at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> >>             at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
> >>             at
> org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> >>             at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> >>             at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> >>             at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> >>             at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
> >>             at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
> >>             at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> >>             at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
> >>             at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
> >>             at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
> >>             at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
> >>             at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
> >>             at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> >>             at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> >>             at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> >>             at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> >>             at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >>             at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>             at
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>             at
> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>             at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>             at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>             at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>             at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>             at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >>             at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >>             at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >>             at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>             at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>             at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> >>             at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
> >>             at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
> >>             at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
> >>             at java.lang.Thread.run(Unknown Source)
> >>
> >> Wrapped Exception:
> >>
> >> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'get' in class java.util.Collections$EmptyList threw exception
> java.lang.IndexOutOfBoundsException: Index: 0 at TasksCode.NewTaskline 2,
> column 32? at
> org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
> at
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
> at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
> at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
> at
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
> at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:547)
> at
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564)
> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
> at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
> at
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
> at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
> at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694) at
> com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615) at
> com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657) at
> sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
> at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
> at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
> at
> org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
> at
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
> at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694) at
> com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615) at
> com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224) at
> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
> at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
> at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
> at java.lang.Thread.run(Unknown Source) Caused by:
> java.lang.IndexOutOfBoundsException: Index: 0 at
> java.util.Collections$EmptyList.get(Unknown Source) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
> at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
> ... 96 more
> >>
> >>
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >>
> >>
> >
> >
> > --
> > Ludovic Dubost
> > Blog: http://blog.ludovic.org/
> > XWiki: http://www.xwiki.com
> > Skype: ldubost GTalk: ldubost
> >
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
>
>
> --
> Ludovic Dubost
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
>
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> ------------------------------
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
>
> End of users Digest, Vol 27, Issue 15
> *************************************
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: users Digest, Vol 27, Issue 15

Guillaume Lerouge
Hi Luis,

On Tue, Oct 6, 2009 at 11:27 AM, Luis Ruiz <[hidden email]> wrote:

> Hi Jean-Vincent and Roman,
>
> First of all, thanks for your fast replies!! Sandbox works great but I
> would
> need admin rights and I installed the windows installer but here I don't
> have a servlet container :( .
>
> I will explain my case. I have to develop or integrate a wiki in a whole
> university but I have too many technical restrictions. I have seen many
> wikis and I think xWiki fits us perfectly but I need to know if it lets me:
>
>   - Store pages in File System.
>
> We have a large amount of data in database, and we need to save pages in
> filesystem. I have read about JcrStore, is that up to me?
>

We've had the request a number of times in the past but XWiki doesn't store
pages in the filesystem as of now. However, please note that plenty of APIs
are available to access the content of those pages (REST API, XML/RPC
API...).

Why exactly do you needs pages to be stored in the filesystem? Maybe you can
find a way to address your use case using existing XWiki features...

  - Integrate Authentification with CAS Server (SSO)


> I have read about possible ways to do this, but I would like to know if
> someone has done it, because we have to take a decision soon.
>

Yes, that can be done. I've seen it working on a number of project. The
integration work can take up to 2 days but it's doable.


> Maybe this mail fits better in the developers mailing list, sorry!!
>

Hope this helps,

Guillaume

--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: users Digest, Vol 27, Issue 15

Luis Ruiz-2
Hi Guillaume,

- Store pages in File System.
I would need filesystem because we have very load of data in our Oracle
Database and we are afraid that large amount of Blobs in Oracle makes our
database to collapse. In the past we had that problem.
- Integrate Authentification with CAS Server (SSO)
Could you tell me the way I could do that? If using apache HTTP Basic
Authorization, JAAS or something like that? We use JA-SIG.

Thanks for your answer!!

2009/10/6 Guillaume Lerouge <[hidden email]>

> Hi Luis,
>
> On Tue, Oct 6, 2009 at 11:27 AM, Luis Ruiz <[hidden email]> wrote:
>
> > Hi Jean-Vincent and Roman,
> >
> > First of all, thanks for your fast replies!! Sandbox works great but I
> > would
> > need admin rights and I installed the windows installer but here I don't
> > have a servlet container :( .
> >
> > I will explain my case. I have to develop or integrate a wiki in a whole
> > university but I have too many technical restrictions. I have seen many
> > wikis and I think xWiki fits us perfectly but I need to know if it lets
> me:
> >
> >   - Store pages in File System.
> >
> > We have a large amount of data in database, and we need to save pages in
> > filesystem. I have read about JcrStore, is that up to me?
> >
>
> We've had the request a number of times in the past but XWiki doesn't store
> pages in the filesystem as of now. However, please note that plenty of APIs
> are available to access the content of those pages (REST API, XML/RPC
> API...).
>
> Why exactly do you needs pages to be stored in the filesystem? Maybe you
> can
> find a way to address your use case using existing XWiki features...
>
>  - Integrate Authentification with CAS Server (SSO)
>
>
> > I have read about possible ways to do this, but I would like to know if
> > someone has done it, because we have to take a decision soon.
> >
>
> Yes, that can be done. I've seen it working on a number of project. The
> integration work can take up to 2 days but it's doable.
>
>
> > Maybe this mail fits better in the developers mailing list, sorry!!
> >
>
> Hope this helps,
>
> Guillaume
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.com/
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: users Digest, Vol 27, Issue 15

rrodrigueznt
In reply to this post by Guillaume Lerouge
Hi,

Guillaume Lerouge wrote:
> Why exactly do you needs pages to be stored in the filesystem? Maybe you can
> find a way to address your use case using existing XWiki features...

In our case more than pages are attached files what we need to be stored
in the filesystem. Could this be also your case, Luis?

These files are usually images or data files generated by several
analytical facilities. I don't know at what extend a XWiki installation
using MySQL as RDBMS is suitable for storing, let's say, some hundreds
of files weighting about 30Mb each. As far as I remember, this is a
pending issue in XWiki, but it has not been forgotten.

Greetings,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: users Digest, Vol 27, Issue 15

Luis Ruiz-2
Hi Ricardo,

In my case we would like that all pages are stored in the filesystem, of
course attached content must be in filesystem, in the database only the
structure of the wiki. Is that possible?

Thanks for your answers!!


2009/10/6 [Ricardo Rodriguez] Your EPEC Network ICT Team <
[hidden email]>

> Hi,
>
> Guillaume Lerouge wrote:
> > Why exactly do you needs pages to be stored in the filesystem? Maybe you
> can
> > find a way to address your use case using existing XWiki features...
>
> In our case more than pages are attached files what we need to be stored
> in the filesystem. Could this be also your case, Luis?
>
> These files are usually images or data files generated by several
> analytical facilities. I don't know at what extend a XWiki installation
> using MySQL as RDBMS is suitable for storing, let's say, some hundreds
> of files weighting about 30Mb each. As far as I remember, this is a
> pending issue in XWiki, but it has not been forgotten.
>
> Greetings,
>
> Ricardo
>
> --
> Ricardo Rodríguez
> Your EPEC Network ICT Team
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: users Digest, Vol 27, Issue 15

Sergiu Dumitriu-2
Luis Ruiz wrote:
> Hi Ricardo,
>
> In my case we would like that all pages are stored in the filesystem, of
> course attached content must be in filesystem, in the database only the
> structure of the wiki. Is that possible?
>

It is possible if you write your own storage implementation, derived
from the current implementations.

I think the easiest step is to implement file-based storage only for
attachments, and this has already been done by some of our users.
Searching the mail archives should provide some pointers.

Next, if you just want to access documents from a folder, you can use
WebDAV for that. See http://platform.xwiki.org/xwiki/bin/Features/WebDAV
I don.t think that actually storing the contents of the documents
outside the database helps, since wiki content should never reach the
limits of the database (unless you're storing genomes or data out of the
LHC as wiki content). The main advantage of the database is speed. The
main advantage of filesystems, easy access from other programs, can be
achieved through WebDAV.

> 2009/10/6 [Ricardo Rodriguez] Your EPEC Network ICT Team <
> [hidden email]>
>
>> Hi,
>>
>> Guillaume Lerouge wrote:
>>> Why exactly do you needs pages to be stored in the filesystem? Maybe you
>> can
>>> find a way to address your use case using existing XWiki features...
>> In our case more than pages are attached files what we need to be stored
>> in the filesystem. Could this be also your case, Luis?
>>
>> These files are usually images or data files generated by several
>> analytical facilities. I don't know at what extend a XWiki installation
>> using MySQL as RDBMS is suitable for storing, let's say, some hundreds
>> of files weighting about 30Mb each. As far as I remember, this is a
>> pending issue in XWiki, but it has not been forgotten.
>>
>> Greetings,
>>
>> Ricardo


--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users