[xwiki-users] Configuring SMTP Server in core files

2010-07-08 Thread Marine JULIAN
Hello,

Is there a way to configure SMTP Server (for email notifications) in
xwiki.cfg or xwiki.properties (or any core files) instead of in the
XWiki.XWikiPreferences page ? Indeed, like I use a farm, I'd prefer to set
up it once and not in all wikis. I know that I can use wiki template to make
it easier but I'd prefer to set up SMTP Server only once and not to use a
"trick".
Do you know if it's possible ?
Thanks,

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


Re: [xwiki-users] Error when building new xwiki component

2010-07-07 Thread Marine Julian

Hi Vincent,


vmassol wrote:
> 
> Yes it needs to be declared in a META-INF/components.txt file.
> See the doc at
> http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule
> 

After some tries, I finally succeed to use the HelloWorld component with
groovy and velocity in my wiki !! Like you said, I declared it in a
META-INF/components.txt. I also added all the annotations as described in
http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule (without being
stupid and forgetting the "import org.xwiki.component.annotation.*;" !!).

So, thank you Anca, Marius and Vincent for your help.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Error-when-building-new-xwiki-component-tp5259941p5265235.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


Re: [xwiki-users] Error when building new xwiki component

2010-07-07 Thread Marine Julian

Hi Marius,

Marius Dumitru Florea wrote:
> 
> The required dependency should have been found at 
> http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-core-component/2.3.1/
>  
> but as you can see there's no jar there. The reason is that the 
> xwiki-core-component module was split in multiple submodules. You need 
> to edit you pom and change the dependency from xwiki-core-component to 
> xwiki-core-component-api like this:
> 
> 
>org.xwiki.platform
>xwiki-core-component-api
>${pom.version}
> 
> 

You're totally right. In fact, I just replace "xwiki-core-component" by
"xwiki-core-component-api" and the build succeeded. So, I finally can have
my jar ! Thanks.

Now, i'm facing that my component can't be caledl by groovy or velocity. I
hope that you can help me again. My first thought was wondering if the
component needs to be declared somewhere, but it seems not.

Neither 
{{groovy wiki="false"}} 
def greeter =
com.xpn.xwiki.web.Utils.getComponent(org.xwiki.essai.component.HelloWorld.class);
println greeter.sayHello();
{{/groovy}}
or
{{velocity}} $greeter.sayHello(); {{/velocity}}
works.

The groovy code throws the following error :
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Script
Macro for content [def greeter =
com.xpn.xwiki.web.Utils.getComponent(org.xwiki.essai.component.HelloWorld.class);
println greeter.sayHello();] 
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:201)
 
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.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) 
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) 
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) 
Caused by: javax.script.ScriptException: javax.script.ScriptException:
java.lang.RuntimeException: Failed to load component
[org.xwiki.essai.component.HelloWorld] for hint [default] 
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
 
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.eval(AbstractJSR223ScriptMacro.java:260)
 
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluate(AbstractJSR223ScriptMacro.java:191)
... 79 more 
Caused by: javax.script.ScriptException: java.lang.RuntimeException: Failed
to load component [org.xwiki.essai.component.HelloWorld] for hint [default] 
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:317)
 
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:111)
 
... 81 more 
Caused by: java.lang.RuntimeException: Failed to load component
[org.xwiki.essai.component.HelloWorld] for hint [default] at
com.xpn.xwiki.web.Utils.getComponent(Utils.java:614) 
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:635) 
at com.xpn.xwiki.web.Utils$getComponent.call(Unknown Source) 
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
 
at Script7.run(Script7.groovy:1) 
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:314)
... 82 more 
Caused by: org.xwiki.component.manager.ComponentLookupException: Can't find
descriptor for the component [role = [org.xwiki.essai.component.HelloWorld]
hint = [default]] 
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:356)
 
at
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:109)
 
at
org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:85)
 
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:612) 
... 89 more  

What is the descriptor for the component ?
Besides, like I know the tutorial outdated, I tried to modify the code of
the component by adding annotations and a components.txt, but the build
failed cause the annotations was unknown (at least, they seems to be
unknown).

Can anybody give me some ideas that I can use the HelloWorld component
through velocity in my xwiki pages ?
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Error-when-building-new-xwiki-component-tp5259941p5264413.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
u

Re: [xwiki-users] bad rtf exportation and customizing the pdf export look and feel

2010-07-06 Thread Marine Julian


Wilson Leão Neto wrote:
> 
> "Actually, I didn't try but I took a look at it and I was able to add some
> little things. I don't think I can help you but... who knows ? What are
> your
> problems ?"
> 
> I wanna be able to modify also the TOC. Specifically, I wanna be able to
> modify it:
> 
> $msg.get('core.pdf.tableOfContents')
> 
> Like, inside it...
> 
I'm very sorry, I hadn't seen your second post until now (and only by
chance)...
So, I hope you find a solution at your situation because I don't know how to
help you. 

The only thing I can say is that you didn't look at the correct place (to
me). In fact, all lines which begin by $msg.get(...) refer to a resource
bundle for translations. Thus, $msg.get('core.pdf.tableOfContents') is
simply a call to the text "Table of contents".
The code lines which deal with the content of the TOC are in
pdfgtmlheader.vm from line 62 to 70 and more specifically the line
#set($pdftoc = $pdfdoc.display("toc", "rendered")). I'm not sure of what I
advance but I think that the  $pdfdoc.display("toc", "rendered") call allows
you to retrieve the content of the TOC. Unfortunately, I can't say more...

Please, if you found a solution, tell me what it is !
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/bad-rtf-exportation-and-customizing-the-pdf-export-look-and-feel-tp5079790p5260588.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


Re: [xwiki-users] Error when building new xwiki component

2010-07-06 Thread Marine Julian

Hi Anca,


Anca Luca wrote:
> 
> Right now this would be 2.4-SNAPSHOT or a 2.3 release (2.3, 2.3.1, 2.3.2).
> 
> The -SNAPSHOT versions means the .jar produced by the continuous 
> integration server, from a snapshot of the sources, which exists and 
> makes sense for the trunk or "active" branches. It's not the case for 
> the xwiki 2.3 branch, currently the development is for the 2.4 version 
> (the trunk) so the "current snapshot" or "nightly build" if the term is 
> more familiar to you, would be a 2.4-SNAPSHOT. If you want your 
> component to be used on an xwiki 2.3.x, then you should just put that 
> version for platform dependency, instead of "2.3-SNAPSHOT".
> 
> I hope it makes some sense...
> 
> However, be warned that the tutorial is a little outdated, you'd need to 
> figure out some things by yourself.
> 

Indeed, I didn't grasp the meaning of "SNAPSHOT" and it makes sense now !
Thanks !
Like I use a xwiki 2.3.1, I put the "2.3.1" version for platform dependency.
Unfortunately, I always had the same error... I.e : 

[ERROR] Failed to execute goal on project xwiki-essai-component: Missing:
--
1) org.xwiki.platform:xwiki-core-component:jar:2.3.1
  Try downloading the file manually from the project website.
  
  Then, install it using the command:
  mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component -Dversion=2.3.1 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component -Dversion=2.3.1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) com.xpn.xwiki.platform:xwiki-essai-component:pom:1.1
2) org.xwiki.platform:xwiki-core-component:jar:2.3.1

--
1 required artifact is missing.

for artifact:
  com.xpn.xwiki.platform:xwiki-essai-component:pom:1.1

from the specified remote repositories:
  xwiki-externals (http://maven.xwiki.org/externals, releases=true,
snapshots=true),
  xwiki-releases (http://maven.xwiki.org/releases, releases=true,
snapshots=false),
  xwiki-snapshots (http://maven.xwiki.org/snapshots, releases=false,
snapshots=true),
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
-> [Help 1]

Do you think it's due to the fact that the tutorial is outdated ? Because, I
didn't do something special : just download the archetype, modify the
version for platform dependency in the pom file and try to install it in
order to have a jar... 
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Error-when-building-new-xwiki-component-tp5259941p5260302.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


Re: [xwiki-users] Questions about LDAP in XEM 2.3.1

2010-07-06 Thread Marine Julian


tmortagne wrote:
> 
> It's generally the easiest yes. You assign all the groups to the
> proper wiki/spaces/pages and then you just need to put the users in
> the proper groups. When you have lots of users it's becoming quickly
> very difficult to directly assign rights to single users.
> 
Okay, thank you Thomas !
Just one more thing to be sure to do the right thing :
Let's suppose that I create a AllRights group in the main wiki (called
mainwiki) of my farm (and only in this wiki) and that I want all the LDAP
users of group cn=HMS Lydia,ou=crews,ou=groups,o=sevenSeas to be
automatically added in it. 
Is it right if I write
xwiki.authentication.ldap.group_mapping=mainwiki:XWiki.AllRights=cn=HMS
Lydia,ou=crews,ou=groups,o=sevenSeas ? Because i'm not sure about the syntax
wiki:space:page in this case.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Questions-about-LDAP-in-XEM-2-3-1-tp5255260p5259990.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


[xwiki-users] Error when building new xwiki component

2010-07-06 Thread Marine JULIAN
Hello,

To understand how the creation of xwiki component works, I followed the
tutorial at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents and I
previously read the Building XWiki from sources page (
http://dev.xwiki.org/xwiki/bin/view/Community/Building). My goal is to
integrate the HelloWorld component (the tutorial one) in my xwiki instance
and to be able to access it in page by velocity.
Here is what I did :
* install maven 3.0 beta and put the settings.xml files in the .m2
* download the 
xwiki-archetype-velocity-component-1.0-SNAPSHOT.jar,
install it and generate the xwiki component from it
* in the pom.xml of the component, I replace the
1.8-SNAPSHOT by
2.3-SNAPSHOT
Then, I tried to install the component (with mvn install) in order to create
a jar I can put in my WEB-INF/lib directory. But, I had the following error
:

*[INFO] Scanning for projects...*
> *[INFO]*
> *[INFO]
> *
> *[INFO] Building xwiki-essai-component 1.1-SNAPSHOT*
> *[INFO]
> *
> *[WARNING] Missing POM for velocity-tools:velocity-tools:jar:1.4*
> *[INFO]
> *
> *[INFO] BUILD FAILURE*
> *[INFO]
> *
> *[INFO] Total time: 1.050s*
> *[INFO] Finished at: Tue Jul 06 13:25:45 CEST 2010*
> *[INFO] Final Memory: 2M/4M*
> *[INFO]
> *
> *[ERROR] Failed to execute goal on project xwiki-essai-component: Missing:
> *
> *--*
> *1) org.xwiki.platform:xwiki-core-component:jar:2.3-SNAPSHOT*
> *  Try downloading the file manually from the project website.*
> *  Then, install it using the command:*
> *  mvn install:install-file -DgroupId=org.xwiki.platform
> -DartifactId=xwiki-c*
> *ore-component -Dversion=2.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> *
> *  Alternatively, if you host your own repository you can deploy the file
> there:*
> *  mvn deploy:deploy-file -DgroupId=org.xwiki.platform
> -DartifactId=xwiki-core-component -Dversion=2.3-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]*
> *  Path to dependency:*
> *1) com.xpn.xwiki.products:xwiki-essai-component:pom:1.1-SNAPSHOT*
> *2) org.xwiki.platform:xwiki-core-component:jar:2.3-SNAPSHOT*
> *--*
> *1 required artifact is missing.*
> *for artifact:*
> *  com.xpn.xwiki.products:xwiki-essai-component:pom:1.1-SNAPSHOT*
> *from the specified remote repositories:*
> *  xwiki-externals (http://maven.xwiki.org/externals, releases=true,
> snapshots=true),*
> *  xwiki-releases (http://maven.xwiki.org/releases, releases=true,
> snapshots=false),*
> *  xwiki-snapshots (http://maven.xwiki.org/snapshots, releases=false,
> snapshots=true),*
> *  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
> *
> *-> [Help 1]*
> *[ERROR]*
> *[ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.*
> *[ERROR] Re-run Maven using the -X switch to enable full debug logging.*
> *[ERROR]*
> *[ERROR] For more information about the errors and possible solutions,
> please read the following articles:*
> *[ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MultipleArtifactsNotFoundException
> *
>

I'm new in Maven so i don't understand where is the problem. But I
dowloaded, as explained, the file
missingand
install it with :
*mvn install:install-file -DgroupId=org.xwiki.platform
-DartifactId=xwiki-core-component -Dversion=2.3-20100702.153251-358
-Dpackaging=jar -Dfile=C:\Users\fnac\Desktop\May\testMVN\pom.xml*
This time, the build succeeded but I didn't have any jar file. And, when I
tried again "mvn install", I had the same error.
I also tried "mvn -nsu clean install" (I read that somewhere) and it was the
same.

Do I miss something ? Is "mvn install" the good way to have a jar ? (I tried
"mvn package" too)

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


Re: [xwiki-users] Questions about LDAP in XEM 2.3.1

2010-07-05 Thread Marine Julian


tmortagne wrote:
> 
> On Mon, Jul 5, 2010 at 10:30, Marine JULIAN 
> wrote:
>> Hi everybody,
>>
>> I've just configured a LDAP authentication in my XEM 2.3.1 and I have two
>> questions.
>> I would like you to confirm that LDAP authenticated users only appear in
>> the
>> admin users menu at their first connection. Is it right ? In that case,
>> how
> 
> I'm not sure i see what you mean by "admin users menu". LDAP user is
> created on XWiki the first time the corresponding user log in.
> 
By admin users menu, I meaned the page we can access by "administer wiki" ->
"users". I agree it wasn't very clear... Anyway, you answered my question :)


tmortagne wrote:
> 
>> Besides, I would like that only one group of my LDAP can access to the
>> admin
>> wiki and to wiki templates. Is there a way to do that ?
> You can setup LDAP users membership on XWiki based on groups you have
> on LDAP server. See
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HIwanttobeabletoreuseLDAPusersmembershipinXWiki
> 
If i understood well, I can only play with groups to restrict access to a
subwiki in my farm.

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Questions-about-LDAP-in-XEM-2-3-1-tp5255260p5255898.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


[xwiki-users] Questions about LDAP in XEM 2.3.1

2010-07-05 Thread Marine JULIAN
Hi everybody,

I've just configured a LDAP authentication in my XEM 2.3.1 and I have two
questions.
I would like you to confirm that LDAP authenticated users only appear in the
admin users menu at their first connection. Is it right ? In that case, how
can i put all authenticated users in a wiki group different to XWikiAllGroup
?
Besides, I would like that only one group of my LDAP can access to the admin
wiki and to wiki templates. Is there a way to do that ?

Thanks in advance for your help.

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


[xwiki-users] Column20Macro error

2010-06-08 Thread Marine JULIAN
Hi,

I downloaded the Column20Macro jar and put it in my WEB-INF/lib directory.
Then, after restarting my server, I tried to use it to display two basic
columns but I had this error :

Failed to execute section macro :
org.xwiki.rendering.macro.MacroExecutionException: Section macro
expect at least one column macro as first-level children
at 
org.xwiki.rendering.internal.macro.column.SectionMacro.execute(SectionMacro.java:78)
at 
org.xwiki.rendering.internal.macro.column.SectionMacro.execute(SectionMacro.java:25)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:174)
at 
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:119)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
[...]
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

It's quite weird because I used two column macro. Here my code :
{{section justify="true"}}
{{column}} a {{/column}}
{{column}} b {{/column}}
{{/section}}

When I wrote use only one column macro inside the section one, I didn't have
that error... But until two columns macro, the error appeared...
Did I miss something ?

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


Re: [xwiki-users] Missing documents in 3.2.1 default set

2010-06-07 Thread Marine Julian


tmortagne wrote:
> 
> New search application is only in 2.4.x branch.
> 
My mistake then... Does it plan to be included in the 2.3 branch later ?
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Missing-documents-in-3-2-1-default-set-tp5148152p5148251.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


[xwiki-users] Missing documents in 3.2.1 default set

2010-06-07 Thread Marine Julian

Hi everybody,

I've just downloaded the xwiki-enterprise-wiki-2.3.1.xar default set to
import it in my empty 2.3.1 xwiki. And I think the xar isn't complete.
Indeed, there isn't the new Search Application section in the wiki
administration...
After comparison between the 2.4.1 default set and the 2.3.1 one, I noticed
that the following documents are missing in the 2.3.1 :
- Main.DatabaseSearch
- Main.Search
- XWiki.LuceneSearchAdmin
- XWiki.SearchAdmin
- XWiki.SearchCode
- XWiki.SearchConfigClass

Is it enough if I import them from the 2.4.1 xar or do I need to modify some
other existing pages ?

Thanks,
Marine
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Missing-documents-in-3-2-1-default-set-tp5148152p5148152.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


Re: [xwiki-users] Formula Macro - native renderer issue

2010-06-04 Thread Marine Julian

Hi !

I'm sorry for digging up my topic again and again but I really don't know
what to do to solve my issue. Isn't there someone who can reproduce this
error ?
Or it is that there is no one who's able to tell me if the Formula Macro
always supports the native renderer ?

Thank you again for helping me.

Marine

Marine Julian wrote:
> 
> Hello everybody,
> 
> Does the Formula Macro always support the native renderer ?
> Indeed, I tried to use it with an other configuration (the third one !!!)
> : Debian, TexLive, ImageMagick, XEM 2.3. But I had again the same error...
> Here it is :
> ERROR formula.FormulaMacro - Invalid renderer: [native]. Falling back to
> the safe renderer.
> org.xwiki.component.manager.ComponentLookupException: Failed to render
> formula using [native] renderer
>  at
> org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
>  ... etc 
> 
> Besides, is there a way to redefine the "safe renderer" ? I would like it
> to be googlecharts method. The snuggletex method is too limited...
> 

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


[xwiki-users] Failed to execute macro: rss

2010-06-01 Thread Marine JULIAN
Hi !

I've been trying the RSS macro for severals hours but I can't stop to have
the "Failed to execute macro: RSS" error...
I'm using a XEM 2.3 version on Debian and I tried to insert the macro in the
main page (Main.WebHome) of a sub wiki called "test". I wanted to display
the last five news of the blog. Here the macro code :
{{rss count="5" feed="
http://myserver.fr:8080/xwiki/wiki/test/view/Blog/BlogRss"/}}
Does anyone have an idea of the error ? Or perhaps you can give me some
tests to do so that I could find why I have this error.

org.xwiki.rendering.macro.MacroExecutionException: Error processing
[http://myserver.fr:8080/xwiki/bin/view/XWiki/WatchListRss?xpage=plain&outputSyntax=plain]
: Server returned HTTP response code: 401 for URL:
http://xwiki.gipsa-lab.inpg.fr:8080/xwiki/bin/login/XWiki/XWikiLogin;jsessionid=g2idn04a8uxo?srid=W5tozYnT
at 
org.xwiki.rendering.internal.macro.rss.DefaultRomeFeedFactory.createFeed(DefaultRomeFeedFactory.java:68)
[...]
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.io.IOException: Server returned HTTP response code:
401 for URL: 
http://myserver.fr:8080/xwiki/bin/login/XWiki/XWikiLogin;jsessionid=g2idn04a8uxo?srid=W5tozYnT
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source)
[...]
... 90 more

Thank you in advance,
Marine
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Importation issues

2010-05-31 Thread Marine Julian


tmortagne wrote:
> 
>> Does it need to be reported on jira ? I don't know in which case we must
>> do
>> it and if we are allowed to do it (perhaps only devs can report a
>> bug...).
> 
> Sure you have the right to do it ;)
> 
> When anyone find what is a bug for sure (I did not followed the issue
> closely here so i don't know) he should always report it on jira (if
> it's not already there obviously).
> 
I didn't find jira report which deals with this issue so I created a new one
:  http://jira.xwiki.org/jira/browse/XAOFFICE-48
http://jira.xwiki.org/jira/browse/XAOFFICE-48 . I hope that I created it
well...

For the second issue I noticed, I think it's better if someone can try to
reproduce this behavior. I'm not sure that is really a bug and I don't know
where the problem comes.

Marine wrote:
> The second issue (I don't know if it's a real one) : I created a word
> (.doc) document in which I imported an image (with Word 2007 interface).
> Then, when I imported the doc in the wiki, the image wasn't imported...
> Then, I tried by copying the image in the word document (and not importing
> it) and the wiki importation worked ! Can you reproduce this behavior ? It
> seems to be a little strange.

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Importation-issues-tp5107820p5121459.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


Re: [xwiki-users] Importation issues

2010-05-31 Thread Marine Julian


Marine Julian wrote:
> 
> The first problem is that importation by splitting the document doesn't
> work in 2.3 version... I tried to split by heading of level 1. It said to
> me that the importation succeeds and showed me the link to the new page
> (said Rapports.parent) but when I accessed it I had the "The page doesn't
> exist"... Later, I realized that my document was imported in the
> Main.WebHome page !! Weird ! In fact, the importation succeeded but not
> where I wanted and asked for ! In fact, I had the equivalent of
> "Rapports.parent" in the Main.WebHome i.e. the content and the links to
> Rapports.child pages. Unfortunately, the links had the [?] of "page not
> existing". Indeed, they links to "Rapports.children" pages which don't
> exist : the child pages were also imported behind the parent page (itself
> behind the content of Main.WebHome)...
> 
Does it need to be reported on jira ? I don't know in which case we must do
it and if we are allowed to do it (perhaps only devs can report a bug...).

Please note that, in wiki farm, from a subwiki, the document is not imported
in its Main.WebHome page but in the Main.WebHome page of the admin wiki
(Main wiki)...
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Importation-issues-tp5107820p5120875.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


Re: [xwiki-users] Error Starting Open Office Server

2010-05-26 Thread Marine Julian

Hi Asiri,


Asiri Rathnayake wrote:
> I'm afraid newer versions of jodconverter requires OpenOffice.org 3.0 or
> above.
> 
> See: http://code.google.com/p/jodconverter/wiki/GettingStarted
Indeed, I installed OpenOffice 3.2 and it worked. I hope that there is not
too many bugs under Debian !
By the way, I had the "Inadequate privileges" issue when I tried to start
the server. But, like suggested (somewhere in the forum), if I saved the
XWiki.OfficeImporterAdmin, I was abble to start it. Unfortunately, I had to
repeat this method every times I wanted to start/stop/restart the server... 

One more thing : when I exported a page in pdf and rtf format (does it work
with the openoffice server ?), i had the following error/warn messages and I
don't understand them. Can someone throw some light on it for me ?
WARN apps.FOUserAgent - The following feature isn't implemented by Apache
FROP, yet: table-layout="auto" (on fo:table) (See position 248:165)
ERROR properties.PropertyMaker - forcing opt to max in LengthRange
The document which I tried to export has tables with images in. In pdf
format, the tables are rendered but they exceed the larger of the page and
so they were truncated (we cannot see all the content). In rtf format,
instead of tables, there are only very big cells (one per pages) without any
content (neither image or text). Please, note that those behaviors apply to
tables with AND without images. Do you think the warn/error messages are
linked to this ?

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Error-Starting-Open-Office-Server-tp5098694p5102370.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


[xwiki-users] Formula Macro - native renderer issue

2010-05-25 Thread Marine Julian

Hello everybody,

Does the Formula Macro always support the native renderer ?
Indeed, I tried to use it with an other configuration (the third one !!!) :
Debian, TexLive, ImageMagick, XEM 2.3. But I had again the same error...
Here it is :
ERROR formula.FormulaMacro - Invalid renderer: [native]. Falling back to the
safe renderer.
org.xwiki.component.manager.ComponentLookupException: Failed to render
formula using [native] renderer
 at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
 ... etc 

Besides, is there a way to redefine the "safe renderer" ? I would like it to
be googlecharts method. The snuggletex method is too limited...
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Formula-Macro-rendering-methods-tp4906580p5098754.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


[xwiki-users] Error Starting Open Office Server

2010-05-25 Thread Marine JULIAN
Hello,

I have XEM 2.3 (xwiki-enterprise-manager-mysql-2.3.zip) under Debian and
Open Office 2.4. I configured my open office server like this :*
openoffice.homePath=/usr/lib/openoffice/
openoffice.profilePath=/home/xwiki/.openoffice.org2*
When I tried to start the openoffice server, I had the "Error while
connecting / starting openoffice." message (see error log below). Do you
have an idea of what is the issue ?

[http://myserver.fr:8080/xwiki/bin/view/XWiki/OfficeImporterAdmin] ERROR
agerVelocityContextInitializer  - Error while connecting / starting
openoffice.
org.xwiki.officeimporter.openoffice.OpenOfficeManagerException: Error while
connecting / starting openoffice.
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:143)
at
org.xwiki.officeimporter.openoffice.OpenOfficeManagerVelocityBridge.startServer(OpenOfficeManagerVelocityBridge.java:100)
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: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.evaluate(ASTReference.java:460)
at
org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:63)
at
org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:92)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
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.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.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:794)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:811)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:525)
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: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.int

Re: [xwiki-users] bad rtf exportation and customizing the pdf export look and feel

2010-05-21 Thread Marine Julian

Hi Wilson !


Wilson Leão Neto wrote:
> 
> Hey! I had the same problem, regarding the PDF export customization, I'm
> still not able to do it creating the Class document like they've done in
> the
> tutorial. I was suggested to add a *pdf.css *file into the
> *\Xwiki\templates
> * folder. Add the css code into the file and test it. It should work.
> 
Indeed, it works when I create a pdf.css file in the \Xwiki\templates
folder. So thank you it could be an alternative for what i'm trying to do.
In fact, i'm using a farm and i would prefer have one customization per
wiki. So, it will be great if the tutorial method can work !
Anyone encounters this issue (can't be able to customize creating the
PDFClass) and find a way to do it ? Besides, it's weird because I saw in
pdf*.vm files some calls to the XWiki.PDFClass... But i don't really know
how it works...


Wilson Leão Neto wrote:
> 
> Also, have you tried to edit the header, footer or toc? I'm having
> problems
> editing the toc, if you know something, please tell me.
> 
Actually, I didn't try but I took a look at it and I was able to add some
little things. I don't think I can help you but... who knows ? What are your
problems ?
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/bad-rtf-exportation-and-customizing-the-pdf-export-look-and-feel-tp5079790p5083950.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


[xwiki-users] bad rtf exportation and customizing the pdf export look and feel

2010-05-20 Thread Marine JULIAN
Hello,

I notice that exportation in rtf format has some bad behaviors:

   - Two things are not really important because, like it's rtf format, we
   can modify the document. But the rendering is a little weird : the
   importation doesn't create a cover page with the main title and puts the
   beginning of the table of content at the bottom of the first page...
   - As well (and it's the big point to me), tables are rendered in a
   strange way: the column width is so thin that we cannot notice the
   content of cells... We can thin "No matter, we can modify the larger in the
   rtf document" but we can only do that cell by cell... For small tables, it's
   okay but, for bigger ones, it's not very useful ! I put an example in
   attachment of this table so that you can see the issue:
   |=column 1|=column 2
   |content 1|content 2

To finish, I just have one question about customizing exportation. I tried
to customize the PDF export Look & Feel by creating a PDFClass and a
PDFClassTemplate. The template has a textearea "style" property which
contains (just to test) :
h1{
color : red;
}
div{
color : red;
}
p{
color : red;
}
I added the "&template=XWiki.PDFClassTemplate" line to the exportation link
but the rendering is always the same... Did I forgot to do something ?
For your knowledge, I tried that because I would like to customize the table
look and feel. I don't like that they don't have borders...

Thank you in advance for your help.
Marine
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Imported anchors in titles cannot be exported

2010-05-20 Thread Marine Julian


vmassol wrote:
> 
> Hi Marine,
> 
> On May 18, 2010, at 3:28 PM, Marine JULIAN wrote:
> 
>> Hi,
>> 
>> I imported a MS Office file which contains a table of content. When I
>> tried
>> to export it (both in pdf and rtf format), I had an error (see below).
>> After some tests, I realized that it's due to anchor tags in titles like
>> *=
>> {{id name="Sommaire|outline"}}{{/id}} Sommaire =*. I saw a report
>> bug<http://jira.xwiki.org/jira/browse/XWIKI-5113%20>which deals about
>> this issue. But I though that perhaps in that case, it is
>> a bad behavior of the office importer conversion. Am I right ?
> 
> Indeed there are 2 problems:
> 1) the rendering engine was choking on id macros used inside headers (this
> was fixed in XWIKI-5113). If you upgrade to either XE 2.3, 2.2.6 or 2.4M1
> it should work fine.
I upgraded (to 2.3) and, indeed, it works fine. Thank you !

vmassol wrote:
> 2) the office importer should probably not generate these id macros inside
> header files. This hasn't been done yet AFAIK.
Even in 2.3, the office importer generate id macros inside title tags... 

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Imported-anchors-in-titles-cannot-be-exported-tp5069961p5079463.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


[xwiki-users] Imported anchors in titles cannot be exported

2010-05-18 Thread Marine JULIAN
Hi,

I imported a MS Office file which contains a table of content. When I tried
to export it (both in pdf and rtf format), I had an error (see below).
After some tests, I realized that it's due to anchor tags in titles like *=
{{id name="Sommaire|outline"}}{{/id}} Sommaire =*. I saw a report
bugwhich deals about
this issue. But I though that perhaps in that case, it is
a bad behavior of the office importer conversion. Am I right ?

Information détaillée:
 Error number 11015 in 11: Exception while exporting
Wrapped Exception: Error number 12003 in 12: XSL Transformation Failed
Wrapped Exception: Premature end of file.
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception
while exporting
Wrapped Exception: Error number 12003 in 12: XSL Transformation Failed
Wrapped Exception: Premature end of file.
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:64)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)


Wrapped Exception:

com.xpn.xwiki.XWikiException: Error number 12003 in 12: XSL
Transformation Failed
Wrapped Exception: Premature end of file.
at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyXsl(PdfExportImpl.java:316)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.convertXHtmlToXMLFO(PdfExportImpl.java:294)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:178)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:235)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:266)
at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:198)
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:61)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at 
org.apache.struts.action.RequestProce

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

2010-05-11 Thread Marine Julian

Hi !

I've always had this infinite loading for the native renderer with this
configuration : XWiki enterprise 2.1.25683 standalone, Windows 7, TeXLive
and ImageMagick.
I tried on an other machine with Windows XP, XWiki Enterprise (Manager)
2.2.6.28650, MikteK (http://miktex.org/) and ImageMagick. And no infinite
loading !... But I had an error :
ERROR formula.FormulaMacro - Invalid renderer: [native]. Falling back to the
safe renderer.
org.xwiki.component.manager.ComponentLookupException: Failed to render
formula using [native] renderer
 at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
 ... etc
It's quite weird because I just modified the macro.formula.renderer=native
line in the file WEB-INF/xwiki.properties...

Does someone already have this error ?


Marine Julian wrote:
> 
> Now, my main problem is that the native method doesn't work...
> I put in the build.properties the "macro.formula.renderer = native" lign.
> And, like you advice me, I installed TeXLive and ImageMagick (they are in
> the path's search system, I checked the three calls "latex", "dvips" and
> "convert" in my consol).
> But, when I try some equations (even basic ones), my wiki seems to "load"
> over and over without result. It's like it can't call external programs
> but doesn't notice and continues to do it again. Thus, when I click on
> "Save & Visualize", it stays on the edit page, seems to do something again
> and again and so it doesn't go to the view page.
> Do I miss some steps ?
> 

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


Re: [xwiki-users] XEM - access issue to wiki instances

2010-04-30 Thread Marine Julian

> How are you trying to access it what did you entered as wiki alias exactly
? 
Like I just would know how it works, I didn't change anything and let all
default parameters. I let the default alias i.e. premierwiki.localdomain.com
(with premierwiki as wiki instance name). So, I access it from
http://premierwiki.localdomain.com:8080/xwiki/bin/view/Main/.
I think it should work...

> > ERROR util.JDBCExceptionReporter - Incorrect string value: '\xC5\xABs
> va...'
> > for column 'XWD_CONTENT' at row 1
> This error looks like you did not created UTF8 database for the main
> wiki. MySQL default is latin1. 
Thank you, i'm going to change that.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XEM-access-issue-to-wiki-instances-tp4985145p4985426.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


[xwiki-users] XEM - access issue to wiki instances

2010-04-30 Thread Marine JULIAN
Hello,

I installed XEM (version 2.3) from a distribution with Tomcat 6.0.26 and
MySQL 5.1 on Windows XP. I followed the guide installation. After creating a
new wiki instance, I tried to access it but unsuccessfully... I have some
delay timeout expiration and wiki can't be displayed. I can only access to
the main wiki.
I don't know where to look for and what to do, do you have any suggestions ?

When I imported the xem application xar, I had these error messages in
Tomcat console :
ERROR util.JDBCExceptionReporter - Incorrect string value: '\xC5\xABs va...'
for column 'XWD_CONTENT' at row 1
ERROR .AbstractFlushingEventListener - Could not synchronize database state
with session
and after those, some like this one :
ERROR packaging.Package - Failed to save document Sandbox.WebHome

Do you think it's linked ?

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


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

2010-04-29 Thread Marine JULIAN

I tried with two forms : 
- one with a formula length of 200 characters which was rendered both in GET
and POST HTTP requests
- one with a formula length of more than 200 char which gives me the
following message in both cases :
"The parameter
'chl=11\\11\\11\\11\\11\\11\\11'
exceeds the maximum formula length of 200 characters."

Marine

> 
> I think is not Google Charts maximum formula length limit but HTTP GET
> limit.
> Try in HTTP POST
> 
> Arnaud.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Formula-Macro-rendering-methods-tp4906580p4978828.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


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

2010-04-28 Thread Marine JULIAN

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


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

2010-04-27 Thread Marine JULIAN
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 

> 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] Formula Macro - rendering methods

2010-04-23 Thread Marine JULIAN
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

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


Re: [xwiki-users] Application translations with the properties located in XWiki pages (Bulleting Board example)

2010-04-20 Thread Marine JULIAN

Hi Marius,

Thank your very much. I've found where my problem was !
> Strange, I just tried with XWiki Enterprise 2.2.4 and it worked. Here's 
> what I did:
> 
> * went to Administration/General
> * enabled multi lingual
> * set the Languages field to "en,fr" (without the quotes)
> * kept en as the Default Language
> * saved
> * opened BBCode.Translations in wiki edit mode
> * clicked on fr in the Document Translations panel ("Translate this 
> document in:")
> * changed some of the translations (e.g. the value associated to 
> bb_addnewcategory translation key) and saved
> * went to the Bulletin Board home page and the French translation was in 
>   place
I already did what you say except one thing : instead of editing
BBCode.Translations in wiki mode, I did it in WYSIWYG mode... And, thank to
you, I realize that, in WYSIWYG mode, some codes are added in the page. Look
this quote :
|| bb_bb=Bulletin Board
|| bb_welcomebb=Welcome to your Bulletin Board!
My problem was this automatical "bb_" piece of code...
But, mea culpa, because on the 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications
Internationalizing Applications page  it's written that we have to edit in
wiki mode... Perhaps, it should be bigger ! :)
Anyway, thank you ! Now, it works !

> Now, I can see that on the Bulletin Board home page only the en language
> is listed in view mode in the top right corner of the page. This is both
> correct, because the Bulletin Board home page wasn't translated in a
> different language, and wrong because the user is not able to switch the
> UI language.
> 
> Unfortunately the language of the UI is currently mixed with the
> document language. You can force the French language by appending
> language=fr to the query string of the URL. For instance
> 
> /xwiki/bin/view/BulletinBoard/?language=fr
> 
> should display the Bulletin Board home page in French. 
I understand that but it's too bad... Is there a way (a workaround ?) to
detect if there are many translations in the translation document and not in
the page itself ? Or, if there isn't, a way to force the wiki to have the
list of all languages available (in the top right corner) even if the
current page is translated in only one language ?
-- 
View this message in context: 
http://n2.nabble.com/Application-translations-with-the-properties-located-in-XWiki-pages-Bulleting-Board-example-tp4926053p4930255.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


[xwiki-users] Application translations with the properties located in XWiki pages (Bulleting Board example)

2010-04-19 Thread Marine JULIAN
Hello,

I try to translate an application in many languages but it doesn't work.
Let's take the Bulleting board application to explain my problem.
The bulleting Board application already has a default translation page in
english (BBCode.Translations). I declared it in Administration > Programming
> Document Bundles and it works fine. I would like to have a second language
for my Bulleting Board. I try two ways to do that but, unfortunatly, neither
one or the other works...
First method : I put the BBCode.Translations language to english (en) and I
translate the document in french (fr) thanks to the right translation panel.
So, I have my BBCode.Translations page available both in english and in
french. Then, when I go back to my Bulleting Board, only the key messages
are displayed and not their values (bb_welcomebb instead of "Welcome to your
Bulletin Board!")...
Second method : I created a new BBCode.TranslationFr page which I added in
the document bundles Programming field (with a separated comma to the
original BBCode.Translations). But I have the same result...
I think there is something I don't understand... But what ? !!

I feel like a newbie 'cause i don't stop to mail my problems (it's the third
in one week !)... Though, I read the documentation, the FAQ and the Nabble
Forum and I did some tests... Hope I don't bother you too much ! :)

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


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

2010-04-19 Thread Marine JULIAN

Thank you very much for your help but i'm afraid that I need it again :(

> No, it only allows mathematical formulas to be rendered, and only the 
> standard LaTeX expressions + some ams packages when using the native or 
> mathtran renderers. Things added by other packages can't be used. 
> bmatrix and vmatrix are from the amsmath package, so the default 
> SnuggleTeX renderer can't handle it.
According to what you said, to have as many latex packages to be rendered as
possible, I should use either the native renderer or the mathtran renderer.
Is it correct ? (Sorry for asking you to repeat but I don't understand
English as I would like to and I want to be sure to understand) 
And what about the new Google Chart API method ? 
Do you know if there is a list of the ams packages which can be rendered for
each rendering method ?

Now, my main problem is that the native method doesn't work...
I put in the build.properties the "macro.formula.renderer = native" lign.
And, like you advice me, I installed TeXLive and ImageMagick (they are in
the path's search system, I checked the three calls "latex", "dvips" and
"convert" in my consol).
But, when I try some equations (even basic ones), my wiki seems to "load"
over and over without result. It's like it can't call external programs but
doesn't notice and continues to do it again. Thus, when I click on "Save &
Visualize", it stays on the edit page, seems to do something again and again
and so it doesn't go to the view page.
Do I miss some steps ?

Note that there is no error...
-- 
View this message in context: 
http://n2.nabble.com/Formula-Macro-rendering-methods-tp4906580p4924772.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


[xwiki-users] Formula Macro - rendering methods

2010-04-15 Thread Marine JULIAN
Hi,

I have some questions about the formula macro. I would like to test the
native method and the MathTran based method but I'm not sure to understand
how to choose and to use those rendered methods...
Before beginning, I have the XWiki Enterprise standalone version (for
Windows) and I don't install external programs for latex rendered. Does it
mean I use the SnuggleTex method ?
Thus, to try the native method, I add in in the file
WEB-INF/xwiki.properties the line  macro.formula.renderer = native. I
understand that this method uses external programs but which one do I have ?
Is there a particular installation to do in order to connect them with my
XWiki installation ? Or do I have to configure the link/connection between
XWiki and those external tools ?
For the MathTran based method, my questions are pretty much the same... To
resume, what do I have to do to test this method ? Do I have to install some
particular programs ?

Finaly, I would like to know if the marco can renderer other latex markup
than "formula" (for instance \section or \subsection) ? Indeed, I try with
my actual configuration to display a matrix (with the code below) but it
doesn't work... It only renders my matrix in line. Is it the behaviour
expected ?

> \begin{bmatrix}
>   0  & \cdots & 0  \\
>   \vdots & \ddots & \vdots \\
>   0  & \cdots & 0
> \end{bmatrix}
>
and

> \begin{vmatrix}
>   x & y \\
>   z & v
> \end{vmatrix}
>

Thank you,
Best regards,

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