[xwiki-users] Add extension failed on XWIKI 3.4 (plus directory structure general issue).

2012-02-27 Thread Christophe FRAULE
Hello,

 

Whenever I try to add an extension from XWIKI 3.4 (on RedHat 6, tomcat6 with
PostgreSQL database) from the ‘Add Extensions’ menu, I get a message like
this

 

Caused by: class java.io.IOException: File
'data/extension/repository/org.xwiki.contrib%3Axwiki-plugin-excel-1.0-src.pl
ugin' could not be created

 

ð  It looks like a directory is missing in my WIKI install, could you tell
me the exact path of the data/extension/repository (from the XWIKI app root)
?

 

Also, the problem I encountered earlier with Lucene came from the xwiki.cfg 

 

#-# Lucene search engine
#-# Location where to place the lucene index files. The default is the
lucene subdirectory in the container's work
#-# diectory. Change it if you want to store indexes in another place.
# xwiki.plugins.lucene.indexdir=/usr/local/xwiki/lucene

 

Well it looks like XWIKI really choose /usr/local/wiki/lucene and nothing
into a ‘work’ container as the documentation seems to indicate.

 

Could you fix the default xwiki.cfg file (Description or content) on Red
Hat, it looks like we should have:

 

# xwiki.plugins.lucene.indexdir=/usr/local/xwiki/lucene

xwiki.plugins.lucene.indexdir=/usr/share/tomcat6/work

 

Many thanks for your help,

 

Regards,

 

Christophe FRAULE

 

 

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


[xwiki-users] Upgrade to official release 3.2 do not work

2011-10-13 Thread Christophe FRAULE
Hello,

 

I have been running xwiki 3.1 for a while now on Fedora 13 with
PostgreSQL/Tomcat.

 

I decided to upgrade to 3.2 by undeploying the previous version of xwiki and
installing the 3.2 war and default xar files, reconfiguring
hibernate.cfg.xml to access the PostgreSQL database etc.

 

After the new war install and the hibernate.cfg.xml reconfiguration, when
trying to connect xwiki, I get:

HTTP Status 500 - 

  _  

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3
in 0: Could not initialize main XWiki context

Wrapped Exception: Error number 3201 in 3: Exception while saving document
xwiki:XWiki.XWikiPreferences

Wrapped Exception: Error number 3211 in 3: Exception while updating archive
XWiki.XWikiPreferences

Wrapped Exception: Error number 0 in 3: Exception while hibernate execute

Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#component[docId,version1,version2
]{docId=104408758, version2=1, version1=24}]

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

 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.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.j
ava:144)

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

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

 
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFi
lter(SetCharacterEncodingFilter.java:109)

 

and in catalina.out, I get a lot of those 

 

/property

property

showannotations/showannotations

/property

property

showattachments/showattachments

/property

property

showcomments/showcomments

/property

property

showhistory/showhistory

/property

property

showinformation/showinformation

/property

property

skinXWiki.DefaultSkin/skin

/property

property

smtp_port/smtp_port

/property

property

smtp_server127.0.0.1/smtp_server

/property

property

smtp_server_password/smtp_server_password

/property

property

smtp_server_username/smtp_server_username

/property

property

stylesheetstyle.css/stylesheet

/property

property

stylesheetsstyle.css/stylesheets

/property

property

tags/tags

/property

property

title$tdoc.getRenderedTitle(plain/1.0) ($doc.fullName) - XWiki/title

/property

property

upload_maxsize671088640/upload_maxsize

/property

property

validation_email_content#set ($wikiname = $request.serverName)

#set ($host = ${request.getRequestURL()})

#set ($host = ${host.substring(0, ${host.indexOf('/',
${mathtool.add(${host.indexOf('//')}, 2)})})})

Subject: Validate your account on ${wikiname}

 

Hello ${xwiki.getUserName(XWiki.$xwikiname, false)},

 

This email address was used to register a new account on ${wikiname}. If you
did not make the request, please ignore this message.

 

In order to activate your account, please follow this link:

${host}${xwiki.getURL('XWiki.AccountValidation', 'view',
validkey=${validkey}amp;xwikiname=${xwikiname})}/validation_email_conten
t

/property

property

versionXWiki Enterprise $xwiki.getVersion() - lt;a
onclick=openURL('http://enterprise.xwiki.org/xwiki/bin/view/Main/Documentat
ion', '_blank'); return false;
href=http://www.xwiki.org/xwiki/bin/view/Main/Documentationgt;Documentati
onlt;/agt;/version

/property

property

webcopyrightThis wiki is licensed under a lt;a rel=license
href=http://creativecommons.org/licenses/by/2.0/gt;Creative Commons
2.0lt;/agt; license/webcopyright

/property

property

xwiki.title.mandatory0/xwiki.title.mandatory

/property

/object

content{{include document=XWiki.AdminSheet /}}/content/xwikidoc 

 

Then a final

 

2011-10-12 22:56:30,809 [http://192.168.1.1:8080/xwiki/bin/view/Main/] WARN
o.a.s.a.RequestProcessor   - Unhandled Exception thrown: class
com.xpn.xwiki.XWikiExcept

 

Any idea about what's going on ?

 

Thanks for your help,

 

Regards

 

Christophe.

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


Re: [xwiki-users] Problem with SVG Macro

2011-03-09 Thread Christophe FRAULE
I cannot see this parameter either, here's all the accessible parameters while 
editing the MacroSVG document as Admin.

Objects of type XWiki.JavaScriptExtension (1)

Objects of type XWiki.StyleSheetExtension (1)
StyleSheetExtension 0: [remove this object] [edit only this object]
New StyleSheetExtension object

Objects of type XWiki.TagClass (1)
TagClass 0: [remove this object] [edit only this object]
New TagClass object

Objects of type XWiki.WikiMacroClass (1)
WikiMacroClass 0: svg [remove this object] [edit only this object]
New WikiMacroClass object

Objects of type XWiki.WikiMacroParameterClass (3)
WikiMacroParameterClass 2: width [remove this object] [edit only this object]
WikiMacroParameterClass 3: height [remove this object] [edit only this object]
WikiMacroParameterClass 4: forceimage [remove this object] [edit only this 
object]
New WikiMacroParameterClass object

Objects of type XWiki.XWikiRights (4)
XWikiRights 0: XWiki.XWikiHomeGroup [remove this object] [edit only this object]
XWikiRights 1: XWiki.XWikiAdminGroup [remove this object] [edit only this 
object]
XWikiRights 2: XWiki.XWikiAllGroup [remove this object] [edit only this object]
XWikiRights 3:

Christophe.

-Original Message-
From: Ludovic Dubost [mailto:ludo...@xwiki.com] 
Sent: Wednesday, March 09, 2011 1:18 AM
To: Christophe FRAULE
Cc: XWiki Users
Subject: Re: [xwiki-users] Problem with SVG Macro

Sorry it's called macro visibility

Ludovic

Envoyé de mon iPhone

Le 8 mars 2011 à 23:23, Christophe FRAULE christob...@msbx.net a écrit :

 You are talking about this one ?
 http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Macro
 
 = YES
 
 I think you only need to use edit object on the macro (page
 XWiki/SVGMacro) and change the scope setting to current wiki. 
 
 This setting did not exist at the time.
 
 I guess it's still the case so for I cannot see any 'scope settings' when
 editing the SVGMacro page Objects as Admin.
 
 = What's the fix ?
 
 Many thanks for your help,
 
 Regards,
 
 Christophe.
 
 
 -Original Message-
 From: Ludovic Dubost [mailto:ludo...@xwiki.com] 
 Sent: Tuesday, March 08, 2011 12:49 PM
 To: XWiki Users
 Cc: Christophe FRAULE
 Subject: Re: [xwiki-users] Problem with SVG Macro
 
 
 You are talking about this one ?
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Macro
 
 I think you only need to use edit object on the macro (page
 XWiki/SVGMacro)
 and change the scope setting to current wiki. This setting did not exist
 at the time.
 
 Ludovic
 
 Le 08/03/11 19:52, Christophe FRAULE a écrit :
 Hello,
 
 
 
 Using XWIKI 3.0M2 =
 
 
 
 1) installing the SVG Macro from the XAR document
 
 2) Granting all access rights  (testing) to the 3 x SVG documents 
 installed in the Xwiki workspace.
 
 
 
 I get:
 
 
 
 Unknown macro: svg
 
 The svg macro is not in the list of registered macros. 
 Verify the spelling or contact your administrator.
 
 
 
 . when an individual user (authenticated and with rights to display 
 the
 page) hit one page which include this macro.
 
 
 
 I have the following in the xwiki.cfg file:
 
 
 
 #-# List of active plugins.
 
 xwiki.plugins=\
 
 com.xpn.xwiki.monitor.api.MonitorPlugin,\
 
 
 com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\
 
 
 com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\
 
 
 com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\
 
 
 com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\
 
 com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin,\
 
 com.xpn.xwiki.plugin.feed.FeedPlugin,\
 
 com.xpn.xwiki.plugin.ldap.LDAPPlugin,\
 
 com.xpn.xwiki.plugin.google.GooglePlugin,\
 
 com.xpn.xwiki.plugin.mail.MailPlugin,\
 
 com.xpn.xwiki.plugin.packaging.PackagePlugin,\
 
 com.xpn.xwiki.plugin.query.QueryPlugin,\
 
 com.xpn.xwiki.plugin.svg.SVGPlugin,\
 
 com.xpn.xwiki.plugin.charts.ChartingPlugin,\
 
 
 com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\
 
 com.xpn.xwiki.plugin.image.ImagePlugin,\
 
 
 com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\
 
 
 com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\
 
 
 com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\
 
 com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\
 
 com.xpn.xwiki.plugin.lucene.LucenePlugin,\
 
 com.xpn.xwiki.plugin.diff.DiffPlugin,\
 
 
 com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\
 
 com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\
 
 com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\
 
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\
 
 
 com.xpn.xwiki.plugin.activitystream.plugin.ActivityStreamPlugin, \
 
 com.xpn.xwiki.plugin.watchlist.WatchListPlugin

[xwiki-users] Problem with SVG Macro

2011-03-08 Thread Christophe FRAULE
Hello,

 

Using XWIKI 3.0M2 =

 

1) installing the SVG Macro from the XAR document

2) Granting all access rights  (testing) to the 3 x SVG documents installed
in the Xwiki workspace.

 

I get:

 

Unknown macro: svg

The svg macro is not in the list of registered macros. Verify the
spelling or contact your administrator.

 

. when an individual user (authenticated and with rights to display the
page) hit one page which include this macro.

 

I have the following in the xwiki.cfg file:

 

#-# List of active plugins.

xwiki.plugins=\

com.xpn.xwiki.monitor.api.MonitorPlugin,\

com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\

com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\

com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\

com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\

com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin,\

com.xpn.xwiki.plugin.feed.FeedPlugin,\

com.xpn.xwiki.plugin.ldap.LDAPPlugin,\

com.xpn.xwiki.plugin.google.GooglePlugin,\

com.xpn.xwiki.plugin.mail.MailPlugin,\

com.xpn.xwiki.plugin.packaging.PackagePlugin,\

com.xpn.xwiki.plugin.query.QueryPlugin,\

com.xpn.xwiki.plugin.svg.SVGPlugin,\

com.xpn.xwiki.plugin.charts.ChartingPlugin,\

com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\

com.xpn.xwiki.plugin.image.ImagePlugin,\

com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\

 
com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\

com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\

com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\

com.xpn.xwiki.plugin.lucene.LucenePlugin,\

com.xpn.xwiki.plugin.diff.DiffPlugin,\

com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\

com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\

com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\

com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\

 
com.xpn.xwiki.plugin.activitystream.plugin.ActivityStreamPlugin, \

com.xpn.xwiki.plugin.watchlist.WatchListPlugin, \

com.xpn.xwiki.plugin.tag.TagPlugin

 

What is wrong ?

 

Many thanks for your help,

 

Christophe

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


Re: [xwiki-users] Problem with SVG Macro

2011-03-08 Thread Christophe FRAULE
You are talking about this one ?
http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Macro

= YES

I think you only need to use edit object on the macro (page
XWiki/SVGMacro) and change the scope setting to current wiki. 

This setting did not exist at the time.

I guess it's still the case so for I cannot see any 'scope settings' when
editing the SVGMacro page Objects as Admin.

= What's the fix ?

Many thanks for your help,

Regards,

Christophe.


-Original Message-
From: Ludovic Dubost [mailto:ludo...@xwiki.com] 
Sent: Tuesday, March 08, 2011 12:49 PM
To: XWiki Users
Cc: Christophe FRAULE
Subject: Re: [xwiki-users] Problem with SVG Macro


You are talking about this one ?

http://extensions.xwiki.org/xwiki/bin/view/Extension/SVG+Macro

I think you only need to use edit object on the macro (page
XWiki/SVGMacro)
and change the scope setting to current wiki. This setting did not exist
at the time.

Ludovic

Le 08/03/11 19:52, Christophe FRAULE a écrit :
 Hello,



 Using XWIKI 3.0M2 =



 1) installing the SVG Macro from the XAR document

 2) Granting all access rights  (testing) to the 3 x SVG documents 
 installed in the Xwiki workspace.



 I get:



 Unknown macro: svg

  The svg macro is not in the list of registered macros. 
 Verify the spelling or contact your administrator.



 . when an individual user (authenticated and with rights to display 
 the
 page) hit one page which include this macro.



 I have the following in the xwiki.cfg file:



 #-# List of active plugins.

 xwiki.plugins=\

  com.xpn.xwiki.monitor.api.MonitorPlugin,\

  
 com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\

  
 com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\

  
 com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\

  
 com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\

  com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin,\

  com.xpn.xwiki.plugin.feed.FeedPlugin,\

  com.xpn.xwiki.plugin.ldap.LDAPPlugin,\

  com.xpn.xwiki.plugin.google.GooglePlugin,\

  com.xpn.xwiki.plugin.mail.MailPlugin,\

  com.xpn.xwiki.plugin.packaging.PackagePlugin,\

  com.xpn.xwiki.plugin.query.QueryPlugin,\

  com.xpn.xwiki.plugin.svg.SVGPlugin,\

  com.xpn.xwiki.plugin.charts.ChartingPlugin,\

  
 com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\

  com.xpn.xwiki.plugin.image.ImagePlugin,\

  
 com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\


 com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\

  
 com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\

  com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\

  com.xpn.xwiki.plugin.lucene.LucenePlugin,\

  com.xpn.xwiki.plugin.diff.DiffPlugin,\

  
 com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\

  com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\

  com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\

  
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\


 com.xpn.xwiki.plugin.activitystream.plugin.ActivityStreamPlugin, \

  com.xpn.xwiki.plugin.watchlist.WatchListPlugin, \

  com.xpn.xwiki.plugin.tag.TagPlugin



 What is wrong ?



 Many thanks for your help,



 Christophe

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



--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost


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


[xwiki-users] Sql Plugin broken with Xwiki 2.2.5

2010-05-12 Thread Christophe FRAULE
Hello,

Is the Sql Plugin broken with Xwiki 2.2.5 ?

=

1) I have added the xwiki-plugin-sql-1.5.jar file under WEB-INF/lib
2) I have updated xwiki.cfg with:

#-# List of active plugins.
xwiki.plugins=\
com.xpn.xwiki.monitor.api.MonitorPlugin,\
com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,\
com.xpn.xwiki.plugin.feed.FeedPlugin,\
com.xpn.xwiki.plugin.ldap.LDAPPlugin,\
com.xpn.xwiki.plugin.google.GooglePlugin,\
com.xpn.xwiki.plugin.flickr.FlickrPlugin,\
com.xpn.xwiki.plugin.mail.MailPlugin,\
com.xpn.xwiki.plugin.packaging.PackagePlugin,\
com.xpn.xwiki.plugin.query.QueryPlugin,\
com.xpn.xwiki.plugin.svg.SVGPlugin,\
com.xpn.xwiki.plugin.charts.ChartingPlugin,\
com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\
com.xpn.xwiki.plugin.image.ImagePlugin,\
com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\
 
com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\
com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\
com.xpn.xwiki.plugin.lucene.LucenePlugin,\
com.xpn.xwiki.plugin.diff.DiffPlugin,\
com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\
com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\
 
com.xpn.xwiki.plugin.activitystream.plugin.ActivityStreamPlugin, \
com.xpn.xwiki.plugin.watchlist.WatchListPlugin, \
com.xpn.xwiki.wysiwyg.server.plugin.WysiwygPlugin, \
com.xpn.xwiki.plugin.tag.TagPlugin, \
ua.gradsoft.xwikisql.SqlPlugin

and

#---
# Sql Plugin behavior parameters
xwikisql.logSql=1
xwikisql.throwExceptions=1

3) I have created context.xml under META-INF with:

Context
Resource name = jdbc/NC auth = Container
  type = javax.sql.DataSource
  driverClassName = com.mysql.jdbc.Driver
  url = jdbc:mysql://192.168.1.1:3306/NC
  username = nc
  password = nc
  maxActive = 30
  maxIdle = 2
  maxWait = 120 /
/Context

4) I have updated web.xml under WEB-INF with:

  resource-ref
descriptionNC DB Connection/description
res-ref-namejdbc/NC/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref

I know I can query this database from Xwiki because a groovy script with an
explicit declaration of the database, driver, user password etc and using
the very same query will dump a table.

5) I have updated log4j.properties under WEB-INF/classes with

## Activate Sql Plugin Loggging
log4j.logger.ua.gradsoft.xwikisql=debug

Then, after restarting Tomcat6, when I try:

{{velocity}}
#set ($mydb=$xwiki.sql.getDabase(jdbc/NC))
#set ($rs=$mydb.executeQuery(select ID from TABLE))
returned $rs.getNRows()
#set ($Message = Why can't I get to the DB ?)
 velocity message is $Message
{{/velocity}}

All I get is:

returned $rs.getNRows()
velocity message is Why can't I get to the DB ?

And in my xwiki.log I cannot see any error messages related to the sql
plugin. It's all looking like the sql plugin is totally ignored !!!

Can you tell me what I did wrong ?

Many thanks for your help,

Regards,

Christophe,

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


[xwiki-users] help with Dynamic Chart generation

2010-05-10 Thread Christophe FRAULE
Hello,

Trying the following with XWiki syntax 2.0:

=== TEST MACRO ===

(% id=table3 %)
|  |X  |Y  |Z
|Q1|1.2|3.4|1.3
|Q2|4.5|3.4|2.3
|Q3|1.2|4.5|9.0
|Q4|3.4|1.2|1.2

{{chart type=bar params=table:table3;range:B2-D5;series:columns;
title=Chart Test width=320 height=240/}}

=== TEST CHART MACRO WITH DYNAMIC TABLE ===

{{python}}
print (%id='table4'%)
print |  |X  |Y  |Z
print |Q1|1.2|3.4|1.3
print |Q2|4.5|3.4|2.3
print |Q3|1.2|4.5|9.0
print |Q4|3.4|1.2|1.2
{{/python}}

{{chart type=bar params=table:table4;range:B2-D5;series:columns;
title=Chart Test width=320 height=240/}}

--

... I get a graph for the TEST MACRO section but an error
'org.xwiki.rendering.macro.MacroExecutionException: Unable to find a
macthing data table.' For the TEST CHART MACRO WITH DYNAMIC TABLE.

Since the result of the python is inserted in the back into the wiki page, I
thought (dreamt actually) that the chart macro would be able to use those
outputs.

What have I done here and how can I make this work, basically charting the
output of an xwiki script ?

Thanks for your help,

Regards,

Christophe, 

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


[xwiki-users] 3 x XWiki questions from a newbie

2009-09-16 Thread Christophe FRAULE
Hello,

 

I'm a newbie with XWiki and I'm mostly experimenting with it so see if and
how we could use it internally.

 

I'm running XWiki 1.9.3.22597 on Tomcat6 with Fedora 11/MySQL 5.1.37 and had
encountered no particular problem except that I have to launch and run the
OpenOffice server externally on a regular account because it would not start
when launched by XWiki. I suspect it's a memory access right issue because
launching manually from the tomcat account I get this

 

-sh-4.0$ /usr/bin/soffice -headless
-accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard

creation of executable memory area failed: Permission denied

creation of executable memory area failed: Permission denied

creation of executable memory area failed: Permission denied

creation of executable memory area failed: Permission denied

creation of executable memory area failed: Permission denied

creation of executable memory area failed: Permission denied

creation of executable memory area failed: Permission denied

 

It's just the way the tomcat account is set I believe. (Seeing no xwiki
user, I assume xwiki is using the tomcat account to launch soffice).

 

I have 3 x questions regarding XWiki:

 

1)  We want to use 'spaces' (no virtual XWiki) to create boundaries
between what users can see. I have created Space A, User A and configured
access rights so that User A can access Space A only. The problem is that
when User A log into XWiki, XWiki returns and error message because User A
tries to land on the main page =

a.   Can we configure XWiki so that User A automatically lands on Space
A when login ? If yes, how ?

b.  I assume also that performing a search User A will not be able to
see anything out of his user space A. Right ?

 

2)  I have made a quick Groovy/SQL test polling a rather large table out
of an external database and displaying the result into HTML on XWiki.
Scrolling down the dynamically generated XWiki HTML table, I suddenly got
into a black hole or let's say the end of the XWiki web page =

a.What is the way in XWiki to control the maximum length/size (or
maximum characters ?) of a Web page ?

 

3)  Is it possible to programmatically add pages into Xwiki based on the
content of an external database. The idea here is to run a script (via Xwiki
scheduler ?) to pull records out of an external database. For each (new)
record, then a new XWiki page would be created which users could edit to
bind their own additional pieces of information. When a database record is
deleted, the corresponding XWiki pages would be move to the 'gone' space.

 

Many Many thanks for your help and for providing us such a powerful tool.

 

Regards,

 

Christobald.

 

 

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