Re: [xwiki-users] setting translation from groovy

2014-12-16 Thread David Delbecq
I tried, but the various "getTranslated" method return exactly the same 
document instance as the one they are called on. Because the document is not 
yet translated. They all seems to work in the model "is translation exist, 
return it. Otherwise return the default document", which is not what i am 
looking for.



- Mail original -
De: "Clemens Klein-Robbenhaar" 
À: "users" 
Envoyé: Lundi 15 Décembre 2014 18:54:04
Objet: Re: [xwiki-users] setting translation from groovy

Hi,

 just a quick response ... I have not really tried, but as far as I remember 
something like:

  translatedDoc = newDoc.getTranslatedDocument(language)

should work.

The explanation is that translations of given document are not completely 
different documents (so you do not have to make a copy to create them),
but instead "variants" of the document in the default language, so you can 
access them directly from the document itself

HTH
Clemens


On 12/15/2014 12:01 PM, David Delbecq wrote:
> Hello, 
> 
> say i want to create a new Xwikidocument in groovy, and i want this document 
> to already have two languages. I tried to use this code in groovy and various 
> other variants, but xwiki keep creating a single version of document, with 
> content in last language of loop and default language in the default locale 
> of user executing script. It's just ignoring any tip on local. How can I set 
> translations? 
> 
> Note: my final purpose is so that a user can upload 2 versions of a odt file 
> in a form, and i will automatically load it in the concerned translations. 
> Setting translation content is the last bit i am missing. I can't find any 
> method in xwiki api that says "here is content translated in language xx" :/ 
> 
> 
> newDoc = xwiki.getDocument(new 
> DocumentReference("xwiki","Memorandum","Memo-1234","en")); 
> newDoc.getDocument().setDefaultLanguage(defaultLanguage); 
> referenceDocument = "Memorandum.Memo-"+number 
> for (language in ["fr","nl","en"]){ 
> if (title[language] !=null && title[language].trim().length()>0){ 
> println("new document in "+language) 
> translatedDoc = new Document( 
> newDoc.getDocument().copyDocument( 
> new DocumentReference("xwiki","Memorandum","Memo-1234",language), 
> xcontext.getContext()), 
> xcontext.getContext()) 
> translatedDoc.setContent("Hello in "+language+": "+title[language]) 
> translatedDoc.save(); 
> } 
> } 
> 
> 
> Any advice would be greatly welcomed 
> David Delbecq 
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 



mit freundlichen Grüßen
Clemens Klein-Robbenhaar

-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
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] setting translation from groovy

2014-12-15 Thread David Delbecq
Hello, 

say i want to create a new Xwikidocument in groovy, and i want this document to 
already have two languages. I tried to use this code in groovy and various 
other variants, but xwiki keep creating a single version of document, with 
content in last language of loop and default language in the default locale of 
user executing script. It's just ignoring any tip on local. How can I set 
translations? 

Note: my final purpose is so that a user can upload 2 versions of a odt file in 
a form, and i will automatically load it in the concerned translations. Setting 
translation content is the last bit i am missing. I can't find any method in 
xwiki api that says "here is content translated in language xx" :/ 


newDoc = xwiki.getDocument(new 
DocumentReference("xwiki","Memorandum","Memo-1234","en")); 
newDoc.getDocument().setDefaultLanguage(defaultLanguage); 
referenceDocument = "Memorandum.Memo-"+number 
for (language in ["fr","nl","en"]){ 
if (title[language] !=null && title[language].trim().length()>0){ 
println("new document in "+language) 
translatedDoc = new Document( 
newDoc.getDocument().copyDocument( 
new DocumentReference("xwiki","Memorandum","Memo-1234",language), 
xcontext.getContext()), 
xcontext.getContext()) 
translatedDoc.setContent("Hello in "+language+": "+title[language]) 
translatedDoc.save(); 
} 
} 


Any advice would be greatly welcomed 
David Delbecq 

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


[xwiki-users] Updating xwiki objects? How to?

2013-02-08 Thread David Delbecq
Hello, 

i have a form that is trying to update xwiki object. For whatever reason, it's 
not updating. Here is the groovy code. The nearly same code but with 
"newObject" instead of "getObject" properly create new entries. I can't find 
out how to tell xwiki that the object has changed and need to be updated in 
database. 

if (request.update !=null){ 
println ("update mode"); 
obj = doc.getObject('Configuration.NewsClass',request.doEdit.toInteger()) 
println "$obj " // Here i get "com.xpn.xwiki.api.Object@69506371" 
obj.set("linkfr",request.linkfr) 
obj.set("titlefr",request.titlefr) 
obj.set("linknl",request.linknl) 
obj.set("titlenl",request.titlenl) 
obj.set("publication",new java.util.Date().parse("dd/MM/ 
HH:mm",request.publication)) 
println obj.get("linkfr"); // Correclty outputs the new value 
doc.save("update news entries") // This properly appear in history 
println "Saved "+request.doEdit // It says "Saved 53" for example 

Regards, 

David Delbecq 

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


[xwiki-users] xwiki search duplicated results

2013-02-04 Thread David Delbecq
Hello, 

using the search tools in Xwiki, i notice that some documents appear several 
times in search results. Why does lucene gives duplicate results and how to 
avoid this? Do i need to reindex or so? 

Best regards, 

David Delbecq 

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


Re: [xwiki-users] Caching resources

2013-02-01 Thread David Delbecq
I am pretty sure it's not jboss that is adding this header. First, i saw no 
configuration option related to this in jboss. Second, querying another 
non-wiki page (on another webapp thus) cause this output without no-cache 

HTTP/1.1 304 Not Modified 
Server: Apache-Coyote/1.1 
ETag: W/"2432-1331331242000" 
Date: Fri, 01 Feb 2013 15:15:42 GMT 

I also tried to access static ressources inside the xwiki but then i get a 
no-cache: 
GET /xwiki/resources/js/scriptaculous/scriptaculous.js HTTP/1.1 



HTTP/1.1 304 Not Modified 
Server: Apache-Coyote/1.1 
Pragma: No-cache 
Cache-Control: no-cache 
Expires: Thu, 01 Jan 1970 00:00:00 UTC 
ETag: W/"1016-1340705218000" 
Date: Fri, 01 Feb 2013 15:20:22 GMT 





- Mail original -

De: "David Delbecq"  
À: "XWiki Users"  
Envoyé: Vendredi 1 Février 2013 15:49:06 
Objet: Re: [xwiki-users] Caching resources 


Http headers i gave comes form a 4.1.2 xwiki running on a plain (default 
configuration) jboss 7 

- Mail original - 

De: "Sergiu Dumitriu"  
À: "XWiki Users"  
Envoyé: Jeudi 31 Janvier 2013 18:53:32 
Objet: Re: [xwiki-users] Caching resources 

On 01/31/2013 12:31 PM, David Delbecq wrote: 
> Hello, 
> 
> i would like to active cachin on /xwiki/bin/skin/resources/* as, obviously, 
> skin doesn't change often :) 
> As you can see, by default, xwiki forbid caching... What do i need to change 
> for this caching? 
> 

Nope, that's not the default behavior. XWiki does rely on caching, and 
if you go to 
http://playground.xwiki.org/xwiki/bin/skin/resources/js/scriptaculous/effects.js
 
you'll see that the resource is cached. 

> 
> HTTP/1.1 200 OK 
> Server: Apache-Coyote/1.1 
> Pragma: No-cache 

^ These don't come from XWiki, I guess that Tomcat's configuration is 
the one that adds the Pragma: No-cache header. 

> Cache-Control: public 
> Expires: Sat, 02 Mar 2013 17:22:25 GMT 
> Last-Modified: Tue, 26 Jun 2012 10:06:58 GMT 

^ These come from XWiki, and they do enable caching. 

> Content-Type: text/javascript;charset=UTF-8 
> Content-Language: en 
> Content-Length: 25003 
> Date: Thu, 31 Jan 2013 17:22:25 GMT 

Hm, except maybe if you're using a very old version of XWiki. What 
version are you currently using? 
-- 
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 

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


Re: [xwiki-users] Caching resources

2013-02-01 Thread David Delbecq

Http headers i gave comes form a 4.1.2 xwiki running on a plain (default 
configuration) jboss 7 

- Mail original -

De: "Sergiu Dumitriu"  
À: "XWiki Users"  
Envoyé: Jeudi 31 Janvier 2013 18:53:32 
Objet: Re: [xwiki-users] Caching resources 

On 01/31/2013 12:31 PM, David Delbecq wrote: 
> Hello, 
> 
> i would like to active cachin on /xwiki/bin/skin/resources/* as, obviously, 
> skin doesn't change often :) 
> As you can see, by default, xwiki forbid caching... What do i need to change 
> for this caching? 
> 

Nope, that's not the default behavior. XWiki does rely on caching, and 
if you go to 
http://playground.xwiki.org/xwiki/bin/skin/resources/js/scriptaculous/effects.js
 
you'll see that the resource is cached. 

> 
> HTTP/1.1 200 OK 
> Server: Apache-Coyote/1.1 
> Pragma: No-cache 

^ These don't come from XWiki, I guess that Tomcat's configuration is 
the one that adds the Pragma: No-cache header. 

> Cache-Control: public 
> Expires: Sat, 02 Mar 2013 17:22:25 GMT 
> Last-Modified: Tue, 26 Jun 2012 10:06:58 GMT 

^ These come from XWiki, and they do enable caching. 

> Content-Type: text/javascript;charset=UTF-8 
> Content-Language: en 
> Content-Length: 25003 
> Date: Thu, 31 Jan 2013 17:22:25 GMT 

Hm, except maybe if you're using a very old version of XWiki. What 
version are you currently using? 
-- 
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


[xwiki-users] Caching resources

2013-01-31 Thread David Delbecq
Hello, 

i would like to active cachin on /xwiki/bin/skin/resources/* as, obviously, 
skin doesn't change often :) 
As you can see, by default, xwiki forbid caching... What do i need to change 
for this caching? 

Thank you. 
--- 


GET /xwiki/bin/skin/resources/js/scriptaculous/effects.js HTTP/1.1 
Host: * 
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.12) Gecko/20100101 
Firefox/10.0.12 
Accept: */* 
Accept-Language: fr-be,en-us;q=0.7,en;q=0.3 
Accept-Encoding: gzip, deflate 
Connection: keep-alive 
Referer: ** 
Cookie: JSESSIONID=*.undefined; language=en; gh.i=%7B%7D; 
AJS.conglomerate.cookie=||upm.tab=install 
If-Modified-Since: Tue, 26 Jun 2012 10:06:58 GMT 
Authorization: Basic ZGVsYmQ6c2VpcmprMjA0NA== 


HTTP/1.1 200 OK 
Server: Apache-Coyote/1.1 
Pragma: No-cache 
Cache-Control: public 
Expires: Sat, 02 Mar 2013 17:22:25 GMT 
Last-Modified: Tue, 26 Jun 2012 10:06:58 GMT 
Content-Type: text/javascript;charset=UTF-8 
Content-Language: en 
Content-Length: 25003 
Date: Thu, 31 Jan 2013 17:22:25 GMT 



String.prototype.parseColor=function(){var a="#"; 
if(this.slice(0,4)=="rgb("){var c=this.slice(4,this.length-1).split(","); 
--- 


David Delbecq 

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


Re: [xwiki-users] xwiki render cache not working?

2012-12-12 Thread David Delbecq

Well, that's a bit my problem there :/ 

i don't want to encode every page as they are created. Restarting xwiki after 
each new page or even tracking the list of xwiki page can be a nightmare. 
On the other hand, i can't easily go on a space by space basis. Sure some 
spaces are pure xwiki content and no trouble at all, but most spaces will have 
pages here and there that must not be cached :( 

I guess i will have to disable cache for most of our xwiki then and only enable 
it on pages that have heavy load. 

Could you tell me why the xwiki 1 annotation to disable cache was not migrated 
to xwiki 2? 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Vendredi 7 Décembre 2012 16:44:12 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Fri, Dec 7, 2012 at 3:52 PM, David Delbecq wrote: 

> I still have sme question regarding glocal caching policy. If there is no 
> way on a specific page to disable cache, Does that mean if i ask to cache 
> "all page", administration pages will stop showing up to date informations? 
> What is the process in those pages, like group editor, search result, to 
> avoid caching of result and outdated datas? 
> 

Yes since that's the point of rendering cache. But you should not enable 
cache for everything and at least choice specific spaces if not pages. 


> 
> - Mail original - 
> 
> De: "Thomas Mortagne"  
> À: "XWiki Users"  
> Envoyé: Vendredi 7 Décembre 2012 10:30:29 
> Objet: Re: [xwiki-users] xwiki render cache not working? 
> 
> On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq  >wrote: 
> 
> > 
> > > You can also use cache macro (see 
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to 
> > choose 
> > > different timing for each contents. 
> > 
> > For what i read, it operates at a differente level, i caches the XDOM, 
> not 
> > the rendered content. I am pretty sure XDOM uses more space in memory 
> that 
> > a simple String, you still have the overhead of rendering operation and 
> you 
> > have to manually manage your cache key, which is far mor cumbersome thant 
> > saying xwiki "hey, cache this page for 5 minutes, ok?) 
> 
> 
> 
> > Moreover, documentation suggest to avoid haveing different timeToLive on 
> > different pages, because that's as much threads :s 
> > 
> 
> That's true only with JBoss Cache but not with Infinispan which is what is 
> used by default in recent XWiki versions. 
> 
> 
> > 
> > ___ 
> > 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 
> 



-- 
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


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread David Delbecq

I still have some questions regarding glocal caching policy. If there is no way 
on a specific page to disable cache, Does that mean if i ask to cache "all 
page", administration pages will stop showing up to date informations? What is 
the process in those pages, like group editor, search result, to avoid caching 
of result and outdated datas? 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Vendredi 7 Décembre 2012 10:30:29 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq wrote: 

> 
> > You can also use cache macro (see 
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to 
> choose 
> > different timing for each contents. 
> 
> For what i read, it operates at a differente level, i caches the XDOM, not 
> the rendered content. I am pretty sure XDOM uses more space in memory that 
> a simple String, you still have the overhead of rendering operation and you 
> have to manually manage your cache key, which is far mor cumbersome thant 
> saying xwiki "hey, cache this page for 5 minutes, ok?) 



> Moreover, documentation suggest to avoid haveing different timeToLive on 
> different pages, because that's as much threads :s 
> 

That's true only with JBoss Cache but not with Infinispan which is what is 
used by default in recent XWiki versions. 


> 
> ___ 
> 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


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread David Delbecq
I still have sme question regarding glocal caching policy. If there is no way 
on a specific page to disable cache, Does that mean if i ask to cache "all 
page", administration pages will stop showing up to date informations? What is 
the process in those pages, like group editor, search result, to avoid caching 
of result and outdated datas? 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Vendredi 7 Décembre 2012 10:30:29 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq wrote: 

> 
> > You can also use cache macro (see 
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to 
> choose 
> > different timing for each contents. 
> 
> For what i read, it operates at a differente level, i caches the XDOM, not 
> the rendered content. I am pretty sure XDOM uses more space in memory that 
> a simple String, you still have the overhead of rendering operation and you 
> have to manually manage your cache key, which is far mor cumbersome thant 
> saying xwiki "hey, cache this page for 5 minutes, ok?) 



> Moreover, documentation suggest to avoid haveing different timeToLive on 
> different pages, because that's as much threads :s 
> 

That's true only with JBoss Cache but not with Infinispan which is what is 
used by default in recent XWiki versions. 


> 
> ___ 
> 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


Re: [xwiki-users] xwiki render cache not working?

2012-12-06 Thread David Delbecq

> You can also use cache macro (see 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to choose 
> different timing for each contents. 

For what i read, it operates at a differente level, i caches the XDOM, not the 
rendered content. I am pretty sure XDOM uses more space in memory that a simple 
String, you still have the overhead of rendering operation and you have to 
manually manage your cache key, which is far mor cumbersome thant saying xwiki 
"hey, cache this page for 5 minutes, ok?) Moreover, documentation suggest to 
avoid haveing different timeToLive on different pages, because that's as much 
threads :s

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


Re: [xwiki-users] BUG? xwiki render cache not working?

2012-12-06 Thread David Delbecq

Hello, 

i did a step by step analysis of the problem using eclipse debugger and i found 
the culprit. Before i submit a bugreport, can someone confirm me this is 
unexpected behaviour? 

Inside 
com.xpn.xwiki.internal.cache.rendering.DefaultRenderingCache.getRenderedContent(DocumentReference
 documentReference, String source, XWikiContext context), there is a call to 

this.cache.get(documentReference, source, getAction(context), 
context.getLanguage(), 
getRequestParameters(context)); 
which uses this information to generate a cache Key that is then looked up in 
cache. 

However, getRequestParameters(context) in my case is returning 

{menu=[Ljava.lang.String;@3e5da853, xpage=[Ljava.lang.String;@76d60121} 
where it should return something like 
{menu={SysAdminRmi.Menu}, xpage={plain}} 
As a result, my cache key change at each reaquest because values are not 
properly used and so even if my page is cache, it's never rendered from cache. 

Reason, behind this is this code in getRequestParameters: 

Map parameters = context.getRequest().getParameterMap(); 
... 
return parameters.toString(); 

This map is generated by com.xpn.xwiki.web.XWikiServletRequest.getParameterMap, 
and is Map and not a Map! Here is the proving 
code 
public Map getParameterMap() 
{ 
Map newMap = new HashMap(); 
Map map = this.request.getParameterMap(); 
Iterator it = map.keySet().iterator(); 
while (it.hasNext()) { 
String key = (String) it.next(); 
Object value = map.get(key); 
if (value instanceof String) { 
newMap.put(key, filterString((String) value)); 
} else if (value instanceof String[]) { 
newMap.put(key, filterStringArray((String[]) value)); 
} else { 
newMap.put(key, value); 
} 
} 
return map; 
} 

Clearly, 
In my case, catalina request facade does decode so that ParameterMap return 
Map instead of Map. 


Consequences? Cache only works when there are no request parameters. 


Is there some way for me to replace DefaultRenderingCache with another 
implementation i write that does not have this issue, as a temporary solution? 




- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Mercredi 5 Décembre 2012 18:05:59 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Wed, Dec 5, 2012 at 3:29 PM, David Delbecq wrote: 

> Hello, 
> 
> i have a specific wiki page that is quite slow to render because some 
> groovy code and macros in there are quite slow. Fortunately, content does 
> not change often, si i tried to make it faster for user by using cache 
> rendering. 
> 
> Here is what is inside my xwiki.cfg: 
> 
> 
> xwiki.rendering.defaultCacheDuration=3600 
> 
> And here is my xwiki.properties 
> 
> 
> core.renderingcache.enabled=true 
> core.renderingcache.documents=wiki:.* 
> core.renderingcache.size=200 
> # Default value is 300 (5 min). 
> # core.renderingcache.duration=300 
> 
> I have also this inside my page: 
> 
> 
> {{velocity}} 
> $context.setCacheDuration(60) 
> //complex content here that has a custom groovy macro and a velocity 
> include 
> {{/velocity}} 
> 
> 
> {{groovy}} 
> System.out.println("***phone menu not 
> in cache") 
> {{/groovy}} 
> 
> 
> And i see in my log that, everytime, the System.out is executed, meaning 
> the render cache is not used. What's my configuration problem? What did i 
> miss? 
> 
> Note: using xwiki 4.1.2 and the url i try is 
> http://server/xwiki/bin/view/MySpace/MyPage?menu=Test.Menu&xpage=plain 
> 
> 
Thank you. 
> 
> David Delbecq 
> 
> ___ 
> users mailing list 
> users@xwiki.org 
> http://lists.xwiki.org/mailman/listinfo/users 
> 

Rendering cache works well for me. 

First of all, not that your are mixing two different features here: what 
you find in xwiki.cfg and $context.setCacheDuration() are old caching 
system which is maintained for retro-compatibility reasons only in 
xwiki/1.0 syntax. 

Now about the more generic rendering cache located in xwiki.properties, is 
your wiki name really "wiki" ? Because here you indicated that you wanted 
to cache all the pages in the wiki which has "wiki" as identifier. If you 
are in a single wiki mode (XWiki Enterprise for example) you can simply 
remove the wiki part as in 

core.renderingcache.documents=Space.Page 

-- 
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


Re: [xwiki-users] BUG? xwiki render cache not working?

2012-12-06 Thread David Delbecq
Hello, 

i did a step by step analysis of the problem using eclipse debugger and i found 
the culprit. Before i submit a bugreport, can someone confirm me this is 
unexpected behaviour? 

Inside 
com.xpn.xwiki.internal.cache.rendering.DefaultRenderingCache.getRenderedContent(DocumentReference
 documentReference, String source, XWikiContext context), there is a call to 

this.cache.get(documentReference, source, getAction(context), 
context.getLanguage(), 
getRequestParameters(context)); 
which uses this information to generate a cache Key that is then looked up in 
cache. 

However, getRequestParameters(context) in my case is returning 

{menu=[Ljava.lang.String;@3e5da853, xpage=[Ljava.lang.String;@76d60121} 
where it should return something like 
{menu={SysAdminRmi.Menu}, xpage={plain}} 
As a result, my cache key change at each reaquest because values are not 
properly used and so even if my page is cache, it's never rendered from cache. 

Reason, behind this is this code in getRequestParameters: 

Map parameters = context.getRequest().getParameterMap(); 
... 
return parameters.toString(); 

This map is generated by com.xpn.xwiki.web.XWikiServletRequest.getParameterMap, 
and is Map and not a Map! Here is the proving 
code 
public Map getParameterMap() 
{ 
Map newMap = new HashMap(); 
Map map = this.request.getParameterMap(); 
Iterator it = map.keySet().iterator(); 
while (it.hasNext()) { 
String key = (String) it.next(); 
Object value = map.get(key); 
if (value instanceof String) { 
newMap.put(key, filterString((String) value)); 
} else if (value instanceof String[]) { 
newMap.put(key, filterStringArray((String[]) value)); 
} else { 
newMap.put(key, value); 
} 
} 
return map; 
} 

Clearly, 
In my case, catalina request facade does decode so that ParameterMap return 
Map instead of Map. 


Consequences? Cache only works when there are no request parameters. 


Is there some way for me to replace DefaultRenderingCache with another 
implementation i write that does not have this issue, as a temporary solution? 




- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Mercredi 5 Décembre 2012 18:05:59 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Wed, Dec 5, 2012 at 3:29 PM, David Delbecq wrote: 

> Hello, 
> 
> i have a specific wiki page that is quite slow to render because some 
> groovy code and macros in there are quite slow. Fortunately, content does 
> not change often, si i tried to make it faster for user by using cache 
> rendering. 
> 
> Here is what is inside my xwiki.cfg: 
> 
> 
> xwiki.rendering.defaultCacheDuration=3600 
> 
> And here is my xwiki.properties 
> 
> 
> core.renderingcache.enabled=true 
> core.renderingcache.documents=wiki:.* 
> core.renderingcache.size=200 
> # Default value is 300 (5 min). 
> # core.renderingcache.duration=300 
> 
> I have also this inside my page: 
> 
> 
> {{velocity}} 
> $context.setCacheDuration(60) 
> //complex content here that has a custom groovy macro and a velocity 
> include 
> {{/velocity}} 
> 
> 
> {{groovy}} 
> System.out.println("***phone menu not 
> in cache") 
> {{/groovy}} 
> 
> 
> And i see in my log that, everytime, the System.out is executed, meaning 
> the render cache is not used. What's my configuration problem? What did i 
> miss? 
> 
> Note: using xwiki 4.1.2 and the url i try is 
> http://server/xwiki/bin/view/MySpace/MyPage?menu=Test.Menu&xpage=plain 
> 
> 
Thank you. 
> 
> David Delbecq 
> 
> ___ 
> users mailing list 
> users@xwiki.org 
> http://lists.xwiki.org/mailman/listinfo/users 
> 

Rendering cache works well for me. 

First of all, not that your are mixing two different features here: what 
you find in xwiki.cfg and $context.setCacheDuration() are old caching 
system which is maintained for retro-compatibility reasons only in 
xwiki/1.0 syntax. 

Now about the more generic rendering cache located in xwiki.properties, is 
your wiki name really "wiki" ? Because here you indicated that you wanted 
to cache all the pages in the wiki which has "wiki" as identifier. If you 
are in a single wiki mode (XWiki Enterprise for example) you can simply 
remove the wiki part as in 

core.renderingcache.documents=Space.Page 

-- 
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


Re: [xwiki-users] xwiki render cache not working?

2012-12-06 Thread David Delbecq
mBeanConfig found under 'view' 
12:19:10,440 INFO [stdout] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 ***phone menu not in cache 
12:19:10,556 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
 No FormBeanConfig found under 'download' 
12:19:10,558 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
 No FormBeanConfig found under 'download' 
12:19:10,563 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
 No FormBeanConfig found under 'download' 


Also, is there some way i can debug log the cache works so i can see what is 
happening? 

David Delbecq 



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


[xwiki-users] xwiki render cache not working?

2012-12-05 Thread David Delbecq
Hello, 

i have a specific wiki page that is quite slow to render because some groovy 
code and macros in there are quite slow. Fortunately, content does not change 
often, si i tried to make it faster for user by using cache rendering. 

Here is what is inside my xwiki.cfg: 


xwiki.rendering.defaultCacheDuration=3600 

And here is my xwiki.properties 


core.renderingcache.enabled=true 
core.renderingcache.documents=wiki:.* 
core.renderingcache.size=200 
# Default value is 300 (5 min). 
# core.renderingcache.duration=300 

I have also this inside my page: 


{{velocity}} 
$context.setCacheDuration(60) 
//complex content here that has a custom groovy macro and a velocity include 
{{/velocity}} 


{{groovy}} 
System.out.println("***phone menu not in 
cache") 
{{/groovy}} 


And i see in my log that, everytime, the System.out is executed, meaning the 
render cache is not used. What's my configuration problem? What did i miss? 

Note: using xwiki 4.1.2 and the url i try is 
http://server/xwiki/bin/view/MySpace/MyPage?menu=Test.Menu&xpage=plain 

Thank you. 

David Delbecq 

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


Re: [xwiki-users] Using with xwiki: nightmare??

2012-12-03 Thread David Delbecq

Thanks a lot, it works like a charm. 
And thanks for the last link too. 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Lundi 3 Décembre 2012 09:26:26 
Objet: Re: [xwiki-users] Using  with xwiki: nightmare?? 

Basically you need to do pretty much what you did with groovy: 

{{velocity}} 
#set($test = "**hello**test") 
{{html clean="false"}} 
$escapetool.html($test) 
{{/html}} 
{{/velocity}} 

Several notes: 
* xwiki="false" does not exist and wiki="false" is already the default in 
html macro. See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/HTML+Macro. 
* see 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Module#HVelocityToolsfor
 
all the velocity tools 


On Mon, Dec 3, 2012 at 8:52 AM, David Delbecq wrote: 

> Hello, 
> 
> 
> i'd like some informations on how to get xwiki + velocity to render 
> properly a form containing a prefilled . I have tried several way 
> and, in the end, i ended up using a groovy script, which requires 
> developper priviledge. All other options i tried had issues. Could someone 
> tell me if there is a way to get it to work with. 
> 
> I have a variable X, i want content of X to be html escaped (eg  
> becomes <g;b>) and output in the final document between  
>  tags. 
> 
> So far, i attempted the following 
> 
> 
> {{velocity}} 
> #set($test = "**hello**test") 
> {{html clean="false" xwiki="false"}} 
> $test 
> {{/html}} 
> {{/velocity}} 
> 
> {{velocity xwiki="false"}} 
> #set($test2 = "**hello2**test") 
> {{/velocity}} 
> {{html clean="false" xwiki="false"}} name="description">{{/html}}{{velocity 
> xwiki="false"}}${test2}{{/velocity}}{{html clean="false" 
> xwiki="false"}}{{/html}} 
> 
> 
> {{velocity xwiki="false"}} 
> #set($test3 = "**hello3**test") 
> {{/velocity}} 
> {{html clean="false" xwiki="false"}} name="description">{{/html}}{{velocity 
> xwiki="false"}}${test3}{{/velocity}}{{html clean="false" 
> xwiki="false"}}{{/html}} 
> 
> 
> {{groovy}} 
> test4 = 
> org.apache.commons.lang.StringEscapeUtils.escapeHtml("**hello4**test");
>  
> {{/groovy}} 
> {{velocity xwiki="false"}}{{html clean="false" xwiki="false"}} cols="75" rows="2" 
> name="description">${test4}{{/html}}{{/velocity}} 
> 
> 
> And got the following renders (html sources) 
> 
> 
> < textarea cols = "75" rows = "2" name = "description" 
> >**hello**test 
> 
> < textarea cols = "75" rows = "2" name = "description" 
> >hello2<b>test</b> 
> 
> < textarea cols = "75" rows = "2" name = "description" 
> >hello3<b>test</b> 
> 
> < textarea cols = "75" rows = "2" name = "description" 
> >**hello4**<b>test</b> 
> As you can see: option 1 left  tags as is, which can lead to html 
> injection vulnerability of my form. 
> option 2 and 3 replaced ** with  which mean we alter user input :/ 
> option 4 works but requires developper priviledges. :/ 
> 
> 
> David Delbecq 
> 
> ___ 
> 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] Using with xwiki: nightmare??

2012-12-02 Thread David Delbecq
Hello, 


i'd like some informations on how to get xwiki + velocity to render properly a 
form containing a prefilled . I have tried several way and, in the 
end, i ended up using a groovy script, which requires developper priviledge. 
All other options i tried had issues. Could someone tell me if there is a way 
to get it to work with. 

I have a variable X, i want content of X to be html escaped (eg  becomes 
<g;b>) and output in the final document between   
tags. 

So far, i attempted the following 


{{velocity}} 
#set($test = "**hello**test") 
{{html clean="false" xwiki="false"}} 
$test 
{{/html}} 
{{/velocity}} 

{{velocity xwiki="false"}} 
#set($test2 = "**hello2**test") 
{{/velocity}} 
{{html clean="false" xwiki="false"}}{{/html}}{{velocity 
xwiki="false"}}${test2}{{/velocity}}{{html clean="false" 
xwiki="false"}}{{/html}} 


{{velocity xwiki="false"}} 
#set($test3 = "**hello3**test") 
{{/velocity}} 
{{html clean="false" xwiki="false"}}{{/html}}{{velocity 
xwiki="false"}}${test3}{{/velocity}}{{html clean="false" 
xwiki="false"}}{{/html}} 


{{groovy}} 
test4 = 
org.apache.commons.lang.StringEscapeUtils.escapeHtml("**hello4**test"); 
{{/groovy}} 
{{velocity xwiki="false"}}{{html clean="false" xwiki="false"}}${test4}{{/html}}{{/velocity}} 


And got the following renders (html sources) 


< textarea cols = "75" rows = "2" name = "description" >**hello**test 

< textarea cols = "75" rows = "2" name = "description" 
>hello2<b>test</b> 

< textarea cols = "75" rows = "2" name = "description" 
>hello3<b>test</b> 

< textarea cols = "75" rows = "2" name = "description" 
>**hello4**<b>test</b> 
As you can see: option 1 left  tags as is, which can lead to html 
injection vulnerability of my form. 
option 2 and 3 replaced ** with  which mean we alter user input :/ 
option 4 works but requires developper priviledges. :/ 


David Delbecq 

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


Re: [xwiki-users] unable to import big xar file

2012-07-09 Thread David Delbecq

Hello, 

Is there any generic solution to this problem? I get lots of such issues when 
exporting documents. Each time exporter runs for 5 to 10 minutes before giving 
me one error i have to fix. It's very time consuming. 

Thank you 


David Delbecq 

- Mail original -

De: "David Delbecq"  
À: "XWiki Users"  
Envoyé: Jeudi 5 Juillet 2012 14:32:27 
Objet: Re: [xwiki-users] unable to import big xar file 

Hello again, 

this procedure does not seem to work either. I am struggling with this 
exception when i try to export some pages: 



Wrapped Exception: 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) 
java.lang.NullPointerException 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.doc.rcs.XWikiRCSArchive$XWikiJRCSNode.getTextString(XWikiRCSArchive.java:209)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.doc.rcs.XWikiRCSArchive$XWikiJRCSNode.setDiff(XWikiRCSArchive.java:196)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.doc.rcs.XWikiRCSArchive.(XWikiRCSArchive.java:79) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.doc.XWikiDocumentArchive.getArchive(XWikiDocumentArchive.java:201)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:3881) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:3909) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.plugin.packaging.Package.addToDir(Package.java:1040) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
com.xpn.xwiki.plugin.packaging.Package.exportToDir(Package.java:355) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
sun.reflect.GeneratedMethodAccessor4625.invoke(Unknown Source) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
java.lang.reflect.Method.invoke(Method.java:597) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:129)
 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
Script1.getXAR(Script1.groovy:29) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
Script1$getXAR.callCurrent(Unknown Source) 
2012-07-05 14:23:09,325 ERROR [STDERR] 
(http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at 
Script1.run(Script1.groovy:37) 

For another page, i achieved to get around this problem by destroying it's 
history, but even with no history, it doesn't work on this page. When i try to 
edit this page (addin a single hello in the page for example), i get this error 

Detailed information: 
Error number 3201 in 3: Exception while saving document 
xwiki:XWiki.XWikiAdminGroup 
Wrapped Exception: Error number 3211 in 3: Exception while updating archive 
XWiki.XWikiAdminGroup 
Wrapped Exception: Error number 13027 in 13: Failed to create diff for doc 
XWiki.XWikiAdminGroup 
Wrapped Exception: null 
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving 
document xwiki:XWiki.XWikiAdminGroup 
Wrapped Exception: Error number 3211 in 3: Exception while updating archive 
XWiki.XWikiAdminGroup 
Wrapped Exception: Error number 13027 in 13: Failed to create diff for doc 
XWiki.XWikiAdminGroup 
Wrapped Exception: null 
at 
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:647)
 
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182) 
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175) 
at com.xpn.xwiki.XWik

Re: [xwiki-users] unable to import big xar file

2012-07-05 Thread David Delbecq
Hello Thomas, 

thank you for your quick response. 

Investigations here have shown that the later exception (truncated zip) was due 
to the old xwiki not exporting completly the xar (but without any error 
anywhere in the logs). I see there is a large xar export script at 
"http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+Wiki+Export";. but 
it exports to a folder. Do i simply have to zip this folder to feed it to large 
xar import? 

Thank you. 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Jeudi 5 Juillet 2012 11:01:48 
Objet: Re: [xwiki-users] unable to import big xar file 

Yes the standard import is not very good and we need to work on that. 
In the meantime you can use 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import 
script. 

On Thu, Jul 5, 2012 at 10:29 AM, David Delbecq  wrote: 
> 
> Hello, 
> 
> 
> i am migrating a small wiki that is expected to grow in the future (more 
> pages, more documents). Currently, the wiki is small, the xar is about 50M. 
> To my surprise, xwiki was unable to load it with 1G heap space. Actually, it 
> consumed 2.5G memory just to upload this xar, which make a ration of 50x (a 
> big problem by itself). 
> 
> And then, when i select this archive, i am greeted with "There was an error 
> reading the file MainWiki.xar. Truncated ZIP file" and the error below in the 
> console. What is the recommanded way to some pages from an existing old xwiki 
> to another more recent xwiki since the xar is not working? Is there some plan 
> to recode this xar importer so that it becomes far less greedy? 
> 
> 08:17:52,271 INFO [stdout] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  2012-07-05 08:17:52,271 
> [http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar]
>  WARN c.x.x.p.p.Package - Failed to parse document 
> [XWiki/XWikiAdminGroup.xml] from XML during import, thus 
> it will not be installed. The error was: Error number 2002 in 2: Error 
> parsing xml 
> 08:17:52,274 INFO [stdout] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  Wrapped Exception: Truncated ZIP file Nested exception: Truncated ZIP file 
> 08:17:52,514 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  java.lang.NullPointerException: Cannot invoke method collate() on null 
> object 
> 08:17:52,516 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) 
> 08:17:52,521 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
>  
> 08:17:52,524 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>  
> 08:17:52,528 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at 
> org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32) 
> 08:17:52,532 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>  
> 08:17:52,536 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
>  
> 08:17:52,539 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
>  
> 08:17:52,543 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
>  at Script14.createHtmlStructure(Script14.groovy:80) 
> 08:17:52,546 ERROR [stderr] 
> (http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&a

[xwiki-users] unable to import big xar file

2012-07-05 Thread David Delbecq
bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) 
08:17:52,902 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
 
08:17:52,903 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
 
08:17:52,904 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
 
08:17:52,906 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
 
08:17:52,907 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
 
08:17:52,908 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
 
08:17:52,909 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
 
08:17:52,910 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
 
08:17:52,911 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
 
08:17:52,912 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
 
08:17:52,914 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
 
08:17:52,915 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
 
08:17:52,916 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) 
08:17:52,917 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
08:17:52,919 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 
08:17:52,920 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) 
08:17:52,921 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 
08:17:52,922 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
 
08:17:52,923 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import&file=MainWiki.xar)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) 
08:17:52,925 ERROR [stderr] 
(http://intraweb-me.oma.be:10080/xwi

[xwiki-users] The environment prevents the table from loading data.

2012-07-04 Thread David Delbecq

Hello, 

when i try to access a space page index, i always get an empty table with "The 
environment prevents the table from loading data." What should i do to solve 
it? Searching google is of no help as this message appear in all pages of 
documentation when google indexed them :( 


David Delbecq 

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


[xwiki-users] You don't have the right to execute this script

2012-07-03 Thread David Delbecq
Hello, 

i created a page with a few xwiki code inside it. I can display this page 
without troubles. I also created a side panel that does simply include that 
pages. The side panel gives me a macro error 
org.xwiki.rendering.macro.MacroExecutionException: You don't have the right to 
execute this script while the main page display without errors :s 

as suggested here 
http://xwiki.475771.n2.nabble.com/Groovy-macro-in-a-panel-td7346045.html 

i tried to remove the dropPermissions() but it doesn't work. 


What is the solution? Do i have to put my groovy code inside a macros and use 
the macro in panel instead of including a document containing the code? 


David Delbecq 

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


[xwiki-users] xwiki object properties not saved

2012-07-03 Thread David Delbecq
Hello, 

i have a custom object class + a from and "new" button. When i create an 
object, using the following code 

{{groovy}} 
if(request.doCreate == "true"){ 
// Request for creating a new instance 
obj= doc.newObject("Main.NewsClass") 
obj.set("linkfr",request.thelien) 
obj.set("titlefr","a test") 
obj.set("linknl",request.thelink) 
obj.set("titlenl",request.thetijtle) 
obj.set("publication",request.thedate) 
doc.save() 
} 

{{/groovy}} 

the object is created but form properties not saved (please not i hardcoded "a 
test" and even this property is not saved). Instead i obtain an object with 
properties all empty. If i remove the calls to set(name,value), the object is 
saved without properties instead of empty one, so code is somehow partially 
working? 

Does someone have any suggestion? 


David Delbecq 

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


Re: [xwiki-users] problem running the code macro

2012-06-27 Thread David Delbecq
done, along with another issue related to impossibility to start xwiki on jboss 
7 ;) 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Mercredi 27 Juin 2012 21:05:30 
Objet: Re: [xwiki-users] problem running the code macro 

On Wed, Jun 27, 2012 at 8:09 PM, David Delbecq  wrote: 
> 
> Hello, 
> 
> i did put all /Lib content of jython-standalone.jar inside a new 
> jython-lib.jar, removing the Lib/ part. And it worked. 

Ok cool, not sure how the standard Jython is scanning /Lib folder but 
I guess JBoss does not like it too much. 
Would be great if you could create an issue on http://jira.xwiki.org 
and will take care of it as soon as possible. 

> 
> - Mail original - 
> 
> De: "Thomas Mortagne"  
> À: "XWiki Users"  
> Envoyé: Mercredi 27 Juin 2012 19:19:08 
> Objet: Re: [xwiki-users] problem running the code macro 
> 
> On Wed, Jun 27, 2012 at 6:43 PM, David Delbecq  
> wrote: 
>> Hello, 
>> 
>> i have troubles with the {code} macro. It's not working with xwiki 4.1. It's 
>> ok in the jetty bundle, but has problem running under jboss AS 7. 
>> Config: xwiki 4.1, jboss AS 7, windows 
>> 
>> Please also note that we also have this problem (exact same message) with 
>> xwiki 2.4 on jboss 4.1 on linux. I hoped that this problem would have been 
>> solve since a few year, but i notice code macro is still broken :( 
>> What is the definitive solution to this jython problems? Do i have to fill a 
>> jira issue for this? 
> 
> That would be a start yes since it does not seems to be reported. The 
> code macro is working well in many application servers so it's not 
> like it was not working at all, to fix it we need to know how to 
> first. 
> 
> From what I can see from the error, Jython is unable to find the 
> python libraries located in its own jar when on Jboss for some reason. 
> You might try the following: 
> * duplicate the jython-standalone jar (lets call them jython.jar and 
> jython-lib.jar) 
> * in jython jar: remove the /Lib folder 
> * in jything-lib jar: 
> ** remove everything but the /Lib folder (you may need to keep the 
> META-INF folder too to keep the jar valid for JBoss) 
> ** move all the content of /Lib folder on the root of the jar 
> ** remove the now empty /Lib folder 
> 
> It's seems to find properly the Pygments files which is packaged that 
> way, if it's working for you we may try to build a custom package of 
> Jython for XWiki. 
> 
>> 
>> 
>> org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight 
>> content 
>> at 
>> org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:115)
>>  
>> at 
>> org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
>>  
>> at 
>> org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141)
>>  
>> at 
>> org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53)
>>  
>> at 
>> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:190)
>>  
>> at 
>> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:135)
>>  
>> at 
>> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
>>  
>> at 
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
>>  
>> at 
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
>>  
>> at 
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
>>  
>> at 
>> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
>>  
>> at 
>> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
>>  
>> at 
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)
>>  
>> at 
>> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
>>  
>> at 
>> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
>>  
>> at 
>> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
>>  
>> at 
>> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:901) 
>> at 
>> c

Re: [xwiki-users] problem running the code macro

2012-06-27 Thread David Delbecq

Hello, 

i did put all /Lib content of jython-standalone.jar inside a new 
jython-lib.jar, removing the Lib/ part. And it worked. 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Mercredi 27 Juin 2012 19:19:08 
Objet: Re: [xwiki-users] problem running the code macro 

On Wed, Jun 27, 2012 at 6:43 PM, David Delbecq  wrote: 
> Hello, 
> 
> i have troubles with the {code} macro. It's not working with xwiki 4.1. It's 
> ok in the jetty bundle, but has problem running under jboss AS 7. 
> Config: xwiki 4.1, jboss AS 7, windows 
> 
> Please also note that we also have this problem (exact same message) with 
> xwiki 2.4 on jboss 4.1 on linux. I hoped that this problem would have been 
> solve since a few year, but i notice code macro is still broken :( 
> What is the definitive solution to this jython problems? Do i have to fill a 
> jira issue for this? 

That would be a start yes since it does not seems to be reported. The 
code macro is working well in many application servers so it's not 
like it was not working at all, to fix it we need to know how to 
first. 

From what I can see from the error, Jython is unable to find the 
python libraries located in its own jar when on Jboss for some reason. 
You might try the following: 
* duplicate the jython-standalone jar (lets call them jython.jar and 
jython-lib.jar) 
* in jython jar: remove the /Lib folder 
* in jything-lib jar: 
** remove everything but the /Lib folder (you may need to keep the 
META-INF folder too to keep the jar valid for JBoss) 
** move all the content of /Lib folder on the root of the jar 
** remove the now empty /Lib folder 

It's seems to find properly the Pygments files which is packaged that 
way, if it's working for you we may try to build a custom package of 
Jython for XWiki. 

> 
> 
> org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight 
> content 
> at 
> org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:115)
>  
> at 
> org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
>  
> at 
> org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141)
>  
> at 
> org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53)
>  
> at 
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:190)
>  
> at 
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:135)
>  
> at 
> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
>  
> at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
>  
> at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
>  
> at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
>  
> at 
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
>  
> at 
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
>  
> at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)
>  
> at 
> org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
>  
> at 
> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
>  
> at 
> org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
>  
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:901) 
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:880) 
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:911) 
> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:582) 
> 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:395)
>  
> at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
>  
> at 
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) 
> at 
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
>  
> at 
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReferen

[xwiki-users] problem running the code macro

2012-06-27 Thread David Delbecq
lize(PygmentsParser.java:165)
at 
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:291)
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:314)
... 105 more 


David Delbecq 

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


[xwiki-users] Regular problem: Login cookie validation hash mismatch! Cookies have been tampered with

2008-04-02 Thread David Delbecq
Hello,

we have a regular problem when we cycle off-on our tomcat instance. 
Logged in users suddently have blank pages instead of their wiki pages. 
And we have tons of these errors in the logs. The only solution we have 
is to ask users to clean their cookies. (A close / reopen browser should 
be enough for most users). Shouldn't xwiki send new cookies if the old 
ones have been 'tampered' with?

See error log below,
Regards,
David Delbecq

2008-04-02 09:43:20,630 
[http://intrarmi.oma.be:8081/xwiki/bin/view/Main/WebHome?language=fr] 
[http-8081-Processor11] WARN  xwiki.MyPersistentLoginManager  - Login 
cookie validation hash mismatch! Cookies have been tampered with
2008-04-02 09:43:20,631 
[http://intrarmi.oma.be:8081/xwiki/bin/view/Main/WebHome?language=fr] 
[http-8081-Processor11] WARN  xwiki.MyPersistentLoginManager  - Login 
cookie validation hash mismatch! Cookies have been tampered with
2008-04-02 09:43:20,988 
[http://intrarmi.oma.be:8081/xwiki/bin/view/Main/WebHome?language=fr] 
[http-8081-Processor11] WARN  xwiki.MyPersistentLoginManager  - Login 
cookie validation hash mismatch! Cookies have been tampered with
2008-04-02 09:43:20,989 
[http://intrarmi.oma.be:8081/xwiki/bin/view/Main/WebHome?language=fr] 
[http-8081-Processor11] WARN  xwiki.MyPersistentLoginManager  - Login 
cookie validation hash mismatch! Cookies have been tampered with
2008-04-02 09:43:21,597 
[http://intrarmi.oma.be:8081/xwiki/bin/view/Main/WebHome?language=fr] 
[http-8081-Processor11] WARN  web.XWikiAction - Uncaught 
exception: Error number 0 in 11: Uncaught exception
Wrapped Exception: 4096
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: 4096
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:


java.lang.ArrayIndexOutOfBoundsException: 4096
at 
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:721)
at 
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:628)
at 
org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:501)
at 
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1561)
at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:918)
at org.apache.coyote.Response.action(Response.java:180)
at 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
at org.apache.coyote.Response.doWrite(Response.java:551)
at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:

Re: [xwiki-users] ldap auth fails : "LDAPException: Matched DN: "

2008-03-31 Thread David Delbecq
En l'instant précis du 31/03/08 16:41, Thomas Mortagne s'exprimait en 
ces termes:
> Hi,
>
> On Mon, Mar 31, 2008 at 3:11 PM, David Delbecq <[EMAIL PROTECTED]> wrote:
>   
>> Hello again,
>>
>>  seems my previous ldap problem is corrected (a mix of using "old" LDAP
>>  auth class + duplicate deploy under different names in test env).
>>
>>  However, now that ldap connects properly to server, i have the following
>>  problem:
>>
>>  2008-03-31 14:00:17,931
>>  [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin]
>>  [http-8080-Processor4] ERROR LDAP.XWikiLDAPAuthServiceImpl   - LDAP
>>  authentication failed.
>>  LDAPException: Invalid Credentials (49) Invalid Credentials
>>  LDAPException: Matched DN:
>> at com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
>> at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
>> at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source)
>> at com.novell.ldap.LDAPConnection.bind(Unknown Source)
>> at com.novell.ldap.LDAPConnection.bind(Unknown Source)
>> at
>>  
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:243)
>>
>>  Am not sure to understand fully, but it seems that LDAP auth class is
>>  prefereing some property in XWiki. to the xwiki.cfg. The
>>  property in question is "ldap_dn".  I don't know exactly what it's
>>  supposed to contain (can someone gime an example?). I saw it's presence
>>  in "xwiki.authentication.ldap.fields_mapping", which tells how to map
>>  ldap attributes to xwiki attributes. However, i have no idea which ldap
>>  attribute am supposed to map there. The default value was for active
>>  directory, we don't use active directory. My problem is that, currently,
>>  it's set to an empty string in xwiki database, and the ldap class don't
>>  like it very much.
>> 
>
> ldap_dn is supposed to contains the complete user LDAP DN in the LDAP
> server (like cn=William Bush,ou=people,o=sevenSeas) and the default
> mapping (ldap_dn=dn) is supposed to work with any LDAP server. The
> goal of this mapping is to speed up the search of user in the LDAP
> server.
>
>   
>>  ___
>>  users mailing list
>>  users@xwiki.org
>>  http://lists.xwiki.org/mailman/listinfo/users
>>
>> 
>
>
>
>   
Thanks :)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] ldap auth fails : "LDAPException: Matched DN: "

2008-03-31 Thread David Delbecq
Hello again,

seems my previous ldap problem is corrected (a mix of using "old" LDAP 
auth class + duplicate deploy under different names in test env).

However, now that ldap connects properly to server, i have the following 
problem:

2008-03-31 14:00:17,931 
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] 
[http-8080-Processor4] ERROR LDAP.XWikiLDAPAuthServiceImpl   - LDAP 
authentication failed.
LDAPException: Invalid Credentials (49) Invalid Credentials
LDAPException: Matched DN:
at com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source)
at com.novell.ldap.LDAPConnection.bind(Unknown Source)
at com.novell.ldap.LDAPConnection.bind(Unknown Source)
at 
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:243)

Am not sure to understand fully, but it seems that LDAP auth class is 
prefereing some property in XWiki. to the xwiki.cfg. The 
property in question is "ldap_dn".  I don't know exactly what it's 
supposed to contain (can someone gime an example?). I saw it's presence 
in "xwiki.authentication.ldap.fields_mapping", which tells how to map 
ldap attributes to xwiki attributes. However, i have no idea which ldap 
attribute am supposed to map there. The default value was for active 
directory, we don't use active directory. My problem is that, currently, 
it's set to an empty string in xwiki database, and the ldap class don't 
like it very much.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] ldaps gives LDAP Bind failed with Exception Connect Error

2008-03-31 Thread David Delbecq
Hello,

am trying to get xwiki to work on an ldap. I configured xwiki.cfg as below:
I tried with & without authclass line, with and without keystore
parameter, but everytime xwiki is attempting to disscuss in plain text
with ldap server instead of starting a ssl handshake (i can see the
xwiki request in network dumps). The ldaps server does not recognize
that as a  ssl handshake and drops connection? I have  set
authentification.ldap.ssl=1, which should be suffisant for using ssl,
isn't it? Am i missing something in the configuration for ssl? Is the
ssl support not yet implemented in 1.3 release?

Thanks

Configuration file:

#-# new LDAP authentication service
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
 




#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# 0 : disable
#-# 1 : enable
xwiki.authentication.ldap=1

#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
xwiki.authentication.ldap.server=ldap.oma.be
xwiki.authentication.ldap.port=636

#-# LDAP login, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the username, {1} with the password
xwiki.authentication.ldap.bind_DN=uid={0},ou=People,dc=oma,dc=be
xwiki.authentication.ldap.bind_pass={1}

#-# only members of the following group will be verified in the LDAP
# otherwise only users that are found after searching starting from the
base_DN
#xwiki.authentication.ldap.user_group=cn=developers,ou=groups,dc=oma,dc=be

#-# base DN for searches
xwiki.authentication.ldap.base_DN=ou=People,dc=oma,dc=be

#-# specifies the LDAP attribute containing the identifier to be used as
the XWiki name (default=cn)
xwiki.authentication.ldap.UID_attr=uid

#-# retrieve the following fields from LDAP and store them in the XWiki
user object (xwiki-attribute=ldap-attribute)
#-# ldap_dn=dn  -- dn is set by class, caches dn in XWiki.user object
for faster access
xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=givenName,fullname=cn,email=mail
 




#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# on every login update the mapped attributes from LDAP to XWiki
otherwise this happens only once when the XWiki account is created.
xwiki.authentication.ldap.update_user=1

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# mapps XWiki groups to LDAP groups, separator is "|"
xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=meslideadmin,ou=Group,dc=oma,dc=be
 



#xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup=cn=meslideadmin,ou=Group,dc=oma,dc=be|\
#
XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# time in s after which the list of members in a group is refreshed
from LDAP (default=3600*6)
#Every 10 minutes
xwiki.authentication.ldap.groupcache_expiration=600

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# - create : synchronize group membership only when the user is first
created
#-# - always: synchronize on every login
xwiki.authentication.ldap.mode_group_sync=always

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# if ldap authentication fails for any reason, try XWiki DB
authentication with the same credentials
# xwiki.authentication.ldap.trylocal=1

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# SSL connection to LDAP server
#-# 0 : normal
#-# 1 : SSL
xwiki.authentication.ldap.ssl=1

#-# [SINCE 1.3M2, XWikiLDAPAuthServiceImpl]
#-# The keystore file to use in SSL connection
xwiki.authentication.ldap.ssl.keystore=/tmp/jssecacerts


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


Re: [xwiki-users] Help XWiki ! Vote for it's creator at a French radio contest !

2008-02-25 Thread David Delbecq
Inversion :)

Charles Consigny47 % Ludovic Dubost53 %

En l'instant précis du 25/02/08 23:22, Chengmin Ding s'exprimait en ces 
termes:
> Good to know our votes really count. When I voted for Ludovic 3 hours 
> ago, it is 45% vs 55%.
>
> On 2/25/08, *"Víctor A. Rodríguez"* <[EMAIL PROTECTED] 
> > wrote:
>
> Up to my vote : Ludovic 47%, the other guy 53%
> Go xwikiers, vote for Ludovic !!!
>
> Ludovic Dubost wrote:
> >
> > Hi XWiki users and developers !
> >
> > I've had the chance to participate to a contest on a french radio
> > (specialized in Business).
> > There is a vote which will allow to get another few minutes of radio
> > show in a while en eventually (with more votes to show the power
> of the
> > communities that could lead to the final, etc..).
> >
> > You can listen to the podcast (in french):
> >
> > http://www.bfmradio.fr/index.php?id=149&idemission=80
> 
> >
> > and vote here (in french too but that should not be too
> difficult ! Make
> > sure you select the guy on the right !):
> >
> > http://www.bfmradio.fr/bfm_academie/emission2008.php?emission=2
> >
> > This can give a nice additional boost to XWiki !
> >
> > Thanks to all of you for you continuous support of XWiki and
> > participation to the lists.
> >
> > Ludovic
>
>
> --
> Víctor A. Rodríguez (http://www.bit-man.com.ar)
> El bit Fantasma (Bit-Man) - Algorithm junkie
> Perl Mongers Capital Federal (http://cafe.pm.org/)
> GNU/Linux User Group - FCEyN - UBA (http://glugcen.dc.uba.ar/)
>
> ___
> 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] ParseErrorException / Upgrade problems

2008-02-21 Thread David Delbecq
Here is toplevel menu, retrieved from old still running xwiki, in 
xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editprefs -> presentation -> 
top menu

> Home | 
> 
> What's new |   href="../../view/Main/WebSearch">Search |  
> #if($xwiki.hasAdminRights())
> Admin |  #end
> Doc | 
> 

After inspection, it seems upgrade tool converted it to that awfull stuff:

> Home | 
> 
> What's new |  
> Search | 
> #if($xwiki.hasAdminRights())
> Admin | 
> #end
> Doc | 
> 
See the broken tags and incomplete xwiki rules? I don't know why this 
happened. I hope the upgrading tool did not do that to *all* my documents !


Now we have another problem we try to solve. We followed upgrading rules 
(mysql dump + mysql import on test server, then deploy xwiki and wait 
for it to upgrade documents), but all our utf-8 characters are broken. 
It looks like they got interpreted as ISO-8859 in the middle of process, 
somewhere. Take a look at before (current production wiki 0.9) and after 
(test wiki 1.2):
http://img299.imageshack.us/img299/6695/utf8oh6.png

Both old and upgraded test wiki connect using the useUnicode=true and 
characterEncoding=UTF-8 but somehow upgraded database is broken :/ Any hint?


En l'instant précis du 21/02/08 05:13, Sergiu Dumitriu s'exprimait en 
ces termes:
> David Delbecq wrote:
>
> Try opening /xwiki/bin/view/XWiki/Menu?xpage=code and 
> /xwiki/bin/view/XWiki/Toolbar?xpage=code and post the 
> code there.
>
>
> Or try using a new skin. Some of the new features can't be accessed from 
> the old skin.
>
>
>   
>> This errors happens on every page, which document should i post? The one 
>> mentioned in exception? Here it is, but i doubt it's the one at cause:
>>
>>
>> 
>>> 1 Wiki Knowledge Base
>>>
>>> This is the Wiki Knowledge Base, where you can start writing about 
>>> your favorite subjects.
>>>
>>> To create new pages, use brackets around the words you want to create 
>>> links for:
>>>
>>> * [Example Link 1]
>>> * [Example Link 2]
>>>   
>> I'll be glad to post "top menu", if i knew where it's stored...
>>
>> This seems limited to top menu rendering in xwiki, i see part of error 
>> there, complete error (in original mail) was logged in tomcat logs
>>
>> Any help appreciated!
>>
>>
>> En l'instant précis du 19/02/08 17:34, Sergiu Dumitriu s'exprimait en 
>> ces termes:
>> 
>>> Can you post the document content?
>>>
>>>
>>> David Delbecq wrote:
>>>   
>>>   
>>>> Hello,
>>>>
>>>> we get this error in xwiki top menu after importing from 0.9. Can someone 
>>>> explain me how to solve this? thanks!
>>>>
>>>>
>>>>
>>>>
>>>> org.apache.velocity.exception.ParseErrorException: Encountered
>>>> ">Blog<.a> | <.span> >>> href=\"..view.Main.KnowledgeBase\",\"view\")\">Knowledge
>>>> Base |  \r\n-->\r\n>>> view.Main
>>>> Was expecting one of:
>>>> "," ...
>>>> ")" ...
>>>>  ...
>>>>
>>>> at
>>>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:212)
>>>> at
>>>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
>>>> at
>>>> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
>>>> at
>>>> com.xpn.xwiki.render.XWikiVelocityRenderer.interpret(XWikiVelocityRenderer.java:60)
>>>> at
>>>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:247)
>>>> at
>>>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.interpretText(DefaultXWikiRenderingEngine.java:150)
>>>> at com.xpn.xwiki.XWiki.parseContent(XWiki.java:1313)
>>>> at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:554)
>>>> at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>> at
>>>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
>>>> at
>>&

Re: [xwiki-users] ParseErrorException

2008-02-20 Thread David Delbecq
This errors happens on every page, which document should i post? The one 
mentioned in exception? Here it is, but i doubt it's the one at cause:


> 1 Wiki Knowledge Base
>
> This is the Wiki Knowledge Base, where you can start writing about 
> your favorite subjects.
>
> To create new pages, use brackets around the words you want to create 
> links for:
>
> * [Example Link 1]
> * [Example Link 2]

I'll be glad to post "top menu", if i knew where it's stored...

This seems limited to top menu rendering in xwiki, i see part of error 
there, complete error (in original mail) was logged in tomcat logs

Any help appreciated!


En l'instant précis du 19/02/08 17:34, Sergiu Dumitriu s'exprimait en 
ces termes:
> Can you post the document content?
>
>
> David Delbecq wrote:
>   
>> Hello,
>>
>> we get this error in xwiki top menu after importing from 0.9. Can someone 
>> explain me how to solve this? thanks!
>>
>>
>>
>>
>> org.apache.velocity.exception.ParseErrorException: Encountered
>> ">Blog<.a> | <.span> > href=\"..view.Main.KnowledgeBase\",\"view\")\">Knowledge
>> Base |  \r\n-->\r\n> view.Main
>> Was expecting one of:
>> "," ...
>> ")" ...
>>  ...
>>
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:212)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.interpret(XWikiVelocityRenderer.java:60)
>> at
>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:247)
>> at
>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.interpretText(DefaultXWikiRenderingEngine.java:150)
>> at com.xpn.xwiki.XWiki.parseContent(XWiki.java:1313)
>> at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:554)
>> at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
>> at
>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>> at
>> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>> at
>> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
>> at
>> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
>> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354)
>> at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607)
>> at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
>> at
>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
>> at
>> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
>> at
>> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
>> at
>> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
>> at
>> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
>> at
>> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
>> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354)
>> at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105)
>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:158)

[xwiki-users] ParseErrorException

2008-02-18 Thread David Delbecq
rg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

thanks for suggestions and regards,

David Delbecq

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


[xwiki-users] problems importing xwiki 0.9

2008-02-13 Thread David Delbecq
tValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

thanks for suggestions and regards,

David Delbecq


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


[xwiki-users] Upgrade from XWiki Version 0.9.840

2008-02-13 Thread David Delbecq
Hello,

we are currently running  XWiki  Version 0.9.840  in our intranet. Due 
to regular problems we have with pages history being corrupted, absence 
of wysiwig editor, we would like to upgrade our xwiki version. It seems 
that the replacement for that xwiki is "xwiki enterprise 1.2.2". We 
tried to do that upgrade on a copy database, but we hit that problem 
upon accessing:

java.lang.UnsupportedClassVersionError: 
org/exoplatform/container/PortalContainer (Unsupported major.minor version 49.0)

It seems (http://www.nabble.com/Plexus-version-error-td14888606.html) 
that it's linked to the presence of exo components that requires java 
1.5. However, since that tomcat run also other applications, upgrade to 
1.5 is not an option. What is the latest xwiki that works with 1.4 
version and where should i go to download it?

Also, has the authentification mecanism been changed since 0.9? We are 
using a custom password checking class 
(xwiki.authentication.authclass=be.rmi.intranet.XWikiNISAuthService). Is 
that still supported? If no, is container managed authentification 
supported?

Thanks

-- 
David Delbecq
Institut Royal Météorologique
Ext:557

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