[xwiki-users] Re : XWQL query on several objects of the same class instantiated in the same doc

2013-05-22 Thread BOUSQUET Jeremie
Hi,

You miss the .execute() at the end :)

Br,
Jeremie

Envoyé depuis mon HTC


- Reply message -
De : "ricardo.julio.rodriguez.fernan...@sergas.es" 

Pour : "users@xwiki.org" 
Cc : "isabel.lista.gar...@sergas.es" 
Objet : [xwiki-users] XWQL query on several objects of the same class 
instantiated in the same doc
Date : mer., mai 22, 2013 21:24



Louis-Marie, Edo, thanks again!

Louis-Marie, you perfectly understand what I'm trying to get: to use comments 
on documents as criteria for selection. I understand comments are not intended 
to satisfy this objetive, but, at least for me, they are extremely useful to 
"draft" data models to be implemented in new XWiki classes. Just a kind of 
"extreme development" tool! :-) I think the "only" problem we are facing with 
this use is the kind of queries combining comments on the same document to 
retrive documents and properties of any class there instantiated.

I'm truly learning a lot! I think I can understand the construction and it must 
answer the well-formed question Louis-Marie wrote down in his message, but I'm 
not able to understand the result. Here what I get...

org.xwiki.query.internal.DefaultQuery@70687068

The integer after the @ changes it time I reload the page. I din't get neither 
a document fullName, nor an object.

You can always check it in the same link posted before...

http://www.idisantiago.es/bin/XWQL/SnapshotE0012012

In found DefaultQuery code here...

http://maven.xwiki.org/site/clover/20120701/clover-platform-20120702/org/xwiki/query/internal/DefaultQuery.html

Perhaps this construct doesn't work in my plain old XWIKI ENTERPRISE 2.4.30451 
installation?

Thanks for your help!

Ricardo


> 
> From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of 
> Guillaume "Louis-Marie" Delhumeau [gdelhum...@xwiki.com]
> Sent: 22 May 2013 17:51
> To: XWiki Users
> Subject: Re: [xwiki-users] XWQL query on several objects of the same class 
> instantiated in the same doc
>
> Hi.
>
> I'm not sure I really understood what you need to do, but let me propose a
> solution anyway.
>
> I think what you need is to get the all the documents that contains
> comments with "%doc.title%" content and where there is NO comment with
> '%Withdrawal:2011% in the content.
>
> So, that's how I would solve the problem:
>
> #set ($xwlquery1 = "FROM doc.object(XWiki.
> XWikiComments) AS commWHERE  doc.translation = 0 AND  and comm.comment LIKE
> :doctitle AND doc.fullName NOT IN (SELECT doc2.fullName FROM Document doc2,
> doc2.object(XWiki.XWikiComments) comm2 WHERE comm2.comment LIKE
> '%Withdrawal:2011%')")
> #set($results = $services.query.xwql($xwqlquery1).bindValue('doctitle',
> "%${doc.title}%"))
>
> I didn't test it but it should work.
>
> Louis-Marie.
>
> 2013/5/22 
>
>> Hi! Thanks you both for answering!
>>
>> I'm afraid that your proposals didn't solve the problem. Please, see
>> here...
>>
>> http://www.idisantiago.es/bin/XWQL/SnapshotE0012012
>>
>> Both users have three comments each. This way:
>>
>> XWD_ID:416379378
>> Gender:
>> Withdrawal:20121017
>> Formely:XWiki.XWikiIDISE001
>>
>> XWD_ID:946660794
>> Gender:
>> Withdrawal:20111231
>> Formely:XWiki.XWikiIDISE001
>>
>> Thus, I'm still not able to design a query to retrive ONLY user
>> XWD_ID:416379378 based on comments :-( Your proposals answer with a list
>> including both users n times. I'm not able neither of explain n in both
>> cases... any idea will be welcome!
>>
>> Thank you very much for your help,
>>
>> Ricardo
>>
>>
>> > 
>> > From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
>> Guillaume "Louis-Marie" Delhumeau [gdelhum...@xwiki.com]
>> > Sent: 22 May 2013 13:02
>> > To: XWiki Users
>> > Subject: Re: [xwiki-users] XWQL query on several objects of the same
>> class instantiated in the same doc
>> >
>> > Hi Ricardo and Edo,
>> >
>> > 2013/5/22 Edo Beutler 
>> >
>> >> Hi Ricardo
>> >>
>> >> You are only checking in one object. So there has to be one object that
>> >> contains the doc name, but not the withdrawal part which is fulfilled by
>> >> the third object in your example. Whilst I don't recall ever having
>> tried
>> >> checking for multiple objects in XWQL, I would suspect this should work:
>> >>
>> >> #set ($xwlquery1 = "from doc.object(XWiki.XWikiComments) as comm1,
>> >> doc.object(XWiki.XWikiComments) as comm2 where doc.translation = 0 and
>> >> comm1.comment like '%$doc.title%' and comm2.comment not like
>> >> '%Withdrawal:2011%'")
>> >>
>> >
>> > You are right. But I think you should add "comm1 <> comm2" in your query
>> to
>> > make it work.
>> >
>> > Louis-Marie

Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autor

Re: [xwiki-users] FW: Scheduler

2008-03-03 Thread BOUSQUET Jeremie

I will try to reinstall it ... In fact I installed the Scheduler as an 
application in XE 1.1, then migrated to XE 1.2, so I'll reimport it to be sure.

There's no virtual wiki, it's the standard XE.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol
Sent: lundi 3 mars 2008 18:38
To: XWiki Users
Subject: Re: [xwiki-users] FW: Scheduler

Not sure why it's not working but I'"ve used the scheduler this  
morning with XE 1.3RC1 and it worked fine FWIW.

-Vincent

On Mar 3, 2008, at 6:27 PM, BOUSQUET Jeremie wrote:

>
> Hi,
>
> The scheduler does not work ! ;-)
>
> Regarding the remarks below, I'm using the Scheduler packaged with  
> XE 1.2.
>
> But I get the following error :
>
> org.quartz.JobExecutionException: The user [XWiki.Admin] didn't have  
> programming rights when the job [xwiki:Scheduler.JOBTimeLineFeed_0]  
> was scheduled.
> [...]
>
> But :
> - Admin account exists, as well as profile XWiki.Admin
> - of course, it has admin&programming rights
> - my job page was saved by the admin
>
> So I don't understand why it does complain about missing programming  
> rights ! ?
>
> Thanks,
> Jeremie
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On  
> Behalf Of Sergiu Dumitriu
> Sent: vendredi 21 décembre 2007 10:20
> To: XWiki Users
> Subject: Re: [xwiki-users] FW: Scheduler
>
> Jean-Vincent Drean wrote:
>
>>
>> Permissions at the job level : your job page have to be saved by a
>> user with programming rights
>> (and the SchedulerPlugin will always be able to modify your jobs).
>>
>
> Then there's a problem with the Scheduler/Watchlist applications, as
> they contain documents saved by Admin. If a wiki does not contain this
> account, then nothing will work. What we can do:
>
> 1. Save them as superadmin.
> 2. Write in the installation guide that if if there is no Admin user,
> then all the files must be manually saved by an user with programming
> rights.
>
> I'd go with 1, as most people don't read the Installation guide, and
> they'll just post on the mailing list that the scheduler does not  
> work...
>
> Can somebody take care of this?
>
> Sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] FW: Scheduler

2008-03-03 Thread BOUSQUET Jeremie

Hi,

The scheduler does not work ! ;-)

Regarding the remarks below, I'm using the Scheduler packaged with XE 1.2.

But I get the following error :

org.quartz.JobExecutionException: The user [XWiki.Admin] didn't have 
programming rights when the job [xwiki:Scheduler.JOBTimeLineFeed_0] was 
scheduled.
[...]

But :
- Admin account exists, as well as profile XWiki.Admin
- of course, it has admin&programming rights
- my job page was saved by the admin

So I don't understand why it does complain about missing programming rights ! ?

Thanks,
Jeremie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu
Sent: vendredi 21 décembre 2007 10:20
To: XWiki Users
Subject: Re: [xwiki-users] FW: Scheduler

Jean-Vincent Drean wrote:

> 
> Permissions at the job level : your job page have to be saved by a
> user with programming rights
> (and the SchedulerPlugin will always be able to modify your jobs).
> 

Then there's a problem with the Scheduler/Watchlist applications, as 
they contain documents saved by Admin. If a wiki does not contain this 
account, then nothing will work. What we can do:

1. Save them as superadmin.
2. Write in the installation guide that if if there is no Admin user, 
then all the files must be manually saved by an user with programming 
rights.

I'd go with 1, as most people don't read the Installation guide, and 
they'll just post on the mailing list that the scheduler does not work...

Can somebody take care of this?

Sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [XE 1.2.2] Space characters trimmed inattachmentnames

2008-02-25 Thread BOUSQUET Jeremie


Undeletable attachments give some work to the admin, problems of attachments 
and images names are easily workaround by asking users not to use special 
characters in names ... While trimming spaces impacts all users and anyway you 
have to ask them to take care of resulting name of their attachments ...
That's why I'm not sure it's better than the blocking-in-some-specific-cases 
issue ... :)
 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Vincent 
Drean
Sent: vendredi 22 février 2008 17:28
To: XWiki Users
Subject: Re: [xwiki-users] [XE 1.2.2] Space characters trimmed inattachmentnames

> Ok, thanks Jean-Vincent,
>  IMO temporary fix is worse than initial issue ... :/
>

Well this temporary fix isn't perfect but still better than the
blocking issues that were raised before : undeletable attachments,
unembeddable images, etc.
BTW may be we should clear the name but keep the spaces (which aren't
a problem), wdyt ?

JV.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [XE 1.2.2] Space characters trimmed in attachmentnames

2008-02-22 Thread BOUSQUET Jeremie
Ok, thanks Jean-Vincent,
IMO temporary fix is worse than initial issue ... :/

Jeremie



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Vincent 
Drean
Sent: vendredi 22 février 2008 10:12
To: XWiki Users
Subject: Re: [xwiki-users] [XE 1.2.2] Space characters trimmed in 
attachmentnames

> Hello,
>
> Don't know if it's a bug or an evolution, but after migrating my xwiki to
> 1.2.2, when I attach a new file to a page, all spaces characters are trimmed
> from the name. I didn't found anything about that in Jira.
> For example "My Doc Attached.doc" gets renamed to "MyDocAttached.doc".

http://jira.xwiki.org/jira/browse/XWIKI-2090
http://jira.xwiki.org/jira/browse/XWIKI-2087

The use of the clearName method for attachment names is a temporary
fix until the resolution of all our encoding issues.

> I see at least one issue coming from this : if you attach the same file it's
> not considered the same because it's renamed. Your existing links also link
> to the previous version, and it's not easy to find by end-user.
> And anyway you don't want the file to be renamed when attached ...

Yes this is a drawback of this fix.

JV.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [XE 1.2.2] Space characters trimmed in attachment names

2008-02-21 Thread BOUSQUET Jeremie
Hello,

 

Don't know if it's a bug or an evolution, but after migrating my xwiki
to 1.2.2, when I attach a new file to a page, all spaces characters are
trimmed from the name. I didn't found anything about that in Jira.

For example "My Doc Attached.doc" gets renamed to "MyDocAttached.doc".

 

I see at least one issue coming from this : if you attach the same file
it's not considered the same because it's renamed. Your existing links
also link to the previous version, and it's not easy to find by
end-user.

And anyway you don't want the file to be renamed when attached ...

 

I'm using XE 1.2.2 on MySql 4.0 and RedHat R4.

 

WDTY ?

 

Thanks,

Jeremie

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-19 Thread BOUSQUET Jeremie

Sergiu,
I must admit that your solution is the more efficient and clean, even if I 
personally don't like it (you'd be surprised to know how painful it will be to 
ask my infra team to upgrade mysql version ...).
For me it's clearly a MySQL bug not an hibernate one, let's say at least a 
break of compatibility in MySql not managed by hibernate. Typically what you 
would like an abstraction layer to take care of ... :/

Thanks for help,
Jeremie
 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu
Sent: mardi 19 février 2008 11:42
To: XWiki Users
Subject: Re: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application

Marius Dumitru Florea wrote:
> A fourth option (someway similar to the second one) is to use the Native
> SQL Query feature of Hibernate. Instead of calling
> session.createQuery(hql) you can call session.createSQLQuery(sql). It
> works, using aliases. However, I tested it only on MySql and HSQLDB.
> 
> WDYT? Is this a convenient solution. I would have to switch many of the
> hql queries from the Statistics Application to sql queries.
> 

Generally, we should stay away from pure SQL as much as possible. If the 
existing query works in all DBMSs except mysql 4.1, then leave it as it is.

> Marius
> 
>> Right.. but the error persists with the correction made. Not at the same
>> level though.
>>
>> WARN  util.JDBCExceptionReporter - SQL Error: 1054, SQLState: 42S22
>> ERROR util.JDBCExceptionReporter - Unknown column 'pageViewsCount' in
>> 'order clause'
>>
>> The problem is with Hibernate. There is a bug ("missing feature", for
>> them) in the translation from HQL to SQL. The aliases from the Select
>> clause are not resolved correctly in other clauses, including Order By. In
>> this case they "recommend" us to duplicate the expressions from the Select
>> clause, hoping that the RDBMS will take care of the optimization.
>>
>> See for yourself:
>>
>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-892
>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-1902
>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-2390
>> http://forum.hibernate.org/viewtopic.php?t=966075&postdays=0&postorder=asc&start=0
>>
>> So, using aliases breaks Hibernate and using expressions in the Order By
>> clause is not supported by MySql 4.1.20. I don't see any clean solution
>> for this. Some options are:
>>
>> * drop the Order By clause and sort on the Java side - No way, I don't
>> think this is feasible.
>> * skip Hibernate layer and use JDBC directly - Doable, the SQL query being
>> not too complicated, but with cross DB issues.
>> * tweak the HQL query - How?
>>
>> Any other options Sergiu?
>>
>> Marius
>>
>>> Marius Dumitru Florea wrote:
 Hi Jeremie,

 The sql query you suggested is cleaner and at least as efficient as the
 current one. It was my first option but unfortunately it's not
 supported
 by the newer versions of mysql. I've no idea why..

 mysql> select xws_name, sum(xws_page_views) as pageviewcount from
 xwikistatsdoc where xws_action='view' and xws_name like '%.%' group by
 xws_name order by pageviewscount desc;
 ERROR 1054 (42S22): Unknown column 'pageviewscount' in 'order clause'

>>> Note that there's a typo: pageviewcount <> pageview-S-count
>>>
 Anyway, hibernate should be responsible for the correct translation
 from
 hql to a specific sql dialect. A solution would be to use the (idea
 from
 the) above sql but configure the dialect to MySQL5Dialect (in my case).
 I
 have to test this. I'll give you feedback soon.

 Best Regards,
 Marius.



-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread BOUSQUET Jeremie
To be complete, this same error occurs for all the Statistics panels ...


-Original Message-
From: BOUSQUET Jeremie 
Sent: lundi 18 février 2008 15:50
To: 'XWiki Users'
Subject: RE: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application


Hi Marius and thanks,

Your SQL request returns the same error "invalid use of group function" in my 
mysql version ...

BTW I could have it work by explicitly naming the sum, and using it in the 
order by :

select xws_name, sum(xws_page_views) as pageviewcount from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
pageviewscount desc
 
I believe it's a difference in behaviour between MySQL 1.4 and 1.5 ... Do you 
want me to create a JIRA issue for this ?

Best Regards,

Jeremie
 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marius Dumitru 
Florea
Sent: lundi 18 février 2008 15:19
To: users@xwiki.org
Subject: Re: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application

Hi Jeremie,

Sorry for the inconvenience. Your tables' description seems fine. I
attached the description of my tables so you can check it for yourself. I
think it all resumes to the following SQL query:

select xws_name, sum(xws_page_views) from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
sum(xws_page_views) desc

This query is very similar to the one used for retrieving the Most Viewed
Pages. It works fine under:

mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline 5.2

It would be great if you could run this query and tell me if it works in
your case.

Best Regards,
Marius.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread BOUSQUET Jeremie

Hi Marius and thanks,

Your SQL request returns the same error "invalid use of group function" in my 
mysql version ...

BTW I could have it work by explicitly naming the sum, and using it in the 
order by :

select xws_name, sum(xws_page_views) as pageviewcount from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
pageviewscount desc
 
I believe it's a difference in behaviour between MySQL 1.4 and 1.5 ... Do you 
want me to create a JIRA issue for this ?

Best Regards,

Jeremie
 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marius Dumitru 
Florea
Sent: lundi 18 février 2008 15:19
To: users@xwiki.org
Subject: Re: [xwiki-users] MySQL Error "invalid use of group function" in 
Statistics application

Hi Jeremie,

Sorry for the inconvenience. Your tables' description seems fine. I
attached the description of my tables so you can check it for yourself. I
think it all resumes to the following SQL query:

select xws_name, sum(xws_page_views) from xwikistatsdoc where
xws_action='view' and xws_name like '%.%' group by xws_name order by
sum(xws_page_views) desc

This query is very similar to the one used for retrieving the Most Viewed
Pages. It works fine under:

mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (x86_64) using readline 5.2

It would be great if you could run this query and tell me if it works in
your case.

Best Regards,
Marius.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MySQL Error "invalid use of group function" inStatistics application

2008-02-18 Thread BOUSQUET Jeremie
Hello,

 

As a complement here are the tables description (after migration)

mysql> desc xwikistatsdoc;

+-+--+--+-+-+---+

| Field   | Type | Null | Key | Default | Extra |

+-+--+--+-+-+---+

| XWS_ID  | int(11)  |  | PRI | 0   |   |

| XWS_NUMBER  | int(11)  | YES  | | NULL|   |

| XWS_NAME| varchar(255) |  | | |   |

| XWS_CLASSNAME   | varchar(255) |  | | |   |

| XWS_ACTION  | varchar(255) |  | | |   |

| XWS_PAGE_VIEWS  | int(11)  | YES  | | NULL|   |

| XWS_UNIQUE_VISITORS | int(11)  | YES  | | NULL|   |

| XWS_PERIOD  | int(11)  | YES  | | NULL|   |

| XWS_VISITS  | int(11)  | YES  | | NULL|   |

+-+--+--+-+-+---+ 

 

mysql> desc xwikistatsreferer;

++--+--+-+-+---+

| Field  | Type | Null | Key | Default | Extra |

++--+--+-+-+---+

| XWR_ID | int(11)  |  | PRI | 0   |   |

| XWR_NUMBER | int(11)  | YES  | | NULL|   |

| XWR_NAME   | varchar(255) |  | | |   |

| XWR_CLASSNAME  | varchar(255) |  | | |   |

| XWR_REFERER| varchar(255) |  | | |   |

| XWR_PAGE_VIEWS | int(11)  | YES  | | NULL|   |

| XWR_PERIOD | int(11)  | YES  | | NULL|   |

++--+--+-+-+---+

 

mysql> desc xwikistatsvisit;

++--+--+-+-+---+

| Field  | Type | Null | Key | Default | Extra |

++--+--+-+-+---+

| XWV_ID | int(11)  |  | PRI | 0   |   |

| XWV_NUMBER | int(11)  | YES  | | NULL|   |

| XWV_NAME   | varchar(255) |  | | |   |

| XWV_CLASSNAME  | varchar(255) |  | | |   |

| XWV_IP | varchar(32)  |  | | |   |

| XWV_USER_AGENT | varchar(255) |  | | |   |

| XWV_COOKIE | varchar(255) |  | | |   |

| XWV_UNIQUE_ID  | varchar(255) |  | | |   |

| XWV_PAGE_VIEWS | int(11)  | YES  | | NULL|   |

| XWV_PAGE_SAVES | int(11)  | YES  | | NULL|   |

| XWV_DOWNLOADS  | int(11)  | YES  | | NULL|   |

| XWV_START_DATE | datetime | YES  | | NULL|   |

| XWV_END_DATE   | datetime | YES  | | NULL|   |

++--+--+-+-+---+

 

(hope the tables will show correctly ...)

 

Thanks,

Jeremie

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BOUSQUET Jeremie
Sent: lundi 18 février 2008 10:26
To: users@xwiki.org
Subject: [xwiki-users] MySQL Error "invalid use of group function" inStatistics 
application

 

Hello,

 

I just migrated from XWiki 1.1 to 1.2.2. Migration was ok and everything works 
fine, except the Statistics application.

 

It shows unrecorded stats but there are some. There seems to be an error in an 
SQL request (miss group by ?), either database was not correctly migrated, or 
MySQL version is not compatible ? Of course, stats are activated in xwiki.cfg.

 

Here's the error  log when trying to display the most viewed pages :

 

 [.../Stats/MostViewedPages] [http-80-Processor18] WARN  
util.JDBCExceptionReporter  - SQL Error: , SQLState: HY000

 [.../Stats/MostViewedPages] [http-80-Processor18] ERROR 
util.JDBCExceptionReporter  - Invalid use of group function

(2 times)

 

I use :

mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3

java version "1.5.0_11"

 

Thanks for help,

 

Jeremie

 

 

 

 

 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] MySQL Error "invalid use of group function" in Statistics application

2008-02-18 Thread BOUSQUET Jeremie
Hello,

 

I just migrated from XWiki 1.1 to 1.2.2. Migration was ok and everything
works fine, except the Statistics application.

 

It shows unrecorded stats but there are some. There seems to be an error
in an SQL request (miss group by ?), either database was not correctly
migrated, or MySQL version is not compatible ? Of course, stats are
activated in xwiki.cfg.

 

Here's the error  log when trying to display the most viewed pages :

 

 [.../Stats/MostViewedPages] [http-80-Processor18] WARN
util.JDBCExceptionReporter  - SQL Error: , SQLState: HY000

 [.../Stats/MostViewedPages] [http-80-Processor18] ERROR
util.JDBCExceptionReporter  - Invalid use of group function

(2 times)

 

I use :

mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using
readline 4.3

java version "1.5.0_11"

 

Thanks for help,

 

Jeremie

 

 

 

 

 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problems with Lucene lock (IOException) ...

2008-01-28 Thread BOUSQUET Jeremie
Thanks,

 

After shutdown, delete of .lock and restart, the file has been recreated.

 

But I still have a whole bunch of very ugly exceptions, I think I will have the 
server reboot because some handles might still be somewhere ...

 

@Vincent : I'll try to perform the migration on final 1.2 release ASAP anyway. 

 Thanks again,

Jeremie



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol
Sent: lundi 28 janvier 2008 17:09
To: XWiki Users
Subject: Re: [xwiki-users] Problems with Lucene lock (IOException) ...

 

 

On Jan 28, 2008, at 4:56 PM, Paul Libbrecht wrote:





This generally means that there's another process running and using it.

 

Here's a few avenues to solve that:

- shutdown your servlet container, see if the file is still there

- try with ps auxwww | grep java to see if there's a "ghost" process

- remove the file by hand...

 

I believe this is the result of a crash but I thought that Lucene had a way to 
solve that in newer versions. 

 

We have moved to the latest lucene 2.3.0 in 1.2.1.

 

-Vincent





In older versions of Lucene, for our ActiveMath platform, I used a different 
locking mechanism which waits ten seconds and if no attempt-to-lock is removed 
it is considered we can safely override the lock. Not very elegant.

 

paul

 

 

Le 28 janv. 08 à 15:29, BOUSQUET Jeremie a écrit :





Hello,

 

I had some system problems with the server hosting my wiki, now solved, but now 
the Lucene plugin seems to be in an unstable state.

 

When first accessing xwiki I get a :

java.io.IOException: Lock obtain timed out: 
Lock@/opt/tomcat/temp/lucene-dcdf99faa0a5827d2037245ccf529558-write.lock

 

I tried to stop tomcat, remove the index completely from 
/usr/local/xwiki/lucene, deactivate the Lucene plugin from xwiki.cfg and 
restart, but it still fails the same way.

I tried to reactivate the Lucene plugin, but still the same error, and the 
index is not re-created, leading to various "FileNotFoundException" to occur ...

 

I'm running on linux, with mysql and xwiki 1.1. The .lock file is accessible 
read/write, as well as the index folder ...

 

How can I correct my Lucene plugin state ?

 

Thanks,

Jérémie

___

users mailing list

users@xwiki.org

http://lists.xwiki.org/mailman/listinfo/users

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] No document found in the selected archive...

2008-01-28 Thread BOUSQUET Jeremie

Hi,
 
You might want to check inside your generated .xar archive that there
are no empty (0 size) documents. It can be due to problem during .xar
export (some pages fail to export).
This used to make the import process fail in older versions, I don't
know if it's still the case.

Jeremie 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Loris Conedera
Sent: lundi 28 janvier 2008 12:55
To: XWiki Users
Subject: Re: [xwiki-users] No document found in the selected archive...

Hi,
This is the error in the xwiki.log:

WARN  web.XWikiAction - Uncaught exception: Error number 11015 in 11:
Exception while importing
Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped
Exception: Error on line -1 of document  : Premature end of file.
Nested exception: Premature end of file.

Thanks,

Loris

2008/1/28, Sergiu Dumitriu <[EMAIL PROTECTED]>:
> Hi,
>
> Do you get any errors in the log file?
>
> Sergiu
>
> Loris Conedera wrote:
> > Hi all,
> > I have a problem importing documents from a Xar I exported.
> > I have 3 Xwiki Installations (devel,test, production), all
> > installations are 1.2 release.
> > I tried to export contents from test server to import it into both
> > Devel and Production Servers.
> > When I try to import the XAR I exported I get the following error:
> >
> > No document found in the selected archive
> >
> > The XAR file (with History) is about 15Mb and this means that it
> > contains something... :-)
> > I hope someone can help me!
> > Thanks,
> >
> > Loris
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Problems with Lucene lock (IOException) ...

2008-01-28 Thread BOUSQUET Jeremie
Hello,

 

I had some system problems with the server hosting my wiki, now solved, but now 
the Lucene plugin seems to be in an unstable state.

 

When first accessing xwiki I get a :

java.io.IOException: Lock obtain timed out: 
Lock@/opt/tomcat/temp/lucene-dcdf99faa0a5827d2037245ccf529558-write.lock

 

I tried to stop tomcat, remove the index completely from 
/usr/local/xwiki/lucene, deactivate the Lucene plugin from xwiki.cfg and 
restart, but it still fails the same way.

I tried to reactivate the Lucene plugin, but still the same error, and the 
index is not re-created, leading to various "FileNotFoundException" to occur ...

 

I'm running on linux, with mysql and xwiki 1.1. The .lock file is accessible 
read/write, as well as the index folder ...

 

How can I correct my Lucene plugin state ?

 

Thanks,

Jérémie

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Groovy and getXMLEncoded() question

2008-01-24 Thread BOUSQUET Jeremie
Hello,

 

I'm having a headache trying to understand why those 2 pieces of groovy
do not generate exactly the same thing :

 

1)-

<%

// LOOP 10 times

  println ( '' + xwiki.getXMLEncoded(blablabla) + '' )

// END LOOP

%>

 

2)-

<%

str = ''

// LOOP 10 times

  str  = str + '' + xwiki.getXMLEncoded(blablabla) + '\n'


// END LOOP

println(str)

%> 

 

"blablabla" is a formatted text (in my case, the description field of an
article for example).

 

1) produces what is expected : it writes 10 lines of text, beginning
with '', and special characters in "blablabla" are correctly
translated.

 

2) produces any number of lines (> 10), because carriage returns inside
"blablabla" have not been translated, and so many lines are written for
each line expected.

 

I 'm not sure if this is the right place for this, but if someone as an
idea it would greatly help me ...

 

 

Best Regards,

Jeremie

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [XEM 1.0M3] Referencing base skin in virtual wikis

2008-01-24 Thread BOUSQUET Jeremie
Hello,

Ok now it seems to be working.

I think you're right Jerome, and I should pay more attention to the rights set 
in the virtual wikis, that seems to explain the problem.

Thanks for your help !
 
 Jérémie


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerome Velociter
Sent: lundi 21 janvier 2008 20:34
To: XWiki Users
Subject: Re: [xwiki-users] [XEM 1.0M3] Referencing base skin in virtual wikis

>
> On Jan 21, 2008, at 8:01 PM, BOUSQUET Jeremie wrote:
>
>> Hello,
>>
>> I would like to reference the same and unique skin from the
>> 'controller' wiki (named 'xwiki'), in all my virtual wikis, but it
>> seems that in preferences page, the notation 'xwiki:XWiki.MySkin'
>> does not work ...
>
> It does if you use XE 1.2 (it's been fixed in one of he milestones/RC).

I think it should also work in 1.1.X (I'm doing this). What I'm sure do
not work without a fix in 1.1 is the wiki-prefixed panel inclusion.
Are the users from the sub-wikis allowed to view the skin ?

Regards,
Jerome

>
> Thanks
> -Vincent
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [XEM 1.0M3] Fail to instanciate default wikitemplate

2008-01-24 Thread BOUSQUET Jeremie
Hi,

I'm almost certain I used XEM 1.0M3, and inside it was XE 1.2 but RC2 or RC3 ...
But maybe I made an error during deployment ?

Anyway I moved to XEM 1.0RC1 and now the template instanciation worked very 
well ;-)

Thanks for your help,

Jérémie
 

 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Mortagne
Sent: mardi 22 janvier 2008 10:21
To: XWiki Users
Subject: Re: [xwiki-users] [XEM 1.0M3] Fail to instanciate default wikitemplate

Hi,

Are you sure you use the M3 and not the M2 ?
The M2 version has this bug and, about the other problem you have, is
based on XE 1.1

You can declare any wiki as "template" to be used for create other
wikis from. You can import an XE xar in an empty subwiki you created
and declare it as template in it's descriptor you can acces from
/WikiManager/WebHome.

2008/1/21, BOUSQUET Jeremie <[EMAIL PROTECTED]>:
>
>
>
>
> Hello,
>
>
>
> I'm trying the XEM locally on my computer, over a XWiki instance :
>
> - replaced the .war content in web server
>
> - added all possible rights I could think about to 'xwiki' mysql user ;) (I
> also tried directly with 'root' user)
>
> - imported completely the XEM default .xar
>
>
>
> Wiki creation seems to work as long as new domain is defined in /etc/host,
> but I fail to add the default template, from page XemManager.Install, and so
> newly created wikis are empty ...
>
>
>
> [Logs]
>
> Com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
> reading document XWiki.XWikiPreferences Wrapped Exception: could not load an
> entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
>
> at
> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:469)
>
> [...]
>
> Wrapped Exception:
>
> java.sql.SQLException: Table 'templatexe.xwikidoc' doesn't exist
>
> at
> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)
>
> [...]
>
> [/Logs]
>
>
>
> After looking at the mysql db, schema 'templatexe' has been created, but
> remains empty ...
>
>
>
> Thanks for your help,
>
>
>
> Jeremie.
>
>
>
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>


-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [XEM 1.0M3] Fail to instanciate default wiki template

2008-01-21 Thread BOUSQUET Jeremie
Hello,

I'm trying the XEM locally on my computer, over a XWiki instance :
- replaced the .war content in web server
- added all possible rights I could think about to 'xwiki' mysql user ;)
(I also tried directly with 'root' user)
- imported completely the XEM default .xar

Wiki creation seems to work as long as new domain is defined in
/etc/host, but I fail to add the default template, from page
XemManager.Install, and so newly created wikis are empty ...

[Logs]
Com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document XWiki.XWikiPreferences
Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.XWikiDocument#104408758]
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore
.java:469)
[...]
Wrapped Exception:
java.sql.SQLException: Table 'templatexe.xwikidoc' doesn't exist
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)
[...]
[/Logs]

After looking at the mysql db, schema 'templatexe' has been created, but
remains empty ...

Thanks for your help,
 
Jeremie.


 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Thomas Mortagne
Sent: jeudi 10 janvier 2008 18:38
To: XWiki Developers
Cc: XWiki Users
Subject: [xwiki-users] [xwiki-devs] [ANN] XWiki Enterprise Manager
1.2Milestone 3 Released

The XWiki development team is pleased to announce the release of XWiki
Enterprise Manager 1.0 Milestone 3.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is the last XEM 1.0 milestone. RC1 and RC2 will follow.

The main modifications since XEM 1.0M2 are all XE 1.2 branch new
features as XEM 1.0M3 is now based on XE 1.2 Release Candidate 3.

Changes from 1.0 Milestone 3:

* XAAM-28: Add authors field to applications descriptors.
* XAAM-29: Add license field to applications descriptors.
* XAWM-23: Separate wiki and wiki alias concepts.
* XAWM-26: Add pretty name field to wikis decriptors.
* XAWM-29: Add users or groups rights at wiki creation time.
* XEM-78: Add default "xwiki" wiki descriptor.
* XEM-65: Make Application Manager and Wiki Manager more easily
accessible.

For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM10M3

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [XEM 1.0M3] Referencing base skin in virtual wikis

2008-01-21 Thread BOUSQUET Jeremie
Hello,

 

I would like to reference the same and unique skin from the 'controller'
wiki (named 'xwiki'), in all my virtual wikis, but it seems that in
preferences page, the notation 'xwiki:XWiki.MySkin' does not work ...

 

Is this possible ?

 

Thanks,

Jeremie

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [XEM 1.0M3] Fail to instanciate default wiki template

2008-01-21 Thread BOUSQUET Jeremie
Hello,

 

I'm trying the XEM locally on my computer, over a XWiki instance :

- replaced the .war content in web server

- added all possible rights I could think about to 'xwiki' mysql user ;)
(I also tried directly with 'root' user)

- imported completely the XEM default .xar

 

Wiki creation seems to work as long as new domain is defined in
/etc/host, but I fail to add the default template, from page
XemManager.Install, and so newly created wikis are empty ...

 

[Logs]

Com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document XWiki.XWikiPreferences Wrapped Exception: could not
load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]

at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore
.java:469)

[...]

Wrapped Exception:

java.sql.SQLException: Table 'templatexe.xwikidoc' doesn't exist

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)

[...]

[/Logs]

 

After looking at the mysql db, schema 'templatexe' has been created, but
remains empty ...

 

Thanks for your help,

 

Jeremie.

 

 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] New xwiki.org web site

2007-12-11 Thread BOUSQUET Jeremie


Thanks for your answers Vincent, and I understand them ;)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol
Sent: mardi 11 décembre 2007 16:09
To: XWiki Users
Subject: Re: [xwiki-users] [xwiki-devs] New xwiki.org web site


On Dec 11, 2007, at 3:55 PM, BOUSQUET Jeremie wrote:

>
>>> Halo,
>>>
>>> is the new (an beautifull) skin created only for xwiki.org or will
>>> be in
>>> standard instalation of XWiki Enterprise.
>
>> It'll be available for everyone in the near future. we need to make  
>> it
>
>> generic, save it in SVN and package it but then this is done it'll be
>> made available to all as the main skin by default.
>
> Will the albatross skin still be available and maintained?

Several answers:

1) Well, XWiki is an open source project and we're accepting  
contributions and even committers. So if anyone wants to improve and  
maintain something just create a jira issue and attach a patch to it.

2) Now that said, it's true that so far the core committers have only  
been maintaining one skin at a time and skins like dodo and finch are  
not currently maintained by the committers (only by the contributors).

3) What we'd like to do in the future is to extract common code in  
these 2 skins (albatross and the new one) and move that into templates  
in order to make creating new skins very easy and easy to maintain.

4) BTW this new skin is based on Albatross templates so all templates  
will be maintained de facto. The main different thing is the CSS.

Seen these answers, I think the answer is probably yes but then it'll  
eventually depend on the committers and the community's help.

Thanks
-Vincent

>> Vincent Massol napsal(a):
>>> Hi everyone,
>>>
>>> We now have a new version of the xwiki.org web site up and running
>>> on http://xwiki.org
>>>
>>> Let us know if you find any issue.
>>>
>>> I'd like to thank the following persons who helped:
>>>
>>> - Laurent Lunati for the skin
>>> - Thomas Mortagne for helping me with the migration
>>> - Guillaume Lerouge also for helping with the migration
>>> - Raffaello for the admin part
>>>
>>> I really like the new site, hope you'll like it too :)
>>>
>>> -Vincent, on behalf of the xwiki dev team
>>>
>>> ___
>>> devs mailing list
>>> [EMAIL PROTECTED]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>
>> ___
>> devs mailing list
>> [EMAIL PROTECTED]
>> http://lists.xwiki.org/mailman/listinfo/devs
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] New xwiki.org web site

2007-12-11 Thread BOUSQUET Jeremie

>> Halo,
>>
>> is the new (an beautifull) skin created only for xwiki.org or will  
>> be in
>> standard instalation of XWiki Enterprise.

>It'll be available for everyone in the near future. we need to make it

>generic, save it in SVN and package it but then this is done it'll be  
>made available to all as the main skin by default.

Will the albatross skin still be available and maintained?


Jeremie



> Vincent Massol napsal(a):
>> Hi everyone,
>>
>> We now have a new version of the xwiki.org web site up and running  
>> on http://xwiki.org
>>
>> Let us know if you find any issue.
>>
>> I'd like to thank the following persons who helped:
>>
>> - Laurent Lunati for the skin
>> - Thomas Mortagne for helping me with the migration
>> - Guillaume Lerouge also for helping with the migration
>> - Raffaello for the admin part
>>
>> I really like the new site, hope you'll like it too :)
>>
>> -Vincent, on behalf of the xwiki dev team
>>
>> ___
>> devs mailing list
>> [EMAIL PROTECTED]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
> ___
> devs mailing list
> [EMAIL PROTECTED]
> http://lists.xwiki.org/mailman/listinfo/devs

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] New xwiki.org web site

2007-12-11 Thread BOUSQUET Jeremie
Hi,

The new web site is really fine, and the virtual wiki mngt is very interesting 
... ;)

I'd like just to signal a rights management problem (I guess), as guest I can 
browse all virtual wikis from home page, but if I log in with my account I have 
no rights at all on pages in XWiki Watch wiki ... I still have rights on other 
wikis.

Regards,
Jeremie
 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol
Sent: lundi 10 décembre 2007 20:55
To: XWiki Users
Cc: XWiki Developers
Subject: [xwiki-users] New xwiki.org web site

Hi everyone,

We now have a new version of the xwiki.org web site up and running on 
http://xwiki.org

Let us know if you find any issue.

I'd like to thank the following persons who helped:

- Laurent Lunati for the skin
- Thomas Mortagne for helping me with the migration
- Guillaume Lerouge also for helping with the migration
- Raffaello for the admin part

I really like the new site, hope you'll like it too :)

-Vincent, on behalf of the xwiki dev team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting rendered content ofa pagewith aspecifictemplate

2007-12-03 Thread BOUSQUET Jeremie
 

In first instance I copied the sample (the timeline) in a WIKI page, but of 
course as in the sample are defined ,  and  tags, it could 
not work. In a wiki page we already are inside the  tag, and the browser 
does not like redefining such tags very much.


I have not a clear idea about how to have this kind of  and  nested 
tags affect the rendering of the page.
Take a look at this...
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/GoogleMaps
Here the code...
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/GoogleMaps?viewer=code&showlinenumbers=0&language=en
 and  are also defined in the Google Maps snippet, but the page is 
correctly rendered. No errors at all.



Ok, this means I was wrong ;) Maybe the difference is in the header (with the 


 

 So the trick was to have a page WikiDev.TimeLine, with the sample, another 
page WikiDev.TimeLineFeed with the sample script to generate the XML (it works 
well, I only added new things inside it). Basically the timeline feed page 
generates XML with a root  tag, and a number of  tags inside, with 
a date ("start") and a "description". So it's very easy to generate using any 
events as entries. In the WikiDev.TimeLine page you have to put URL of 
WikiDev.TimeLineFeed as first parameter of the tl.loadxml() method.


This is another point I fail at. I am not a programmer, so I have to learn how 
to produce this XML output from XWiki items.
Let's write down here a couple of simple examples showing the structure you 
describe...
http://simile.mit.edu/timeline/docs/example1.xml
http://simile.mit.edu/timeline/docs/example2.xml
And the HOW-TO from Simile...
http://simile.mit.edu/timeline/docs/create-timelines.html



The sample from Jeremi is quite simple and works very well to display all News 
elements in the timeline :

{pre}



#set($feed = $xwiki.feed.getFeed("$xwiki.getURL('Main.BlogRss', 'view', 
'xpage=rdf')"))

#foreach($entry in $feed.entries)

$xwiki.getXMLEncoded($entry.description.value) ... 
$xwiki.getXMLEncoded("Suite")



#end

 

Note : ADD CODE HERE TO ADD OTHER EVENTS IN THE XML

 



{/pre}



The #foreach parses all entries in the feed (constructed with your wiki blog), 
and writes down an  entry with date and description. It's not too 
complicated, but it's development ... In the ADD CODE HERE ...  , I put the 
groovy code to generate the XML from the page updates and the FAQ entries and 
such, but it's more complicated, not very readable, and most of all there are 
many hard-coded specific things inside it. Once I'll get something clearer I'll 
share it with you or add it in xwiki wiki ;-)

 

 

Then, in the page where I want to show the timeline, I added a , with 
"src" equals URL of WikiDev.TimeLine. Also had to give it a height and width 
for proper display. Inside the  it's like in another page, so there is 
no problem of  or  tags anymore. The WikiDev.TimeLine page does not 
show up (you get the URL prefiks error), but the  in the other page 
should display correctly.


The  way works perfectly. I am only still curious to understand why 
Google Maps work without it.
I am too (see above). I believe it would be nicer to be able to do as for 
Google Maps, but we would have to understand better why it works ...

 

Hope this helps ...


Yes, it does! Thanks for your message, Jeremi. I keep working to produce a 
clear page about how to use Simile TimeLine in XWiki, although I think you are 
the one for this task! :-)
If you prefer I can get the point ;-) But is this a code snippet, an 
application, macros ... ? I believe it belongs to snippets ... And can I make 
use of Jeremi's modified sample, because HE is the creator of this xwiki 
timeline after all 

 

Regards,

 


Cheers,




-- 
Ricardo Rodríguez
Your XEN ICT Team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting rendered content of a pagewith aspecifictemplate

2007-12-03 Thread BOUSQUET Jeremie
Hi Ricardo,

 

In first instance I copied the sample (the timeline) in a WIKI page, but of 
course as in the sample are defined ,  and  tags, it could 
not work. In a wiki page we already are inside the  tag, and the browser 
does not like redefining such tags very much.

 

I then tried the trick from the TIMELINE-24 issue also, but it failed to work. 
I don't know if I left this "patch" on the page, because my wiki is currently 
broken ... :/ It removed the URL prefiks issue, but nothing was displayed.

 

So the trick was to have a page WikiDev.TimeLine, with the sample, another page 
WikiDev.TimeLineFeed with the sample script to generate the XML (it works well, 
I only added new things inside it). Basically the timeline feed page generates 
XML with a root  tag, and a number of  tags inside, with a date 
("start") and a "description". So it's very easy to generate using any events 
as entries. In the WikiDev.TimeLine page you have to put URL of 
WikiDev.TimeLineFeed as first parameter of the tl.loadxml() method.

 

Then, in the page where I want to show the timeline, I added a , with 
"src" equals URL of WikiDev.TimeLine. Also had to give it a height and width 
for proper display. Inside the  it's like in another page, so there is 
no problem of  or  tags anymore. The WikiDev.TimeLine page does not 
show up (you get the URL prefiks error), but the  in the other page 
should display correctly.

 

Hope this helps ...

 

Regards,

 

 

Jeremie

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Your XEN ICT 
Team - Ricardo Rodriguez
Sent: dimanche 2 décembre 2007 13:13
To: XWiki Users
Subject: Re: [xwiki-users] Getting rendered content of a pagewith 
aspecifictemplate

 

BOUSQUET Jeremie wrote: 

Hi all,

 

I, of course, completely agree, as said I merely put 2 things together ;-)

The timeline is a great feature, I'm currently working on adding all this 
information in the same timeline (using groovy), and use it in the homepage:

of course, blog news

page updates

FAQ entries

comments on pages

 

The result is not yet perfect, but it's working quite nicely, using different 
bullets colors depending on type of item. I still have a problem in Jeremi's 
part (XML generation), because it seems that most recent entry in RSS is not 
taken into account in generated XML, and I really don't understand why (it's a 
for $entry in $entries with xwiki.feed.getFeeds(url), it should retrieve 
everything !?)

 

Also, when your timeline is "rich" it's quite unreadable, because newer things 
go too far in the bottom and don't display at all. I'm trying to make the 
timeline automatically "magnify" itselfs for current period of time (+- n 
hours), so items will be able to show up side-by-side, but I'm still failing to 
do it. 

 

The timeplot also seems very cool ;-) Only problem (for both timeline & 
timeplot) is that if it's rich it can take long to show up ... But it's a very 
nice and synthetic display.

 

Regards,

Jeremie 


Hi,

I've been trying to understand why the  trick is needed. Just to help 
to follow this issue... http://simile.mit.edu/issues/browse/TIMELINE-24

But I am still far from being able to contribute with an useful page about the 
use Timeline within XWiki. I am not even able to feed a sample Timeline with 
any thing different than the Jeremi's example at 
http://www.jeremi.info/index.php/feed/rss2!

Please, Jeremi, could you provide some example about how to feed the timeline 
simply with xwiki blog news?

Thank you so much,

Ricardo



-- 
Ricardo Rodríguez
Your XEN ICT Team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting rendered content of a page with aspecifictemplate

2007-11-30 Thread BOUSQUET Jeremie
Hi all,

 

I, of course, completely agree, as said I merely put 2 things together
;-)

The timeline is a great feature, I'm currently working on adding all
this information in the same timeline (using groovy), and use it in the
homepage:

-  of course, blog news

-  page updates

-  FAQ entries

-  comments on pages

 

The result is not yet perfect, but it's working quite nicely, using
different bullets colors depending on type of item. I still have a
problem in Jeremi's part (XML generation), because it seems that most
recent entry in RSS is not taken into account in generated XML, and I
really don't understand why (it's a for $entry in $entries with
xwiki.feed.getFeeds(url), it should retrieve everything !?)

 

Also, when your timeline is "rich" it's quite unreadable, because newer
things go too far in the bottom and don't display at all. I'm trying to
make the timeline automatically "magnify" itselfs for current period of
time (+- n hours), so items will be able to show up side-by-side, but
I'm still failing to do it. 

 

The timeplot also seems very cool ;-) Only problem (for both timeline &
timeplot) is that if it's rich it can take long to show up ... But it's
a very nice and synthetic display.

 

Regards,

Jeremie 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Guillaume Lerouge
Sent: vendredi 30 novembre 2007 15:57
To: XWiki Users
Subject: Re: [xwiki-users] Getting rendered content of a page with
aspecifictemplate

 

Hi Guillaume,


I think that to have timeline working here will be of major
interest for our group. So, let me try to generalize its usefulness. I
think that the reference given by Jeremi in the original entry
(http://www.jeremi.info/index.php/post/2006/11/28/Simile-Timeline) plus
the  trick in his second message solve the issue. If Jeremie
agrees, I will try to understand the whole thing and create ASAP an ad
hoc page.

 

> Great, I'm sure both Jeremi and Jeremie will be ok (I'm seeing Jeremi
on Wednesday, I'll check with him just in case)

 

Has any of you tested Simile Timeline's sister project Timeplot (
http://simile.mit.edu/timeplot/  ) ? 

Apparently it uses the same xml format for its data files, I thought it
might be used to generate statistics from a wiki use by turning a XWiki
Instance own RSS feed into the RSS plugin, creating the XML and
displaying the timeplot. Actually, I might try and do it as well :-) 

 

Guillaume 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




-- 
http://wikibc.blogspot.com/ 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting rendered content of a page with a specifictemplate

2007-11-29 Thread BOUSQUET Jeremie
Hello,

 

I can answer myself, sorry for bothering you ... ;)

In fact I merely had to use a  and it works perfectly (and very
nicely).

 

Regards,

Jeremie 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of BOUSQUET Jeremie
Sent: jeudi 29 novembre 2007 15:44
To: users@xwiki.org
Subject: [xwiki-users] Getting rendered content of a page with a
specifictemplate

 

Hello,

 

I have a page showing a timeline, to display it I need to do the
following because this page redefines  and  :

http://mywiki/xwiki/bin/view/WikiDev/TimeLine?xpage=plain

It's a simile timeline, and I got the sample from here
<http://www.jeremi.info/index.php/post/2006/11/28/Simile-Timeline> ,
from Jeremi's site (thank you if you read it to make me discover the
simile timeline ! ;) ).

 

 I would like to insert this rendered page in another wiki page. I wrote
this:

$xwiki.getDocument('WikiDev.TimeLine').getRenderedContent()

 

Of course it's not correct, because I would like plain template to be
applied to retrieve the rendered content. How can I proceed ?

 

Another way would be for this very page to be able to redefine 
and  properly, but I don't know how to make it (and to make it
correctly, and for this only page).

 

Thanks ,

 

Jeremie

 

 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Getting rendered content of a page with a specific template

2007-11-29 Thread BOUSQUET Jeremie
Hello,

 

I have a page showing a timeline, to display it I need to do the
following because this page redefines  and  :

http://mywiki/xwiki/bin/view/WikiDev/TimeLine?xpage=plain

It's a simile timeline, and I got the sample from here
 ,
from Jeremi's site (thank you if you read it to make me discover the
simile timeline ! ;) ).

 

 I would like to insert this rendered page in another wiki page. I wrote
this:

$xwiki.getDocument('WikiDev.TimeLine').getRenderedContent()

 

Of course it's not correct, because I would like plain template to be
applied to retrieve the rendered content. How can I proceed ?

 

Another way would be for this very page to be able to redefine 
and  properly, but I don't know how to make it (and to make it
correctly, and for this only page).

 

Thanks ,

 

Jeremie

 

 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki scripting for end user (not Groovy)

2007-11-21 Thread BOUSQUET Jeremie
Hello *,

 

I quite agree with all that's been said in this topic about usability. I
must say also as old 0.9 versions user, that usability,
user-friendliness, have been considerably improved since these old
versions, thanks to xwiki great team ;-) So I believe this will continue
to evolve and be better and better with new releases.

 

About scripting : in my team we had "basic" end-users (not quite
participative to start with), and 2 admins (including me). As admins we
added much dynamic features in many pages, scripting, groovy, HTML, SQL
requests and so on ... Now end-users are much more participative, and
problem is that :

- we broke possibility of using WYSIWYG editor on these highly
dynamic pages

- for end-users, editing these kind of pages is an awful
experience, because it's not human-readable anymore (accepting
developers are not completely human ;) ).

In my opinion with XWiki architecture it should be strongly advised to
separate "pure content" pages and dynamic or complex pages, using macros
for example. It's a good development practice anyway, but you might not
think about it when you start working on a wiki site.

 

Anyway I don't regret using XWiki because it's a great wiki IMO, and I
really appreciate the way it evolves

 

Jeremie

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Guillaume Lerouge
Sent: mercredi 21 novembre 2007 11:15
To: XWiki Users
Subject: Re: [xwiki-users] XWiki scripting for end user (not Groovy)

 



I'm happy to hear that. I hope I didn't seem to harsh on the
feedback.
I do think xwiki is a nice product! 

 

> then we hope you'll keep using it :-)

> Feedback isn't too harsh, it's important for us to be aware of how
XWiki users feel about our software. And hopefully you'll be bringing
improvements to it on your own soon ;-) 

 

Guillaume

 

 

William
___ 
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




-- 
http://wikibc.blogspot.com/ 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

2007-11-19 Thread BOUSQUET Jeremie
Yes I talk about the .exe uninstall feature, it removes the complete directory 
only if you check "Force suppression of [install_dir]\XWiki Enterprise".

I left it unchecked first time, and after reinstall found xwiki-core 1.1 jar 
mixed with 1.2 jars in lib subdirectory, so I believe it did not suppress 
everything in this case ...

I had 1.2.M1 or 1.1.RC2 installed previously (I'm afraid I didn't note which 
one ...)

 

 

BOUSQUET Jeremie

GGS Europe Solution CMO & PMO
Gemalto

Tel: +33 4 42 36 42 93

Avenue du Jujubier Z.I. Athélia IV BP 90
13705 LA CIOTAT CEDEX
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.gemalto.com <http://www.gemalto.com> 
 

 

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol
Sent: lundi 19 novembre 2007 11:23
To: XWiki Users
Subject: Re: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

 

 

On Nov 19, 2007, at 11:14 AM, BOUSQUET Jeremie wrote:





Hi Vincent,

 

Thanks for your answer, you were right of course. It was not clear for me that 
"uninstall" by default do not remove the core files.

 

What do you mean by "uninstall"? Are you talking about the exe installer 
uninstall feature? If so it should remove the complete "XWiki Enterprise" 
directory.

 

Thanks

-Vincent

 



After complete folder uninstall, now it works well, thanks !

 

Regards,

Jeremie

 





From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent 
Massol
Sent: lundi 19 novembre 2007 10:39
To: XWiki Users
Subject: Re: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

 

    Hi Jeremie,

 

On Nov 19, 2007, at 10:11 AM, BOUSQUET Jeremie wrote:








Hello Vincent,

 

Thanks for this new version that seems promising ! :-)

 

After installing the .exe distribution on windows XP I get this error 
which generates error 500 in jetty :

 

10:07:32.746 WARN!! [P1-19] 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:618) >11> 
Error for /xwiki/bin/view/Main/ java.lang.NoSuchMethodError: 
com.xpn.xwiki.doc.XWikiDocument.setMinorEdit(Z)V

at 
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(SchedulerPlugin.java:155)

at 
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:280)

at 
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.initWatchListJob(WatchListPlugin.java:251)

at 
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.initWatchlistJobs(WatchListPlugin.java:265)

at 
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.init(WatchListPlugin.java:119)

at 
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:130)

at 
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:69)

at 
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:95)

[...]

 

I uninstalled previous version before installing the last one.

 

It looks like your're using a XWiki Core JAR version 1.1.x instead of 
1.2.x.

 

-Vincent

 








From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Vincent Massol
Sent: dimanche 18 novembre 2007 22:06
To: XWiki Users; XWiki Developers
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

 

The XWiki development team is pleased to announce the release 
of XWiki Enterprise 1.2 Milestone 2.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is the last milestone release for the 1.2 version. It's 
packed with new features and improvements. The next version will be 1.2 RC 1 
and will focus on improving the stability. The roadmap is to release 1.2 final 
for beginning of December 2007.

 

Main changes from 1.2M1:

* Completely redesigned the UI for managing permissions and 
groups/users. It's now a nice Ajax interface which scales to any number of 
users.

* A new Mail Sender plugin has been added. It's a generic 
plugin that you can use from Velocity/Groovy pages and that is also used by the 
Watchlist feature below to send notification emails.

* New Watchlist feature which allows watching pages and spaces 
and receive email notifications when they are modified.

 

Re: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

2007-11-19 Thread BOUSQUET Jeremie
Hi Vincent,

 

Thanks for your answer, you were right of course. It was not clear for
me that "uninstall" by default do not remove the core files. After
complete folder uninstall, now it works well, thanks !

 

Regards,

Jeremie

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Vincent Massol
Sent: lundi 19 novembre 2007 10:39
To: XWiki Users
Subject: Re: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

 

Hi Jeremie,

 

On Nov 19, 2007, at 10:11 AM, BOUSQUET Jeremie wrote:





Hello Vincent,

 

Thanks for this new version that seems promising ! :-)

 

After installing the .exe distribution on windows XP I get this error
which generates error 500 in jetty :

 

10:07:32.746 WARN!! [P1-19]
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:618)
>11> Error for /xwiki/bin/view/Main/ java.lang.NoSuchMethodError:
com.xpn.xwiki.doc.XWikiDocument.setMinorEdit(Z)V

at
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(Sch
edulerPlugin.java:155)

at
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlug
in.java:280)

at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.initWatchListJob(WatchLis
tPlugin.java:251)

at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.initWatchlistJobs(WatchLi
stPlugin.java:265)

at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.init(WatchListPlugin.java
:119)

at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.ja
va:130)

at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.jav
a:69)

at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.ja
va:95)

[...]

 

I uninstalled previous version before installing the last one.

 

It looks like your're using a XWiki Core JAR version 1.1.x instead of
1.2.x.

 

-Vincent

 






From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Vincent Massol
Sent: dimanche 18 novembre 2007 22:06
To: XWiki Users; XWiki Developers
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

 

The XWiki development team is pleased to announce the release of
XWiki Enterprise 1.2 Milestone 2.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is the last milestone release for the 1.2 version. It's
packed with new features and improvements. The next version will be 1.2
RC 1 and will focus on improving the stability. The roadmap is to
release 1.2 final for beginning of December 2007.

 

Main changes from 1.2M1:

* Completely redesigned the UI for managing permissions and
groups/users. It's now a nice Ajax interface which scales to any number
of users.

* A new Mail Sender plugin has been added. It's a generic plugin
that you can use from Velocity/Groovy pages and that is also used by the
Watchlist feature below to send notification emails.

* New Watchlist feature which allows watching pages and spaces
and receive email notifications when they are modified.

* The Scheduler Plugin and the Scheduler Application have been
released in version 1.1 and are bundled with XWiki Enterprise 1.2
milestone 2. They allow you to create jobs (Groovy scripts) to be
executed in the future. They are used for example in the Watchlist
plugin to send email notifications for pages or spaces you are
monitoring.

* New displayPanelLayout Macro to display Panels in page.

* New JODA Time plugin to allow using JODA time from
Velocity/Groovy pages.

* The top level edit menu has been reorganized. Separators have
been added, the Rename and Delete actions have been moved in an Action
menu and a new Watch menu has been added.

* Entering URLs such as http://myserver/xwiki goes to the
Main.WebHome page by default (it used to display some installation
instruction page).

* Panels from other virtual wikis can be used now.

* Lucene Search UI and stability has been improved.

* Removed the Presentation application from the default wiki
(since it was not maintained and was buggy).

 

+ bug fixes and other improvements

For more information see the Release notes at:


http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise12M2

 

Thanks
-The XWiki dev team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

2007-11-19 Thread BOUSQUET Jeremie
Hello Vincent,

 

Thanks for this new version that seems promising ! :-)

 

After installing the .exe distribution on windows XP I get this error
which generates error 500 in jetty :

 

10:07:32.746 WARN!! [P1-19]
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:618)
>11> Error for /xwiki/bin/view/Main/ java.lang.NoSuchMethodError:
com.xpn.xwiki.doc.XWikiDocument.setMinorEdit(Z)V

at
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(Sch
edulerPlugin.java:155)

at
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlug
in.java:280)

at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.initWatchListJob(WatchLis
tPlugin.java:251)

at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.initWatchlistJobs(WatchLi
stPlugin.java:265)

at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.init(WatchListPlugin.java
:119)

at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.ja
va:130)

at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.jav
a:69)

at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.ja
va:95)

[...]

 

I uninstalled previous version before installing the last one.

 

Regards,

Jeremie 

 

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Vincent Massol
Sent: dimanche 18 novembre 2007 22:06
To: XWiki Users; XWiki Developers
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.2M2 Released

 

The XWiki development team is pleased to announce the release of XWiki
Enterprise 1.2 Milestone 2.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is the last milestone release for the 1.2 version. It's packed with
new features and improvements. The next version will be 1.2 RC 1 and
will focus on improving the stability. The roadmap is to release 1.2
final for beginning of December 2007.

 

Main changes from 1.2M1:

* Completely redesigned the UI for managing permissions and
groups/users. It's now a nice Ajax interface which scales to any number
of users.

* A new Mail Sender plugin has been added. It's a generic plugin that
you can use from Velocity/Groovy pages and that is also used by the
Watchlist feature below to send notification emails.

* New Watchlist feature which allows watching pages and spaces and
receive email notifications when they are modified.

* The Scheduler Plugin and the Scheduler Application have been released
in version 1.1 and are bundled with XWiki Enterprise 1.2 milestone 2.
They allow you to create jobs (Groovy scripts) to be executed in the
future. They are used for example in the Watchlist plugin to send email
notifications for pages or spaces you are monitoring.

* New displayPanelLayout Macro to display Panels in page.

* New JODA Time plugin to allow using JODA time from Velocity/Groovy
pages.

* The top level edit menu has been reorganized. Separators have been
added, the Rename and Delete actions have been moved in an Action menu
and a new Watch menu has been added.

* Entering URLs such as http://myserver/xwiki goes to the Main.WebHome
page by default (it used to display some installation instruction page).

* Panels from other virtual wikis can be used now.

* Lucene Search UI and stability has been improved.

* Removed the Presentation application from the default wiki (since it
was not maintained and was buggy).

 

+ bug fixes and other improvements

For more information see the Release notes at:

http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise12M2

 

Thanks
-The XWiki dev team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import of Backups

2007-10-29 Thread BOUSQUET Jeremie
Hello,

I can give you just a feedback on export/import operations on large
wiki, because I did it once.

2 remarks (that may help you or not, I'm afraid) :
- for large wikis, I preferred to split my .xar in smaller xars, by
space for example, editing the file containing the list of documents in
each .xar (even if it didn't seem mandatory for me, at least in older
versions of xwiki). It was useful because for large .xar attachments, it
can become VERY painful ...
- you should also check your export before importing. XWiki does not
complain much on export, and almost always it will succeed. But if you
unzip your .xar and have a look inside it, you might see that some pages
failed to be exported, and size of files is 0Kb. To import, you need at
least to delete these empty files. I didn't analyze why export failed
for these pages, so I migrated what I could with .xar, and performed
copy/paste for the others.

These remarks are valid for wiki 0.9 migrated to 1.0, I did not test
massive export/import on last versions.

Jeremie


 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Hans-Peter Zorn
Sent: lundi 29 octobre 2007 13:38
To: XWiki Users
Subject: [xwiki-users] Import of Backups

Hi,
I am currently trying to migrate a already populated xwiki from hsqldb 
to mysql.
The first thing I noticed is, that xwiki needs lots of heap space for 
attaching the
backup.xar to the import page. This xar is about 20mb, the wiki is not 
that big, yet
the tomcat process consumes about 1Gb resident memory (2Gb in total) 
while attaching
which leads to massive swapping and slowdown. I wonder what will happen,
if
a wiki is really heavily populated with lots of attachements?

After the xar is attached, I cannot select it, because an exception
occurs:

Wrapped Exception: Error number 2002 in 2: Error parsing xml
Wrapped Exception: Error on line 346 of document  : Character reference 
"" is an invalid XML character. Nested exception: Character reference

"" is an invalid XML character.
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

Any hints about how to do the migration?

Cheers,
Hans-Peter

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error because of Preferences

2007-10-24 Thread BOUSQUET Jeremie
Hi,

There are good chances that you did not lost any data, unless you erased
your database, but you would have noticed ... ;-)

I had the same problem after migration of wiki kernel version. When
re-deployed the .war file in my tomcat container, I forgot to add again
the mysql*.jar library in $TOMCAT_HOME/webapps/xwiki/WEB-INF/lib

Or is there a possibility that your hibernate.cfg.xml file was updated
by someone else, or by you a long ago, and tomcat was restarted only
recently, so the problem appears only now ? Most of the time default
mysql user for xwiki is named xwiki ...


Jeremie


 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of V. Harikrishnan Nair
Sent: mercredi 24 octobre 2007 12:48
To: users@xwiki.org
Subject: Re: [xwiki-users] Error because of Preferences


I have not changed anything in the hibernate.cfg.xml file. The username
'sa'
was present by default and I tried another backup file of the
hibernate.cfg.xml file but it did not work either...

This is the stack trace -> 


Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableCon
nectionFactory (User not found: SA)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:855)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:540)
at
com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionPr
ovider.java:181)
... 40 more
Caused by: java.sql.SQLException: User not found: SA
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
erConnectionFactory.java:37)
at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java:290)
at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java:877)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:851)
... 42 more

16:07:09.484 INFO   [P1-19]
org.mortbay.util.Container.start(Container.java:74)
>08> Started HttpContext[/,/]




Or please give me a method to retrieve all the data I have entered in
the
wiki.
-- 
View this message in context:
http://www.nabble.com/Error-because-of-Preferences-tf4682780.html#a13383
259
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [1.1] Linking lists

2007-10-03 Thread BOUSQUET Jeremie
Hello,

 

I would like to do the following : create a new class, with a number of 
properties being lists.

For the end-user it would be like this : select an entry in first list, 
depending on the value, the second list is restricted to a limited number of 
choices. And the same on and on with third list.

Constraint : I cannot modify database and create new tables and such.

 

Do you think this would be feasible ? I hoped, if yes, someone could just 
through some ideas to start with, because I'm not sure on how to proceed to 
have such "dynamic" lists ...

 

Thanks,

 

Jérémie

 

 

 

BOUSQUET Jeremie

GGS Europe Solution CMO & PMO
Gemalto

Tel: +33 4 42 36 42 93

Avenue du Jujubier Z.I. Athélia IV BP 90
13705 LA CIOTAT CEDEX
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.gemalto.com <http://www.gemalto.com> 
 

 

 

 

 

<>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [1.1] "With history" import option

2007-09-17 Thread BOUSQUET Jeremie
Ok,

 

Thanks Vincent, the best was to test it ! :-) (and it's what you said)

 

So :

-  without "with history" option selected : local page history is 
overwritten, new page version is imported page current version (for example 
"1.16", but without previous versions)

-  with "with history" option selected : local page history is 
overwritten, new page version is "1.1"

 

To facilitate migrations, I think the ideal option would be "add imported page 
version on top of local page version", just as if importing an existing page 
would be a modification of this page.

This way, it would be possible very easily to:

-  compare page before and after .xar import

-  rollback a page to previous state (without having to reimport a 
previously exported .xar on top of it ...)

 

What do you think ?

 

BR

Jeremie

 

 

BOUSQUET Jeremie

GGS Europe Solution CMO & PMO
Gemalto

Tel: +33 4 42 36 42 93

Avenue du Jujubier Z.I. Athélia IV BP 90
13705 LA CIOTAT CEDEX
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.gemalto.com <http://www.gemalto.com> 
 

 

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol
Sent: lundi 17 septembre 2007 16:10
To: XWiki Users
Subject: Re: [xwiki-users] [1.1] "With history" import option

 

 

On Sep 17, 2007, at 3:58 PM, BOUSQUET Jeremie wrote:





Hello,

 

I would like to know how the option "with history" in the import tool should be 
understood ?

 

Does it mean :

-  history of existing pages will be preserved (new revision added for 
last revision of imported page)

 

No



-  history of imported pages will be preserved and replace local pages 
history

 

Yes



-  history of imported pages will be preserved as well as local pages 
history (concatenation)

No

 

At least that's what I understand (haven't checked it). 

 

Ludovic, can you confirm?

 I added a line for this in the admin guide, but need to detail the 
exact way it works (btw I need to be sure of how it works before importing 
pages in my own wiki ;-) )

http://www.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport

 

Thanks

-Vincent

 

<>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [1.1] "With history" import option

2007-09-17 Thread BOUSQUET Jeremie
Hello,

 

I would like to know how the option "with history" in the import tool
should be understood ?

 

Does it mean :

-  history of existing pages will be preserved (new revision
added for last revision of imported page)

-  history of imported pages will be preserved and replace local
pages history

-  history of imported pages will be preserved as well as local
pages history (concatenation)

 

I added a line for this in the admin guide, but need to detail the exact
way it works (btw I need to be sure of how it works before importing
pages in my own wiki ;-) )

http://www.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport

 

Thanks,

 

Jeremie

 

 

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [1.1] Velocity, summing properties

2007-08-30 Thread BOUSQUET Jeremie
Many thanks Brandon, I confirm you remembered well ... ;-)

 

Have a good day,

 

Jeremie

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Esbach, Brandon
Sent: jeudi 30 août 2007 16:10
To: XWiki Users
Subject: Re: [xwiki-users] [1.1] Velocity, summing properties

 

Hmm, running on dusty memory, away from my server atm but if I recall right, 
use $xwiki.parseInt($b) when you do calculations on it, assuming it's an int

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BOUSQUET Jeremie
Sent: 30 August 2007 15:01
To: XWiki Users
Subject: [xwiki-users] [1.1] Velocity, summing properties

Hello,

 

I would like to perform a sum in a velocity script.

The following works well:

#set ($a = 1)

#set ($b = 1)

#set ($c= $a + $b)

 

$c returns 2

 

But if I modify with

#set ($b = 
$categoryDoc.getObject("Blog.Categories","name",$bcategory).get("color_red"))

 

... the sum does not work anymore. It seems that $b is considered as a string 
and gets appended to $a instead of added. The property retrieved "color_red" is 
of type Number.

 

Is there a way to convert it in order to perform arithmetics on it ? I looked 
at velocity dev guide but I'm quite confused ...

 

Thanks,

 

BOUSQUET Jeremie

GGS Europe Solution CMO & PMO
Gemalto

Tel: +33 4 42 36 42 93

Avenue du Jujubier Z.I. Athélia IV BP 90
13705 LA CIOTAT CEDEX
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.gemalto.com <http://www.gemalto.com> 
 

 

 

 

 

<>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [1.1] Velocity, summing properties

2007-08-30 Thread BOUSQUET Jeremie
Hello,

 

I would like to perform a sum in a velocity script.

The following works well:

#set ($a = 1)

#set ($b = 1)

#set ($c= $a + $b)

 

$c returns 2

 

But if I modify with

#set ($b = 
$categoryDoc.getObject("Blog.Categories","name",$bcategory).get("color_red"))

 

... the sum does not work anymore. It seems that $b is considered as a string 
and gets appended to $a instead of added. The property retrieved "color_red" is 
of type Number.

 

Is there a way to convert it in order to perform arithmetics on it ? I looked 
at velocity dev guide but I'm quite confused ...

 

Thanks,

 

BOUSQUET Jeremie

GGS Europe Solution CMO & PMO
Gemalto

Tel: +33 4 42 36 42 93

Avenue du Jujubier Z.I. Athélia IV BP 90
13705 LA CIOTAT CEDEX
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
www.gemalto.com <http://www.gemalto.com> 
 

 

 

 

 

<>___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Announcement] XWiki Platform and XWiki Enterprise1.1 Release Candidate 1 released

2007-08-30 Thread BOUSQUET Jeremie

Hi,

Thanks for this release and all your great work on XWiki !

Maybe I'm too fast but I think the .war distribution for 1.1.RC1 is missing on 
the download page (invalid file id in forge)


Jeremie



 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergiu Dumitriu
Sent: jeudi 30 août 2007 13:26
To: XWiki Developers; XWiki Users
Subject: [xwiki-users] [Announcement] XWiki Platform and XWiki Enterprise1.1 
Release Candidate 1 released

Hi,

This is first release candidate for the final 1.1 release. It brings
only several bug fixes and improvements, as the 1.1 release is almost
ready. It was delayed a bit by unexpected bugs introduced by some
fixes, but we managed to get it along. Unfortunately, there will have
to be another release candidate, as right after finishing the release
we detected several things that could be improved, and we're also
trying to make the installer a bit more user-friendly.

See the release notes (
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise11RC1
) for more details on this release. With release candidates we need
your help more than ever for testing and reporting any remaining bug
(and eventually provide a patch, too).

Thanks!
The XWiki developers team
-- 
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users