Re: [xwiki-users] Stuck on First Page of XWiki Distribution Wizard

2013-05-31 Thread Arnaud bourree
Hello,

Did you setup proxy configuration in you servlet container or related user
account?

Arnaud.


2013/5/31 chtjfi john.william.fitzpatr...@gmail.com

 Hello.

 I have just installed a new XWiki site.  I did a manual war file
 deployment.

 When I logon as Admin I am brought to the XWiki Distribution Wizard.  There
 are three choices at the bottom of the wizard: CONTINUE, SKIP, and CANCEL.
 Clicking any of the three buttons brings me back to the very same page.  In
 other words, I'm stuck on the first page.

 Nothing is logged on the server side.

 The server is behind a corporate firewall and can only access the Internet
 through a proxy.

 Does anyone know what I must do to complete the Distribution Wizard?

 Thanks!



 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/Stuck-on-First-Page-of-XWiki-Distribution-Wizard-tp7585532.html
 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


Re: [xwiki-users] how to write content in Container Macro

2013-05-19 Thread Arnaud bourree
Content of 1st ((( ... ))) section will be in 1st column and 2nd ((( ...
))) in 2nd column etc.

Arnaud.


2013/5/19 Belkhiria Hamza Yazid yoshipepper...@gmail.com

 Hi,

 i just tried the container Macro with Columns option

 {{container layoutStyle=columns}}
 (((first column)))
 (((second column)))
 {{/container}}


 it definitely cut the page in two, but i am having difficulties to find out
 how to implement content in the first column and how to go to second column

 Thanks


 --
 *BHY*
 ___
 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] Hidden pages in Space index

2013-03-26 Thread Arnaud bourree
Hello,

I've made AWM application and now want to navigate in generated page
to see what is generated and may be do some update.
I'd like to do same as on my computer: default hide applicative pages,
but some time I become advanced user and like to see those applicative
pages.

I just discovered that I can update my profile to see hidden file.
But, that doesn't fulfill my expectations:
  - I need to update my profile to switch from show hidden or not
  - When I show hidden, there is no information in live column that
some page are hidden for standard user and other not

I propose to open an issue in Jira
WDYT?

Regards,

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


Re: [xwiki-users] Hidden pages in Space index

2013-03-26 Thread Arnaud bourree
2013/3/26 Vincent Massol vinc...@massol.net:

 On Mar 26, 2013, at 5:26 PM, Marius Dumitru Florea 
 mariusdumitru.flo...@xwiki.com wrote:

 On Tue, Mar 26, 2013 at 3:09 PM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 Hello,

 I've made AWM application and now want to navigate in generated page
 to see what is generated and may be do some update.
 I'd like to do same as on my computer: default hide applicative pages,
 but some time I become advanced user and like to see those applicative
 pages.

 I just discovered that I can update my profile to see hidden file.
 But, that doesn't fulfill my expectations:
  - I need to update my profile to switch from show hidden or not
  - When I show hidden, there is no information in live column that
 some page are hidden for standard user and other not

 I propose to open an issue in Jira
 WDYT?

 +1, an improvement / new feature

 I agree, what I'd like to have too is the ability to show hidden pages 
 directly by clicking a menu entry in your profile menu (the menu in the top 
 right under your name).

 Thanks
 -Vincent

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

Jira XWIKI-8962

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


Re: [xwiki-users] How to update an object only if it change

2013-03-19 Thread Arnaud bourree
I just try:
ticketDoc.removeObject(oldTicket)
ticket.setGuid(oldTicket.getGuid())
ticketDoc.save()

And I get unexpected history difference I suspect: object[0] is
deleted and object[1] is added, so not compared together.

Arnaud.

2013/3/18 Arnaud bourree arnaud.bour...@gmail.com:
 Thanks, that right test should be if (diffs.size() == 0)

 But an new object is created anyway

 Arnaud.

 2013/3/18 Edo Beutler ebeut...@synventis.com:
 Hi Arnaud

 I'm not sure, but I suspect you just flipped the if statement. Shouldn't
 the document be saved when diffs.size() != 0 instead? Everything else
 looks ok to me if I understood correctly what you try to do.

 if (diffs.size() *!=* 0) {
   println none
 } else {
   println Updated
   ticketDoc.save()
 }

 Hope this helps
 Edo

 On Mon, Mar 18, 2013 at 5:37 PM, Arnaud bourree 
 arnaud.bour...@gmail.comwrote:

 Hello,

 I'm prototyping a connector to a ticket tracking tool: I'm writing a
 Groovy page which import CSV calls into XWiki.
 I map each CSV rows to one XWiki object store in one page (one object per
 page).
 OK, I succeed to to it.

 My issue is that imported CSV contains rows (tickets) which don't
 change since last import and I don't want to update page in this case.
 Thanks to getDiff() method on BaseObject, XWiki help me to find is
 ticket change or not.
 I write the following Groovy code:

 def http = new HTTPBuilder( 'https://stim.gemalto.com' )
 http.parser.'text/csv' = { resp -
   return new CSVReader( new InputStreamReader( resp.entity.content,
 ParserRegistry.getCharset( resp ) ) )
 }
 http.request( Method.GET, 'text/csv' ) {
   uri.path = myPath
   uri.query = myQuery

   // response handler for a success response code:
   response.success = { resp, csv -
 if (${resp.headers.'Content-Type'}.startsWith('text/csv')) {
   def names = []
   def idIndex = 0
   def cpt=0
   // Find id column call IncidentNumber in my case
   csv.readNext().each { field -
   if (field.equals('IncidentNumber')) {
  idIndex = cpt;
   }
   names.add(field)
   cpt++;
   }
   println |=Incident Number|=action
   csv.readAll().each { line -
 def id = line[idIndex]
 def exists = xwiki.exists('myTicket.'+id)
 def ticketDoc = xwiki.getDocument('myTicket.'+id)
 def ticket = ticketDoc.newObject('myTicket.myTicketClass')
 for(i=0 ; inames.size() ; i++) {
   ticket.set(names[i], line[i]);
 }
 print |[[myTicket.+id+]]|
 if (!exists) {
   println Added
   ticketDoc.save()
 } else {
   def tickets=ticketDoc.getObjects('myTicket.myTicketClass')
   def oldTicket = tickets.size() != 0 ? tickets[0] :
 ticketDoc.newObject('myTicket.myTicketClass')
   def
 diffs=ticket.getBaseObject().getDiff(oldTicket.getBaseObject(),
 xwiki.context)
   if (diffs.size() != 0) {
 println none
   } else {
 println Updated
 ticketDoc.save()
   }
 }
   }
 }
   }

   // handler for any failure status code:
   response.failure = { resp -
 println Unexpected error: ${resp.status} :
 ${resp.statusLine.reasonPhrase}
   }
 }

 The issue in my code, is that I create and add a new ticket object on
 each update where I want to have only one.
 I could removed old ticket before save but in this case history diff
 may not compare two tickets as there have to different GUID.
 I could copy new ticket fields to old ticket
 Or may be there is simplest way to do it implemented else where in XWiki?

 What do you think?

 Regards,

 Arnaud.
 ___
 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] How to delete document without put it in trash bin

2013-03-19 Thread Arnaud bourree
Thanks Louis-Marie,
I've programming right (that will part of an automatic process)

Arnaud.

2013/3/19 Guillaume Louis-Marie Delhumeau gdelhum...@xwiki.com:
 Hi Arnaud.

 You can do it only if you have the Programming Rights.

 With velocity:
 #set($document = $xwiki.getDocument(Document Name))
 ## Get the internal document
 #set($xwikidocument = $document.getDocument())
 ## Remove it
 #set($discard = $xwiki.getXWiki().deleteDocument($xwikidocument, false,
 $xcontext.context))

 The second parameter of deleteDocument is to trash, that I set to false.

 Doc:
 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/4.5.2/xwiki-platform-oldcore-4.5.2-javadoc.jar/!/com/xpn/xwiki/XWiki.html#deleteDocument%28com.xpn.xwiki.doc.XWikiDocument,%20boolean,%20com.xpn.xwiki.XWikiContext%29

 I hope it helps,

 Louis-Marie

 2013/3/18 Arnaud bourree arnaud.bour...@gmail.com

 Hello

 If I used document.delete(), document is moved to trash bin.
 Documents I want to delete are temporary documents I want definitively
 deleted.
 How can I delete document without put it in trash bin?
 Should I have to open JIRA issue to request trash bin parameter?

 Regards,

 Arnaud.
 ___
 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] How to update an object only if it change

2013-03-18 Thread Arnaud bourree
Hello,

I'm prototyping a connector to a ticket tracking tool: I'm writing a
Groovy page which import CSV calls into XWiki.
I map each CSV rows to one XWiki object store in one page (one object per page).
OK, I succeed to to it.

My issue is that imported CSV contains rows (tickets) which don't
change since last import and I don't want to update page in this case.
Thanks to getDiff() method on BaseObject, XWiki help me to find is
ticket change or not.
I write the following Groovy code:

def http = new HTTPBuilder( 'https://stim.gemalto.com' )
http.parser.'text/csv' = { resp -
  return new CSVReader( new InputStreamReader( resp.entity.content,
ParserRegistry.getCharset( resp ) ) )
}
http.request( Method.GET, 'text/csv' ) {
  uri.path = myPath
  uri.query = myQuery

  // response handler for a success response code:
  response.success = { resp, csv -
if (${resp.headers.'Content-Type'}.startsWith('text/csv')) {
  def names = []
  def idIndex = 0
  def cpt=0
  // Find id column call IncidentNumber in my case
  csv.readNext().each { field -
  if (field.equals('IncidentNumber')) {
 idIndex = cpt;
  }
  names.add(field)
  cpt++;
  }
  println |=Incident Number|=action
  csv.readAll().each { line -
def id = line[idIndex]
def exists = xwiki.exists('myTicket.'+id)
def ticketDoc = xwiki.getDocument('myTicket.'+id)
def ticket = ticketDoc.newObject('myTicket.myTicketClass')
for(i=0 ; inames.size() ; i++) {
  ticket.set(names[i], line[i]);
}
print |[[myTicket.+id+]]|
if (!exists) {
  println Added
  ticketDoc.save()
} else {
  def tickets=ticketDoc.getObjects('myTicket.myTicketClass')
  def oldTicket = tickets.size() != 0 ? tickets[0] :
ticketDoc.newObject('myTicket.myTicketClass')
  def diffs=ticket.getBaseObject().getDiff(oldTicket.getBaseObject(),
xwiki.context)
  if (diffs.size() != 0) {
println none
  } else {
println Updated
ticketDoc.save()
  }
}
  }
}
  }

  // handler for any failure status code:
  response.failure = { resp -
println Unexpected error: ${resp.status} : ${resp.statusLine.reasonPhrase}
  }
}

The issue in my code, is that I create and add a new ticket object on
each update where I want to have only one.
I could removed old ticket before save but in this case history diff
may not compare two tickets as there have to different GUID.
I could copy new ticket fields to old ticket
Or may be there is simplest way to do it implemented else where in XWiki?

What do you think?

Regards,

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


Re: [xwiki-users] How to update an object only if it change

2013-03-18 Thread Arnaud bourree
Thanks, that right test should be if (diffs.size() == 0)

But an new object is created anyway

Arnaud.

2013/3/18 Edo Beutler ebeut...@synventis.com:
 Hi Arnaud

 I'm not sure, but I suspect you just flipped the if statement. Shouldn't
 the document be saved when diffs.size() != 0 instead? Everything else
 looks ok to me if I understood correctly what you try to do.

 if (diffs.size() *!=* 0) {
   println none
 } else {
   println Updated
   ticketDoc.save()
 }

 Hope this helps
 Edo

 On Mon, Mar 18, 2013 at 5:37 PM, Arnaud bourree 
 arnaud.bour...@gmail.comwrote:

 Hello,

 I'm prototyping a connector to a ticket tracking tool: I'm writing a
 Groovy page which import CSV calls into XWiki.
 I map each CSV rows to one XWiki object store in one page (one object per
 page).
 OK, I succeed to to it.

 My issue is that imported CSV contains rows (tickets) which don't
 change since last import and I don't want to update page in this case.
 Thanks to getDiff() method on BaseObject, XWiki help me to find is
 ticket change or not.
 I write the following Groovy code:

 def http = new HTTPBuilder( 'https://stim.gemalto.com' )
 http.parser.'text/csv' = { resp -
   return new CSVReader( new InputStreamReader( resp.entity.content,
 ParserRegistry.getCharset( resp ) ) )
 }
 http.request( Method.GET, 'text/csv' ) {
   uri.path = myPath
   uri.query = myQuery

   // response handler for a success response code:
   response.success = { resp, csv -
 if (${resp.headers.'Content-Type'}.startsWith('text/csv')) {
   def names = []
   def idIndex = 0
   def cpt=0
   // Find id column call IncidentNumber in my case
   csv.readNext().each { field -
   if (field.equals('IncidentNumber')) {
  idIndex = cpt;
   }
   names.add(field)
   cpt++;
   }
   println |=Incident Number|=action
   csv.readAll().each { line -
 def id = line[idIndex]
 def exists = xwiki.exists('myTicket.'+id)
 def ticketDoc = xwiki.getDocument('myTicket.'+id)
 def ticket = ticketDoc.newObject('myTicket.myTicketClass')
 for(i=0 ; inames.size() ; i++) {
   ticket.set(names[i], line[i]);
 }
 print |[[myTicket.+id+]]|
 if (!exists) {
   println Added
   ticketDoc.save()
 } else {
   def tickets=ticketDoc.getObjects('myTicket.myTicketClass')
   def oldTicket = tickets.size() != 0 ? tickets[0] :
 ticketDoc.newObject('myTicket.myTicketClass')
   def
 diffs=ticket.getBaseObject().getDiff(oldTicket.getBaseObject(),
 xwiki.context)
   if (diffs.size() != 0) {
 println none
   } else {
 println Updated
 ticketDoc.save()
   }
 }
   }
 }
   }

   // handler for any failure status code:
   response.failure = { resp -
 println Unexpected error: ${resp.status} :
 ${resp.statusLine.reasonPhrase}
   }
 }

 The issue in my code, is that I create and add a new ticket object on
 each update where I want to have only one.
 I could removed old ticket before save but in this case history diff
 may not compare two tickets as there have to different GUID.
 I could copy new ticket fields to old ticket
 Or may be there is simplest way to do it implemented else where in XWiki?

 What do you think?

 Regards,

 Arnaud.
 ___
 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] How to delete document without put it in trash bin

2013-03-18 Thread Arnaud bourree
Hello

If I used document.delete(), document is moved to trash bin.
Documents I want to delete are temporary documents I want definitively deleted.
How can I delete document without put it in trash bin?
Should I have to open JIRA issue to request trash bin parameter?

Regards,

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


Re: [xwiki-users] off-line-Version of XWiki

2013-01-25 Thread Arnaud bourree
Hello,

Off-line: XWiki is off-line: you don't need internet to run XWiki
excepted for some connected extension.
More than Off-line, we may want portable XWiki instance you can put on
usb pen-drive.
IMO, standalone XWiki is ready for that.
OK, You want to put a copy of your XWiki server in you pen-drive ...
 - made you standalone XWiki read-only to not resynchronize back to your server
 - after dump of your server database, you have to convert it to
Hslqdb, or you write Event listener extension to propagate page update
from server to pen-drive. Database conversion looks more easy to do

Regards,

Arnaud.

2013/1/23  li...@yhmail.de:
 Hello again!

 I would like to make a xwiki-instance accessible off-line. I tried to export
 everything as HTML with rather bad results as the navigation and the
 scripting isn't exported. So the idea was to somehow export xwiki to some
 standalone version. Has anyone ever done something like this and wouldn't
 mind sharing his/her inside thoughts?

 Thanks for your help,

 Stephanie
 ___
 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] Problem in French Characters

2013-01-23 Thread Arnaud bourree
Set all your encoding to utf8: database, tomcat

Arnaud.

2013/1/23 Boudjelda Mohamed Said bmsc...@gmail.com:
  Hi Users and Devs

  I have a problem on displaying French characters (accented characters)
 from an attribute value of object example :

 $myobject.get(companyname) and it displas L'élement

 any one know how could I solve this problem Please


 Thanks
 ___
 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] Overview of supported languages for the code macro

2013-01-22 Thread Arnaud bourree
2013/1/21 Vincent Massol vinc...@massol.net:
 Hi Richard,

 On Jan 21, 2013, at 9:10 PM, Richard Hierlmeier rhierlme...@googlemail.com 
 wrote:


 Hi XWiki users,

 I could not find in the XWiki documentation a hint of the supported 
 languages for the code macro.

 I wrote a small script in a XWiki page that read out of pygment (the 
 technology behind the code macro) all supported languages with language 
 name, files extension and mimetype.

 See:

 http://www.hierlmeier.de/wiki/bin/view/Main/SupportedCodeMacroLanguages

 Very nice! Would be awesome if you contribute it as a code snippet on 
 http://extensions.xwiki.org ! :)

 Thanks
 -Vincent


Yes, very nice page.
More than snippet, generated table could be in Code Macro page
itselft, couldn't it?

I directly put in application the page nad update on my own wiki a
page where I have ViM code, and I get the following error
org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content
at 
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:121)
at 
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
[...]
Caused by: Traceback (most recent call last):
  File string, line 3, in module
  File string, line 3, in module
  File __pyclasspath__/pygments/lexers/__init__.py, line 75, in
get_lexer_by_name
  File __pyclasspath__/pygments/lexer.py, line 451, in __call__
  File __pyclasspath__/pygments/lexers/text.py, line 791, in __init__
java.lang.ClassFormatError: Invalid method Code length 79892 in class
file pygments/lexers/_vimbuiltins$py
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at 
org.python.core.BytecodeLoader$Loader.loadClassFromBytes(BytecodeLoader.java:119)
at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)
at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:67)
at org.python.core.util.importer.getModuleCode(importer.java:217)
at org.python.core.util.importer.importer_load_module(importer.java:95)
at 
org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
at 
org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown
Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.import_next(imp.java:715)
at org.python.core.imp.import_logic(imp.java:777)
at org.python.core.imp.import_name(imp.java:839)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at 
pygments.lexers.text$py.__init__$25(__pyclasspath__/pygments/lexers/text.py:796)
at 
pygments.lexers.text$py.call_function(__pyclasspath__/pygments/lexers/text.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
at org.python.core.PyFunction.__call__(PyFunction.java:387)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:220)
at org.python.core.PyMethod.__call__(PyMethod.java:211)
at org.python.core.PyMethod.__call__(PyMethod.java:206)
at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
at 
org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1057)
at org.python.core.PyType.type___call__(PyType.java:1565)
at org.python.core.PyType$type___call___exposer.__call__(Unknown Source)
at 
org.python.core.PyMethodDescr.method_descriptor___call__(PyMethodDescr.java:54)
at org.python.core.PyMethodDescr.__call__(PyMethodDescr.java:43)
at org.python.core.PyObject._callextra(PyObject.java:527)
at pygments.lexer$py.__call__$38(__pyclasspath__/pygments/lexer.py:451)
at pygments.lexer$py.call_function(__pyclasspath__/pygments/lexer.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
at org.python.core.PyFunction.__call__(PyFunction.java:387)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:220)
at org.python.core.PyMethod.__call__(PyMethod.java:211)
at org.python.core.PyMethod.__call__(PyMethod.java:206)
at 

Re: [xwiki-users] Overview of supported languages for the code macro

2013-01-22 Thread Arnaud bourree
2013/1/22 Thomas Mortagne thomas.morta...@xwiki.com:
 On Tue, Jan 22, 2013 at 9:19 AM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 2013/1/21 Vincent Massol vinc...@massol.net:
 Hi Richard,

 On Jan 21, 2013, at 9:10 PM, Richard Hierlmeier 
 rhierlme...@googlemail.com wrote:


 Hi XWiki users,

 I could not find in the XWiki documentation a hint of the supported 
 languages for the code macro.

 I wrote a small script in a XWiki page that read out of pygment (the 
 technology behind the code macro) all supported languages with language 
 name, files extension and mimetype.

 See:

 http://www.hierlmeier.de/wiki/bin/view/Main/SupportedCodeMacroLanguages

 Very nice! Would be awesome if you contribute it as a code snippet on 
 http://extensions.xwiki.org ! :)

 Thanks
 -Vincent


 Yes, very nice page.
 More than snippet, generated table could be in Code Macro page
 itselft, couldn't it?

 That would only reflect what is supported in xwiki.org instance.


 I directly put in application the page nad update on my own wiki a
 page where I have ViM code, and I get the following error
 org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight 
 content
 at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:121)
 at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
 [...]
 Caused by: Traceback (most recent call last):
   File string, line 3, in module
   File string, line 3, in module
   File __pyclasspath__/pygments/lexers/__init__.py, line 75, in
 get_lexer_by_name
   File __pyclasspath__/pygments/lexer.py, line 451, in __call__
   File __pyclasspath__/pygments/lexers/text.py, line 791, in __init__
 java.lang.ClassFormatError: Invalid method Code length 79892 in class
 file pygments/lexers/_vimbuiltins$py
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
 at 
 org.python.core.BytecodeLoader$Loader.loadClassFromBytes(BytecodeLoader.java:119)
 at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)
 at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:67)
 at org.python.core.util.importer.getModuleCode(importer.java:217)
 at 
 org.python.core.util.importer.importer_load_module(importer.java:95)
 at 
 org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
 at 
 org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown
 Source)
 at 
 org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
 at org.python.core.imp.loadFromLoader(imp.java:513)
 at org.python.core.imp.find_module(imp.java:467)
 at org.python.core.PyModule.impAttr(PyModule.java:100)
 at org.python.core.imp.import_next(imp.java:715)
 at org.python.core.imp.import_logic(imp.java:777)
 at org.python.core.imp.import_name(imp.java:839)
 at org.python.core.imp.importName(imp.java:884)
 at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
 at org.python.core.PyObject.__call__(PyObject.java:357)
 at org.python.core.__builtin__.__import__(__builtin__.java:1173)
 at org.python.core.imp.importFromAs(imp.java:978)
 at org.python.core.imp.importFrom(imp.java:954)
 at 
 pygments.lexers.text$py.__init__$25(__pyclasspath__/pygments/lexers/text.py:796)
 at 
 pygments.lexers.text$py.call_function(__pyclasspath__/pygments/lexers/text.py)
 at org.python.core.PyTableCode.call(PyTableCode.java:165)
 at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
 at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
 at org.python.core.PyFunction.__call__(PyFunction.java:387)
 at 
 org.python.core.PyMethod.instancemethod___call__(PyMethod.java:220)
 at org.python.core.PyMethod.__call__(PyMethod.java:211)
 at org.python.core.PyMethod.__call__(PyMethod.java:206)
 at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
 at 
 org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1057)
 at org.python.core.PyType.type___call__(PyType.java:1565)
 at org.python.core.PyType$type___call___exposer.__call__(Unknown 
 Source)
 at 
 org.python.core.PyMethodDescr.method_descriptor___call__(PyMethodDescr.java:54)
 at org.python.core.PyMethodDescr.__call__(PyMethodDescr.java:43)
 at org.python.core.PyObject._callextra(PyObject.java:527)
 at 
 pygments.lexer$py.__call__$38(__pyclasspath__/pygments/lexer.py:451)
 at pygments.lexer$py.call_function(__pyclasspath__/pygments/lexer.py)
 at org.python.core.PyTableCode.call(PyTableCode.java:165)
 at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
 at org.python.core.PyBaseCode.call(PyBaseCode.java:194

Re: [xwiki-users] Overview of supported languages for the code macro

2013-01-22 Thread Arnaud bourree
2013/1/22 Thomas Mortagne thomas.morta...@xwiki.com:
 Thanks, I commented on the issue.

You comment is true, it is more a Java/Jython/Pygments integration issue

Arnaud.


 On Tue, Jan 22, 2013 at 10:46 AM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 2013/1/22 Thomas Mortagne thomas.morta...@xwiki.com:
 On Tue, Jan 22, 2013 at 9:19 AM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 2013/1/21 Vincent Massol vinc...@massol.net:
 Hi Richard,

 On Jan 21, 2013, at 9:10 PM, Richard Hierlmeier 
 rhierlme...@googlemail.com wrote:


 Hi XWiki users,

 I could not find in the XWiki documentation a hint of the supported 
 languages for the code macro.

 I wrote a small script in a XWiki page that read out of pygment (the 
 technology behind the code macro) all supported languages with language 
 name, files extension and mimetype.

 See:

 http://www.hierlmeier.de/wiki/bin/view/Main/SupportedCodeMacroLanguages

 Very nice! Would be awesome if you contribute it as a code snippet on 
 http://extensions.xwiki.org ! :)

 Thanks
 -Vincent


 Yes, very nice page.
 More than snippet, generated table could be in Code Macro page
 itselft, couldn't it?

 That would only reflect what is supported in xwiki.org instance.


 I directly put in application the page nad update on my own wiki a
 page where I have ViM code, and I get the following error
 org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight 
 content
 at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:121)
 at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
 [...]
 Caused by: Traceback (most recent call last):
   File string, line 3, in module
   File string, line 3, in module
   File __pyclasspath__/pygments/lexers/__init__.py, line 75, in
 get_lexer_by_name
   File __pyclasspath__/pygments/lexer.py, line 451, in __call__
   File __pyclasspath__/pygments/lexers/text.py, line 791, in __init__
 java.lang.ClassFormatError: Invalid method Code length 79892 in class
 file pygments/lexers/_vimbuiltins$py
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
 at 
 org.python.core.BytecodeLoader$Loader.loadClassFromBytes(BytecodeLoader.java:119)
 at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)
 at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:67)
 at org.python.core.util.importer.getModuleCode(importer.java:217)
 at 
 org.python.core.util.importer.importer_load_module(importer.java:95)
 at 
 org.python.core.ClasspathPyImporter.ClasspathPyImporter_load_module(ClasspathPyImporter.java:63)
 at 
 org.python.core.ClasspathPyImporter$ClasspathPyImporter_load_module_exposer.__call__(Unknown
 Source)
 at 
 org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
 at org.python.core.imp.loadFromLoader(imp.java:513)
 at org.python.core.imp.find_module(imp.java:467)
 at org.python.core.PyModule.impAttr(PyModule.java:100)
 at org.python.core.imp.import_next(imp.java:715)
 at org.python.core.imp.import_logic(imp.java:777)
 at org.python.core.imp.import_name(imp.java:839)
 at org.python.core.imp.importName(imp.java:884)
 at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
 at org.python.core.PyObject.__call__(PyObject.java:357)
 at org.python.core.__builtin__.__import__(__builtin__.java:1173)
 at org.python.core.imp.importFromAs(imp.java:978)
 at org.python.core.imp.importFrom(imp.java:954)
 at 
 pygments.lexers.text$py.__init__$25(__pyclasspath__/pygments/lexers/text.py:796)
 at 
 pygments.lexers.text$py.call_function(__pyclasspath__/pygments/lexers/text.py)
 at org.python.core.PyTableCode.call(PyTableCode.java:165)
 at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
 at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
 at org.python.core.PyFunction.__call__(PyFunction.java:387)
 at 
 org.python.core.PyMethod.instancemethod___call__(PyMethod.java:220)
 at org.python.core.PyMethod.__call__(PyMethod.java:211)
 at org.python.core.PyMethod.__call__(PyMethod.java:206)
 at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
 at 
 org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1057)
 at org.python.core.PyType.type___call__(PyType.java:1565)
 at org.python.core.PyType$type___call___exposer.__call__(Unknown 
 Source)
 at 
 org.python.core.PyMethodDescr.method_descriptor___call__(PyMethodDescr.java:54)
 at org.python.core.PyMethodDescr.__call__(PyMethodDescr.java:43)
 at org.python.core.PyObject._callextra(PyObject.java:527)
 at 
 pygments.lexer$py.__call__$38(__pyclasspath__/pygments/lexer.py:451

[xwiki-users] Installable with Extension Manager and extension dependency

2013-01-14 Thread Arnaud bourree
Hello,

I try to install extension Batch Import API with Extension Manager:

1st try:
Resolving extension [Batch Import API 1.0] on namespace [wiki:xwiki]
Applying INSTALL for extension [Batch Import API 1.0] on namespace [wiki:xwiki]
Failed to get fields for class
[org.xwiki.batchimport.internal.iterators.CSVImportFileIterator]
because the class [Lau/com/bytecode/opencsv/CSVReader;] couldn't be
found in the ClassLoader.

1/ I suppose that Extension Manager works like maven and so is able so
solved dependencies.
Am I wrong?

2/ If extension manager managed dependencies, I suppose that Batch
Import API need some dependency declaration.
IMO, extension like Batch Import API provided as jar should have
dependency declaration to be tagged as Installable with Extension
Manager in Extension pages

2nd try after manual installation of openCSV in WEB-INF/lib
Resolving extension [Batch Import API 1.0] on namespace [wiki:xwiki]
Applying INSTALL for extension [Batch Import API 1.0] on namespace [wiki:xwiki]
Failed to get fields for class
[org.xwiki.batchimport.internal.iterators.ExcelImportFileIterator]
because the class [com/xpn/xwiki/plugin/excel/ExcelPluginException]
couldn't be found in the ClassLoader.

3/ Batch Import API page wrong information.
From extension page, I understand that Excel plug-in is not mandatory,
from installation, it looks to be mandatory: X-CONTRIB-183

Regards,

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


[xwiki-users] XWiki fail to start

2012-12-13 Thread Arnaud bourree
Hello,

I've XWiki 4.3 on Ubuntu 12.10 (aptitude install
xwiki-enterprise-tomcat7-mysql).
When migrating from 4.2 to 4.3, as other I change hibernate.cfg.xml
read right and it works.
Yesterday, I add Workspace extensions, update xwiki.cfg with
xwiki.virutal=1 as request by install page and restart tomcat
But now Xwiki doesn't start anymore:
INFO: Deploying configuration descriptor
/etc/tomcat7/Catalina/localhost/xwiki.xml
2012-12-13 17:06:10,031 [localhost-startStop-1] ERROR
ltInstalledExtensionRepository - Invalid extension
[org.xwiki.contrib:xwiki-crash-ui-1.2] on namespace [], it will not be
loaded
org.xwiki.extension.InvalidExtensionException: The dependency
[org.xwiki.contrib:xwiki-crash-api-1.2] of extension
[org.xwiki.contrib:xwiki-crash-ui-1.2] is invalid
at 
org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.validateExtension(DefaultInstalledExtensionRepository.java:224)
[xwiki-commons-extension-api-4.3.jar:na]
at 
org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.validateExtension(DefaultInstalledExtensionRepository.java:156)
[xwiki-commons-extension-api-4.3.jar:na]
at 
org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.initialize(DefaultInstalledExtensionRepository.java:128)
[xwiki-commons-extension-api-4.3.jar:na]
at 
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:185)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:169)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.observation.internal.DefaultObservationManager.initialize(DefaultObservationManager.java:135)
[xwiki-commons-observation-local-4.3.jar:na]
at 
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:155)
[xwiki-commons-legacy-component-default-4.3.jar:na]
at 
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:99)
[xwiki-platform-container-servlet-4.3.jar:na]
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
[tomcat-catalina-7.0.30.jar:7.0.30]
at 

Re: [xwiki-users] Debian packages broken?

2012-11-29 Thread Arnaud bourree
Hello,

I get same error when migrated from 4.2 to 4.3 with
xwiki-enterprise-tomcat7-mysql
So similar resolution:
   chmod o+r /etc/xwiki/hibernate.cfg.xml

Regards,

Arnaud.

2012/11/29 Kalkbrenner, Markus markus.kalkbren...@bio.logis.de:
 It works!

 First the out of memory exception was my fault. I increased the memory in 
 /etc/init.d/tomcat6 instead of /etc/defaults/tomcat6.

 But in order to get the debian packages fixed, I summarize the issues:

 - remove the dead symlinks in /usr/lib/xwiki/WEB-INF/
 - adjust file permissions (read access to others) of 
 /etc/xwiki/hibernate.cfg.xml

 Markus


 Am 28.11.2012 um 16:57 schrieb Thomas Mortagne:

 On Wed, Nov 28, 2012 at 3:24 PM, Kalkbrenner, Markus 
 markus.kalkbren...@bio.logis.de wrote:

 Hi,

 I tried to install xwiki for the first time.
 I decided to use the debian packages:
 apt-get install xwiki-enterprise-tomcat6-mysql

 But when I accessed xwiki in the browser i got this exception:
 org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml]
 for hibernate configuration

 The problem was caused by wrong file permissions:
 # ls -l /etc/xwiki
 insgesamt 136
 drwxr-xr-x 5 root root  4096 28. Nov 12:56 cache
 drwxr-xr-x 3 root root  4096 28. Nov 12:56 classes
 drwxr-xr-x 2 root root  4096 28. Nov 12:56 fonts
 -rw-r- 1 root root  8867 28. Nov 13:01 hibernate.cfg.xml
 -rw-r--r-- 1 root root  2022 26. Nov 16:12 jboss-deployment-structure.xml
 drwxr-xr-x 3 root root  4096 28. Nov 12:56 observation
 -rw-r--r-- 1 root root  1181 26. Nov 16:12 portlet.xml
 -rw-r--r-- 1 root root 14720 26. Nov 16:12 struts-config.xml
 -rw-r--r-- 1 root root   435 26. Nov 16:12 sun-web.xml
 -rw-r--r-- 1 root root12 26. Nov 16:12 version.properties
 -rw-r--r-- 1 root root 13793 26. Nov 16:12 web.xml
 -rw-r--r-- 1 root root 30532 28. Nov 13:14 xwiki.cfg
 -rw-r--r-- 1 root root 22514 26. Nov 16:12 xwiki.properties
 -rw-r--r-- 1 root root  1257 26. Nov 16:13 xwiki-tomcat.xml

 chmod o+r hibernate.cfg.xml
 solved that issue!

 But now there are more issues remaining.

 The first issue issue are some dead symlinks in the WEB-INF folder after
 the installation:

 # find -L /usr/lib/xwiki/WEB-INF -type l
 /usr/lib/xwiki/WEB-INF/struts-logic.tld
 /usr/lib/xwiki/WEB-INF/struts-bean.tld
 /usr/lib/xwiki/WEB-INF/struts-html.tld
 /usr/lib/xwiki/WEB-INF/struts.tld
 /usr/lib/xwiki/WEB-INF/struts-template.tld
 /usr/lib/xwiki/WEB-INF/struts-form.tld

 This causes exceptions when you start tomcat:

 INFO: Deploying configuration descriptor xwiki.xml
 28.11.2012 14:14:30 org.apache.catalina.startup.TldConfig lifecycleEvent
 SCHWERWIEGEND: Error processing TLD files for context path /xwiki
 javax.servlet.ServletException: Exception processing TLD at resource path
 /WEB-INF/struts-form.tld in context /xwiki
at
 org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:438)
at
 org.apache.catalina.startup.TldConfig.execute(TldConfig.java:267)
at
 org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:634)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)
at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at
 org.apache.catalina.core.StandardService.start(StandardService.java:525)
at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at 

Re: [xwiki-users] tablefilterNsort.js

2012-09-11 Thread Arnaud bourree
Hello,

Too late but could help someone else.

I did the following (without empty line in table definition):
{{velocity}}
  $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
  $xwiki.ssfx.use(js/xwiki/table/table.css)
{{/velocity}}

(% class=grid sortable filterable doOddEven id=customerList %)
(% class=sortHeader %)|=(% style=width:114px %)Column1|=(%
style=width:114px %)Column2|=(% style=width:114px %)Column3|=(%
style=width:28px %)Column4|=(% class=unsortable %)Column5
|data1.1|data1.2|data1.3|data1.4|data1.5
|data2.1|data2.2|data2.3|data2.4|data2.5

Yes, that is static table, that feed my need, but you could replace it
by your velocity code

Note the following about (% ... %)
- 1st one alone on one line just before table set class on table
- 1st one as begin of 1st table's row set class on tr
- other on this 1st row set style on td
- for column 5, I set it un-sortable, in my use case that is a comment column

Regards,

Arnaud.


2012/9/11 Haimerl, Josef josef.haim...@de-gmbh.com:
 Found a solution for my needs:

 $xwiki.ssfx.use(js/xwiki/table/table.css)
 $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js, true)

 table id=tableid class=sortable filterable doOddEven xwikidatatable 
 cellpadding=0 cellspacing=0 border=0 nowrap
   colgroup
 col width=100
 col width=100
 col width=100
 col width=100
 col width=100
 col width=28
   /colgroup
 tr class=sortHeader
 th /th
 th /th
 th /th
 th /th
 th /th
 /tr
 #set($query= )
 #set($results=$xwiki.search($query))
 #foreach($docname in $results)
 #if($xwiki.hasAccessLevel(view,$context.user,$docname))
 #set($rdoc=$xwiki.getDocument($docname).getTranslatedDocument())
 #set($deletedoc=$xwiki.getURL($docname,'delete'))
 #set ($host = ${request.getRequestURL()})
 #set ($host = ${host.substring(0, 
 ${host.indexOf('/',${mathtool.add(${host.indexOf('//')}, 2)})})})
   tr
 td$rdoc.get()/td
 td$rdoc.title/td
 td$rdoc.get()/td
 td$rdoc.get()/td
 td$rdoc.get()/td
 tdimg 
 src=/industrialwiki/resources/icons/silk/bin_closed.png/td
  /tr
 #end
 #end
 /table

 -Ursprüngliche Nachricht-
 Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im
 Auftrag von Haimerl, Josef
 Gesendet: Dienstag, 11. September 2012 15:05
 An: users@xwiki.org
 Betreff: [xwiki-users] tablefilterNsort.js

 Hello,



 i'm using (% id=tableid class=sortable filterable doOddEven
 xwikidatatable)(% class=sortHeader %) to create a dynamic sortable
 table. Tried a lot with css modifications to set a fixed table-layout,
 but i did not get that far.



 In my despair also tried following code, but then the filter function
 disappears.



 (% id=tableid class=sortable filterable doOddEven xwikidatatable %)

 (% class=sortHeader  style=width:100%%)|= Column1|= Column2|=
 Column3|= Column4|= Column5

 {{html clean=false wiki=true}}col style=width:114pxcol
 style=width:114pxcol style=width:114pxcol
 style=width:114pxcol style=width:114pxcol
 style=width:28px{{/html}}



 Anybody any hints?



 Many thanks in advance! Regards,



 Josef Haimerl

 ___
 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] [ANN] XWiki Enterprise 4.1 Release Candidate 1 is now available.

2012-06-12 Thread Arnaud bourree
2012/6/12 Thomas Mortagne thomas.morta...@xwiki.com:
 On Mon, Jun 11, 2012 at 11:11 PM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 2012/6/11 Caleb James DeLisle calebdeli...@lavabit.com:
 XWiki core development team is proud to announce the availability of XWiki 
 Enterprise 4.1 Release Candidate 1
 This is the first and hopefully final release candidate of the 4.1 release 
 cycle. Being a release candidate, this release is sparse on new features 
 concentrating instead on stabilization of the features brought in Milestone 
 1 and Milestone 2. The 4.1 cycle brings new 3D graphs made with pure XWiki 
 syntax, safer Groovy scripting, and new localization through timezone 
 settings.

 Go grab it at http://enterprise.xwiki.org/xwiki/bin/view/Main/Download and 
 let us know what you think.

 For more information about the 4.1-rc-1 release, See the Release Notes 
 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise41RC1

 Thanks to everyone who helped out to make this release great.

 Caleb

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

 Hello,

 http://maven.xwiki.org/releases/Packages.gz doesn't reference 4.1-rc-1
 debs but there exist

 There is a cron updating it automatically, you probably looked at it a
 bit too quickly. Seems to be ok now.


OK, good, I find it now.

I created issue XWIKI-7904 - xwiki-enterprise-tomcat7-mysql create
symlink into /etc/tomcat6/ and not and not in /etc/tomcat7

Arnaud.


 Regards,

 Arnaud.
 ___
 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] [ANN] XWiki Enterprise 4.1 Release Candidate 1 is now available.

2012-06-11 Thread Arnaud bourree
2012/6/11 Caleb James DeLisle calebdeli...@lavabit.com:
 XWiki core development team is proud to announce the availability of XWiki 
 Enterprise 4.1 Release Candidate 1
 This is the first and hopefully final release candidate of the 4.1 release 
 cycle. Being a release candidate, this release is sparse on new features 
 concentrating instead on stabilization of the features brought in Milestone 1 
 and Milestone 2. The 4.1 cycle brings new 3D graphs made with pure XWiki 
 syntax, safer Groovy scripting, and new localization through timezone 
 settings.

 Go grab it at http://enterprise.xwiki.org/xwiki/bin/view/Main/Download and 
 let us know what you think.

 For more information about the 4.1-rc-1 release, See the Release Notes 
 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise41RC1

 Thanks to everyone who helped out to make this release great.

 Caleb

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

Hello,

http://maven.xwiki.org/releases/Packages.gz doesn't reference 4.1-rc-1
debs but there exist

Regards,

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


Re: [xwiki-users] Xslt Macro page duplicated

2012-05-21 Thread Arnaud bourree
2012/5/20 Vincent Massol vinc...@massol.net:

 On May 20, 2012, at 6:49 AM, Arnaud bourree wrote:

 Hello,

 I received a mail from a xwiki user who request xar of my macro
 because it was zero sized in extension page.
 After login and updating it, I see in my recent pages there are two
 pages for same macro:
 - Xslt Macro: http://extensions.xwiki.org/xwiki/bin/view/Extension/Xslt+Macro
 - XSLT Macro: http://extensions.xwiki.org/xwiki/bin/view/Extension/XSLT+Macro
 I don't remember create it twice, so may be there are some page name
 rule apply when migrating to extensions pages and someone duplicated
 it.

 Which page should I delete?

 XSLT Macro seems better to me.

 Thanks
 -Vincent

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

That's strange because you have already delete Xslt Macro page in Octobre 2011.

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


Re: [xwiki-users] Xslt Macro page duplicated

2012-05-21 Thread Arnaud bourree
2012/5/21 Vincent Massol vinc...@massol.net:

 On May 21, 2012, at 11:29 AM, Arnaud bourree wrote:

 2012/5/20 Vincent Massol vinc...@massol.net:

 On May 20, 2012, at 6:49 AM, Arnaud bourree wrote:

 Hello,

 I received a mail from a xwiki user who request xar of my macro
 because it was zero sized in extension page.
 After login and updating it, I see in my recent pages there are two
 pages for same macro:
 - Xslt Macro: 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Xslt+Macro
 - XSLT Macro: 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XSLT+Macro
 I don't remember create it twice, so may be there are some page name
 rule apply when migrating to extensions pages and someone duplicated
 it.

 Which page should I delete?

 XSLT Macro seems better to me.

 I meant that we should keep the XSLT Macro page and delete the Xslt Macro 
 one.

Yes that was what I did.
Just saying that you have deleted it few month ago and someone or some
process restore is later: now there are two deletes of this page in
trashbin


 Thanks
 -Vincent


 Thanks
 -Vincent

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

 That's strange because you have already delete Xslt Macro page in Octobre 
 2011.

 Arnaud.
 ___
 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] Xslt Macro page duplicated

2012-05-19 Thread Arnaud bourree
Hello,

I received a mail from a xwiki user who request xar of my macro
because it was zero sized in extension page.
After login and updating it, I see in my recent pages there are two
pages for same macro:
- Xslt Macro: http://extensions.xwiki.org/xwiki/bin/view/Extension/Xslt+Macro
- XSLT Macro: http://extensions.xwiki.org/xwiki/bin/view/Extension/XSLT+Macro
I don't remember create it twice, so may be there are some page name
rule apply when migrating to extensions pages and someone duplicated
it.

Which page should I delete?

Regards,

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


Re: [xwiki-users] script variables inside PlantUML macro

2012-04-17 Thread Arnaud bourree
Hello,

Yes, you can with

{{plantuml}}
...
{{velocity}}
...
{{/velocity}}
...
{{/plantuml}}

macros are executed from in to out

Regards,

Arnaud.

2012/4/15 Eugen Colesnicov ecolesni...@gmail.com:
 Is it possible to use script variables inside PlantUML macro?
 I tried:
 {{velocity}}
 {{plantuml}}
 ...
 {{/plantuml}}
 {{velocity}}
 but this method doezn't work. Maybe existing another solution?

 --
 Thanks beforehand
 Eugen Colesnicov

 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/script-variables-inside-PlantUML-macro-tp7468710p7468710.html
 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


Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Arnaud bourree
Hello,

I don't really understand need of velocity macro in you use-case.
Personally, when I want a new line in list, table ..., I used ((( )))
Then you have:
* [[Platform (Features]http://platform.xwiki.org/xwiki/bin/view/Main/]] -
 [[Component 
Modulehttp://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]](((
)))
* [[Writing XWiki
componentshttp://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
-
 [[GitHubhttps://github.com/xwiki]](((
)))

Same result, there are always many path for same result :-D

Regards,

Arnaud.

2012/4/10 Frank Fischer fr...@jcpsim.org:
 Perfect

 Frank



 On 04/10/2012 04:33 PM, Vincent Massol wrote:

 See below

 On Apr 10, 2012, at 4:28 PM, Frank Fischer wrote:

 Ok - i did get what i wanted ;-) ,

 i tested your proposal with another example but
 was accustomed to the JSPWiki list syntax:

 *first line
 spacestill first line
 *second line
 spacestill second line

 If i put this whole list into the macro the second '*' is
 not at the start of the line. This (and a typo typed by
 myself) made me think that your first answer would
 not work for me.

 But putting each list item into a separate macro works
 well and is sufficient for me:


 === works ===

 * {{velocity filter=html}}
 [[**Platform**
 (Features]http://platform.xwiki.org/xwiki/bin/view/Main/]] -
 [[Component
 Modulehttp://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
 {{/velocity}}
 * {{velocity filter=html}}
 [[Writing XWiki
 componentshttp://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
 [[GitHubhttps://github.com/xwiki]]
 {{/velocity}}

 === does not work (somewhat cleaner) ===

 {{velocity filter=html}}
 * [[Platform (Features]http://platform.xwiki.org/xwiki/bin/view/Main/]]
 -
  [[Component
 Modulehttp://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
 * [[Writing XWiki
 componentshttp://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
  [[GitHubhttps://github.com/xwiki]]
 {{/velocity}}

 You need to read:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter

 It explains the various filters and how they work.

 The HTML filter doesn't put any new line.

 What you want  in your second example is:

 {{velocity filter=html}}
 * [[Platform (Features]http://platform.xwiki.org/xwiki/bin/view/Main/]]
 -
  [[Component
 Modulehttp://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]$nl
 * [[Writing XWiki
 componentshttp://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
  [[GitHubhttps://github.com/xwiki]]
 {{/velocity}}

 (note the $nl to insert a new line).

 Thanks
 -Vincent

 Thank you again
  Frank

 Yes it's possible ;)

 As I said in my answer this is already possible. Try this in your wiki:

 {{velocity filter=html}}
 [[Platform (Features]http://platform.xwiki.org/xwiki/bin/view/Main/]]
 -
 [[Component
 Modulehttp://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
 -
 [[Writing XWiki
 componentshttp://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
 [[GitHubhttps://github.com/xwiki]] -
 [[User's Guidehttp://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]]
 -
 [[Getting
 startedhttp://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] -
 [[Syntaxhttp://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
 [[Administrator's
 Guidehttp://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] -
 [[Developer's
 Guidehttp://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
 [[Development Zonehttp://dev.xwiki.org/xwiki/bin/view/Main/]] -
 [[Platform
 Featureshttp://platform.xwiki.org/xwiki/bin/view/Features/]] -
 [[Extensionshttp://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]]
 -
 [[FAQhttp://www.xwiki.org/xwiki/bin/view/FAQ/]]
 {{/velocity}}

 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Upgrade strategy

2012-04-02 Thread Arnaud bourree
Hello,

Excepted backup database file before migration for restoration, you
don't need to export pages delete wiki and import back.
IMO, the only one difficulty we have when migrating is the default xwiki.xar:
1- you may need to delete some pages included into xwiki-2.7.xar but
removed in xwiki-3.5.1.xar
2- you should merge pages from xwiki-3.5.1.xar you have updated in your wiki
3- other pages could be simply imported

But, how to know if page has been updated since 2.7?
My solution is to always reset page version to 1.0 when import pages
from last xar.

Regards,

Arnaud.

2012/4/2 Gerritjan Koekkoek gerritjankoekk...@gmail.com:
 Hi,

 What is the best strategy for upgrading (2.7 - 3.5.1) and making sure 
 everything is based on the latest?

 I was thinking the following;

 Export the old Wiki (full Export)
 Delete the Wiki
 Clean installed Wiki
 Import the Export
 Import the XAR of a fresh Wiki

 Problem with above;
  With last step I overwrite and lose all modified pages (especially 
 XWikiusers group)
  All imported pages are not modified to latest XWiki syntax
  profiles of XWikiUsers are based on OLD object definition
  Object def changes in BLOG (if any?)
  Script changes in Register procedure
  any other?

 Gerritjan





 ___
 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] Install of xwiki-enterprise-common_3.5_all.deb failed

2012-02-28 Thread Arnaud bourree
Hello,

I'm surprise about deb version:
$aptitude show xwiki-enterprise-tomcat6-mysql xwiki-enterprise-tomcat-mysql
Package: xwiki-enterprise-tomcat6-mysql
New: yes
State: installed
Automatically installed: no
Version: *3.5*
Priority: optional
Section: java
Maintainer: XWiki Team (d...@xwiki.org)
Uncompressed Size: 0
Depends: xwiki-enterprise-common (= 3.5), xwiki-enterprise-tomcat-common (= 
3.5), xwiki-enterprise-mysql-common (= 3.5), tomcat6
Description: XWiki enterprise Tomcat/MySQL based package
 XWiki is a free wiki software platform written in Java with a design emphasis 
 on extensibility.

 XWiki Enterprise is an easily installed enterprise wiki with features such as 
 WYSIWYG editing, OpenOffice based document import/export, semantic 
 annotations and tagging, and advanced permissions
 management.

 XWiki Enterprise is designed to help teams collaborate more efficiently. It 
 runs in a Java servlet container such as Tomcat.

Package: xwiki-enterprise-tomcat-mysql
New: yes
State: not installed
Version: *3.4*
Priority: optional
Section: java
Maintainer: XWiki Team (d...@xwiki.org)
Uncompressed Size: 8,192
Depends: xwiki-enterprise-common (= 3.4), mysql-server (= 5.0.0), tomcat6 (= 
6.0.20), libmysql-java (= 5.0.0)
Description: XWiki enterprise Tomcat/MySQL based package
 XWiki is a free wiki software platform written in Java with a design emphasis 
 on extensibility.

 XWiki Enterprise is an easily installed enterprise wiki with features such as 
 WYSIWYG editing, OpenOffice based document import/export, semantic 
 annotations and tagging, and advanced permissions
 management.

 XWiki Enterprise is designed to help teams collaborate more efficiently. It 
 runs in a Java servlet container such as Tomcat.


1st there are now two packages one version 3.5 and not 3.5.1 and one 3.4 !

Regards,

Arnaud.

2012/2/27 Thomas Mortagne thomas.morta...@xwiki.com:
 Done

 On Mon, Feb 27, 2012 at 1:13 PM, Richard Rafalski
 m...@richard-rafalski.de wrote:

 Am 26.02.2012 12:41, schrieb Thomas Mortagne:
 I just fixed it on 4.0 and 3.5 branch (so for 4.0-milestone-1 and 3.5.1).

 Will try to find some time to fix the 3.5 packages (probably tomorrow).

 Would you please send a massage to the list when the 3.5 packages are
 uploaded into the archive

 Thank you
 Ritchi
 ___
 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] missing hibernate file after fresh install xwiki-enterprise-tomcat6-mysql_3.5_all.deb

2012-02-28 Thread Arnaud bourree
Hello,

After try to migrate from 3.4-rc-1 to 3.5, I finally purge 3.4-rc-1
install and try fresh installation but I get following error:
- during installation:
$sudo aptitude install xwiki-enterprise-tomcat6-mysql
The following NEW packages will be installed:
  xwiki-enterprise-common{a} xwiki-enterprise-mysql-common{a}
xwiki-enterprise-tomcat-common{a} xwiki-enterprise-tomcat6-mysql
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/140 MB of archives. After unpacking 212 MB will be used.
Do you want to continue? [Y/n/?]
Selecting previously deselected package xwiki-enterprise-common.
(Reading database ... 265905 files and directories currently installed.)
Unpacking xwiki-enterprise-common (from
.../xwiki-enterprise-common_3.5_all.deb) ...
Selecting previously deselected package xwiki-enterprise-mysql-common.
Unpacking xwiki-enterprise-mysql-common (from
.../xwiki-enterprise-mysql-common_3.5_all.deb) ...
Selecting previously deselected package xwiki-enterprise-tomcat-common.
Unpacking xwiki-enterprise-tomcat-common (from
.../xwiki-enterprise-tomcat-common_3.5_all.deb) ...
Selecting previously deselected package xwiki-enterprise-tomcat6-mysql.
Unpacking xwiki-enterprise-tomcat6-mysql (from
.../xwiki-enterprise-tomcat6-mysql_3.5_all.deb) ...
Setting up xwiki-enterprise-common (3.5) ...
Setting up xwiki-enterprise-mysql-common (3.5) ...
dbconfig-common: writing config to /etc/dbconfig-common/xwiki.conf

Creating config file /etc/dbconfig-common/xwiki.conf with new version
Not replacing deleted config file /etc/xwiki/hibernate.cfg.xml
chown: cannot access `/etc/xwiki/hibernate.cfg.xml': No such file or directory
chmod: cannot access `/etc/xwiki/hibernate.cfg.xml': No such file or directory
granting access to database xwiki for xwiki@localhost: already exists.
creating database xwiki: already exists.
dbconfig-common: flushing administrative password
Setting up xwiki-enterprise-tomcat-common (3.5) ...
Setting up xwiki-enterprise-tomcat6-mysql (3.5) ...
 * Stopping Tomcat servlet engine tomcat6

  [ OK ]
 * Starting Tomcat servlet engine tomcat6

  [ OK ]

- when accessing web page:
$curl http://localhost:8080/xwiki/bin/view/Main/;
htmlheadtitleApache Tomcat/6.0.32 - Error
report/titlestyle!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--/style /headbodyh1HTTP Status 500 - /h1HR
size=1 noshade=noshadepbtype/b Exception
report/ppbmessage/b u/u/ppbdescription/b uThe
server encountered an internal error () that prevented it from
fulfilling this request./u/ppbexception/b
prejavax.servlet.ServletException: com.xpn.xwiki.XWikiException:
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading
document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name
= [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI],
parent = [null
Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for
hibernate configuration

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)

org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)

com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)

org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
/pre/ppbroot cause/b precom.xpn.xwiki.XWikiException:
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading
document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name
= [XWiki], type = [SPACE], parent = 

Re: [xwiki-users] missing hibernate file after fresh install xwiki-enterprise-tomcat6-mysql_3.5_all.deb

2012-02-28 Thread Arnaud bourree
Sorry, for duplication, I just see mail and apply correction

Thanks

Arnaud.

2012/2/28 Thomas Mortagne thomas.morta...@xwiki.com:
 Richard Rafalski just reported the same bug in another mail, looks
 like installing 3.5 from scratch fail to generate the hibernate file
 from the template. I'm looking at it but I don't know why yet.

 See http://jira.xwiki.org/browse/XE-1120

 On Tue, Feb 28, 2012 at 9:00 PM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 Hello,

 After try to migrate from 3.4-rc-1 to 3.5, I finally purge 3.4-rc-1
 install and try fresh installation but I get following error:
 - during installation:
 $sudo aptitude install xwiki-enterprise-tomcat6-mysql
 The following NEW packages will be installed:
  xwiki-enterprise-common{a} xwiki-enterprise-mysql-common{a}
 xwiki-enterprise-tomcat-common{a} xwiki-enterprise-tomcat6-mysql
 0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0 B/140 MB of archives. After unpacking 212 MB will be used.
 Do you want to continue? [Y/n/?]
 Selecting previously deselected package xwiki-enterprise-common.
 (Reading database ... 265905 files and directories currently installed.)
 Unpacking xwiki-enterprise-common (from
 .../xwiki-enterprise-common_3.5_all.deb) ...
 Selecting previously deselected package xwiki-enterprise-mysql-common.
 Unpacking xwiki-enterprise-mysql-common (from
 .../xwiki-enterprise-mysql-common_3.5_all.deb) ...
 Selecting previously deselected package xwiki-enterprise-tomcat-common.
 Unpacking xwiki-enterprise-tomcat-common (from
 .../xwiki-enterprise-tomcat-common_3.5_all.deb) ...
 Selecting previously deselected package xwiki-enterprise-tomcat6-mysql.
 Unpacking xwiki-enterprise-tomcat6-mysql (from
 .../xwiki-enterprise-tomcat6-mysql_3.5_all.deb) ...
 Setting up xwiki-enterprise-common (3.5) ...
 Setting up xwiki-enterprise-mysql-common (3.5) ...
 dbconfig-common: writing config to /etc/dbconfig-common/xwiki.conf

 Creating config file /etc/dbconfig-common/xwiki.conf with new version
 Not replacing deleted config file /etc/xwiki/hibernate.cfg.xml
 chown: cannot access `/etc/xwiki/hibernate.cfg.xml': No such file or 
 directory
 chmod: cannot access `/etc/xwiki/hibernate.cfg.xml': No such file or 
 directory
 granting access to database xwiki for xwiki@localhost: already exists.
 creating database xwiki: already exists.
 dbconfig-common: flushing administrative password
 Setting up xwiki-enterprise-tomcat-common (3.5) ...
 Setting up xwiki-enterprise-tomcat6-mysql (3.5) ...
  * Stopping Tomcat servlet engine tomcat6

                                                      [ OK ]
  * Starting Tomcat servlet engine tomcat6

                                                      [ OK ]

 - when accessing web page:
 $curl http://localhost:8080/xwiki/bin/view/Main/;
 htmlheadtitleApache Tomcat/6.0.32 - Error
 report/titlestyle!--H1
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 H2 
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 
 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY 
 {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
 B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
 P 
 {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
 {color : black;}A.name {color : black;}HR {color :
 #525D76;}--/style /headbodyh1HTTP Status 500 - /h1HR
 size=1 noshade=noshadepbtype/b Exception
 report/ppbmessage/b u/u/ppbdescription/b uThe
 server encountered an internal error () that prevented it from
 fulfilling this request./u/ppbexception/b
 prejavax.servlet.ServletException: com.xpn.xwiki.XWikiException:
 Error number 3 in 0: Could not initialize main XWiki context
 Wrapped Exception: Error number 3202 in 3: Exception while reading
 document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name
 = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI],
 parent = [null
 Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for
 hibernate configuration
        
 org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
        
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
        
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
        
 org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
        
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68

[xwiki-users] XWiki upgrade with apt-get

2012-02-17 Thread Arnaud bourree
Hello,

Last week I install XWiki from deb for Debian: XWiki 3.4-RC-1
I finalized install by importing xwiki-enterprise-ui-all-3.4-rc-1.xar
That works perfectly many thanks to XWiki team.

Today, my package manager propose to upgrade to XWiki 3.5-M-1
If I upgrade my XWiki do I need also to to import
xwiki-enterprise-ui-all-3.5-m-1.xar or only some part?
Does it exist merging procedure between xwiki-enterprise-ui-all with
partial update of old version and new xwiki-enterprise-ui-all.xar?

Regards,

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


Re: [xwiki-users] install xWiki 3.3 M1 from apt

2011-11-03 Thread Arnaud bourree
2011/11/3 Thomas Mortagne thomas.morta...@xwiki.com:
 On Thu, Nov 3, 2011 at 9:58 AM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
 On Thu, Nov 3, 2011 at 9:22 AM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
 On Thu, Nov 3, 2011 at 12:59 AM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 Hello,

 Does anyone succeed to install XWiki 3.3 M1 with apt-get or aptitude?

 I run Ubuntu 11.10, wget http://maven.xwiki.org/stable/xwiki-releases.list
 and aptitude update failed:
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: The list of sources could not be read.
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: The list of sources could not be read.
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: Couldn't read list of package sources

 I update xwiki-releases.list to
 deb http://maven.xwiki.org releases/

 Sorry about that, it's fixed now.


 After this update, aptitude update looks working but aptitude search
 xwiki return nothing !!

 Looks like I forgot to add a module in
 https://github.com/xwiki/xwiki-enterprise/blob/master/xwiki-enterprise-installers/pom.xml...
 fixing that and deploying the 3.3M1 packages.

 Done. Should be ok now, except that I just found a bug you can
 workaround by making sure /var/lib/xwiki/data folder exists before
 installing XWiki.

 Actually I cheated a bit and re-deployed a fixed version.


I try both install xwiki-enterprise-tomcat-mysql and
xwiki-enterprise-tomcat-pgsql
I always get the following error (pgsql)
 * Starting Tomcat servlet engine tomcat6

  [ OK ]
Setting up xwiki-enterprise-common (3.3+milestone+1) ...
mkdir: invalid option -- 'f'
Try `mkdir --help' for more information.
dpkg: error processing xwiki-enterprise-common (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
  dpkg:
dependency problems prevent configuration of
xwiki-enterprise-tomcat-pgsql:
 xwiki-enterprise-tomcat-pgsql depends on xwiki-enterprise-common (=
3.3+milestone+1); however:
  Package xwiki-enterprise-common is not configured yet.
dpkg: error processing xwiki-enterprise-tomcat-pgsql (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 xwiki-enterprise-common
 xwiki-enterprise-tomcat-pgsql
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up xwiki-enterprise-common (3.3+milestone+1) ...
mkdir: invalid option -- 'f'
Try `mkdir --help' for more information.
dpkg: error processing xwiki-enterprise-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of
xwiki-enterprise-tomcat-pgsql:
 xwiki-enterprise-tomcat-pgsql depends on xwiki-enterprise-common (=
3.3+milestone+1); however:
  Package xwiki-enterprise-common is not configured yet.
dpkg: error processing xwiki-enterprise-tomcat-pgsql (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 xwiki-enterprise-common
 xwiki-enterprise-tomcat-pgsql




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




 --
 Thomas Mortagne




 --
 Thomas Mortagne




 --
 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] install xWiki 3.3 M1 from apt

2011-11-03 Thread Arnaud bourree
2011/11/3 Arnaud bourree arnaud.bour...@gmail.com:
 2011/11/3 Thomas Mortagne thomas.morta...@xwiki.com:
 On Thu, Nov 3, 2011 at 9:58 AM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
 On Thu, Nov 3, 2011 at 9:22 AM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
 On Thu, Nov 3, 2011 at 12:59 AM, Arnaud bourree
 arnaud.bour...@gmail.com wrote:
 Hello,

 Does anyone succeed to install XWiki 3.3 M1 with apt-get or aptitude?

 I run Ubuntu 11.10, wget http://maven.xwiki.org/stable/xwiki-releases.list
 and aptitude update failed:
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: The list of sources could not be read.
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: The list of sources could not be read.
 E: Malformed line 1 in source list
 /etc/apt/sources.list.d/xwiki-releases.list (dist parse)
 E: Couldn't read list of package sources

 I update xwiki-releases.list to
 deb http://maven.xwiki.org releases/

 Sorry about that, it's fixed now.


 After this update, aptitude update looks working but aptitude search
 xwiki return nothing !!

 Looks like I forgot to add a module in
 https://github.com/xwiki/xwiki-enterprise/blob/master/xwiki-enterprise-installers/pom.xml...
 fixing that and deploying the 3.3M1 packages.

 Done. Should be ok now, except that I just found a bug you can
 workaround by making sure /var/lib/xwiki/data folder exists before
 installing XWiki.

 Actually I cheated a bit and re-deployed a fixed version.


 I try both install xwiki-enterprise-tomcat-mysql and
 xwiki-enterprise-tomcat-pgsql
 I always get the following error (pgsql)
  * Starting Tomcat servlet engine tomcat6

                                                      [ OK ]
 Setting up xwiki-enterprise-common (3.3+milestone+1) ...
 mkdir: invalid option -- 'f'
 Try `mkdir --help' for more information.
 dpkg: error processing xwiki-enterprise-common (--configure):
  subprocess installed post-installation script returned error exit status 1
 No apport report written because MaxReports is reached already
                                                              dpkg:
 dependency problems prevent configuration of
 xwiki-enterprise-tomcat-pgsql:
  xwiki-enterprise-tomcat-pgsql depends on xwiki-enterprise-common (=
 3.3+milestone+1); however:
  Package xwiki-enterprise-common is not configured yet.
 dpkg: error processing xwiki-enterprise-tomcat-pgsql (--configure):
  dependency problems - leaving unconfigured
 No apport report written because MaxReports is reached already

 Processing triggers for libc-bin ...
 ldconfig deferred processing now taking place
 Errors were encountered while processing:
  xwiki-enterprise-common
  xwiki-enterprise-tomcat-pgsql
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 A package failed to install.  Trying to recover:
 Setting up xwiki-enterprise-common (3.3+milestone+1) ...
 mkdir: invalid option -- 'f'
 Try `mkdir --help' for more information.
 dpkg: error processing xwiki-enterprise-common (--configure):
  subprocess installed post-installation script returned error exit status 1
 dpkg: dependency problems prevent configuration of
 xwiki-enterprise-tomcat-pgsql:
  xwiki-enterprise-tomcat-pgsql depends on xwiki-enterprise-common (=
 3.3+milestone+1); however:
  Package xwiki-enterprise-common is not configured yet.
 dpkg: error processing xwiki-enterprise-tomcat-pgsql (--configure):
  dependency problems - leaving unconfigured
 Errors were encountered while processing:
  xwiki-enterprise-common
  xwiki-enterprise-tomcat-pgsql


I just try with snapshots and get similar error:
Get: 1 http://maven.xwiki.org/ snapshots/ xwiki-enterprise-common
3.3+2003.093025.406 [112 MB]
Fetched 112 MB in 3min 8s (592 kB/s)
Selecting previously deselected package xwiki-enterprise-common.
(Reading database ... 181563 files and directories currently installed.)
Unpacking xwiki-enterprise-common (from
.../xwiki-enterprise-common_3.3+2003.093025.406_all.deb) ...
Setting up xwiki-enterprise-common (3.3+2003.093025.406) ...
mkdir: invalid option -- 'f'
Try `mkdir --help' for more information.
dpkg: error processing xwiki-enterprise-common (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
  Errors
were encountered while processing:
 xwiki-enterprise-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up xwiki-enterprise-common (3.3+2003.093025.406) ...
mkdir: invalid option -- 'f'
Try `mkdir --help' for more information.
dpkg: error processing xwiki-enterprise-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were

[xwiki-users] install xWiki 3.3 M1 from apt

2011-11-02 Thread Arnaud bourree
Hello,

Does anyone succeed to install XWiki 3.3 M1 with apt-get or aptitude?

I run Ubuntu 11.10, wget http://maven.xwiki.org/stable/xwiki-releases.list
and aptitude update failed:
E: Malformed line 1 in source list
/etc/apt/sources.list.d/xwiki-releases.list (dist parse)
E: Malformed line 1 in source list
/etc/apt/sources.list.d/xwiki-releases.list (dist parse)
E: The list of sources could not be read.
E: Malformed line 1 in source list
/etc/apt/sources.list.d/xwiki-releases.list (dist parse)
E: The list of sources could not be read.
E: Malformed line 1 in source list
/etc/apt/sources.list.d/xwiki-releases.list (dist parse)
E: Couldn't read list of package sources

I update xwiki-releases.list to
deb http://maven.xwiki.org releases/

After this update, aptitude update looks working but aptitude search
xwiki return nothing !!

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


Re: [xwiki-users] Template for Blog

2011-10-03 Thread Arnaud bourree
2011/9/30 Arnaud bourree arnaud.bour...@gmail.com:
 2011/9/29 Sergiu Dumitriu ser...@xwiki.com:
 On 09/29/2011 02:49 AM, Arnaud bourree wrote:
 2011/9/15 Vincent Massolvinc...@massol.net:

 On Sep 15, 2011, at 12:27 AM, Sergiu Dumitriu wrote:

 On 09/14/2011 03:56 PM, Arnaud bourree wrote:
 Hello,

 Does someone made Template for Blog?
 I'm surprise that is not part of XWiki 3.1

 You mean a document template for blog posts? No, it's not in the
 sources, but it should be easy to create one.

 What Sergiu means is:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HTemplatesCreationandAdministration

 Is that what you meant?


 Sorry for later response.
 Yes, that exactly what I mean.
 I've made a try with XWiki 2.7, but Post creation date field is one
 from template :-/
 I will retry on XWiki 3.1 and take you in touch.

 Ah, yes, you have to cheat a bit.

 1. Edit the BlogPostClass and uncheck the Empty is today checkbox from
 the Publish Date field
 2. Create the template, leaving the publish date empty
 3. Re-check the Empty is today checkbox in the class

 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/

 I try it on both 2.7 and 3.1 instance without success.
 I found in same time that there is one template BlogPostTemplate and
 only BlogPostTemplateProvider is missing
 But in any case, page created from template has never BlogPostClass object
 May be something more to do to copy template object into new page?

Sorry, I forget to put space in template name, so XWiki create empty
page as XWiki.BlogPostTemplate doesn't exist.
With Blog.BlogPostTemplate, everything look good.

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


Re: [xwiki-users] Template for Blog

2011-09-30 Thread Arnaud bourree
2011/9/29 Sergiu Dumitriu ser...@xwiki.com:
 On 09/29/2011 02:49 AM, Arnaud bourree wrote:
 2011/9/15 Vincent Massolvinc...@massol.net:

 On Sep 15, 2011, at 12:27 AM, Sergiu Dumitriu wrote:

 On 09/14/2011 03:56 PM, Arnaud bourree wrote:
 Hello,

 Does someone made Template for Blog?
 I'm surprise that is not part of XWiki 3.1

 You mean a document template for blog posts? No, it's not in the
 sources, but it should be easy to create one.

 What Sergiu means is:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HTemplatesCreationandAdministration

 Is that what you meant?


 Sorry for later response.
 Yes, that exactly what I mean.
 I've made a try with XWiki 2.7, but Post creation date field is one
 from template :-/
 I will retry on XWiki 3.1 and take you in touch.

 Ah, yes, you have to cheat a bit.

 1. Edit the BlogPostClass and uncheck the Empty is today checkbox from
 the Publish Date field
 2. Create the template, leaving the publish date empty
 3. Re-check the Empty is today checkbox in the class

 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/

I try it on both 2.7 and 3.1 instance without success.
I found in same time that there is one template BlogPostTemplate and
only BlogPostTemplateProvider is missing
But in any case, page created from template has never BlogPostClass object
May be something more to do to copy template object into new page?

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


Re: [xwiki-users] Template for Blog

2011-09-29 Thread Arnaud bourree
2011/9/15 Vincent Massol vinc...@massol.net:

 On Sep 15, 2011, at 12:27 AM, Sergiu Dumitriu wrote:

 On 09/14/2011 03:56 PM, Arnaud bourree wrote:
 Hello,

 Does someone made Template for Blog?
 I'm surprise that is not part of XWiki 3.1

 You mean a document template for blog posts? No, it's not in the
 sources, but it should be easy to create one.

 What Sergiu means is:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HTemplatesCreationandAdministration

 Is that what you meant?


Sorry for later response.
Yes, that exactly what I mean.
I've made a try with XWiki 2.7, but Post creation date field is one
from template :-/
I will retry on XWiki 3.1 and take you in touch.

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


[xwiki-users] Template for Blog

2011-09-14 Thread Arnaud bourree
Hello,

Does someone made Template for Blog?
I'm surprise that is not part of XWiki 3.1

Regards,

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


Re: [xwiki-users] Drop mailing lists in favor of a forum software

2011-03-08 Thread Arnaud bourree
my -1 contribution for same reasons as Paul Leibbrecht and Thomas Mortagne

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


Re: [xwiki-users] Problem to create a new Blog

2011-03-04 Thread Arnaud bourree
Hello,

You have two blog pages: SPace1.Blog and Space2.Blog
And both blog pages are set to list all blogs and not only blogs from
space, that why you blogs in both location.

Regards,

Arnaud

2011/3/4 Gérard Turmel gtur...@sisteer.com:
 Hello

 I created a new blog in a new space according to explanations  in the link
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Blog+Application

 But the new blog and  the wiki blog share the same items.
 The wiki blog posts  are shown in the new blog.
 And if I create a new article in the new blog, I see it in both blogs.

 Are  there some additional installations or configuration to do?
 I did not install the WAR xwiki-application-blog.
 I'am under XWiki Enterprise 3.0-milestone-2.34501



 **
 Ce message et toutes les pieces jointes sont confidentiels et etablis à 
 l'intention exclusive de ses destinataires.
 Toute utilisation ou diffusion non autorisee est interdite.
 Tout message electronique est susceptible d'alteration.
 SISTEER decline toute responsabilite au titre de ce message s'il a ete 
 altere, deforme ou falsifie.
 Si vous n'etes pas le destinataire de ce message, merci de le detruire et 
 d'informer l'expediteur.
 **
 This message and any attachments are confidential and intended solely for the 
 addressee(s).
 Any unauthorised use or dissemination is prohibited.
 E-mails are susceptible to alteration.
 SISTEER shall not be liable for the message if altered, changed or falsified.
 If you are not the intended addressee of this message, please cancel it 
 immediately and inform the sender.
 **

 ___
 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] download link for Google Document Viwer Macro

2011-02-10 Thread Arnaud bourree
Hello,

That answer your question, but it is recommended to used
http://extensions.xwiki.org/xwiki/bin/view/Extension/Office+Macro
instead

Arnaud.

2011/2/4 Vito Impagliazzo vimpaglia...@gmail.com:
 Hi

 I am trying to download the Google Document Viewer Macro from the extensions
 wiki:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Google+Document+Viewer+Macro#HPrerequisites26InstallationInstructions

 however the download link still refers to the old code wiki (as in many
 other extensions). Where can I find the installation file?

 thanks
 --
 Vito Impagliazzo
 ---
 Please consider the environment before printing this email.
 ___
 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 linking an atachment in a blog comment

2011-01-11 Thread Arnaud bourree
try [[attach:Blog.blog page@demo.jpg]]

Arnaud.

2011/1/9 mb xwiki...@freenet.de:
 Hi all,

 I'd like to use a link to an attachment in a blog comment, like
 [[attach:demo.jpg]].  It causes a link to
 http://wiki.hostname/xwiki/bin/download/Main/WebHome/demo.jpg -
 that's wrong, it should be
 http://wiki.hostname/xwiki/bin/download/Blog/blog page/demo.jpg

 I am using xwiki 2.7.

 Any hints?

 Thanks
 mb

 By the way: What about WYSIWYG for comments?
 ___
 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] [request] Comparing XWiki to other solutions

2011-01-04 Thread Arnaud bourree
Hello,

2011/1/4 Vincent Massol vinc...@massol.net:

 On Jan 4, 2011, at 6:59 PM, sorinello wrote:


 Hello Team.

 I have 2 proposals to make :

 1. Rationale: XWiki competitors is a little bit too aggressive. We should
 not use so harsh words like competitor, rivals, etc. So I am proposing to
 replace XWiki competitors with:
      1.1. Other alternatives to XWiki
      1.2. Alternatives to XWiki
      1.3. Similar products to XWiki
      1.4. Similar solutions to XWiki

 I'm ok with any (even Competitor is ok with me).

 On a side note, it's always difficult to compare 2 products since there are 
 multiple angles and it's hard to have people from both products agree on the 
 comparison. I'm not sure where this will lead...

 2. If a user is not happy with XWiki and wants to switch to another
 alternative from the page, we should allow that user to manifest it's
 unhappiness via some sort of form. Maybe we can link the XWiki.org Survey to
 this page, so at least we hopefully get some feedback from the leaving user.

 Yes but this shouldn't be linked to this page. We should have such a form 
 accessible probably from the download page. The feedback result should 
 probably be sent to the list (devs list?).

Why not a features matrice like we can found at 7zip, WinRAR, WinZip websites
For example:
  xwikisharepoint
Access from Office application VV
Google Calandar integrationVX
Infopath integration  XV

Arnaud.


 This is becoming a bit off topic for this thread.

 Thanks
 -Vincent


 WDYT ?

 Regards,
 Sorin B.
 ___
 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] Groovy script with attached jars

2010-12-29 Thread Arnaud bourree
Hello,

AbstractJSR223ScriptMacro failed to evaluate Script (or Groovy) Macro
when importing package of attached jar.

My configuration:
- XWiki 2.7
- Tomcat 6.0.28
- MySql  5.1.49
- Java SUN 6.22
- Ubuntu 10.10

The flowing works well
{{groovy jars=attach:plantuml.jar}}
def version = Class.forName(net.sourceforge.plantuml.version.Version,
false, this.getClass().getClassLoader()).getConstructor().newInstance()
print version.version()
{{/groovy}}

But this one fails
{{groovy jars=attach:plantuml.jar}}
import net.sourceforge.plantuml
{{/groovy}}

org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Script Macro for content [import net.sourceforge.plantuml] at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:174)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:52)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:190)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7471)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7420)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:835)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:783)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:878)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537) at
sun.reflect.GeneratedMethodAccessor321.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1895) at
com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1833) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:860) at
sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at 
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 

Re: [xwiki-users] Groovy script with attached jars

2010-12-29 Thread Arnaud bourree
Sorry,

That works with import net.sourceforge.plantuml.*

Arnaud.

2010/12/29 Arnaud bourree arnaud.bour...@gmail.com:
 Hello,

 AbstractJSR223ScriptMacro failed to evaluate Script (or Groovy) Macro
 when importing package of attached jar.

 My configuration:
 - XWiki 2.7
 - Tomcat 6.0.28
 - MySql  5.1.49
 - Java SUN 6.22
 - Ubuntu 10.10

 The flowing works well
 {{groovy jars=attach:plantuml.jar}}
 def version = Class.forName(net.sourceforge.plantuml.version.Version,
 false, this.getClass().getClassLoader()).getConstructor().newInstance()
 print version.version()
 {{/groovy}}

 But this one fails
 {{groovy jars=attach:plantuml.jar}}
 import net.sourceforge.plantuml
 {{/groovy}}

 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
 Script Macro for content [import net.sourceforge.plantuml] at
 org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:174)
 at 
 org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:52)
 at 
 org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:190)
 at 
 org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)
 at 
 org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
 at 
 org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
 at 
 org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
 at 
 com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7471)
 at 
 com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7420)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:835)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:783)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:878)
 at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537) at
 sun.reflect.GeneratedMethodAccessor321.invoke(Unknown Source) at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616) at
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
 at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
 at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
 at 
 org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
 at 
 org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
 at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
 at 
 org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
 at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
 at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
 at 
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
 at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1895) at
 com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1833) at
 com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:860) at
 sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616) at
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
 at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
 at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
 at 
 org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
 at 
 org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
 at 
 org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
 at 
 org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87

Re: [xwiki-users] Questionaire

2010-12-24 Thread Arnaud bourree
Hello,

Polls Application should be what you're expect:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Polls+Application

Regards,

Arnaud.

2010/12/18 Wouter de Vos hukab...@googlemail.com:
 Hi everyone,

 I'm working with Xwiki for a few months now, and I am really pleased
 with all it has to offer, and enjoying the vivid community mailing as
 well.

 I want to put a questionaire in my wiki, lets say 10 questions with
 open text fields for answers and as well some multiple choice
 possibilities. Then I want a submit button that sends the whole thing
 to an email address.
 I am experimenting with importing html forms, which work OK-ish,
 except for the mailto submit, which gives nasty popups from IE. I come
 from a HTML background and im not that stable (yet) with groovy, php
 and all that.
 What is the best way to make my questionnaire? How do i make a decent
 submit button?
 If all this is old news, please send me links to previous posts, but i
 looked for the last 3 hours and did not find anything on this subject
 that i understood.
 Thanks everyone for your help in advance,

 Wouter
 ___
 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] xpage=plain encloses output in p

2010-12-16 Thread Arnaud bourree
And an other way again will be to specify specify content type.
Personally, with XE 2.6, I return an xml document with view action,
xpage=plain and $response.setContentType('application/xml')

Arnaud.

2010/12/15 Thomas Mortagne thomas.morta...@xwiki.com:
 Another way is to use get action instead of view.

 On Wed, Dec 15, 2010 at 14:01, Vincent Massol vinc...@massol.net wrote:
 Hi Tim,

 try:
 xpage=plainoutputSyntax=plain

 Thanks
 -Vincent

 On Dec 15, 2010, at 1:27 PM, Tim Jones wrote:

 I would like to return pure JSON from a page with a macro, to be called 
 externally as a web service.

 When I append xpage=plain to the URL of the page to omit the UI content, 
 the output is still enclosed within p /p.

 Is there any way to get the plain text content without an enclosing 
 paragraph tag?

 Regards,

 Tim

 ___
 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] xpage=plain encloses output in p/

2010-12-16 Thread Arnaud bourree
Other way again will be to specify specify content type.
Personally, with XE 2.6, I return an xml document with view action,
xpage=plain and $response.setContentType('application/xml')

Arnaud.

2010/12/15 Thomas Mortagne thomas.morta...@xwiki.com:
 On Wed, Dec 15, 2010 at 16:17, Tim Jones tim.jones@gmail.com wrote:
 Vincent,

 Thanks for replying.

 Using 'xpage=plainoutputSyntax=plain', as you suggest, I still get the 
 content enclosed in p/p/

 It's working very well for me as you can see in
 http://tuska.myxwiki.org/xwiki/bin/view/Test/Plain?xpage=plainoutputSyntax=plain

 The p is probably generated some way by your content or maybe you
 are using xwiki/1.0 syntax for which outputSyntax parameter is not
 supported.


 (I am running 2.6.33065)

 Regards,

 Tim



 On 15 Dec 2010, at 13:01, Vincent Massol wrote:

 Hi Tim,

 try:
 xpage=plainoutputSyntax=plain

 Thanks
 -Vincent

 On Dec 15, 2010, at 1:27 PM, Tim Jones wrote:

 I would like to return pure JSON from a page with a macro, to be called 
 externally as a web service.

 When I append xpage=plain to the URL of the page to omit the UI content, 
 the output is still enclosed within p /p.

 Is there any way to get the plain text content without an enclosing 
 paragraph tag?

 Regards,

 Tim

 ___
 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] Dropping support for IE6?

2010-12-14 Thread Arnaud bourree
+1 personally
-10 for other users: in my company XP stills standard OS and IE6
standard browser but 2011 could be new start

2010/12/14 Roman Muntyanu rmunt...@softserveinc.com:
 +1 as a user
 +100 as a developer ;)

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of 
 Vincent Massol
 Sent: Tuesday, December 14, 2010 12:06 PM
 To: XWiki Users
 Subject: [xwiki-users] Dropping support for IE6?

 Hi everyone,

 As users, I'm wondering what you'd think if we were to drop support for IE6 
 in the XWiki Enterprise 3.X cycle. Would that be a huge problem for you?

 The reason I'm asking is because supporting IE6 costs us a lot in term of 
 extra development time and by dropping it we could be faster on other stuff.

 Note that this is just me asking, there's no plan about this at this point in 
 time, I'm just curious to have some feedback, especially since support for 
 IE6 has been dropped for lots of services and software out there (including 
 Microsoft).

 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] H2 support in xwiki 2.6

2010-11-24 Thread Arnaud bourree
2010/11/24 Nicolas Jouanin nicolas.joua...@gmail.com:
 Hi,

 As was wondering if H2 database was still supported as database from xwiki.
 According to this page (
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationH2), this
 should work but here is the exception I get whe using this configuration :

 javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
 number 3 in 0: Could not initialize main XWiki context
 Wrapped Exception: Error number 3001 in 3: Cannot load class
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
 from param xwiki.store.migration.manager.class
 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
 Wrapped Exception: Errors in named queries: getAllPublicDocuments,
 listGroupsForUserInOtherWiki, getSpaceDocsName, listGroupsForUser,
 getAllUsers, getAllDocuments, getAllSpaceDocuments, getSpaces
        
 org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
        
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
        
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
        
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
        
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
        
 org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
        
 org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)


 I'm using h2-1.2.147.jar and here is wat I put in hibernate config file:
    property name=connection.urljdbc:h2:wiki/property
    property name=connection.usernamexwiki/property
    property name=connection.passwordxwiki/property
    property name=connection.driver_classorg.h2.Driver/property
    property name=dialectorg.hibernate.dialect.H2Dialect/property
    property
 name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
    property name=connection.pool_size20/property


 Can anyone help ?
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


Did you add H2 jars in WEB-INF/lib ?

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


[xwiki-users] Share by email

2010-11-24 Thread Arnaud bourree
Hello,

I want to used Share by email but I've the following error in log:
2010-11-24 15:48:39,986
[http://localhost:8080/xwiki/bin/get/abourree/Weekly1046?xpage=shareinline]
ERROR mailsender.MailSenderPlugin - sendEmailFromTemplate:
XWiki.SharePage vcontext: org.apache.velocity.velocitycont...@72d833
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not
have permissions to send as this sender

To solved it, I need to specify the from field.

I update in XWiki.XWikiPreferences General Admin email to my own =
without success.
Note that I able to send invitation with invitation application and
Email from address set to mine

Regards,

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


Re: [xwiki-users] Share by email

2010-11-24 Thread Arnaud bourree
2010/11/24 Sergiu Dumitriu ser...@xwiki.com:
 On 11/24/2010 04:05 PM, Arnaud bourree wrote:
 Hello,

 I want to used Share by email but I've the following error in log:
 2010-11-24 15:48:39,986
 [http://localhost:8080/xwiki/bin/get/abourree/Weekly1046?xpage=shareinline]
 ERROR mailsender.MailSenderPlugin     - sendEmailFromTemplate:
 XWiki.SharePage vcontext: org.apache.velocity.velocitycont...@72d833
 com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not
 have permissions to send as this sender

 To solved it, I need to specify the from field.

 I update in XWiki.XWikiPreferences General Admin email to my own =
 without success.
 Note that I able to send invitation with invitation application and
 Email from address set to mine

 Regards,

 The email is sent as no-reply@xwiki hostname. You either have to
 configure the mail server to accept mails from that address, or change
 the shareinline.vm template to use a different address.

 In the future the used address should be configurable, either as the
 sender's email address configured in his profile, or as the current
 no-reply, or as the system email address configured in the wiki preferences.

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


Thanks, I've uncomment line fetching admin's email and comment noreply one

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


[xwiki-users] Activity macro and macros bundled with XWiki

2010-11-09 Thread Arnaud bourree
Hello,

I try to test Activity macro in my Wiki (XWiki 2.5) with the provided sample:
{{recentactivity space=$doc.space author=XWiki.Admin tag=xwiki /}}
and also
{{velocity}}
{{recentactivity space=$doc.space author=XWiki.Admin tag=xwiki /}}
{{/velocity}}

Test page returns:
 Unknown macro: recentactivity
 The recentactivity macro is not in the list of registered macros. Verify 
 the spelling or contact your administrator.

So my questions are:
1- Since which XWiki version Activity macro is bundled within XWiki?
2- Could we update all pages of macros bundled with XWiki with the
minimal XWiki version there are bundled with or at least the last
XWiki version we made significant update on?

Regards,

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


Re: [xwiki-users] upgrade skipping versions

2010-11-04 Thread Arnaud bourree
Hi,


2010/11/4 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net:
 Hi, Wouter,

 Wouter Boasson wrote:
 Hi,

 Just a simple question: can I safely upgrade XWiki from a 2.2.x version to a 
 2.5.x (or newer) release, without upgrading step by step (e.g. go to 2.3.x 
 ... , then 2.4.x ... 2.5)?



 Following this document...

 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation

 It must be safe to do what you are planning to do provided you review
 those additional operations and are particularly observant with the
 WARNINGS on that file. As you can read...

Sorry, but that didn't answered (nor the related page) if it safe to
jump from version 2.2.x directly to last 2.5 version

Arnaud.


 Note that the database schema is automatically upgraded when needed.
 All you need to do is to ensure your xwiki.cfg file is correctly
 configured to perform the migration.

 And, of course, backup your database and /xwiki application folder
 before proceeding!


 Hope this helps!

 Ricardo

 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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] where put macros?

2010-11-02 Thread Arnaud bourree
2010/11/2 Caleb James DeLisle calebdeli...@lavabit.com:
 In your own wiki I think you want to put macros in a space where you will be 
 able to find them
 easily. The XWiki space is full of important internals and I wouldn't 
 recommend putting any macros
 in there.
 Macros sounds like a fine choice.

I ask question more for macro we contribute to

Arnaud.


 Caleb

 On 11/02/2010 04:40 AM, Arnaud bourree wrote:
 Hello,

 Where is the best space to put macros?
 I check in some macro from code.xwiki.org, and find that macros are
 commonly put in XWiki, Macros or Macro space.
 I've a preference for Macros as it self explanatory and I think XWiki
 space more dedicated to XE pages.

 What do you think?

 Regards,

 Arnaud.
 ___
 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] Xslt Macro

2010-11-02 Thread Arnaud bourree
Hi,

I've published a macro allowing to do XSLT transformation on XML
document in syntax 2.0.

http://code.xwiki.org/xwiki/bin/view/Macros/XsltMacro

Regards,

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


Re: [xwiki-users] where put macros?

2010-11-02 Thread Arnaud bourree
2010/11/2 Thomas Mortagne thomas.morta...@xwiki.com:
 On Tue, Nov 2, 2010 at 10:14, Caleb James DeLisle
 calebdeli...@lavabit.com wrote:
 If you're contributing a macro then just log in and fgo to this page.
 http://code.xwiki.org/xwiki/bin/view/Macros/CreateMacro
 It will put the macro in the Macros space and automatically add it to the 
 index.
 Thanks for contributing to code.xwiki.org ;)

 I think Thomas was talking about his how macro space, not where to put
 contributed macro documentation.


Yes, thanks Thomas,
I decided to used Macros space.

Arnaud.


 Caleb

 On 11/02/2010 04:57 AM, Arnaud bourree wrote:
 2010/11/2 Caleb James DeLisle calebdeli...@lavabit.com:
 In your own wiki I think you want to put macros in a space where you will 
 be able to find them
 easily. The XWiki space is full of important internals and I wouldn't 
 recommend putting any macros
 in there.
 Macros sounds like a fine choice.

 I ask question more for macro we contribute to

 Arnaud.


 Caleb

 On 11/02/2010 04:40 AM, Arnaud bourree wrote:
 Hello,

 Where is the best space to put macros?
 I check in some macro from code.xwiki.org, and find that macros are
 commonly put in XWiki, Macros or Macro space.
 I've a preference for Macros as it self explanatory and I think XWiki
 space more dedicated to XE pages.

 What do you think?

 Regards,

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




 --
 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] where put macros?

2010-11-02 Thread Arnaud bourree
2010/11/2 Jerome Velociter jer...@xwiki.com:
 Actually I've been thinking maybe we could provide a Macros/ space
 with XE. The home page would be a improved version of the current
 XWiki.WikiMacros page (adding for example a ClassSheet for macros, a
 form to create a new macro, some documentation, etc.)

 WDYT?

I like the idea.
May be with also with version check linked to future extension manager

Arnaud.

 Jerome

 On Tue, Nov 2, 2010 at 2:03 PM, Arnaud bourree arnaud.bour...@gmail.com 
 wrote:
 2010/11/2 Thomas Mortagne thomas.morta...@xwiki.com:
 On Tue, Nov 2, 2010 at 10:14, Caleb James DeLisle
 calebdeli...@lavabit.com wrote:
 If you're contributing a macro then just log in and fgo to this page.
 http://code.xwiki.org/xwiki/bin/view/Macros/CreateMacro
 It will put the macro in the Macros space and automatically add it to the 
 index.
 Thanks for contributing to code.xwiki.org ;)

 I think Thomas was talking about his how macro space, not where to put
 contributed macro documentation.


 Yes, thanks Thomas,
 I decided to used Macros space.

 Arnaud.


 Caleb

 On 11/02/2010 04:57 AM, Arnaud bourree wrote:
 2010/11/2 Caleb James DeLisle calebdeli...@lavabit.com:
 In your own wiki I think you want to put macros in a space where you 
 will be able to find them
 easily. The XWiki space is full of important internals and I wouldn't 
 recommend putting any macros
 in there.
 Macros sounds like a fine choice.

 I ask question more for macro we contribute to

 Arnaud.


 Caleb

 On 11/02/2010 04:40 AM, Arnaud bourree wrote:
 Hello,

 Where is the best space to put macros?
 I check in some macro from code.xwiki.org, and find that macros are
 commonly put in XWiki, Macros or Macro space.
 I've a preference for Macros as it self explanatory and I think XWiki
 space more dedicated to XE pages.

 What do you think?

 Regards,

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




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

 ___
 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] issue with getAttachment from different document in Groovy

2010-10-29 Thread Arnaud bourree
2010/10/29 Caleb James DeLisle calebdeli...@lavabit.com:
 Hi Arnaud,

 I have indeed repeated this problem. It appears that I have introduced a bug 
 when I fixed
 http://jira.xwiki.org/jira/browse/XWIKI-5405. This bug nolonger exists on the 
 2.6 trunk due to
 additional refactoring and I will work on a targeted patch for v2.5.1
 Terribly sorry for the inconvenience and thank you for the report!

 Caleb


Thanks Caleb
That explain why that doesn't work for me and work for Ricardo

Arnaud.

 On 10/28/2010 06:25 PM, [Ricardo Rodriguez] eBioTIC. wrote:
 Hi!

 Arnaud bourree wrote:
 Hello

 I put a file Text.txt as attachment in a page: Sandbox.Page1
 I in an other page Sandbox.Page2, I write the following script:
 {{groovy}}
 def mydoc=xwiki.getDocument('Sandbox.Page1')
 def myfile=mydoc.getAttachment('Text.txt')
 println |+mydoc+|+myfile
 {{/goovy}}
 The result is
 |Sandbox.Page1|null

 If I put the same script in Sandbox.Page2, the result become:
 |Sandbox.Page1|com.xpn.xwiki.api.attachm...@331be8


 I don't understand the situation: do you have two documents? One having
 an attachment, and another one without it? In any case, myfile gets an
 array: classname (com.xpn.xwiki.api.Attachment) and an object ID. I
 can't explain why it varies though.
 Why cannot get attachments from other document?


 Check this...

 http://ebiotic.net/bin/ICT/HasAttachment#Attachments
 http://ebiotic.net/bin/ICT/GetAttachment#Attachments

 This should help:

 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/2.5/xwiki-core-2.5-javadoc.jar/!/com/xpn/xwiki/api/Attachment.html

 Please, take into account that I'm not a maven! I've just picked up some
 ideas here and there. Please, consider critically this message! Thanks.
 I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10

 Arnaud.
 ___
 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] Problems with the dashboard spaces panel ( using reverse proxy )

2010-10-29 Thread Arnaud bourree
Hello Piotr

2010/10/29 Piotr Dziubecki deep...@man.poznan.pl:
 Dear all,

 I have a little problem with the behavior of the Spaces panel in the
 Dashboard section.

 First of all, let me describe my portal configuration:

 On my host I have one portal which takes the standard :80 port, then it's
 Xwiki on :28181

 Unfortunately I cannot make xwiki port ( 28181 ) public so I created a
 reverse proxy in the following way:

 ProxyPass /xwiki/ http://localhost:28181/xwiki/
 ProxyPassReverse /xwiki/ http://localhost:28181/xwiki/
 ProxyPass /xwiki  http://localhost:28181/xwiki
 ProxyPassReverse /xwiki http://localhost:28181/xwiki


 Then I can access to my Xwiki with the following url:

 apps.man.poznan.pl/xwiki

 From the internal network I can use that one as well:

 apps.man.poznan.pl:28181



 Now I can describe my problem: when I access xwiki with the port, everything
 works as expected. Unfortunately when I use /xwiki url I'm getting the view
 as on the attached screenshot. It seems that somehow the links for those
 little icons are broken. Those links are still active but it doesn't look
 that good.

 I imagine this a minor glitch but if someone has any ideas how to fix that..


Did you try to define xwiki.home in xwiki.cfg?
That could help

Arnaud.


 Thanks,
 Piotr


 ___
 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] issue with xwiki.getURLContent()

2010-10-29 Thread Arnaud bourree
Hello,

I write the following test page:
= Goovy =
{{groovy}}
println 
xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;)
{{/groovy}}

= Velocity =
{{velocity}}
$xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;)
{{/velocity}}

And it doesn't return attachment file content.
If I change URL to http://www.google.com;, both returns Google page
If I curl URL from console, then I get my attachment file content.

What's wrong? Don't we allowed to used absolute URL to our wiki?

I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10

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


Re: [xwiki-users] issue with xwiki.getURLContent()

2010-10-29 Thread Arnaud bourree
Hello Ricardo,

2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net:
 Hi!

 Arnaud bourree wrote:
 Hello,

 I write the following test page:
 = Goovy =
 {{groovy}}
 println 
 xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;)
 {{/groovy}}

 = Velocity =
 {{velocity}}
 $xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;)
 {{/velocity}}

 And it doesn't return attachment file content.
 If I change URL to http://www.google.com;, both returns Google page
 If I curl URL from console, then I get my attachment file content.

 What's wrong? Don't we allowed to used absolute URL to our wiki?

 I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10


 Here what I see: it does work in a XE/XEM 2.4.30451 installation...

 http://ebiotic.net/bin/ICT/GetAttachmentContent

 But id doesn't in a XE 2.6-SNAPSHOT.31892...

 http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/GetAttachmentContent

 Does this provide any clue?

It looks that could be regression introduce by correction
http://jira.xwiki.org/jira/browse/XWIKI-5405
As it it closed to doc.getAttachement()

Arnaud.


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



 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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] issue with xwiki.getURLContent()

2010-10-29 Thread Arnaud bourree
2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net:


 Arnaud bourree wrote:
 Hello Ricardo,

 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net:

 Hi!

 Arnaud bourree wrote:

 Hello,

 I write the following test page:
 = Goovy =
 {{groovy}}
 println 
 xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;)
 {{/groovy}}

 = Velocity =
 {{velocity}}
 $xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;)
 {{/velocity}}

 And it doesn't return attachment file content.
 If I change URL to http://www.google.com;, both returns Google page
 If I curl URL from console, then I get my attachment file content.

 What's wrong? Don't we allowed to used absolute URL to our wiki?

 I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10


 Here what I see: it does work in a XE/XEM 2.4.30451 installation...

 http://ebiotic.net/bin/ICT/GetAttachmentContent

 But id doesn't in a XE 2.6-SNAPSHOT.31892...

 http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/GetAttachmentContent

 Does this provide any clue?


 It looks that could be regression introduce by correction
 http://jira.xwiki.org/jira/browse/XWIKI-5405
 As it it closed to doc.getAttachement()

 Arnaud.



 Or something new as it is fixed in trunk for 2.6 (warning: I've not a
 clear idea about what this means concerning snapshots!) Let's see what
 others has to say about this! I'll update the snapshot I've in my
 develop environment ASAP and try gain. I'm afraid that won't happens
 before next Tuesday though.

By chance I can used URL later in my code without retrieving content.
So, I can do without, but I will follow correction.

Arnaud.



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



 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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


 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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] issue with getAttachment from different document in Groovy

2010-10-28 Thread Arnaud bourree
Hello

I put a file Text.txt as attachment in a page: Sandbox.Page1
I in an other page Sandbox.Page2, I write the following script:
{{groovy}}
def mydoc=xwiki.getDocument('Sandbox.Page1')
def myfile=mydoc.getAttachment('Text.txt')
println |+mydoc+|+myfile
{{/goovy}}
The result is
|Sandbox.Page1|null

If I put the same script in Sandbox.Page2, the result become:
|Sandbox.Page1|com.xpn.xwiki.api.attachm...@331be8

Why cannot get attachments from other document?

I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10

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


[xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
Hello,

I develop a macro which display object attached to the current page.
Here summary of my code:
{{goovy}}
def topic = doc.getObject(ActivityReport.TopicClass,
Integer.valueOf(xcontext.macro.params.id))
println |+doc.displayPrettyName(topic, title)+|+topic.get(title)
println |+doc.displayPrettyName(topic, action)+|+topic.get(action)
println |+doc.displayPrettyName(topic, status)+|+topic.get(status)
{{/groovy}}

In my macro page, I put one instance of my TopicClass for development.
That working fine.
In an other page I put an other instance and call my macro.
It display instance from macro page !!!

I suppose that I should not used doc to find current document in macro.
But I don't find in
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
how to retrieved current document.
I also test xcontext.doc, but it is same as doc.

So how can find current document (the document which call my macro)?

Regards,

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


Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
Hi Marius,

2010/10/26 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com:
 Hi Arnaud,

 On 10/26/2010 12:38 PM, Arnaud bourree wrote:
 Hello,

 I develop a macro which display object attached to the current page.
 Here summary of my code:
 {{goovy}}
 def topic = doc.getObject(ActivityReport.TopicClass,
 Integer.valueOf(xcontext.macro.params.id))
 println |+doc.displayPrettyName(topic, title)+|+topic.get(title)
 println |+doc.displayPrettyName(topic, action)+|+topic.get(action)
 println |+doc.displayPrettyName(topic, status)+|+topic.get(status)
 {{/groovy}}

 In my macro page, I put one instance of my TopicClass for development.
 That working fine.
 In an other page I put an other instance and call my macro.
 It display instance from macro page !!!

 Indeed. I just tested a wiki macro with this code:

 --8--
 {{velocity}}
 $doc | $xcontext.doc
 {{/velocity}}

 {{groovy}}
 print doc.toString() +  |  + xcontext.doc.toString()
 {{/groovy}}
 --8--
I made same test

 and the result is:

 --8--
 Sandbox.FF | Sandbox.WikiMacroTest
and I have Sandbox.FF | Sandbox.FF
Note that I used XWiki 2.4.3

 Sandbox.WikiMacroTest | Sandbox.WikiMacroTest
 --8--

 As you can see $doc points to the right document in velocity but to the
 wiki macro document in groovy. This looks like a bug to me. Can you
 report an issue on http://jira.xwiki.org/jira/browse/XWIKI .

 Thanks,
 Marius


 I suppose that I should not used doc to find current document in macro.
 But I don't find in
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
 how to retrieved current document.
 I also test xcontext.doc, but it is same as doc.

 So how can find current document (the document which call my macro)?

 Regards,

 Arnaud.
 ___
 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] accessing to document running macro

2010-10-26 Thread Arnaud bourree
2010/10/26 Anca Luca lu...@xwiki.com:


 On 10/26/2010 12:28 PM, Marius Dumitru Florea wrote:
 Hi Arnaud,

 On 10/26/2010 12:38 PM, Arnaud bourree wrote:
 Hello,

 I develop a macro which display object attached to the current page.
 Here summary of my code:
 {{goovy}}
 def topic = doc.getObject(ActivityReport.TopicClass,
 Integer.valueOf(xcontext.macro.params.id))
 println |+doc.displayPrettyName(topic, title)+|+topic.get(title)
 println |+doc.displayPrettyName(topic, action)+|+topic.get(action)
 println |+doc.displayPrettyName(topic, status)+|+topic.get(status)
 {{/groovy}}

 In my macro page, I put one instance of my TopicClass for development.
 That working fine.
 In an other page I put an other instance and call my macro.
 It display instance from macro page !!!

 Indeed. I just tested a wiki macro with this code:

 --8--
 {{velocity}}
 $doc | $xcontext.doc
 {{/velocity}}

 {{groovy}}
 print doc.toString() +  |  + xcontext.doc.toString()
 {{/groovy}}
 --8--

 and the result is:

 --8--
 Sandbox.FF | Sandbox.WikiMacroTest

 Sandbox.WikiMacroTest | Sandbox.WikiMacroTest
 --8--

 As you can see $doc points to the right document in velocity but to the
 wiki macro document in groovy. This looks like a bug to me. Can you
 report an issue on http://jira.xwiki.org/jira/browse/XWIKI .

 Isn't it this issue: http://jira.xwiki.org/jira/browse/XWIKI-4262 ?

That is not the case as I'm administrator of my wiki and I've all right.
I just upgrade to 2.4.4 and find same issue.
Next step, I upgrade to 2.5 and retry

Arnaud.

 Thanks,
 Anca


 Thanks,
 Marius


 I suppose that I should not used doc to find current document in macro.
 But I don't find in
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
 how to retrieved current document.
 I also test xcontext.doc, but it is same as doc.

 So how can find current document (the document which call my macro)?

 Regards,

 Arnaud.
 ___
 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] accessing to document running macro

2010-10-26 Thread Arnaud bourree
2010/10/26 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com:
 On 10/26/2010 03:38 PM, Arnaud bourree wrote:
 Hi Marius,

 2010/10/26 Marius Dumitru Floreamariusdumitru.flo...@xwiki.com:
 Hi Arnaud,

 On 10/26/2010 12:38 PM, Arnaud bourree wrote:
 Hello,

 I develop a macro which display object attached to the current page.
 Here summary of my code:
 {{goovy}}
 def topic = doc.getObject(ActivityReport.TopicClass,
 Integer.valueOf(xcontext.macro.params.id))
 println |+doc.displayPrettyName(topic, title)+|+topic.get(title)
 println |+doc.displayPrettyName(topic, action)+|+topic.get(action)
 println |+doc.displayPrettyName(topic, status)+|+topic.get(status)
 {{/groovy}}

 In my macro page, I put one instance of my TopicClass for development.
 That working fine.
 In an other page I put an other instance and call my macro.
 It display instance from macro page !!!

 Indeed. I just tested a wiki macro with this code:

 --8--
 {{velocity}}
 $doc | $xcontext.doc
 {{/velocity}}

 {{groovy}}
 print doc.toString() +  |  + xcontext.doc.toString()
 {{/groovy}}
 --8--
 I made same test

 and the result is:

 --8--
 Sandbox.FF | Sandbox.WikiMacroTest
 and I have Sandbox.FF | Sandbox.FF

 Note that I used XWiki 2.4.3

 I used XE 2.5RC1 and a XE2.6-SNAPSHOT so I'm pretty sure $doc points to
 the right document in XE 2.5. Maybe there was a bug in the previous
 versions. There is still the groovy issue though.


I migrate to 2.5: same issue.
I prefered groovy, so I don't made test with velocity.
Now I made test with velocity and that works
Marius you are true, that is groovy issue

Arnaud.

 Marius


 Sandbox.WikiMacroTest | Sandbox.WikiMacroTest
 --8--

 As you can see $doc points to the right document in velocity but to the
 wiki macro document in groovy. This looks like a bug to me. Can you
 report an issue on http://jira.xwiki.org/jira/browse/XWIKI .

 Thanks,
 Marius


 I suppose that I should not used doc to find current document in macro.
 But I don't find in
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
 how to retrieved current document.
 I also test xcontext.doc, but it is same as doc.

 So how can find current document (the document which call my macro)?

 Regards,

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

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


Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
2010/10/26 Arnaud bourree arnaud.bour...@gmail.com:
 2010/10/26 Anca Luca lu...@xwiki.com:


 On 10/26/2010 12:28 PM, Marius Dumitru Florea wrote:
 Hi Arnaud,

 On 10/26/2010 12:38 PM, Arnaud bourree wrote:
 Hello,

 I develop a macro which display object attached to the current page.
 Here summary of my code:
 {{goovy}}
 def topic = doc.getObject(ActivityReport.TopicClass,
 Integer.valueOf(xcontext.macro.params.id))
 println |+doc.displayPrettyName(topic, title)+|+topic.get(title)
 println |+doc.displayPrettyName(topic, action)+|+topic.get(action)
 println |+doc.displayPrettyName(topic, status)+|+topic.get(status)
 {{/groovy}}

 In my macro page, I put one instance of my TopicClass for development.
 That working fine.
 In an other page I put an other instance and call my macro.
 It display instance from macro page !!!

 Indeed. I just tested a wiki macro with this code:

 --8--
 {{velocity}}
 $doc | $xcontext.doc
 {{/velocity}}

 {{groovy}}
 print doc.toString() +  |  + xcontext.doc.toString()
 {{/groovy}}
 --8--

 and the result is:

 --8--
 Sandbox.FF | Sandbox.WikiMacroTest

 Sandbox.WikiMacroTest | Sandbox.WikiMacroTest
 --8--

 As you can see $doc points to the right document in velocity but to the
 wiki macro document in groovy. This looks like a bug to me. Can you
 report an issue on http://jira.xwiki.org/jira/browse/XWIKI .

 Isn't it this issue: http://jira.xwiki.org/jira/browse/XWIKI-4262 ?

 That is not the case as I'm administrator of my wiki and I've all right.
 I just upgrade to 2.4.4 and find same issue.
 Next step, I upgrade to 2.5 and retry

Sorry Ancra, I read referenced bug to fast, you are true: Thomas
Mortagne said: Another side effect of this is that it makes
impossible to access current document from groovy or any other
non-velocity script macro.

Regards,

Arnaud.

 Arnaud.

 Thanks,
 Anca


 Thanks,
 Marius


 I suppose that I should not used doc to find current document in macro.
 But I don't find in
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
 how to retrieved current document.
 I also test xcontext.doc, but it is same as doc.

 So how can find current document (the document which call my macro)?

 Regards,

 Arnaud.
 ___
 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] Command line deployment of XAR archives

2010-10-01 Thread Arnaud bourree
2010/10/1 Max publicxw...@itfor.it:
 Hi all,
 I need to import upgraded XAR archives in xwiki on many Linux servers running 
 an integrated system we made with liferay, zimbra, alfresco and of course 
 xwiki. Importing them via web interface it is quite time comsuming and web 
 ports are not always easily reachable.
 I looked for a way to import the XARs from command line but i haven't figured 
 out how to do that, could you suggest me how to do that?
 I think I can't reach my goal with shell scripting, xwiki preferences/import 
 page scraping and curl posting because authentication is centrally managed by 
 CAS and it needs client-side javascript to succeed.
 I could use a method like the one described at:

 http://code.xwiki.org/xwiki/bin/view/Snippets/LargeXARImportScriptSnippet

 by defining a local directory on the server where to deploy the XARs and then 
 running a macro that gets the file list and imports them, but doing all from 
 the shell would be better.

 Any help would be very appreciated, thanks in advance!

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


Hello,

You can used curl.
Here it is script I made to export page with same name as in xar file

#!/bin/bash
XWIKI_BASE_URL=http://localhost:8080

if [[ $# -ne 2 ]]; then
echo usage $0 login password
exit 1
fi

EXPORT_XAR=?format=xarname=Current
for page in `jar tvf xwiki-enterprise-wiki-2.2.3.xar | sed -ne
/\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1.\2/ p}`; do
EXPORT_XAR=${EXPORT_XAR}pages=${page}
done

curl -b cookies.txt -c cookies.txt
-dj_username=$1j_password=$2j_rememberme=truesubmit=Log-in
${XWIKI_BASE_URL}/xwiki/bin/loginsubmit/XWiki/XWikiLogin
curl -b cookies.txt -c cookies.txt
${XWIKI_BASE_URL}/xwiki/bin/export/Main/WebHome${EXPORT_XAR} -o
Current.xar

Regards,

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


Re: [xwiki-users] nested types

2010-09-17 Thread Arnaud bourree
2010/9/16  tra...@archive.org:
 Hi XWiki people,

 I need a semantic way to edit xml data. This is a project that could consume
 a very large portion of my future time, but in the near term I'm looking for a
 way to get this typed data into a wiki format so that the object graph can be
 clicked through and offsite links can be managed.

 First, I need to be able to have nested types. That is, a class has a field,
 the type for which is a class I have defined elsewhere. I don't see a way to
 do this in XWiki. Am I missing something? Seems like a typing system is
 incomplete without being able to have classes have attributes of defined
 types.

 Travis

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


Hi

Sould be what you search:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel

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


Re: [xwiki-users] User directory

2010-05-18 Thread Arnaud bourree
2010/5/18 Ben Stuggler bobbywaxkil...@gmail.com:

 Hi,

 I would like to create a directory of users (with name, phone and email) who
 are in a specific group but I'm not comfortable with query. Is there anybody
 who have already work on a thing like this?

 To avoid temporally the problem, I thought add a tag on the concerned users,
 like this we can have a list of the user and go on the profile page, but
 XWiki has to be blacklisted, so it's doesn't work for usual user.

 Thanks

 Regard

 Ben

 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/User-directory-tp5069225p5069225.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


You can try the following groovy code
{{groovy}}
for(du in xwiki.search(select doc from XWikiDocument doc, BaseObject
obj where obj.name = doc.fullName and obj.className =
'XWiki.XWikiUsers' and doc.fullName  'XWiki.Admin' order by
doc.fullName)) {
   u = xwiki.getDocument(du.fullName)
   if (!u.isUserInGroup('mygroup')) continue
 print [[+u+]] fn=+u.first_name+ ln=+u.last_name+ +u.email+ ;
}
{{/groovy}}

Hop that help you

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


Re: [xwiki-users] Toolbar while in Edit mode on Blogs

2010-05-06 Thread Arnaud bourree
2010/5/6 Ziggy zigg...@gmail.com:
 When creating or editing a blog i cant see the toolbar icons on the editor
 window. Is there a way to enable this? And also, how do i write a link on a
 blog that points to a wiki article?
 I tried this [[SRxxx-5SRxxx-5||title=SRxxx-5]]  but it cant find the
 wiki article SRxxx-5 even though it does exist. so when i click on the link
 it creates a new article even though it exists.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


Hello,

Does your source page in same space as you blog article?
If not you need to add space in link like this [[Blog.SRxxx-5]]

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


Re: [xwiki-users] [xwiki-devs] [Proposal] Selective Export UI

2010-04-29 Thread Arnaud bourree
2010/4/28 Guillaume Lerouge guilla...@xwiki.com:
 Hi,

 On Wed, Apr 28, 2010 at 20:15, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 04/28/2010 06:46 PM, Guillaume Lerouge wrote:
  I'm strongly against the way the treeview works right now. Nobody
  understands the mix of space and parent/child relationship. I'd KISS it,
  keeping only the space/page relationship.


 http://en.wikipedia.org/wiki/KISS_principle


 One idea: ghost symlinks.


 The KISS principle states that
 simplicityhttp://en.wikipedia.org/wiki/Simplicityshould be a key
 goal in
 design http://en.wikipedia.org/wiki/Design, and that unnecessary
 complexity should be avoided. Ghost symlinks?

 - how does the treeview thing work?
 - well, it's easy, just click the ghost symlink below that other page and
 the whole thing will start scrolling to get you somewhere different from
 where you were located
 - oh


 [s] Main
     - [p] WebHome
     - [p^] /Blog . WebHome/
            - [p] Great news!
                  - [p] BigClient contract
                  - [p] BigClient project description
            - [p] More great news!
 [s] Blog
     - [p] WebHome
           - [p] Meet Joe Dyke, our new CTO
           - [p^] /Main . Great news!/
           - [p^] /Main . More great news!/

 [s] is the space icon, [p] is the page icon, [p^] is the page icon with
 the shortcut overlay. The ghost documents are written in italic with a
 lighter color, and clicking on such a symlink will show the real
 document, by expanding the tree to it, scroll it into view (with
 anymation), and select it.

 Note that in the Main space the other children of the Blog.WebHome page
 are not displayed, and in the Blog space the deeper hierarchy of the
 external documents is not shown

 WDYT?

 Of course, this as a better UI for the alldocs/tree view; the export UI
 should could keep just the space/docs two-level hierarchy.


 I think the same, simple, understandable, Space / Page hierarchy should be
 used everywhere.

 An alternative is what we do for WebDAV and provide 2 different interfaces:
 EITHER space/page OR parents/children but never a mix of both.

Or may be never follow symlinks.

Personally, I like the idea to show that one space I want to export
have dependencies on other space. With symlinks display I can decide
or not to add other space to my export.

Arnaud.


 Guillaume


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




 --
 Guillaume Lerouge
 Product Manager - XWiki SAS
 Skype: wikibc
 Twitter: glerouge
 http://guillaumelerouge.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


Re: [xwiki-users] Formula Macro - rendering methods

2010-04-28 Thread Arnaud bourree
I think is not Google Charts maximum formula length limit but HTTP GET limit.
Try in HTTP POST

Arnaud.

2010/4/28 Marine JULIAN marine.jul...@gmail.com:

 Hi Arnaud,

 Thanks for your answer.
 I tried directly with Google Charts and, indeed, I had the same error. So,
 the issue is not owing to xwiki but to Google Charts. In fact, I discovered
 that Google Charts has a maximum formula length of 200 characters. Perhaps
 someone could add it to the documentation of Formula Macro. Because, when we
 exceed this maximum with {formula} macro, nothing tells us that we switch on
 SnuggleTex renderer.

 Marine.

 Hello,

 I known nothing about Tex, but did you try your formula directly with
 Google Charts with some tools like curl or made a test page based on
 http://code.google.com/intl/fr/apis/chart/docs/post_requests.html
 When you are able to made it directly, then you can retry with {formula}
 macro.

 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Formula-Macro-rendering-methods-tp4906580p4973594.html
 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


Re: [xwiki-users] Formula Macro - rendering methods

2010-04-27 Thread Arnaud bourree
Hello,

I known nothing about Tex, but did you try your formula directly with
Google Charts with some tools like curl or made a test page based on
http://code.google.com/intl/fr/apis/chart/docs/post_requests.html
When you are able to made it directly, then you can retry with {formula} macro.

Arnaud.

2010/4/27 Marine JULIAN marine.jul...@gmail.com:
 Hello everybody !

 Sorry to send it again but I really need to know if there is a way to
 resolve either the googlecharts renderer issue or my native renderer
 problem...
 I'm working on xwiki for a french scientist research lab which needs to be
 able to render formulas (equations, matrics...) in wiki pages (for some
 research papers). If I won't find a solution, I will regret to have to stop
 to work on xwiki and find an other wiki... Though, until now, xwiki was
 perfect for us...
 This, I'll be very grateful to someone for looking at my issues and so for
 helping me !!

 Marine

 2010/4/23 Marine JULIAN marine.jul...@gmail.com

 Hello,

 As I didn't find a solution about my native renderer problem issue, so I
 tried the google charts API one. Unfortunatly, when I write more than a
 certain number (not too many) of characters in formula tags, I have an
 error. Instead of using the google charts renderer, the snuggletex one is
 used...
 For instance when I wrote this simple code :
 {{formula}}
 11\\
 11\\
 11\\
 11\\
 11\\
 11\\
 11\\
 11
 {{/formula}}
 All break lines (\\) weren't rendered. But ! If I write only the four first
 lines, all is fine.
 Is this a know issue ? What can I do ?

 Last question :    : When my wiki is local, can it make external HTTP ?
 Because, When I want to use the mathtran renderer I have this error :
 2010-04-23 15:49:26,238 [
 http://localhost:8080/xwiki/bin/tex/Public/FormulaMacro
 Again/440bdc8f8001d9d387dbb95e1f1328998c35678a03e22bbf8eb747dc9de8a34d]
 ERROR web.XWikiAction                 - Connection aborted


 See Google Charts renderer error lines :
  2010-04-23 12:04:37,463 [
 http://localhost:8080/xwiki/bin/view/Public/FormulaMacroAgain] ERROR
 formula.FormulaMacro
 - Invalid renderer: [googlecharts]. Falling back to the safe
 renderer.org.xwiki.component.manager.ComponentLookupException:
 Failed to render formula using [googlecharts] renderer
         at
 org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
         at
 org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:112)
         at
 org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:57)
         at
 org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
         at
 org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
         at
 org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
         at
 com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5696)
         at
 com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671)
         at
 com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:626)
         at
 com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:595)
         at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:497)
         at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
         at
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
         at
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
         at
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
         at
 org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
         at
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
         at
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
         at
 org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
         at
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
         at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710)
         at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631)
         at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:123)
         at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
 

Re: [xwiki-users] Duplicates URL

2010-04-23 Thread Arnaud bourree
What's about renaming deployed war to xwiki and not
xwiki-enterprise-web-2.4-20100422.100532-35 ?

Arnaud.

2010/4/23 Lunita hoshi.uts...@gmail.com:
 HI,

 I have this issue with the installation of xwiki 2.4. I 've tried with
 previous versions, but the result it's the same; the URL is duplicated:

 http://$server/xwiki-enterprise-web-2.4-20100422.100532-35http://
 $server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin?srid=Inpt8Uqd

 If I delete the first part
 (http://$server/xwiki-enterprise-web-2.4-20100422.100532-35)
 the connection is OK, but for further movements into de wiki, it turns
 duplicate URL again and shows this tomcat message:

 HTTP 404 - /xwiki-enterprise-web-2.4-20100422.100532-35http://
 $server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin

 I have revised hibernate.xml, xwiki.xml and web.xml. Also, if I replace the
 conf. files with the 2.2 version conf, files, the error persists although
 the version 2.2 is running OK. There's no error on Tomcat Logs, only
 database sentences.

 Thanks in advance.
 ___
 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] How to add menu item in Space menu?

2010-04-21 Thread Arnaud bourree
Hello,

I would like to add rename and export items in Space menu.
How could I add new menu item in Space menu?

Regards,

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


Re: [xwiki-users] How to add menu item in Space menu?

2010-04-21 Thread Arnaud bourree
Thanks for your response.

I used XWiki 2.2.3 and don't want to damage my install, so I add
menuview.vm TextArea in my skin as decribed here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HDOverridingtheSkincomponents
And fill it with my local menuview.vm without any change.
= I goes like XWiki 2.1.x version with only one top menu.
I finaly update menuview.vm (change one item string in menu)
= I goes like XWiki 2.1.x version with only one top menu.

What goes wrong?

Arnaud

2010/4/21 Ecaterina Valica vali...@gmail.com:
 See
 http://svn.xwiki.org/svnroot/xwiki/platform/skins/trunk/colibri/src/main/resources/colibri/menuview.vm

 Rename action and export items can be taken from
 http://svn.xwiki.org/svnroot/xwiki/platform/skins/trunk/colibri/src/main/resources/colibri/contentmenu.vm

 On Wed, Apr 21, 2010 at 15:23, Arnaud bourree arnaud.bour...@gmail.comwrote:

 Hello,

 I would like to add rename and export items in Space menu.
 How could I add new menu item in Space menu?

 Regards,

 Arnaud.
 ___
 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] How to add menu item in Space menu?

2010-04-21 Thread Arnaud bourree
Thanks that works now.

Arnaud.

2010/4/21 Guillaume Lerouge guilla...@xwiki.com:
 Hi,

 On Wed, Apr 21, 2010 at 17:33, Arnaud bourree arnaud.bour...@gmail.comwrote:

 Thanks for your response.

 I used XWiki 2.2.3 and don't want to damage my install, so I add
 menuview.vm TextArea in my skin as decribed here:

 http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HDOverridingtheSkincomponents
 And fill it with my local menuview.vm without any change.
 = I goes like XWiki 2.1.x version with only one top menu.
 I finaly update menuview.vm (change one item string in menu)
 = I goes like XWiki 2.1.x version with only one top menu.


 Use skins/colibri/menuview.vm instead of templates/menuview.vm

 Guillaume


 What goes wrong?

 Arnaud

 2010/4/21 Ecaterina Valica vali...@gmail.com:
  See
 
 http://svn.xwiki.org/svnroot/xwiki/platform/skins/trunk/colibri/src/main/resources/colibri/menuview.vm
 
  Rename action and export items can be taken from
 
 http://svn.xwiki.org/svnroot/xwiki/platform/skins/trunk/colibri/src/main/resources/colibri/contentmenu.vm
 
  On Wed, Apr 21, 2010 at 15:23, Arnaud bourree arnaud.bour...@gmail.com
 wrote:
 
  Hello,
 
  I would like to add rename and export items in Space menu.
  How could I add new menu item in Space menu?
 
  Regards,
 
  Arnaud.
  ___
  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




 --
 Guillaume Lerouge
 Product Manager - XWiki SAS
 Skype: wikibc
 Twitter: glerouge
 http://guillaumelerouge.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


Re: [xwiki-users] How does WatchListRss identify the user to deliver the feed specific to a given user

2010-02-12 Thread Arnaud bourree
Thunderbird cannot fetch feed which required authentication

Arnaud.

2010/2/11 Milind Kamble mbk...@yahoo.com:
 Hi. I am trying to understand and use RSS feed to watch the Main space and 
 few specific pages in another space on our XWiki installation (version 2.1).

 I am using Thunderbird as my RSS reader since I already use it for reading a 
 bunch of other RSS feeds.
 I am unable to get any meaningful feed when I enter the URL provided in the 
 WatchListManager page (which is something like 
 hostname/xwiki/bin/view/XWiki/WatchListRss?xpage=plainoutputSyntax=plain 
 into Thunderbird.

 To investigate the feed returned by the above URL, when I viewed the URL in 
 Firefox (and I have authenticated with the XWiki in another tab), I see the 
 correct list of feed items, but when I view the URL in Firefox as an 
 unauthenticated user, the feed list is empty. So obviously user information 
 is being passed to WatchListRss somehow.

 The question is how do I authenticate as a specific user when using 
 standalone or feed readers such as Thunderbird or Outlook-2007?
 Does the feed URL have to be modified in any way?


 Thanks,
 Milind




 ___
 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] {{script jars=attach:some.jar}}

2010-02-12 Thread Arnaud bourree
Hello,

In ScriptMacro parameters description
http://code.xwiki.org/xwiki/bin/view/Macros/ScriptMacro#HSpecifyingextraJARs
It write that we can attach a jar in page and add it to classpath with
jars parameter
{{script jars=attach:some.jar}}

When I do that, my page is never displayed: my browser waits and waits
page content
I try also
{{script jars=http://host/xwiki/bin/download/space/page/some.jar}}
Then I have the following error:
Failed to execute macro: script

java.lang.NoClassDefFoundError: Could not initialize class
sun.net.www.protocol.http.HttpURLConnection
at sun.net.www.protocol.http.Handler.openConnection(Handler.java:44)
at sun.net.www.protocol.http.Handler.openConnection(Handler.java:39)
at java.net.URL.openConnection(URL.java:945)
at 
org.xwiki.classloader.internal.protocol.jar.JarURLConnection.getPermission(JarURLConnection.java:114)
at 
org.xwiki.classloader.internal.ResourceLoader$JarInfo.getJarFileIfPossiblyContains(ResourceLoader.java:533)
at 
org.xwiki.classloader.internal.ResourceLoader$JarInfo.getResource(ResourceLoader.java:429)
at 
org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:356)
at 
org.xwiki.classloader.internal.ResourceLoader.access$400(ResourceLoader.java:89)
at 
org.xwiki.classloader.internal.ResourceLoader$ResourceEnumeration.fetchNext(ResourceLoader.java:811)
at 
org.xwiki.classloader.internal.ResourceLoader$ResourceEnumeration.hasMoreElements(ResourceLoader.java:792)
at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)
at 
sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)
at sun.misc.Service$LazyIterator.hasNext(Service.java:255)
at 
javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:107)
at 
javax.script.ScriptEngineManager.access$000(ScriptEngineManager.java:37)
at javax.script.ScriptEngineManager$1.run(ScriptEngineManager.java:80)
at java.security.AccessController.doPrivileged(Native Method)
at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:78)
at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:51)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.getScriptEngine(AbstractJSR223ScriptMacro.java:239)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:181)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:50)
at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:200)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:137)
at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:50)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5586)
at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5561)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:557)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 

Re: [xwiki-users] SVG Macro difficulties

2010-02-12 Thread Arnaud bourree
Jeremie,

Import ModalBoxApplication:
http://code.xwiki.org/xwiki/bin/view/Applications/ModalBoxApplication
And then you will able to edit SVG

Arnaud.

2010/2/8 Jeremie BOUSQUET jeremie.bousq...@gmail.com:
 Hi,

 I imported the new SVG macro that seems quite nice, but have some
 difficulties with edition ...

 Page XWiki.SVGMacro displays correctly the SVG, but edit button just fails
 to do anything. In Firebug, I could find that it complains about ModalBox
 is not defined.
 This is strange as a link is present is the html source on ModalBox :

 link rel='stylesheet' type='text/css'
 href='/xwiki/bin/ssx/XWiki/ModalBox?language=en
 view-source:http://varsovie:8084/xwiki/bin/ssx/XWiki/ModalBox?language=en'/


 If I follow the link to this ModalBox ssx in the firefox source view, it
 shows well, but if I put same link in the browser url it just fails and
 shows page does not exist.

 I'm using it with XE 2.0.3,

 Best regards,
 Jeremie
 ___
 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] {{script jars=attach:some.jar}}

2010-02-12 Thread Arnaud bourree
Hello,

In ScriptMacro parameters description
http://code.xwiki.org/xwiki/bin/view/Macros/ScriptMacro#HSpecifyingextraJARs
It write that we can attach a jar in page and add it to classpath with
jars parameter
{{script jars=attach:some.jar}}

When I do that, my page is never displayed: my browser waits and waits
page content
I try also
{{script jars=http://host/xwiki/bin/download/space/page/some.jar}}
Then I have the following error:
Failed to execute macro: script

java.lang.NoClassDefFoundError: Could not initialize class
sun.net.www.protocol.http.HttpURLConnection
       at sun.net.www.protocol.http.Handler.openConnection(Handler.java:44)
       at sun.net.www.protocol.http.Handler.openConnection(Handler.java:39)
       at java.net.URL.openConnection(URL.java:945)
       at 
org.xwiki.classloader.internal.protocol.jar.JarURLConnection.getPermission(JarURLConnection.java:114)
       at 
org.xwiki.classloader.internal.ResourceLoader$JarInfo.getJarFileIfPossiblyContains(ResourceLoader.java:533)
       at 
org.xwiki.classloader.internal.ResourceLoader$JarInfo.getResource(ResourceLoader.java:429)
       at 
org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:356)
       at 
org.xwiki.classloader.internal.ResourceLoader.access$400(ResourceLoader.java:89)
       at 
org.xwiki.classloader.internal.ResourceLoader$ResourceEnumeration.fetchNext(ResourceLoader.java:811)
       at 
org.xwiki.classloader.internal.ResourceLoader$ResourceEnumeration.hasMoreElements(ResourceLoader.java:792)
       at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)
       at 
sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)
       at sun.misc.Service$LazyIterator.hasNext(Service.java:255)
       at 
javax.script.ScriptEngineManager.initEngines(ScriptEngineManager.java:107)
       at 
javax.script.ScriptEngineManager.access$000(ScriptEngineManager.java:37)
       at javax.script.ScriptEngineManager$1.run(ScriptEngineManager.java:80)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:78)
       at javax.script.ScriptEngineManager.init(ScriptEngineManager.java:51)
       at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.getScriptEngine(AbstractJSR223ScriptMacro.java:239)
       at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:181)
       at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:50)
       at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:200)
       at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:137)
       at 
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:50)
       at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
       at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
       at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
       at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5586)
       at 
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5561)
       at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:557)
       at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
       at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
       at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
       at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
       at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
       at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
       at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
       at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
       at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
       at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
       at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
       at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
       at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
    

[xwiki-users] yUML macro type parameter is mandatory

2010-02-10 Thread Arnaud bourree
Hello,

I love yUML idea.
I start to used within yUML macro and I just failed on a bug:
In a page I put 2 UML diagrams, one use case diagram and one class diagram.
For class diagram I don't set type parameter as is it class by default.
I start to write class diagram: it is correctly generated
Then I add before shit class diagram a use case diagram: it is also
correctly generated.
But following class diagram becomes use case diagram

The work around was to add type parameter on my class diagram.

Regards,

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


Re: [xwiki-users] Problems with links

2010-01-21 Thread Arnaud bourree
2nd link could be replaced by [[Benutzeranmeldung am
WebClientCSC_AfTD_Hilfe.BenutzeranmeldungAmWebClient]]

Arnaud

2010/1/21 ndreher norb...@dreher-online.info:

 Hello,
 sometimes after inserting Links in the WYSIWYG-Editor and saving the
 Document,
 mistakes occur on the site.

 Example before:
 Nach einer korrekten [[Benutzeranmeldung am
 WebClientBenutzeranmeldungAmWebClient]] einschließlich einer
 Autorisierungsprozedur hat der ...

 Example with mistake:
 Nach einer korrekten
 org.xwiki.gwt.dom.client.Element#placeholder[[BenutzeranmeldungAmWebClient]][[#x3e;Benutzeranmeldung
 am WebClient/xwiki/bin/view/CSC_AfTD_Hilfe/BenutzeranmeldungAmWebClient]]
 einschließlich einer Autorisierungsprozedur hat der ...

 I hope that you can help me soon.
 Looking forward to your reply.

 Best wishes
 Norbert
 [Germany]

 --
 View this message in context: 
 http://n2.nabble.com/Problems-with-links-tp4435123p4435123.html
 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


Re: [xwiki-users] Email notifications and security

2010-01-20 Thread Arnaud bourree
Hello

2010/1/20 Sergiu Dumitriu ser...@xwiki.com:
 On 01/20/2010 12:34 PM, Thomas Mortagne wrote:
 On Wed, Jan 20, 2010 at 12:01, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com  wrote:
 Ok thanks, for the issue I will, but I want to check before that it's the
 case on a fresh 2.1.1 install (because mine is the result of numerous
 migrations, and I never re-imported the preferences page, so maybe it has
 been corrected meanwhile in xwiki).

 Note that i think it's possible you can change it yourself in the
 class even if it's not yet fixed in standard (which I doubt).

 Go to the preference class editor
 (/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class), rename the
 current smtp_server_password field and create a new one as
 smtp_server_password but this time using Password as TYPE. Then you
 should have a password field where you can put your password for SMTP.

 Very important: the storage type for this field MUST be clear, since
 otherwise the mailsender won't be able to read the password.

Could the mailsender used targeted user credencial or
smtp_server_user/password properties in targeted user object?

Arnaud.

 --
 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] error on First time run. Need your help badly!

2010-01-14 Thread Arnaud bourree
Could I suggest to you to not put xwiki-enterprise-web-2.X.X.war in
webapps folder of tomcat but to unjar it in webapps/xwiki

So URL became http://secure10.olemiss.edu/xwiki/bin/view/Main/

Arnaud.

2010/1/12 jackyork sund...@gmail.com:

 I think I have received a reply and the reply was right about my situation.
 But I don't know where the reply has gone.

 For later users: The reply mentioned that it might be a problem of Beautily
 (or something like this) version. XE2.1.1 needs the latest version. I would
 say this is right though I am not sure. My solution is: I uninstalled
 XE2.1.1 and then installed XE2.0.5. Nothing else was changed and it worked!


 jackyork wrote:

 Need your help bady! I just finished installation of XE 2.1.1.
 Mysql5.x + tomcat5.x + linux(unknown, may be unix)

 Error info:

 javax.servlet.ServletException: Servlet execution threw an exception

 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
         com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)

 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)

 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)


 root cause

 java.lang.NoSuchFieldError: fFeatures

 org.apache.xerces.parsers.XML11NonValidatingConfiguration.init(Unknown
 Source)

 org.apache.xerces.parsers.XML11NonValidatingConfiguration.init(Unknown
 Source)
         sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)

 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         java.lang.Class.newInstance0(Class.java:350)
         java.lang.Class.newInstance(Class.java:303)

 org.xwiki.xml.internal.DefaultXMLReaderFactory.createXMLReader(DefaultXMLReaderFactory.java:81)

 org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiXMLReaderFactory.createXMLReader(XWikiXMLReaderFactory.java:49)

 org.xwiki.rendering.internal.parser.WikiModelXHTMLParser.createWikiModelParser(WikiModelXHTMLParser.java:143)

 org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:132)

 org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97)

 org.xwiki.rendering.internal.parser.WikiModelHTMLParser.parse(WikiModelHTMLParser.java:67)

 com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:5738)

 com.xpn.xwiki.doc.XWikiDocument.getRenderedTitle(XWikiDocument.java:843)
         com.xpn.xwiki.plugin.lucene.IndexData.init(IndexData.java:72)

 com.xpn.xwiki.plugin.lucene.DocumentData.init(DocumentData.java:52)

 com.xpn.xwiki.plugin.lucene.IndexUpdater.add(IndexUpdater.java:320)

 com.xpn.xwiki.plugin.lucene.IndexUpdater.onEvent(IndexUpdater.java:408)

 org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)

 org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243)
         com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1346)
         com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1287)
         com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1282)
         com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3062)
         com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:790)
         com.xpn.xwiki.XWiki.initXWiki(XWiki.java:761)
         com.xpn.xwiki.XWiki.init(XWiki.java:684)
         com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:321)
         com.xpn.xwiki.XWiki.getXWiki(XWiki.java:402)
         com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
         com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)

 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)

 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)

 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
         com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)

 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)

 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)

 This is my page:
 http://secure10.olemiss.edu/xwiki-enterprise-web-2.1.1/bin/view/Main/

 Before I installed it on our web server, I made a local installation. It
 worked well. 

Re: [xwiki-users] Migrate to Mysql

2010-01-11 Thread Arnaud bourree
ERROR 2006 (HY000) at line 1: MySQL server has gone away =
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
Check if max_allowed_packet=32M in my.cnf =
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

Arnaud

2010/1/11 Aplamon djohans...@haascnc.com:

 I tried opening the file as zip and yes, it is broken. I also tried importing 
 the database script file but it just seems to die after a w while, I must be 
 doing it wrong:
 mysql -u xwiki -p xwiki  xwiki_db.sql
 Enter password: *
 ERROR 2006 (HY000) at line 1: MySQL server has gone away

 The export tool dies at 6mb and in the log the following is recorded:
 2010-01-11 08:47:51,935 
 [http://dbaierxpa:8080/xwiki/bin/export/XWiki/Export?editor=globaladminsection=Export]
  INFO  .AbstractXWikiMigrationManager  - No storage migration required since 
 current version is [15429]
 2010-01-11 08:48:08,326 
 [http://dbaierxpa:8080/xwiki/bin/export/XWiki/Export?editor=globaladminsection=Export]
  WARN  web.XWikiAction                 - Uncaught exception: Error number 0 
 in 11: Uncaught exception
 Wrapped Exception: Java heap space
 com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
 Wrapped Exception: Java heap space
            at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
            at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
 ...
 Wrapped Exception:
 java.lang.OutOfMemoryError: Java heap space
            at java.util.Arrays.copyOf(Unknown Source)
            at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
            at java.lang.AbstractStringBuilder.append(Unknown Source)
            at java.lang.StringBuffer.append(Unknown Source)
 ...

 I run a jetty service, with setting
 wrapper.java.maxmemory=256
 so it seems weird that it would run out of memory?

 Also, I know little about servlet containers, are there any benefits of 
 migrate to tomcat over jetty?

 daniel


 
 From: tmortagne [via XWiki] [mailto:ml-node+4279359-1043483...@n2.nabble.com]
 Sent: Saturday, January 09, 2010 2:50 PM
 To: Daniel Johansson
 Subject: Re: [xwiki-users] Migrate to Mysql

 On Sat, Jan 9, 2010 at 02:19, Aplamon [hidden 
 email]http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=4279359i=0 
 wrote:

 I have been using the standalone package (2.04) for some time and now our
 wiki is starting to grow. So I wanted to migrate over to a Mysql database. I
 have setup the default wiki in Mysql, that works. Now I want to move over
 all the content. I thought I could just export a xar file and then import it
 into my Mysql instance. But first off the xar file is only like 6megs big
 and second when I try to import it the tool says there are no documents in
 it.

 Could you check if the generated xar is valid ? It's supposed to be a
 zip file containing each page as XML files, you can simply rename it
 to file.zip to open it.

 The is some issues to export/import big wikis in the default
 distribution, we are working on it. In the meantime you can use
 http://code.xwiki.org/xwiki/bin/view/Snippets/LargeWikiExportSnippet
 (first script) and
 http://code.xwiki.org/xwiki/bin/view/Snippets/LargeXARImportScriptSnippet


 Also, are attachment exported? We have a few rather large files as
 attachments so 6 megs seems really small.

 Yes attachments are exported.


 Thank you
 Daniel
 --
 View this message in context: 
 http://n2.nabble.com/Migrate-to-Mysql-tp4275838p4275838.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 [hidden 
 email]http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=4279359i=1
 http://lists.xwiki.org/mailman/listinfo/users




 --
 Thomas Mortagne
 ___
 users mailing list
 [hidden 
 email]http://n2.nabble.com/user/SendEmail.jtp?type=nodenode=4279359i=2
 http://lists.xwiki.org/mailman/listinfo/users

 
 View message @ http://n2.nabble.com/Migrate-to-Mysql-tp4275838p4279359.html
 To unsubscribe from Migrate to Mysql, click here (link removed) .


 --
 View this message in context: 
 http://n2.nabble.com/Migrate-to-Mysql-tp4275838p4286620.html
 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


Re: [xwiki-users] Xwiki attachements

2010-01-09 Thread Arnaud bourree
I like Restfull API
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
Depends of your other tool capabilities

Arnaud.

2010/1/8 Ziggy zigg...@gmail.com:
 Ok i will look into this WEBDAV option. If anyone has more suggestions
 please do let me know.

 Thanks

 On Fri, Jan 8, 2010 at 3:08 AM, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 01/07/2010 06:12 PM, Ziggy wrote:
  HI,
 
  Could you give me some more information on where xwiki attachements are
  stored and how i can access them directly. I just attached a file to a
 wiki
  page but i havent got a clue where that files is saved in the filesystem.
  And most importantly how can i access it?
 
  The reason i ask is i want to use another tool to have access to that
 same
  file. If i know where in teh filesystem it is it would be usefull.

 You could access the files through WebDAV, see
 http://platform.xwiki.org/xwiki/bin/view/Features/WebDAV

 --
 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] Migrate to Mysql

2010-01-09 Thread Arnaud bourree
Standalone XWiki used Hsqldb.
Find file .script, rename it .sql and run it in MySql.

Arnaud.

2010/1/9 Aplamon djohans...@haascnc.com:

 I have been using the standalone package (2.04) for some time and now our
 wiki is starting to grow. So I wanted to migrate over to a Mysql database. I
 have setup the default wiki in Mysql, that works. Now I want to move over
 all the content. I thought I could just export a xar file and then import it
 into my Mysql instance. But first off the xar file is only like 6megs big
 and second when I try to import it the tool says there are no documents in
 it.

 Also, are attachment exported? We have a few rather large files as
 attachments so 6 megs seems really small.

 Thank you
 Daniel
 --
 View this message in context: 
 http://n2.nabble.com/Migrate-to-Mysql-tp4275838p4275838.html
 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


Re: [xwiki-users] Link to a file in local file system

2010-01-09 Thread Arnaud bourree
If you limit browser list to IE, you can used URL like
file://C:/somewehre/somefile.doc
Or else store your file file in webapps/xwiki but not in WEB-INF folder

Arnaud

2010/1/9 Ziggy zigg...@gmail.com:
 Hi,

 Isnt there a way to link to a file on the local file system? I tried using
 both the WYSIWYG editor and the creole syntax and both dont work. I know i
 can link to an attachment but thats not what i want. I want to add a
 hyperlink to a document that links to a file that is somewhere on the C:
 drive. Is this possible?

 Im using the latest version of xwiki downloaded yesterday.

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

2010-01-07 Thread Arnaud bourree
If you add in MySpace.MyPage
(http://myhost/xwiki/bin/view/MySpace/MyPage) an attachment MyFile you
can retreived it at
http://myhost/xwiki/bin/download/MySpace/MyPage/MyFile

But attachment are not stored in file system but in database.

Arnaud.

2010/1/7 Ziggy zigg...@gmail.com:
 HI,

 Could you give me some more information on where xwiki attachements are
 stored and how i can access them directly. I just attached a file to a wiki
 page but i havent got a clue where that files is saved in the filesystem.
 And most importantly how can i access it?

 The reason i ask is i want to use another tool to have access to that same
 file. If i know where in teh filesystem it is it would be usefull.

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

2010-01-07 Thread Arnaud bourree
Yes all attachment are stored in xwiki.xwikiattachment_content table
in a blob what ever there are text files or binary files.

Arnaud.

2010/1/7 Ziggy zigg...@gmail.com:
 Hi,

 How are they stored in the database? Can i retrieve them from the database?
 e.g. microsoft word file?
 Does that mean that the database also includes binary files?

 Thanks



 On Thu, Jan 7, 2010 at 8:23 PM, Arnaud bourree 
 arnaud.bour...@gmail.comwrote:

 If you add in MySpace.MyPage
 (http://myhost/xwiki/bin/view/MySpace/MyPage) an attachment MyFile you
 can retreived it at
 http://myhost/xwiki/bin/download/MySpace/MyPage/MyFile

 But attachment are not stored in file system but in database.

 Arnaud.

 2010/1/7 Ziggy zigg...@gmail.com:
  HI,
 
  Could you give me some more information on where xwiki attachements are
  stored and how i can access them directly. I just attached a file to a
 wiki
  page but i havent got a clue where that files is saved in the filesystem.
  And most importantly how can i access it?
 
  The reason i ask is i want to use another tool to have access to that
 same
  file. If i know where in teh filesystem it is it would be usefull.
 
  Thanks
  ___
  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] Message: FAIL - Application at context path /xwiki could not be started

2010-01-03 Thread Arnaud bourree
org.xml.sax.SAXParseException: The content of element type session-factory
must match
(property*,mapping*,(class-cache|collection-cache)*,event*,listener*).

Check that your hybernate.cfg.xml follow this rule.

Arnaud.

2010/1/3 maurizio1230 maurizio_amo...@alice.it:

 Thank you very much for your reply, Sergiu!
 This is my mysql configuration on hibernate.cfg.xml (naturally uncommented):

  !-- MySQL configuration.
         Uncomment if you want to use MySQL and comment out other database
 configurations.
         We need to set the sql_mode to a less strict value, see XWIKI-1945
    --
    property
 name=connection.urljdbc:mysql://localhost/mathsinvent?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property
    property name=connection.usernamemyusername/property
    property name=connection.passwordmypass/property
    property
 name=connection.driver_classcom.mysql.jdbc.Driver/property
    property name=dialectorg.hibernate.dialect.MySQLDialect/property
    property
 name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
    property name=connection.pool_size2/property
    property name=statement_cache.size2/property
    mapping resource=xwiki.hbm.xml/
    mapping resource=feeds.hbm.xml/
    mapping resource=activitystream.hbm.xml/

 And this is Full log:
 03-Jan-2010 14:49:31 org.apache.catalina.core.StandardWrapperValve invoke
 SEVERE: Servlet.service() for servlet action threw exception
 com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main
 XWiki context
 Wrapped Exception: Error number 3001 in 3: Cannot load class
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from
 param xwiki.store.migration.manager.class
 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
 Wrapped Exception: invalid configuration
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:341)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:402)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
        at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
 

Re: [xwiki-users] Registered Users

2010-01-02 Thread Arnaud bourree
$xwiki.getDocument('XWiki.'+username)

2010/1/2 J. Allen Q. Santos jqsan...@msn.com:
 Hi!

 Given a username, how do I know if a user with that username is already
 registered? Is there a way to check, say isUserRegistered(username) or
 User.isUserRegistered()?

 Thank you very much.

 -Allen


 By the way, HAPPY NEW YEAR!
 ___
 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] How can I upgrade XWIKI from an older Version?

2010-01-01 Thread Arnaud bourree
I just updated FAQ page with this mail content.
Fell free to update it.

Arnaud.

2009/12/29 Arnaud bourree arnaud.bour...@gmail.com:
 Hello,

 I've XWiki 2.0rc2 instance and I want to update to 2.0.5 version.
 I find empty FAQ here:
 http://www.xwiki.org/xwiki/bin/view/FAQ/WhoCanIUpdateXWIKIFromAnOlderVersion
 I'd like to update it on myself experience.
 But before I've one question at the end of my email on xar import.

 1st/ re-deploy war (easy part)
 By chance we didn't update any files excepted xwiki.cfg and hibernate.cfg.xml.
 So I did the following:
   - zip current webapp/xwiki folder
   - remove webapp/xwiki folder
   - deploy xwiki-enterprise-web-2.0.5.war in webapp/xwiki
   - report my old xwiki.cfg and hibernate.cfg.xml configuration to the new one

 2nd/ import xar (difficulties start here)
 First, I import the full xar without any question: whao, everything is broken.
 Do not forget to backup your database before upgrade!
 After restoration, I decide to write a small script based on curl to
 export same xar as the one I want to import:

 #!/bin/bash
 XWIKI_BASE_URL=http://localhost:8080
 if [[ $# -ne 2 ]]; then
    echo usage $0 login password
    exit 1
 fi
 EXPORT_XAR=?format=xarname=Current
 for page in `jar tvf xwiki-enterprise-wiki-2.0.5.xar | sed -ne
 /\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1.\2/ p}`; do
    EXPORT_XAR=${EXPORT_XAR}pages=${page}
 done
 curl -b cookies.txt -c cookies.txt
 -dj_username=$1j_password=$2j_rememberme=truesubmit=Log-in
 ${XWIKI_BASE_URL}/xwiki/bin/loginsubmit/XWiki/XWikiLogin
 curl -b cookies.txt -c cookies.txt
 ${XWIKI_BASE_URL}/xwiki/bin/export/Main/WebHome${EXPORT_XAR} -o
 Current.xar

 Whatever I used the best diff tool (Beyond Compare IMHO), it is not so
 easy to check if difference are good or not: I need other way.
 Thanks to RESTful API, I write a second script which check page
 version: version 1.1 was never updated from previous xar version:

 #!/bin/bash
 XWIKI_BASE_URL=http://localhost:8080
 for page in `jar tvf xwiki-enterprise-wiki-2.0.5.xar | sed -ne
 /\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1\/pages\/\2/ p}`; do
    version=`curl -s -b cookies.txt -c cookies.txt
 ${XWIKI_BASE_URL}/xwiki/rest/wikis/xwiki/spaces/$page | sed -ne
 /version/{s/.*version\(.*\)\/version.*/\1/ p}`
    if [[ $version != 1.1 ]]; then
        echo $page $version UPDATED
    fi
 done

 Cool, only 8 updated pages:
 Main/pages/WebHome 144.1 UPDATED
 XWiki/pages/XWikiUserSheet 4.1 UPDATED
 XWiki/pages/XWikiAdminGroup 4.2 UPDATED
 XWiki/pages/XWikiPreferences 78.1 UPDATED
 XWiki/pages/LiveTableResults 2.1 UPDATED
 XWiki/pages/XWikiAllGroup 34.1 UPDATED
 XWiki/pages/WebPreferences 3.2 UPDATED
 XWiki/pages/LiveTableResultsMacros 2.1 UPDATED

 All other pages can be updated without any check :-D
 6 pages of  8 should be not updated:
    - Main.WebHome: it is our own main page
    - XWiki.AdminGroup and XWikiAllGroup: list Admin users and users
    - XWiki.XWikiUserSheet, we apply a patch to display user
 contribution: not updated
    - XWiki.LiveTableResults and XWiki.LiveTableResultsMacros, I check
 with my diff tool: there is a tag object inside.should not updated it.

 But I block on XWiki.XWikiPreferences and XWiki.WebPreferences.
 I want our own preferences, I should not update
 But new preferences may be added
 My diff tool find them too different.

 Could I keep my old preferences or do I have to merge?

 Regards,

 Arnaud.

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


Re: [xwiki-users] Add imported users to XWikiAllGroup

2009-12-30 Thread Arnaud bourree
2009/12/30 Gerritjan Koekkoek gerritjankoekk...@gmail.com:
 Thx, but it looks the code adds the users to all groups, is that correct 
 understanding.
No it add users to group XWiki.XWikiAllGroup which is not all groups


 I our case the loop should be constructed on all XWiki.usernames documents 
 (except administrator)
 that have a userclass object and are activated; how can i do that?
def allGroup = xwiki.getDocument('XWiki.XWikiAllGroup')
for(udoc in xwiki.search(select doc from XWikiDocument doc,
BaseObject obj where obj.name = doc.fullName and obj.className =
'XWiki.XWikiUsers' and doc.fullName  'XWiki.Admin' )) {
   gObj = allGroup.newObject('XWiki.XWikiGroups')
gObj.set('member',udoc.fullName)
}
allGroup.save()


 Take a look at 
 http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet

 Arnaud

 Hi,

 I notice that when you import a XAR file with 'users' these users are not 
 automatically added to XWikiAllGroup?
 Is this by design, and if so how do you restore them as members of this 
 group (have  100 users)

 Is there a script or macro to add users to a group?

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


[xwiki-users] How can I upgrade XWIKI from an older Version?

2009-12-29 Thread Arnaud bourree
Hello,

I've XWiki 2.0rc2 instance and I want to update to 2.0.5 version.
I find empty FAQ here:
http://www.xwiki.org/xwiki/bin/view/FAQ/WhoCanIUpdateXWIKIFromAnOlderVersion
I'd like to update it on myself experience.
But before I've one question at the end of my email on xar import.

1st/ re-deploy war (easy part)
By chance we didn't update any files excepted xwiki.cfg and hibernate.cfg.xml.
So I did the following:
   - zip current webapp/xwiki folder
   - remove webapp/xwiki folder
   - deploy xwiki-enterprise-web-2.0.5.war in webapp/xwiki
   - report my old xwiki.cfg and hibernate.cfg.xml configuration to the new one

2nd/ import xar (difficulties start here)
First, I import the full xar without any question: whao, everything is broken.
Do not forget to backup your database before upgrade!
After restoration, I decide to write a small script based on curl to
export same xar as the one I want to import:

#!/bin/bash
XWIKI_BASE_URL=http://localhost:8080
if [[ $# -ne 2 ]]; then
echo usage $0 login password
exit 1
fi
EXPORT_XAR=?format=xarname=Current
for page in `jar tvf xwiki-enterprise-wiki-2.0.5.xar | sed -ne
/\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1.\2/ p}`; do
EXPORT_XAR=${EXPORT_XAR}pages=${page}
done
curl -b cookies.txt -c cookies.txt
-dj_username=$1j_password=$2j_rememberme=truesubmit=Log-in
${XWIKI_BASE_URL}/xwiki/bin/loginsubmit/XWiki/XWikiLogin
curl -b cookies.txt -c cookies.txt
${XWIKI_BASE_URL}/xwiki/bin/export/Main/WebHome${EXPORT_XAR} -o
Current.xar

Whatever I used the best diff tool (Beyond Compare IMHO), it is not so
easy to check if difference are good or not: I need other way.
Thanks to RESTful API, I write a second script which check page
version: version 1.1 was never updated from previous xar version:

#!/bin/bash
XWIKI_BASE_URL=http://localhost:8080
for page in `jar tvf xwiki-enterprise-wiki-2.0.5.xar | sed -ne
/\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1\/pages\/\2/ p}`; do
version=`curl -s -b cookies.txt -c cookies.txt
${XWIKI_BASE_URL}/xwiki/rest/wikis/xwiki/spaces/$page | sed -ne
/version/{s/.*version\(.*\)\/version.*/\1/ p}`
if [[ $version != 1.1 ]]; then
echo $page $version UPDATED
fi
done

Cool, only 8 updated pages:
Main/pages/WebHome 144.1 UPDATED
XWiki/pages/XWikiUserSheet 4.1 UPDATED
XWiki/pages/XWikiAdminGroup 4.2 UPDATED
XWiki/pages/XWikiPreferences 78.1 UPDATED
XWiki/pages/LiveTableResults 2.1 UPDATED
XWiki/pages/XWikiAllGroup 34.1 UPDATED
XWiki/pages/WebPreferences 3.2 UPDATED
XWiki/pages/LiveTableResultsMacros 2.1 UPDATED

All other pages can be updated without any check :-D
6 pages of  8 should be not updated:
- Main.WebHome: it is our own main page
- XWiki.AdminGroup and XWikiAllGroup: list Admin users and users
- XWiki.XWikiUserSheet, we apply a patch to display user
contribution: not updated
- XWiki.LiveTableResults and XWiki.LiveTableResultsMacros, I check
with my diff tool: there is a tag object inside.should not updated it.

But I block on XWiki.XWikiPreferences and XWiki.WebPreferences.
I want our own preferences, I should not update
But new preferences may be added
My diff tool find them too different.

Could I keep my old preferences or do I have to merge?

Regards,

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


Re: [xwiki-users] Add imported users to XWikiAllGroup

2009-12-29 Thread Arnaud bourree
Take a look at 
http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet

Arnaud

2009/12/29 Gerritjan Koekkoek gerritjankoekk...@gmail.com:
 Hi,

 I notice that when you import a XAR file with 'users' these users are not 
 automatically added to XWikiAllGroup?
 Is this by design, and if so how do you restore them as members of this group 
 (have  100 users)

 Is there a script or macro to add users to a group?

 Gerritjan
 ___
 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 2.1 Milestone 1 released

2009-11-21 Thread Arnaud bourree
2009/11/19 Rieken, Joshua joshua_rie...@reyrey.com:



 Though I like the flexibility of the current Rename function, separating this 
 into two distinct concepts--Move and Rename--is more intuitive, IMO.

 -Joshua


Yes more intuitive for Windows user who cannot used rename command to move ;-)

I've preference for only one function as today what ever it's called
rename or move.

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


  1   2   >