Re: [xwiki-users] [xwiki-devs] Xwiki admin install and migration guides

2012-06-27 Thread Jerome Velociter
Hi,

Great work!

Could you remove the custom styles, so that we have consistent style across
all documentation ? (I remember Caty mentioning this once already).
I'm talking about the (% class=moz-text-plain graphical-quote=true
lang=x-unicode style=font-family: -moz-fixed; font-size: 13px;
wrap=true %)

Thanks
Jerome

On Wed, Jun 27, 2012 at 8:27 AM, Kaya Saman kayasa...@gmail.com wrote:

 Hi,

 I got a personal request from Vincent Massol wanting me to update
 everyone on the status of my documentation project for installing
 Xwiki on non-mainstream systems - by that I mean Linux.

 In writing the documents I had 3, for installing on FreeBSD w/Tomcat,
 Solaris w/Gassfish, and a migration guide.


 These are now complete!


 There are some notes at the bottom of the Migration Guide; don't pay
 any attention to these as they are obsolete with Nexenta merging with
 OpenIndiana.


 http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Install

 http://dev.xwiki.org/xwiki/bin/view/Drafts/Glassfish_Solaris

 http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Migration


 I would like these to go 'live' and be put onto the production site if
 applicable!



 Regards,


 Kaya
 ___
 devs mailing list
 d...@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/devs




-- 
Jérôme Velociter
Winesquare
http://www.winesquare.net/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] Xwiki admin install and migration guides

2012-06-27 Thread Thomas Mortagne
On Wed, Jun 27, 2012 at 8:27 AM, Kaya Saman kayasa...@gmail.com wrote:
 Hi,

 I got a personal request from Vincent Massol wanting me to update
 everyone on the status of my documentation project for installing
 Xwiki on non-mainstream systems - by that I mean Linux.

 In writing the documents I had 3, for installing on FreeBSD w/Tomcat,
 Solaris w/Gassfish, and a migration guide.


 These are now complete!


 There are some notes at the bottom of the Migration Guide; don't pay
 any attention to these as they are obsolete with Nexenta merging with
 OpenIndiana.


To follow existing documentations I would suggest the following:


 http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Install

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationBSD
and listed in 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HTutorials


 http://dev.xwiki.org/xwiki/bin/view/Drafts/Glassfish_Solaris

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationGlassfishSolaris
and listed on 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HTutorials


 http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Migration

Not sure about this one, as far as I can see there is no generic
documentation about it to list it as specialized tutorial. Maybe
create a new http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Migration
section listed in http://platform.xwiki.org/xwiki/bin/view/AdminGuide/
with some quick generic informations about it and list yours in a
Tutorials section like for the install one.



 I would like these to go 'live' and be put onto the production site if
 applicable!



 Regards,


 Kaya
 ___
 devs mailing list
 d...@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/devs



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


Re: [xwiki-users] Retrieve all the users of a given group

2012-06-27 Thread Joris Dirks
Hi Stéphanie


On 26 June 2012 16:07, Stéphanie stephanie.roull...@gmail.com wrote:
 I'm looking for a way to have all users of a given groups. I know how to
 check if a given user is from a certain group or not, but what I want if
 with a given group, retrieve all the users of this group.

Are you referring to a velocity script to list the users?
Should not be too hard, as they are objects of the type XWiki.XWikiGroups.

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


Re: [xwiki-users] Retrieve all the users of a given group

2012-06-27 Thread Stéphanie Roulland
Hello,

I'm trying to do this in groovy. Does someone know how to do that ?

Thanks,
Stéphanie
2012/6/27 Joris Dirks jo...@user.stekje.nl

 Hi Stéphanie


 On 26 June 2012 16:07, Stéphanie stephanie.roull...@gmail.com wrote:
  I'm looking for a way to have all users of a given groups. I know how to
  check if a given user is from a certain group or not, but what I want if
  with a given group, retrieve all the users of this group.

 Are you referring to a velocity script to list the users?
 Should not be too hard, as they are objects of the type XWiki.XWikiGroups.

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




-- 
Stéphanie ROULLAND
06.77.99.36.41
-
Contrat de professionnalisation DCNS
Ingénieur domaine collaboratif
02.29.05.42.23
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] Xwiki admin install and migration guides

2012-06-27 Thread Sergiu Dumitriu

On 06/27/2012 02:27 AM, Kaya Saman wrote:

Hi,

I got a personal request from Vincent Massol wanting me to update
everyone on the status of my documentation project for installing
Xwiki on non-mainstream systems - by that I mean Linux.

In writing the documents I had 3, for installing on FreeBSD w/Tomcat,
Solaris w/Gassfish, and a migration guide.


These are now complete!


There are some notes at the bottom of the Migration Guide; don't pay
any attention to these as they are obsolete with Nexenta merging with
OpenIndiana.


http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Install


I refactored this one a bit to be more compliant with the style of the 
other documents on xwiki.org.


One thing I noticed is that the steps are very detailed and go through 
all the errors encountered on the way, which I think is a bit too 
verbose. Do you think that you could list all the prerequisite steps in 
order to avoid errors and frustration from other users?


What I mean by that is, for example, to list all the downloads needed to 
successfully build the JDK, like:


tzupdater-1_3_31-2010i.zip
diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz
diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar

Also, don't start with building Tomcat to get an error, start with 
building the JDK, then go to building Tomcat without getting any errors.



http://dev.xwiki.org/xwiki/bin/view/Drafts/Glassfish_Solaris

http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Migration


I would like these to go 'live' and be put onto the production site if
applicable!



Regards,


Kaya



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


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


[xwiki-users] Failed to migrate database from release 3.4 to 4.1.2

2012-06-27 Thread CHENEAU-GREHALLE Nicolas
Hi,

 

I try to install the release 4.1.2 on 3.4.

During the database migration, there is this error message :

 

2012/06/27 13:26:54 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
c.x.x.s.m.h.R4XWIKI6990DataMigration - [R4XWIKI6990] -
Converting 12568 document statistics IDs in 1 tables and 0 collection
tables...

2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] WARN
o.h.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000

2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR
o.h.util.JDBCExceptionReporter - Duplicate entry '-5487128615380216001'
for key 1

2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
c.x.x.s.m.h.HibernateDataMigrationManager - Failed to migrate database
[xwiki]...

com.xpn.xwiki.store.migration.DataMigrationException: Data migration
R4XWIKI6990 failed

 

Somebody could help me about this message ?

Even in debug mode, I don't have any information about this duplicate
entry (which table ? which column ?)

 

Thank you for any help.

 

Nicolas

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


Re: [xwiki-users] [xwiki-devs] Xwiki admin install and migration guides

2012-06-27 Thread Kaya Saman
On Wed, Jun 27, 2012 at 2:21 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 On 06/27/2012 02:27 AM, Kaya Saman wrote:

 Hi,

 I got a personal request from Vincent Massol wanting me to update
 everyone on the status of my documentation project for installing
 Xwiki on non-mainstream systems - by that I mean Linux.

 In writing the documents I had 3, for installing on FreeBSD w/Tomcat,
 Solaris w/Gassfish, and a migration guide.


 These are now complete!


 There are some notes at the bottom of the Migration Guide; don't pay
 any attention to these as they are obsolete with Nexenta merging with
 OpenIndiana.


 http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Install


 I refactored this one a bit to be more compliant with the style of the other
 documents on xwiki.org.

 One thing I noticed is that the steps are very detailed and go through all
 the errors encountered on the way, which I think is a bit too verbose. Do
 you think that you could list all the prerequisite steps in order to avoid
 errors and frustration from other users?

 What I mean by that is, for example, to list all the downloads needed to
 successfully build the JDK, like:

 tzupdater-1_3_31-2010i.zip
 diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz
 diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2
 http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
 http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
 http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar

 Also, don't start with building Tomcat to get an error, start with building
 the JDK, then go to building Tomcat without getting any errors.


 http://dev.xwiki.org/xwiki/bin/view/Drafts/Glassfish_Solaris

 http://dev.xwiki.org/xwiki/bin/view/Drafts/BSD_Migration


 I would like these to go 'live' and be put onto the production site if
 applicable!



 Regards,


 Kaya



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



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

Sure thing!

Sorry I am a bit unresonsive at present, things are quite manic at
work right now. I will make every effort to sort this out soon - at
the latest over the weekend but hopefully there will be a few evenings
where I can play around and re-jig in accordance with what is wanted
:-)

P.s. on a side note - thanks for all the support I really appreciate that! :-)

Regards,

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


Re: [xwiki-users] Failed to migrate database from release 3.4 to 4.1.2

2012-06-27 Thread Denis Gervalle
Hi Nicolas,

We have detected some issues regarding the migration of statistics tables
in all 4.x version.
We are working hard on fixing these for 4.1.3 which we expect to release
quickly.
If you do not care about statistics, you may empty stats tables, and the
migration should run fine.
Else, you need to wait for 4.1.3.
Sorry for the inconvenience.

On Wed, Jun 27, 2012 at 3:31 PM, CHENEAU-GREHALLE Nicolas 
nicolas.cheneau-greha...@sesam-vitale.fr wrote:

 Hi,



 I try to install the release 4.1.2 on 3.4.

 During the database migration, there is this error message :



 2012/06/27 13:26:54 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
 c.x.x.s.m.h.R4XWIKI6990DataMigration - [R4XWIKI6990] -
 Converting 12568 document statistics IDs in 1 tables and 0 collection
 tables...

 2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] WARN
 o.h.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000

 2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR
 o.h.util.JDBCExceptionReporter - Duplicate entry '-5487128615380216001'
 for key 1

 2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
 c.x.x.s.m.h.HibernateDataMigrationManager - Failed to migrate database
 [xwiki]...

 com.xpn.xwiki.store.migration.DataMigrationException: Data migration
 R4XWIKI6990 failed



 Somebody could help me about this message ?

 Even in debug mode, I don't have any information about this duplicate
 entry (which table ? which column ?)



 Thank you for any help.



 Nicolas

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




-- 
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Failed to migrate database from release 3.4 to4.1.2

2012-06-27 Thread CHENEAU-GREHALLE Nicolas
Great, the migration is ok (no error) when I empty the stats tables :

2012/06/27 14:43:15 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.x.s.m.h.HibernateDataMigrationManager - Exiting because 
xwiki.store.migration.exitAfterEnd is set

However, when I restart XWiki, I've many error messages :

2012/06/27 14:46:01 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property sheet of object id 
2186376547412776710
2012/06/27 14:46:01 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property allow of object id 
-5988059480303893268
2012/06/27 14:46:01 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property groups of object id 
-5988059480303893268
2012/06/27 14:46:01 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property levels of object id 
-5988059480303893268
2012/06/27 14:46:01 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property users of object id 
-5988059480303893268
2012/06/27 14:46:01 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property accessibility of 
object id -614498398768250718
... (more lines like that)
2012/06/27 14:46:03 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.xwiki.store.XWikiHibernateStore - No data for property plugins of object id 
2824806279857424438
2012/06/27 14:46:03 [http://172.24.1.135:8080/xem/bin/view/Main/] WARN  
c.x.x.i.q.ConfiguredQueryExecutorProvider - Could not find a QueryExecutor with 
hint hibernate which is the hint for the storage engine. the default 
QueryExecutor will not be used instead.
org.xwiki.component.manager.ComponentLookupException: Can't find descriptor for 
the component [role = [interface org.xwiki.query.QueryExecutor] hint = 
[hibernate]]
... (more No data errors)
2012/06/27 14:46:08 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR 
c.x.x.p.w.WatchListJobManager - Cannot initialize WatchListJob
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving 
document xwiki:Scheduler.WatchListHourlyNotifier
Wrapped Exception: Failed to commit or rollback transaction. Root cause []
...
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted 
by another transaction (or unsaved-value mapping was incorrect): 
[com.xpn.xwiki.objects.StringProperty#?xml version=1.0 encoding=UTF-8?

contextDatabase/contextDatabase
...


I've missed something ?

Thank you

Nicolas

-Message d'origine-
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
Denis Gervalle
Envoyé : mercredi 27 juin 2012 16:47
À : XWiki Users
Objet : Re: [xwiki-users] Failed to migrate database from release 3.4 to4.1.2

Hi Nicolas,

We have detected some issues regarding the migration of statistics tables
in all 4.x version.
We are working hard on fixing these for 4.1.3 which we expect to release
quickly.
If you do not care about statistics, you may empty stats tables, and the
migration should run fine.
Else, you need to wait for 4.1.3.
Sorry for the inconvenience.

On Wed, Jun 27, 2012 at 3:31 PM, CHENEAU-GREHALLE Nicolas 
nicolas.cheneau-greha...@sesam-vitale.fr wrote:

 Hi,



 I try to install the release 4.1.2 on 3.4.

 During the database migration, there is this error message :



 2012/06/27 13:26:54 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
 c.x.x.s.m.h.R4XWIKI6990DataMigration - [R4XWIKI6990] -
 Converting 12568 document statistics IDs in 1 tables and 0 collection
 tables...

 2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] WARN
 o.h.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000

 2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] ERROR
 o.h.util.JDBCExceptionReporter - Duplicate entry '-5487128615380216001'
 for key 1

 2012/06/27 13:26:58 [http://172.24.1.135:8080/xem/bin/view/Main/] INFO
 c.x.x.s.m.h.HibernateDataMigrationManager - Failed to migrate database
 [xwiki]...

 com.xpn.xwiki.store.migration.DataMigrationException: Data migration
 R4XWIKI6990 failed



 Somebody could help me about this message ?

 Even in debug mode, I don't have any information about this duplicate
 entry (which table ? which column ?)



 Thank you for any help.



 Nicolas

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




-- 
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO
___
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] problem running the code macro

2012-06-27 Thread David Delbecq
Hello, 

i have troubles with the {code} macro. It's not working with xwiki 4.1. It's ok 
in the jetty bundle, but has problem running under jboss AS 7. 
Config: xwiki 4.1, jboss AS 7, windows 

Please also note that we also have this problem (exact same message) with xwiki 
2.4 on jboss 4.1 on linux. I hoped that this problem would have been solve 
since a few year, but i notice code macro is still broken :( 
What is the definitive solution to this jython problems? Do i have to fill a 
jira issue for this? 


org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content
at 
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:115)
at 
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
at 
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141)
at 
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:190)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:135)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)
at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at 
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
at 
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:901)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:880)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:911)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:582)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
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:342)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:224)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1800)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1740)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:854)
at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at 

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

2012-06-27 Thread Thomas Mortagne
On Wed, Jun 27, 2012 at 6:43 PM, David Delbecq david.delb...@meteo.be wrote:
 Hello,

 i have troubles with the {code} macro. It's not working with xwiki 4.1. It's 
 ok in the jetty bundle, but has problem running under jboss AS 7.
 Config: xwiki 4.1, jboss AS 7, windows

 Please also note that we also have this problem (exact same message) with 
 xwiki 2.4 on jboss 4.1 on linux. I hoped that this problem would have been 
 solve since a few year, but i notice code macro is still broken :(
 What is the definitive solution to this jython problems? Do i have to fill a 
 jira issue for this?

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

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

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



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

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

2012-06-27 Thread David Delbecq

Hello, 

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

- Mail original -

De: Thomas Mortagne thomas.morta...@xwiki.com 
À: XWiki Users users@xwiki.org 
Envoyé: Mercredi 27 Juin 2012 19:19:08 
Objet: Re: [xwiki-users] problem running the code macro 

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

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

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

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

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

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

2012-06-27 Thread Thomas Mortagne
On Wed, Jun 27, 2012 at 8:09 PM, David Delbecq david.delb...@meteo.be wrote:

 Hello,

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

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


 - Mail original -

 De: Thomas Mortagne thomas.morta...@xwiki.com
 À: XWiki Users users@xwiki.org
 Envoyé: Mercredi 27 Juin 2012 19:19:08
 Objet: Re: [xwiki-users] problem running the code macro

 On Wed, Jun 27, 2012 at 6:43 PM, David Delbecq david.delb...@meteo.be wrote:
 Hello,

 i have troubles with the {code} macro. It's not working with xwiki 4.1. It's 
 ok in the jetty bundle, but has problem running under jboss AS 7.
 Config: xwiki 4.1, jboss AS 7, windows

 Please also note that we also have this problem (exact same message) with 
 xwiki 2.4 on jboss 4.1 on linux. I hoped that this problem would have been 
 solve since a few year, but i notice code macro is still broken :(
 What is the definitive solution to this jython problems? Do i have to fill a 
 jira issue for this?

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

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

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



 org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight 
 content
 at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:115)
 at 
 org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:51)
 at 
 org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:141)
 at 
 org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:53)
 at 
 org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:190)
 at 
 org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:135)
 at 
 org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
 at 
 org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
 at 
 org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
 at 
 org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
 at 
 org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
 at 
 org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
 at 
 org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:111)
 at 
 org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
 at 
 org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
 at 
 org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:901)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:880)
 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:911)
 at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:582)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
 at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
 at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
 at 
 org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
 at 
 org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
 at 
 

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

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

- Mail original -

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

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

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

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