Re: [xwiki-users] TOC in a Panel

2014-03-07 Thread Leonardo Kodato
Hi.
I'm new to Xwiki too, but what I can say is that I see just one possibility
without recurring to programming.

You can create a template and set the macro in it. Then everytime a user
create an article, he would have 2 options: create a new page from scratch
or create it from a template.

That way they would have more freedom do select if they want TOC or not.
=)


2014-03-07 17:24 GMT-03:00 craig barnett :

> Hi,
> I'm new to xwiki and having a lot of trouble doing something that feels
> like it should be simple. All i'm wanting is to be able to display the
> {{toc}} macro of the current page on a side panel. Everything I find online
> seems to be from previous xwiki syntaxes and therefore out dated and not
> working. In fact it seems like most of the responses I see just say that
> such a thing is in development, but those were all posts from 2009. We
> would really like a setup like this that way users don't have to go through
> the trouble of creating a {{toc}} on every page, since one for the current
> page will always be shown in the panel. It seems like it would make a lot
> of sense if syntax like {{toc source=currentPage}} existed and was usable
> from a panel. It would open up a lot of possibilities.
> If anyone has any advice or recommendations I would greatly appreciate it.
> I've been digging through velocity code for the past week so I'm starting
> to get the hang of it but still a complete noob in that area. Thanks for
> the time!
> Sincerely,Craig
> ___
> 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] TOC in a Panel

2014-03-07 Thread craig barnett
Hi,
I'm new to xwiki and having a lot of trouble doing something that feels like it 
should be simple. All i'm wanting is to be able to display the {{toc}} macro of 
the current page on a side panel. Everything I find online seems to be from 
previous xwiki syntaxes and therefore out dated and not working. In fact it 
seems like most of the responses I see just say that such a thing is in 
development, but those were all posts from 2009. We would really like a setup 
like this that way users don't have to go through the trouble of creating a 
{{toc}} on every page, since one for the current page will always be shown in 
the panel. It seems like it would make a lot of sense if syntax like {{toc 
source=currentPage}} existed and was usable from a panel. It would open up a 
lot of possibilities.
If anyone has any advice or recommendations I would greatly appreciate it. I've 
been digging through velocity code for the past week so I'm starting to get the 
hang of it but still a complete noob in that area. Thanks for the time!
Sincerely,Craig   
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Activity Stream

2014-03-07 Thread Daniel Ebanja
Hallo,
is it possible to turn the activity Stream for users of. I want the admin
only to see this.
Thanks.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and encoding problems

2014-03-07 Thread Pascal BASTIEN
Ok thanks you for your test.

I used .WAR on tomcat and environment.permanentDirectory=/home/data_xwiki/ in 
xwiki.properties

I updatedb && locate status.xml and delete 
/home/data_xwiki/jobs/status/distribution/status.xml Logon
 with Admin account the DW doesn't launch but it doesn't matter now (for me) 
because the DW was launch after I delete status.xml and wipe my postgres
 database. :-)





 De : "vinc...@massol.net" 
À : XWiki Users  
Cc : Pascal BASTIEN  
Envoyé le : Vendredi 7 mars 2014 10h59
Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and 
encoding problems
 

 



On 7 Mar 2014 at 10:00:15, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> I removed status.xml AND reconnect with Admin/admin: the distribution wizard 
> doesn't launch (Admin is superuser of xwiki). But it doesn't matter (for me) 
> because when I wipe my database the solution working.


FYI I’ve downloaded the 5.4.2 distribution (the jetty zipped one) and I’ve 
removed the [datadir]/jobs/status/distribution/status.xml file and restarted 
and I get the DW.

I’m logged as Admin.

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


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
I manually reset the password to the one that I used during the Debian
installer setup, and could log into the wiki again. I tried to create a wiki
et voilà - it worked. 

Somehow granting all permissions to the xwiki user seems to have reset its
password to the one in the hibernate.cfg.xml file. No idea how that worked.

I opened two issues on jira.xwiki.com (10130 and 10129) that address the
problems I have encountered.

Thanks again,
Christian



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589476.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] (no subject)

2014-03-07 Thread Daniel Ebanja
Hi,
i have some perfomance problems. It takes a while till xwiki's home page is
loaded in my browser.
Looking into the log gives me the following:

Mar 07, 2014 3:06:14 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Mar 07, 2014 3:06:15 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 07, 2014 3:06:15 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8020"]
Mar 07, 2014 3:06:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 730 ms
Mar 07, 2014 3:06:15 PM
org.apache.catalina.mbeans.JmxRemoteLifecycleListener createServer
INFO: The JMX Remote Listener has configured the registry on port 9080 and
the server on port 10080 for the Platform server
Mar 07, 2014 3:06:15 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Mar 07, 2014 3:06:15 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Mar 07, 2014 3:06:15 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/srv/tomcat-xwiki/www/catalina-base/webapps/ROOT
2014-03-07 15:06:34,874 [localhost-startStop-1] WARN
o.x.e.i.ServletEnvironment - No permanent directory configured. Using
temporary directory
[/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_].
2014-03-07 15:06:35,957 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2014-03-07 15:06:35,957 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_/solr
2014-03-07 15:06:37,788 [localhost-startStop-1] WARN
o.a.s.c.SolrCore   - New index directory detected: old=null
new=/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_/solr/./data/index/
2014-03-07 15:06:37,789 [localhost-startStop-1] WARN
o.a.s.c.SolrCore   - [xwiki] Solr index directory
'/srv/tomcat-xwiki/www/catalina-base/work/Catalina/localhost/_/solr/./data/index'
doesn't exist. Creating new index...
2014-03-07 15:06:38,648 [localhost-startStop-1] INFO
o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
Mar 07, 2014 3:06:39 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/srv/tomcat-xwiki/www/catalina-base/webapps/manager
Mar 07, 2014 3:06:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 07, 2014 3:06:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8020"]
Mar 07, 2014 3:06:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 24842 ms
2014-03-07 15:07:25,793 [Lucene Index Updater] ERROR
o.a.p.p.f.PDCIDFont- Error: Could not parse predefined CMAP
file for 'Adobe-WinCharSet-UCS2'
2014-03-07 15:08:14,257 [XWiki Solr index thread] ERROR
o.a.p.p.f.PDCIDFont- Error: Could not parse predefined CMAP
file for 'Adobe-WinCharSet-UCS2'
2014-03-07 15:08:14,283 [XWiki Solr index thread] ERROR
o.a.p.p.f.PDCIDFont- Error: Could not parse predefined CMAP
file for 'Adobe-WinCharSet-UCS2'

i just outlined my suspicions in blue.
I will appreciate any help.
Thanks.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
Here's /etc/xwiki/hibernate.cfg.xml:

http://pastebin.com/CWCwNebS

there is also a /usr/lib/xwiki/WEB-INF/hibernate.cfg.xml, but that's not the
one you mean, is it?

The credentials in the first config file for the xwiki mysql user is
incorrect, I have given a different password during the Debian installer
setup. But so far, it has worked anyways (except creating new wikis). Only
after the manual "grant" did the wiki fully break.




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589474.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] Logfile/Stack traces

2014-03-07 Thread vinc...@massol.net
 
Could you show us the value of these 3 properties from your hibernate.cfg.xml 
file (or better, paste it fully somewhere)?

    ...
    ) the 
proper rights in the DB somehow.

Thanks
-Vincent

On 7 Mar 2014 at 14:13:35, panyasan 
(i...@bibliograph.org(mailto:i...@bibliograph.org)) wrote:

> Unfortunately, this made things worse.
>  
> Here's what I did:
>  
> # mysql -u root -p -e "grant all privileges on *.* to xwiki@localhost
> identified by 'xwiki'"
>  
> (entered root password)
>  
> Now I am getting an HTTP Status 500 error from tomcat with the following
> stack trace:
>  
> http://pastebin.com/pFKrGcTx
>  
> The most important line being probably:
>  
> org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory (Access denied for user 'xwiki'@'localhost' (using
> password: YES))
>  
> :-(
>  
>  
>  
>  
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589471.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Container macro with more than 2 columns

2014-03-07 Thread Jeremie BOUSQUET
Thanks,

In fact I forgot about the section / column macros, I used them some years
ago, before replacing them with container macro (as it's bundled in xwiki
while section/column macros are retired).
I see why it didn't have this problem, it's because it was using inline
styles - so no pb with css injection...
I may use this as a temporary workaround though, so thanks again,

BR,
Jeremie



2014-03-07 11:39 GMT+01:00 Hamster :

> Jerem,
>
> Nice to see someone else with the same problem we had :-)
>
> I run into this problem when I added a custom macro which displayed a TOC
> on
> a page in multiple columns. The user can choose how many columns the TOC
> should have (for example 3), and the TOC would show all child-pages in 3
> columns.
>
> But when I added my macro to our dashboard, I noticed that the number of
> columns was being ignored.
> Reason: the dashboard is using the {{container}} macro to display the
> columns in the dashboard. It turns out that an XWiki page is listening to
> only 1 {{container}} macro (and thus ignored my custom macro).
>
>
>
> I do have a solution for you...use a different macro!
>
> We are now using the  Column Macro
>   .
>
> {{section}}
> {{column}}
> a
> {{/column}}
>
> {{column}}
> b
> {{/column}}
>
> {{column}}
> c
> {{/column}}
> {{/section}}
>
> Hope this helps!
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Container-macro-with-more-than-2-columns-tp7589422p7589467.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
Unfortunately, this made things worse.

Here's what I did: 

# mysql -u root -p -e "grant all privileges on *.* to xwiki@localhost
identified by 'xwiki'" 

(entered root password)

Now I am getting an HTTP Status 500 error from tomcat with the following
stack trace: 

http://pastebin.com/pFKrGcTx

The most important line being probably:

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Access denied for user 'xwiki'@'localhost' (using
password: YES))

:-(




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589471.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] Logfile/Stack traces

2014-03-07 Thread panyasan
vmassol wrote
>  
>> rely on them. BTW, it would be great if a XWiki Appliance existed for
>> http://www.turnkeylinux.org. If everything works with the debian
>> packages, I
>> might do it.
> 
> That would be awesome. The challenge, beyond doing the first appliance, is
> to maintain it when new XWiki releases come out.

I know. That is why the debian package installation must be absolutely
bug-free, without any post-install patches neccessary. Otherwise the
maintenance is too much hassle. I'll create a Jira Issue for it.

Thanks for your prompt and helpful replies! I'll try to make it work and
will report.

Christian



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589470.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] Logfile/Stack traces

2014-03-07 Thread vinc...@massol.net
 



On 7 Mar 2014 at 11:32:56, panyasan 
(i...@bibliograph.org(mailto:i...@bibliograph.org)) wrote:

> Thank you for investigating the issue.
>  
> Just so that I understand you and Guillaume clearly:
>  
> I need to grant all rights to the xwiki mysql user manually to make this
> work, right? Like so:
>  
> mysql -u root -e "grant all privileges on *.* to xwiki@localhost identified
> by 'xwiki’"

yes

> (see
> https://network.xwiki.com/xwiki/bin/view/DocXEM41En/XWikiEnterpriseManagerInstallation)

Note: This doc is from XWiki SAS not from xwiki.org

Our xwiki.org doc is here:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

> Because I understood Guillaume to say explicitly that I shouldn’t.

Some misunderstanding it seems.. You do need to grant privileges to the xwiki 
user...

> It would be great if the debian packages get fixed, 

I agree, maybe you could create a jira issue for this at http://jira.xwiki.org 
so that it’s not forgotten?

> I need to be able to
> rely on them. BTW, it would be great if a XWiki Appliance existed for
> http://www.turnkeylinux.org. If everything works with the debian packages, I
> might do it.

That would be awesome. The challenge, beyond doing the first appliance, is to 
maintain it when new XWiki releases come out.

Thanks!
-Vincent

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


Re: [xwiki-users] Container macro with more than 2 columns

2014-03-07 Thread Hamster
This is the Velocity we use in our "JAZO TOC":

{{velocity}}
#macro(createTOCTree $document $column_nr)
  #set($translated = $document.getTranslatedDocument())
  #set($name = $translated.getName())
  #set($fullname = $translated.getFullName())
  #set($prefixed = $translated.getPrefixedFullName())
  #set($where = "where doc.parent = '$name' or doc.parent = '$fullname' or
doc.parent = '$prefixed' order by doc.name")
  #if ($name == "WebHome")
   #set($space = $document.getSpace())
   #set($where = "where doc.space = '$space' and (doc.parent = '' or
doc.parent = '$name' or doc.parent = '$fullname' or doc.parent =
'$prefixed') and doc.name != 'WebHome' and doc.name != 'WebPreferences'
order by doc.name")
  #end
#set($pages_count = 0) 
#foreach($name in $xwiki.searchDocuments($where))
#set($pages_count = $pages_count + 1)
#end
##Er zijn $pages_count links
#set($max_links =
$mathtool.ceil($mathtool.div($pages_count,$mathtool.toInteger($column_nr
{{section}}
{{column}}
  #foreach($name in $xwiki.searchDocuments($where))
   #if ($xwiki.getDocument($name))
#set($document = $xwiki.getDocument($name))
#set($translated = $document.getTranslatedDocument())
#set($prefixed = $translated.getPrefixedFullName())
#set($title = $translated.getDisplayTitle())
[[$title>>$prefixed]]
#if ($foreach.count % $max_links == 0 && $foreach.last == false)
{{/column}}

{{column}}
#end
   #end
  #end
{{/column}}
{{/section}}
#end

#set($column_count=$xcontext.macro.params.Columns)
#set($my_document=$xcontext.macro.params.Document)

##**Table Of Contents**
#if ("$!my_document"=="")

#createTOCTree($doc $column_count)

#else
[[**$xwiki.getDocument($my_document).getTranslatedDocument().getDisplayTitle()**>>$xwiki.getDocument($my_document)]]

#createTOCTree($xwiki.getDocument($my_document) $column_count)

#end
{{/velocity}}

It required two parameters, "Columns" (requried) and "Document" (optional).
The "Columns" parameter is used to define the number of columns (obviously).
The "Document" is optional, if empty the macro will show the TOC of the
current page, otherwise it will display the TOC of specified document. This
way, our users can create a "main TOC".



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Container-macro-with-more-than-2-columns-tp7589422p7589468.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] Container macro with more than 2 columns

2014-03-07 Thread Hamster
Jerem,

Nice to see someone else with the same problem we had :-)

I run into this problem when I added a custom macro which displayed a TOC on
a page in multiple columns. The user can choose how many columns the TOC
should have (for example 3), and the TOC would show all child-pages in 3
columns.

But when I added my macro to our dashboard, I noticed that the number of
columns was being ignored.
Reason: the dashboard is using the {{container}} macro to display the
columns in the dashboard. It turns out that an XWiki page is listening to
only 1 {{container}} macro (and thus ignored my custom macro).



I do have a solution for you...use a different macro!

We are now using the  Column Macro
  .

{{section}}
{{column}}
a
{{/column}}

{{column}}
b
{{/column}}

{{column}}
c
{{/column}}
{{/section}}

Hope this helps!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Container-macro-with-more-than-2-columns-tp7589422p7589467.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] Logfile/Stack traces

2014-03-07 Thread panyasan
Thank you for investigating the issue.

Just so that I understand you and Guillaume clearly:

I need to grant all rights to the xwiki mysql user manually to make this
work, right? Like so:

mysql -u root -e "grant all privileges on *.* to xwiki@localhost identified
by 'xwiki'"

(see
https://network.xwiki.com/xwiki/bin/view/DocXEM41En/XWikiEnterpriseManagerInstallation)

Because I understood Guillaume to say explicitly that I shouldn't. 

It would be great if the debian packages get fixed, I need to be able to
rely on them. BTW, it would be great if a XWiki Appliance existed for
http://www.turnkeylinux.org. If everything works with the debian packages, I
might do it.

Thanks,
C. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589466.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] Logfile/Stack traces

2014-03-07 Thread vinc...@massol.net
Hi

1) You should check your tomcat install, there are several warnings/errors but 
they’re not the root cause of your issue
2) Initially it seems you tried to create a wiki without being logged in, not 
sure how this can happen…
3) At the end of the log you tried to create a “forum” subwiki and the error is 
very clear:

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access 
denied for user 'xwiki'@'localhost' to database ‘forum'

As Guillaume Fenollar mentioned in another email this means that you need to 
grant the ability to create schema to the xwiki user in mysql, see 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

Note: It would be nice if this could be done by the debian installer by 
default. @Thomas (the creator of this installer), any idea why it’s not done?

Thanks
-Vincent

On 7 Mar 2014 at 10:56:35, panyasan 
(i...@bibliograph.org(mailto:i...@bibliograph.org)) wrote:

> Ok found it (at least I hope so):
>  
> http://pastebin.com/BUEpvzz2
>  
> Thanks,
> C.
>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and encoding problems

2014-03-07 Thread vinc...@massol.net
 



On 7 Mar 2014 at 10:00:15, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> I removed status.xml AND reconnect with Admin/admin: the distribution wizard 
> doesn't launch (Admin is superuser of xwiki). But it doesn't matter (for me) 
> because when I wipe my database the solution working.


FYI I’ve downloaded the 5.4.2 distribution (the jetty zipped one) and I’ve 
removed the [datadir]/jobs/status/distribution/status.xml file and restarted 
and I get the DW.

I’m logged as Admin.

Thanks
-Vincent

> Anyways thxs for encoding problem to : your FAQ works. I modify tomcat 
> connectors and hibernate file to acces on my postgres. This solution working 
> very well. Thxs again.  
>  
> Thxs a lot :-)
>  
>  
>  
> De : "vinc...@massol.net"  
> À : XWiki Users  
> Cc : Pascal BASTIEN  
> Envoyé le :
> Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and 
> encoding problems
>  
> Hi,
>  
> On 7 Mar 2014 at 08:49:10, Pascal BASTIEN 
> (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)(mailto:pbasnews-xw...@yahoo.fr))
>  wrote:
>  
> > I remove status.xml the distribution wizard doesn't launch.
>  
> If it doesn’t launch after having deleted the correct status.xml file (i.e. 
> [datadir]/jobs/status/distribution/status.xml) then it means you’re not 
> logged with a user having Admin rights!
>  
> See 
> http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#troubleshooting
>  
> > I remove status.xml AND delete and recreate my database... the distribution 
> > wizard launch...
> >  
> > By the way, I have some encoding problems on tag and page:
>  
> Regarding encoding it’s because you have badly configured your system, see
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding
>  
> Thanks
> -Vincent  
>  
>  

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


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
Ok found it (at least I hope so):

http://pastebin.com/BUEpvzz2

Thanks,
C. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589463.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] Fwd: Pdf and powerpoint

2014-03-07 Thread Daniel Ebanja
-- Weitergeleitete Nachricht --
Von: "Daniel Ebanja" 
Datum: 07.03.2014 10:46
Betreff: Pdf and powerpoint
An: 
Cc:

Hi,
Have some problem with images. Images are sometimes displayed and sometimes
not at there. Is there a particular format or a particular way to import
images.
Couldn't also import pdf and powerpoint documents.
Thanks.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
Hello,

I did not modify anything, just went to the questions of the debian package
installer. I gave the mysql root user a password, and also one the xwiki
user, but only in the installer. This all went through without errors. I did
not touch anything with mysql itself.

Thanks,
C. 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589460.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] Logfile/Stack traces

2014-03-07 Thread panyasan
Hello Vincent, 

thank you for your prompt reply. As I said in my original question, I don't
know where to find the error log with stack traces ... I am a total newbie
as far as XWiki/Tomcat is concerned- Can you quickly tell me where to get
them?

Thanks,
Christian 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589458.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] Logfile/Stack traces

2014-03-07 Thread Guillaume Fenollar
Hello,

As a side note, please make sure that your DB user has rights to create a
new database/schema. For instance in MySQL, we often grant the rights with
the command:
GRANT ALL TO xwiki.* (...)
which won't work in a case of a subwiki creation. So let's make sure we're
not in this case here, because a bad grant would give you the error you had.

Thanks,

Guillaume


2014-03-07 10:06 GMT+01:00 vinc...@massol.net :

> Hi,
>
>
> On 7 Mar 2014 at 09:37:32, panyasan (i...@bibliograph.org(mailto:
> i...@bibliograph.org)) wrote:
>
> > Yes, looks like it! Did you already find a fix for this?
>
> Based on your file below it's not the same problem. There's no issue in
> your status.xml file...
>
> > Here's the content of the distribution status.xml:
>
> [snip]
>
> Could you check your xwiki logs and paste the result somewhere (pastebin,
> gist, etc), especially if there are errors in it?
>
> Since your issue is different from the one I had, we'd need a clear
> explanation of all you did to try to reproduce it.
>
> Thanks
> -Vincent
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread vinc...@massol.net
Hi, 


On 7 Mar 2014 at 09:37:32, panyasan 
(i...@bibliograph.org(mailto:i...@bibliograph.org)) wrote:

> Yes, looks like it! Did you already find a fix for this?

Based on your file below it’s not the same problem. There’s no issue in your 
status.xml file...

> Here's the content of the distribution status.xml:

[snip]

Could you check your xwiki logs and paste the result somewhere (pastebin, gist, 
etc), especially if there are errors in it?

Since your issue is different from the one I had, we’d need a clear explanation 
of all you did to try to reproduce it.

Thanks
-Vincent

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


Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and encoding problems

2014-03-07 Thread Pascal BASTIEN
I removed status.xml AND reconnect with Admin/admin: the distribution 
wizard doesn't launch (Admin is superuser of xwiki). But it doesn't 
matter (for me) because when I wipe my database the solution working.


Anyways thxs for encoding problem to : your FAQ works. I modify tomcat 
connectors and hibernate file to acces on my postgres. This solution 
working very well. Thxs again.
Thxs  a lot :-)






 De : "vinc...@massol.net" 
À : XWiki Users  
Cc : Pascal BASTIEN  
Envoyé le : 
Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and 
encoding problems
 

Hi,

On 7 Mar 2014 at 08:49:10, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> I remove status.xml the distribution wizard doesn't launch.

If it doesn’t launch after having deleted the correct status.xml file (i.e. 
[datadir]/jobs/status/distribution/status.xml) then it means you’re not logged 
with a user having Admin rights!

See 
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#troubleshooting

> I remove status.xml AND delete and recreate my database... the distribution 
> wizard launch...
>  
> By the way, I have some encoding problems on tag and page:

Regarding encoding it’s because you have badly configured your system, see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding

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


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
Yes, looks like it! Did you already find a fix for this?

Here's the content of the distribution status.xml:



  


  
  

  job.log.beginWithId
  

  xwiki.begin

  
  job.log.beginWithId

INFO
Starting job of type [{}] with identifier [{}]

  distribution
  
distribution
  

  
  

  job.log.endWithId
  

  xwiki.end

  
  job.log.endWithId

INFO
Finished job of type [{}] with identifier [{}]

  distribution
  
distribution
  

  
  

  
  FINISHED
  

  distribution


  
wiki
xwiki
  

true
  
  2014-03-06 19:21:57.322 UTC
  2014-03-06 19:33:01.493 UTC
  false
  
org.xwiki.enterprise:xwiki-enterprise-web

  
5.4.2
  

  
  
org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki

  
5.4.2
  

  
  
   

  welcome
  COMPLETED
   

   

  extension.defaultui
  COMPLETED
   

   

  extension.defaultui.wikis
  COMPLETED
   

   

  extension.outdatedextensions
  COMPLETED
   

   

  report
  COMPLETED
   

  
  4




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450p7589455.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] Authentication and wizard problem on 5.4.2

2014-03-07 Thread vinc...@massol.net
 
Please see my response in the previous mail….

See 
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#HTroubleshooting

Thanks
-Vincent


On 7 Mar 2014 at 09:19:59, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> Thxs I confirm: I stop tomcat, delete status.xml and relaunch tomcat: 
> distribution wizard doesn't launch anymore with xwik 5.4.2
>  
> NB: status.xml is automaticaly recreated anyway...
>  
>  
>  
>  
> 
> De : panyasan  
> À : users@xwiki.org
> Envoyé le :
> Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2
>  
>  
> I might have hit a similar problem. I have left a note on
> http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#Comments
> but I am not sure it will be read there:
>  
> "Using version 5.4.2 from Debian packages. Thanks for this guide, but it is
> not clear how to get from step "You will be prompted to insert credentials
> for the Administrator, which are Admin/admin." to step "After the
> instalation is complete, you can click on the Continue button to proceed to
> the next step." (It would be easier to refer to the sections if they had
> numbers...). After logging in with Admin/admin, I had to go back to the
> distribution wizard manually, like so:
>  
> - use the browser back /history button to navigate to the
> ../distribution/... link.
> - click on "INSTALL" or "DETAILS". There will be an error message.
> - Navigate back and forth until the "XWiki Enterprise - UI - Main wiki"
> extension is displayed as "installed" and the "CONTINUE" button is shown.
>  
> Any other action leaves you stuck in an incompletely installed wiki with no
> way of finishing the setup. The recommended solution to re-run the
> distribution wizard (see
> http://www.xwiki.org/xwiki/bin/view/FAQ/Why+does+the+Distribution+Wizard+fail+to+appear+after+an+install)
> did not work to get back to the wizard, at least not for me.
> I am sure this is a bug. I could reproduce it at least three times."
>  
> I also am experiencing a lot of untranslated message keys, and the wiki
> extension is not working. Is there a way this can be fixed?
>  
>  
>  
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Authentication-and-wizard-problem-on-5-4-2-tp7589441p7589447.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Logfile/Stack traces

2014-03-07 Thread vinc...@massol.net
Hi Christian,

Sorry about that, is your issue the same as 
http://jira.xwiki.org/browse/XWIKI-10128 ?

Thanks
-Vincent


On 7 Mar 2014 at 09:15:29, panyasan 
(i...@bibliograph.org(mailto:i...@bibliograph.org)) wrote:

> Hi,
>  
> I am a new XWiki User without a background in Java/Tomcat. I am getting a
> "org.wxiki.wiki.manager.WikiManagerException: Failed to create database for
> wiki" error when trying to create a new wiki (v5.4.2 from Debian packages).
> I assume that this error message is not very helpful. How can I find the
> stack trace of this error so that I can provide helpful information for
> debugging?
>  
> Thanks,
> Christian

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


Re: [xwiki-users] Authentication and wizard problem on 5.4.2

2014-03-07 Thread Pascal BASTIEN
Thxs I confirm: I stop tomcat, delete status.xml and relaunch tomcat: 
distribution wizard doesn't launch anymore with xwik 5.4.2

NB: status.xml is automaticaly recreated anyway...





 De : panyasan 
À : users@xwiki.org 
Envoyé le : 
Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2
 

I might have hit a similar problem. I have left a note on
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#Comments
but I am not sure it will be read there:

"Using version 5.4.2 from Debian packages. Thanks for this guide, but it is
not clear how to get from step "You will be prompted to insert credentials
for the Administrator, which are Admin/admin." to step "After the
instalation is complete, you can click on the Continue button to proceed to
the next step." (It would be easier to refer to the sections if they had
numbers...). After logging in with Admin/admin,  I had to go back to the
distribution wizard manually, like so:

- use the browser back /history button to navigate to the
../distribution/... link. 
- click on "INSTALL" or  "DETAILS". There will be an error message.
- Navigate back and forth until the "XWiki Enterprise - UI - Main wiki"
extension is displayed as "installed" and the "CONTINUE" button is shown. 

Any other action leaves you stuck in an incompletely installed wiki with no
way of finishing the setup. The recommended solution to re-run the
distribution wizard (see
http://www.xwiki.org/xwiki/bin/view/FAQ/Why+does+the+Distribution+Wizard+fail+to+appear+after+an+install)
did not work to get back to the wizard, at least not for me.
I am sure this is a bug. I could reproduce it at least three times."

I also am experiencing a lot of untranslated message keys, and the wiki
extension is not working. Is there a way this can be fixed?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Authentication-and-wizard-problem-on-5-4-2-tp7589441p7589447.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Logfile/Stack traces

2014-03-07 Thread panyasan
Hi,

I am a new XWiki User without a background in Java/Tomcat. I am getting a
"org.wxiki.wiki.manager.WikiManagerException: Failed to create database for
wiki" error when trying to create a new wiki (v5.4.2 from Debian packages).
I assume that this error message is not very helpful. How can I find the
stack trace of this error so that I can provide helpful information for
debugging?

Thanks,
Christian



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Logfile-Stack-traces-tp7589450.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] Authentication and wizard problem on 5.4.2 and encoding problems

2014-03-07 Thread vinc...@massol.net
Hi,

On 7 Mar 2014 at 08:49:10, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> I remove status.xml the distribution wizard doesn't launch.

If it doesn’t launch after having deleted the correct status.xml file (i.e. 
[datadir]/jobs/status/distribution/status.xml) then it means you’re not logged 
with a user having Admin rights!

See 
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#troubleshooting

> I remove status.xml AND delete and recreate my database... the distribution 
> wizard launch...
>  
> By the way, I have some encoding problems on tag and page:

Regarding encoding it’s because you have badly configured your system, see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding

Thanks
-Vincent

> If i use "bac à sable" in a tag. The tag display like this: avec "bac ÃÂ 
> sable". 
>  
> If I create a new page "MaCatégorie"
> /bin/edit/Sandbox/MaCatégorie?template=&parent=Sandbox.WebHome&title=MaCatégorie
> In title I have: "MaCatégorie" (then I correct the title)  
>  
> If I create a page child of "MaCatégorie" I obtain: "MaCatégorie » MaPage"
> and worst the search tools doesn't found my page "Ma caté*"
>  
> Your xwiki cloud doesn't have this problem. Which xwiki version do you use?  
>  
> Thxs
>  
> De : Pascal BASTIEN  
> À : "vinc...@massol.net" ; XWiki Users  
> Envoyé le :
> Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2
>  
>  
> >
> >That’s a pity. It would be nice to know what was the problem so that we can 
> >reproduce and fix it, otherwise we won’t be able to improve it! :)
> Sure!
>  
>  
>  
> >> I use the .WAR on tomcat server and postgres database.
> >>
> >> The Wizard to install the UI extension aren't launch on
> first boot. Are there a way to manuelly launch?
> >
> >My guess is that you’re reusing an existing xwiki data dir and
> in that dir the DW has been marked as having been executed for
> 5.4.2. Deleting the
> [datadir]/jobs/status/distribution/status.xml should work.
> >
> >> And worst the Admin/admin account doesn't work! (Invalid
> credentials)  
> >
> >That means that your database is empty / doesn’t contain the
> XWiki.Admin page.
> >
> >Make sure your hibernate.cfg.xml is configured correctly.
> >
> >> Am I alone?  
> >
> >
> >Most likely yes ;)
> Fortunely for xwiki :-)
>  
> Thxs: your quick answers help me a lot (I think I modified my datadir path: I 
> put it
> on another directory..).
>  
> I will check my database. Admin account is created by the
> distribution wizard then?
>  
> I keep you in touch tomorrow ... because my remote access ...
> doesn't work ever!
>  
> NB: the status.xml file is documented somewhere?

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