[xwiki-users] [ANN] Official docker image for XWiki on dockerhub

2017-02-08 Thread Vincent Massol
Hi everyone,

Just wanted to let you know that the XWiki docker image is now an official 
image on docker hub!

See https://hub.docker.com/r/library/xwiki/

Please try it out and let us know how it goes. That’s probably one of the 
simplest way to try XWiki now. 

It comes configured with filesystem attachment by default and libreoffice 
configured too for office imports/exports/viewing office docs.

Thanks
-Vincent

Re: [xwiki-users] Tomcat Error number 11007

2017-02-08 Thread Oliver Angélil
Here are the mysql database creation instructions on FreeBSD that finally
worked for me:

*In the mysql console...*
*mysql -u root -p *
(enter password in *.mysql_secret* file)
*SET PASSWORD = PASSWORD('my_new_password');*
*exit*


*In the FreeBSD command line...*
*mysql -u root -p -e "create database xwiki default character set utf8
collate utf8_bin"**mysql -u root -p -e "grant all privileges on *.*
to xwiki@192.168.1.8  identified by 'xwiki'" **(Where
192.168.1.8 is the local IP. Replacing "192.168.1.8" with "localhost" did
not work for me.)*
*mysql -u root -p -e "flush privileges"*


*Check what things look like...**mysql -u root -p -e "select host from
mysql.user where user = 'xwiki'"*

+--+
| host |
+--+
| 192.168.1.8 |
+--+

On 9 February 2017 at 07:08, Oliver Angélil  wrote:

> Could someone with a working version of xwiki please execute the following
> command in mysql and let me know what is returned.
>
> *SELECT host FROM mysql.user WHERE User = 'xwiki';*
>
> Thanks,
> Oliver
>
> On 8 February 2017 at 02:39, Sergiu Dumitriu  wrote:
>
>> On 02/07/2017 12:32 AM, Oliver Angélil wrote:
>> > Thanks Sergiu,
>> >
>> > Seems I had misunderstood the "replace the matching properties with the
>> > following ones" in the xwiki mysql installation instructions. I think I
>> > have done this part correctly now. Unfortunately I have encountered
>> another
>> > exception (pasted below).
>> >
>> > I am guessing the following is the problem: message from server: *"Host
>> > 'kokopu.ddns.net ' is not allowed to connect to
>> > this MySQL server". *
>> >
>> > I'm doing this on FreeBSD. The main host is "kokopu" (192.168.1.7) and
>> the
>> > entire xwiki installation is in a FreeBSD jail (192.168.1.8).
>> >
>> > Oliver
>> >
>> > *type* Exception report
>> >
>> > *message* *com.xpn.xwiki.XWikiException: Error number 11007 in 0:
>> Failed to
>> > extract Entity Resource Reference from URL
>> > [http://192.168.1.8:8080/xwiki-enterprise-web-8.4.4/bin/view/Main/
>> > ]*
>> >
>> > *description* *The server encountered an internal error that prevented
>> it
>> > from fulfilling this request.*
>> >
>>
>> > *root cause*
>> >
>> > java.sql.SQLException: null,  message from server: "Host
>> > 'kokopu.ddns.net' is not allowed to connect to this MySQL server"
>>
>> This is no longer related to XWiki, but to security rules on the
>> operating system. I'm not familiar with FreeBSD, but I'd investigate
>> either mysql access rules ("grant" commands) or firewall rules.
>> --
>> Sergiu Dumitriu
>> http://purl.org/net/sergiu
>>
>
>
>
> --
> *Oliver Marc Angélil*
> PhD Candidate at the University of New South Wales, Australia
> *http://web.maths.unsw.edu.au/~oangelil/oliver/page_oliver.html*
> 
>



-- 
*Oliver Marc Angélil*
PhD Candidate at the University of New South Wales, Australia
*http://web.maths.unsw.edu.au/~oangelil/oliver/page_oliver.html*



Re: [xwiki-users] Postgresql Dump

2017-02-08 Thread Jesse Bright
So I found a workaround to this issue by switching to the Postgres user. I am 
not sure if this normal or appropriate but just preface all postgresql commands 
with: 

sudo -u postgres 

Regards,

Jesse

> On Feb 8, 2017, at 8:58 AM, "je...@abrightfamily.com" 
>  wrote:
> 
> I am attempting to follow the backup instructions but no matter what I do all 
> connections to the database fail with the following error, or similar:
> 
> pg_dump: [archiver (db)] connection to database "xwiki" failed: FATAL:  Peer 
> authentication failed for user “xwiki"
> 
> I have double checked the username and password in provided in the 
> hibernate.cfg.xml file. Is there a connection permission issue I am missing?
> 
> Reagards,
> 
> Jesse




Re: [xwiki-users] Failed to get fields for class [org.xwiki.activeinstalls.internal.client.DefaultPingSender]

2017-02-08 Thread Ligth

Yes,that  issue was  created by  me.

We  have  fixed  the  problem.  We  have  removed  all  doubled files 
like xwiki-platform-activeinstalls-common-8.1.jar *8.1.jar  in  
/usr/lib/xwiki/WEB-INF/lib/  dir.



On 08.02.17 21:48, Vincent Massol wrote:

Hi,

I don’t know if it was you but this was also raised in jira at
https://jira.xwiki.org/browse/XE-1610

I don’t know the answer as this stage but it looks very weird. I’m sure someone 
will provide a solution by tomorrow EOD.

Thanks
-Vincent


On 8 Feb 2017, at 18:42, Ligth  wrote:

Hi.


We  have upgraded  xwiki  enterprise   from  8  to  9.0 versionb  on  debian:

apt-get  update &&  apt-get  upgrade

# dpkg -l | grep xwiki
ii  xwiki-enterprise-common 9.0+3
ii  xwiki-enterprise-pgsql-common   9.0+3
ii  xwiki-enterprise-tomcat8-common 9.0+3
ii  xwiki-enterprise-tomcat8-pgsql  9.0+3


And  now  we  can't  get  started  xwiki.  The  following  error is  received:

SEVERE: Exception sending context initialized event to listener instance of 
class org.xwiki.container.servlet.XWikiServletContextListener
java.lang.NoClassDefFoundError: Failed to get fields for class 
[org.xwiki.activeinstalls.internal.client.DefaultPingSender] because the class 
[io/searchbox/Action] couldn't be found in the ClassLoader.
at 
org.xwiki.component.util.ReflectionUtils.getAllFields(ReflectionUtils.java:72)
at 
org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptor(ComponentDescriptorFactory.java:132)
at 
org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptors(ComponentDescriptorFactory.java:105)
at 
org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:168)
at 
org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:136)
at 
org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:118)
at 
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:151)
at 
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:61)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4832)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at 
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1685)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

фев 08, 2017 6:03:35 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart


Can  someone   help ?







Re: [xwiki-users] Tomcat Error number 11007

2017-02-08 Thread Oliver Angélil
Could someone with a working version of xwiki please execute the following
command in mysql and let me know what is returned.

*SELECT host FROM mysql.user WHERE User = 'xwiki';*

Thanks,
Oliver

On 8 February 2017 at 02:39, Sergiu Dumitriu  wrote:

> On 02/07/2017 12:32 AM, Oliver Angélil wrote:
> > Thanks Sergiu,
> >
> > Seems I had misunderstood the "replace the matching properties with the
> > following ones" in the xwiki mysql installation instructions. I think I
> > have done this part correctly now. Unfortunately I have encountered
> another
> > exception (pasted below).
> >
> > I am guessing the following is the problem: message from server: *"Host
> > 'kokopu.ddns.net ' is not allowed to connect to
> > this MySQL server". *
> >
> > I'm doing this on FreeBSD. The main host is "kokopu" (192.168.1.7) and
> the
> > entire xwiki installation is in a FreeBSD jail (192.168.1.8).
> >
> > Oliver
> >
> > *type* Exception report
> >
> > *message* *com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed
> to
> > extract Entity Resource Reference from URL
> > [http://192.168.1.8:8080/xwiki-enterprise-web-8.4.4/bin/view/Main/
> > ]*
> >
> > *description* *The server encountered an internal error that prevented it
> > from fulfilling this request.*
> >
>
> > *root cause*
> >
> > java.sql.SQLException: null,  message from server: "Host
> > 'kokopu.ddns.net' is not allowed to connect to this MySQL server"
>
> This is no longer related to XWiki, but to security rules on the
> operating system. I'm not familiar with FreeBSD, but I'd investigate
> either mysql access rules ("grant" commands) or firewall rules.
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu
>



-- 
*Oliver Marc Angélil*
PhD Candidate at the University of New South Wales, Australia
*http://web.maths.unsw.edu.au/~oangelil/oliver/page_oliver.html*



Re: [xwiki-users] slow page load

2017-02-08 Thread Vincent Massol
Hi Paul,

> On 8 Feb 2017, at 20:51, Paul Pinkerton (ACLCO)  wrote:
> 
> I have a couple of pages that are loading very slowly - like 15-20 second 
> delay on loading.  Other pages load just fine.  I've always found the profile 
> pages load slowly, but had a specific space start to do this recently.  I 
> tried disabling the TAG CLOUD panel that is on that page and page load time 
> normalized.
> 
> Wondering if anyone else had found that tag cloud panel has an issue here?  
> Is there a max number of entries after which it would start to degrade 
> performance?  Thoughts or insight appreciated.

Hmm I’m not aware of the Tag cloud being an issue.

How many tagged docs do you have?

If you check on http://extensions.xwiki.org/xwiki/bin/view/XWiki/TagCloud or 
http://extensions.xwiki.org/xwiki/bin/view/Main/Tags you should see a tag cloud 
that loads pretty fast.

Maybe you have some indexes missing in the DB? You could review this page: 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances

Thanks
-Vincent

> Paul Pinkerton
> KnowledgeNow Project Lead
> pink...@lao.on.ca
> Skype: pinkerp.lao
> 
> Association of Community Legal Clinics of Ontario
> 416-847-1418 or 1-866-965-1416x 5177
> www.aclco.org
> 



[xwiki-users] slow page load

2017-02-08 Thread Paul Pinkerton (ACLCO)
I have a couple of pages that are loading very slowly - like 15-20 second delay 
on loading.  Other pages load just fine.  I've always found the profile pages 
load slowly, but had a specific space start to do this recently.  I tried 
disabling the TAG CLOUD panel that is on that page and page load time 
normalized.

Wondering if anyone else had found that tag cloud panel has an issue here?  Is 
there a max number of entries after which it would start to degrade 
performance?  Thoughts or insight appreciated.

Paul Pinkerton
KnowledgeNow Project Lead
pink...@lao.on.ca
Skype: pinkerp.lao

Association of Community Legal Clinics of Ontario
416-847-1418 or 1-866-965-1416x 5177
www.aclco.org



Re: [xwiki-users] Failed to get fields for class [org.xwiki.activeinstalls.internal.client.DefaultPingSender]

2017-02-08 Thread Vincent Massol
Hi,

I don’t know if it was you but this was also raised in jira at
https://jira.xwiki.org/browse/XE-1610

I don’t know the answer as this stage but it looks very weird. I’m sure someone 
will provide a solution by tomorrow EOD.

Thanks
-Vincent

> On 8 Feb 2017, at 18:42, Ligth  wrote:
> 
> Hi.
> 
> 
> We  have upgraded  xwiki  enterprise   from  8  to  9.0 versionb  on  debian:
> 
> apt-get  update &&  apt-get  upgrade
> 
> # dpkg -l | grep xwiki
> ii  xwiki-enterprise-common 9.0+3
> ii  xwiki-enterprise-pgsql-common   9.0+3
> ii  xwiki-enterprise-tomcat8-common 9.0+3
> ii  xwiki-enterprise-tomcat8-pgsql  9.0+3
> 
> 
> And  now  we  can't  get  started  xwiki.  The  following  error is  received:
> 
> SEVERE: Exception sending context initialized event to listener instance of 
> class org.xwiki.container.servlet.XWikiServletContextListener
> java.lang.NoClassDefFoundError: Failed to get fields for class 
> [org.xwiki.activeinstalls.internal.client.DefaultPingSender] because the 
> class [io/searchbox/Action] couldn't be found in the ClassLoader.
>at 
> org.xwiki.component.util.ReflectionUtils.getAllFields(ReflectionUtils.java:72)
>at 
> org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptor(ComponentDescriptorFactory.java:132)
>at 
> org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptors(ComponentDescriptorFactory.java:105)
>at 
> org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:168)
>at 
> org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:136)
>at 
> org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:118)
>at 
> org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:151)
>at 
> org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:61)
>at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4832)
>at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
>at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
>at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
>at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
>at 
> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1685)
>at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>at java.lang.Thread.run(Thread.java:745)
> 
> фев 08, 2017 6:03:35 PM org.apache.catalina.core.StandardContext startInternal
> SEVERE: Error listenerStart
> 
> 
> Can  someone   help ?
> 
> 
> 



[xwiki-users] Failed to get fields for class [org.xwiki.activeinstalls.internal.client.DefaultPingSender]

2017-02-08 Thread Ligth

Hi.


We  have upgraded  xwiki  enterprise   from  8  to  9.0 versionb  on  
debian:


apt-get  update &&  apt-get  upgrade

# dpkg -l | grep xwiki
ii  xwiki-enterprise-common 9.0+3
ii  xwiki-enterprise-pgsql-common   9.0+3
ii  xwiki-enterprise-tomcat8-common 9.0+3
ii  xwiki-enterprise-tomcat8-pgsql  9.0+3


And  now  we  can't  get  started  xwiki.  The  following  error is  
received:


SEVERE: Exception sending context initialized event to listener instance 
of class org.xwiki.container.servlet.XWikiServletContextListener
java.lang.NoClassDefFoundError: Failed to get fields for class 
[org.xwiki.activeinstalls.internal.client.DefaultPingSender] because the 
class [io/searchbox/Action] couldn't be found in the ClassLoader.
at 
org.xwiki.component.util.ReflectionUtils.getAllFields(ReflectionUtils.java:72)
at 
org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptor(ComponentDescriptorFactory.java:132)
at 
org.xwiki.component.annotation.ComponentDescriptorFactory.createComponentDescriptors(ComponentDescriptorFactory.java:105)
at 
org.xwiki.component.annotation.ComponentAnnotationLoader.register(ComponentAnnotationLoader.java:168)
at 
org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:136)
at 
org.xwiki.component.annotation.ComponentAnnotationLoader.initialize(ComponentAnnotationLoader.java:118)
at 
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:151)
at 
org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:61)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4832)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at 
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1685)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

фев 08, 2017 6:03:35 PM org.apache.catalina.core.StandardContext 
startInternal

SEVERE: Error listenerStart


Can  someone   help ?





[xwiki-users] Postgresql Dump

2017-02-08 Thread je...@abrightfamily.com
I am attempting to follow the backup instructions but no matter what I do all 
connections to the database fail with the following error, or similar:

pg_dump: [archiver (db)] connection to database "xwiki" failed: FATAL:  Peer 
authentication failed for user “xwiki"

I have double checked the username and password in provided in the 
hibernate.cfg.xml file. Is there a connection permission issue I am missing?

Reagards,

Jesse


Re: [xwiki-users] Image as background

2017-02-08 Thread Vincent Massol
Hi Gerritjan,

> On 8 Feb 2017, at 13:16, Gerritjan Koekkoek  wrote:
> 
> Hi,
> 
> 
> I have a attached image on a page.
> 
> 
> My aim is to use the image as a background image,
> 
> 
> So the resulting HTML should be
> 
> 
> http://i54.tinypic.com/4zuxif.jpg)">
> 
> 
> So in the HTML-macro I have a $doc.getAttachmentURL('xxx.png')
> 
> But executing it it looks like the wiki-engine is also transforming the 
> "background-image:" as a wiki image, so I get resource not found errors?
> 
> 
> Any suggestion how to wrap?

The best practice is to use a SSX: 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial

Note: Re the HTML  macro please paste our exact content. The HTML macro will 
clean the HTML by default to make sure it generates valid XHTML. To prevent 
this cleanup , use clean=“false”. See the doc for the HTML macro for more 
details.

Thanks
-Vincent

> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
> 
> 
> 



[xwiki-users] Image as background

2017-02-08 Thread Gerritjan Koekkoek
Hi,


I have a attached image on a page.


My aim is to use the image as a background image,


So the resulting HTML should be


http://i54.tinypic.com/4zuxif.jpg)">


So in the HTML-macro I have a $doc.getAttachmentURL('xxx.png')

But executing it it looks like the wiki-engine is also transforming the 
"background-image:" as a wiki image, so I get resource not found errors?


Any suggestion how to wrap?




Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email