[xwiki-users] Python macro scripting - available packages?

2016-05-25 Thread Sebastian Schafer
Hi,
I'm trying to import some packages into the Python macro on Xwiki 7.2, and 
while standard packages import fine (working with os and re, etc.), some (like 
xlrd) don't.
Looking through the scripting guide and macro documentation I could not figure 
out how the Python macro actually works.
Is it just a collection of bindings and translates the python script into 
groovy or something else, or is it calling the local Python installation? This 
might sound stupid, but I thought the latter was the case and this would limit 
the available packages (the ones I want to load are installed locally).


Thank you

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


Re: [xwiki-users] Xwiki-Entreprise-Web-8.1 WAR File Installation issues

2016-05-25 Thread Sebastien.Boulianne
Hi Vincent,

I did:
echo 'org.apache.catalina.core.ContainerBase.[Catalina].level = INFO' 
/var/lib/tomcat/webapps/ROOT/WEB-INF/classes/logging.properties
echo 'org.apache.catalina.core.ContainerBase.[Catalina].handlers = 
java.util.logging.ConsoleHandler' 
/var/lib/tomcat/webapps/ROOT/WEB-INF/classes/logging.properties\r
chown -v tomcat.tomcat 
/var/lib/tomcat/webapps/ROOT/WEB-INF/classes/logging.properties
chmod -v 744 /var/lib/tomcat/webapps/ROOT/WEB-INF/classes/logging.properties

tail -f /var/log/tomcat/catalina.2016-05-25.log
at 
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
... 4 more

May 25, 2016 2:27:56 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
May 25, 2016 2:27:56 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
May 25, 2016 2:27:56 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10776 ms
May 25, 2016 2:29:19 PM org.apache.catalina.util.LifecycleBase start
INFO: The start() method was called on component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] after 
start() had already been called. The second call will be ignored.
May 25, 2016 2:29:22 PM org.apache.catalina.util.LifecycleBase start

What else can I do ?

-Message d'origine-
De : users [mailto:users-boun...@xwiki.org] De la part de Vincent Massol
Envoyé : 25 mai 2016 12:57
À : XWiki Users 
Objet : Re: [xwiki-users] Xwiki-Entreprise-Web-8.1 WAR File Installation issues

Hi,

You need to enable tomcat debug to see the error, see:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat#HSEVERE:ErrorlistenerStart

Thanks
-Vincent

> On 25 May 2016, at 17:59, sebastien.boulia...@cpu.ca wrote:
> 
> Hi all,
> 
> I tried to install the Xwiki-Entreprise-Web-8.1 WAR File on Tomcat and I get 
> these errors...
> http://pastebin.com/T0Kfa7MS
> 
> http://imgur.com/ejT0zAe
> 
> ps aux | grep tomcat
> tomcat2152  4.4 15.0 3802340 724216 ?  Ssl  10:45   0:12 
> /usr/lib/jvm/jre/bin/java -classpath 
> /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
>  -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
> -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp 
> -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> org.apache.catalina.startup.Bootstrap start
> root  2208  0.0  0.0 112636   984 pts/0S+   10:50   0:00 grep 
> --color=auto tomcat
> 
> If I try with the 8.0 war file, the installation is going perfectly.
> I would like to know if someone have ever see this king of error and how you 
> fixed it.
> I checked the permissions and I am running the java-1.8.
> Any help will be appreciated.
> Thanks in advance.
> 
> Sébastien

___
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] Setup a sepparate space for javascript

2016-05-25 Thread dullfig
Hello:

I was wondering if anyone else has done this. My application is starting to
need a whole bunch of javascript, and I was thinking of setting up a
separate space (maybe call it js) where there is nothing but pages with
javascript objects attached. That way I could set up a ClassSheet for that
space, whith an embedded javascript editor (ace editor) to make editing the
javascript easier.

Dan.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Setup-a-sepparate-space-for-javascript-tp7599647.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] Xwiki-Entreprise-Web-8.1 WAR File Installation issues

2016-05-25 Thread Vincent Massol
Hi,

You need to enable tomcat debug to see the error, see:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat#HSEVERE:ErrorlistenerStart

Thanks
-Vincent

> On 25 May 2016, at 17:59, sebastien.boulia...@cpu.ca wrote:
> 
> Hi all,
> 
> I tried to install the Xwiki-Entreprise-Web-8.1 WAR File on Tomcat and I get 
> these errors...
> http://pastebin.com/T0Kfa7MS
> 
> http://imgur.com/ejT0zAe
> 
> ps aux | grep tomcat
> tomcat2152  4.4 15.0 3802340 724216 ?  Ssl  10:45   0:12 
> /usr/lib/jvm/jre/bin/java -classpath 
> /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
>  -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
> -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp 
> -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> org.apache.catalina.startup.Bootstrap start
> root  2208  0.0  0.0 112636   984 pts/0S+   10:50   0:00 grep 
> --color=auto tomcat
> 
> If I try with the 8.0 war file, the installation is going perfectly.
> I would like to know if someone have ever see this king of error and how you 
> fixed it.
> I checked the permissions and I am running the java-1.8.
> Any help will be appreciated.
> Thanks in advance.
> 
> Sébastien

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


Re: [xwiki-users] Xwiki-Entreprise-Web-8.1 WAR File Installation issues

2016-05-25 Thread Mahomed Hussein
What OS are you running?

Please provide the output of:

cat /etc/lsb-release
java -version
update-alternatives --config java
cat /etc/init.d/tomcat7 | grep JDK_DIRS=




Kind regards,




Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of 
sebastien.boulia...@cpu.ca
Sent: 25 May 2016 16:59
To: users@xwiki.org
Subject: [xwiki-users] Xwiki-Entreprise-Web-8.1 WAR File Installation issues

Hi all,

I tried to install the Xwiki-Entreprise-Web-8.1 WAR File on Tomcat and I get 
these errors...
http://pastebin.com/T0Kfa7MS

http://imgur.com/ejT0zAe

ps aux | grep tomcat
tomcat2152  4.4 15.0 3802340 724216 ?  Ssl  10:45   0:12 
/usr/lib/jvm/jre/bin/java -classpath 
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
 -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
-Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp 
-Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
org.apache.catalina.startup.Bootstrap start
root  2208  0.0  0.0 112636   984 pts/0S+   10:50   0:00 grep 
--color=auto tomcat

If I try with the 8.0 war file, the installation is going perfectly.
I would like to know if someone have ever see this king of error and how you 
fixed it.
I checked the permissions and I am running the java-1.8.
Any help will be appreciated.
Thanks in advance.

Sébastien

___
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] Twitter Macro

2016-05-25 Thread Paul Pinkerton (ACLCO)
Trying to get this macro to work: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Twitter+Macro 

I seem to be missing something with it.What I really want to do is simply 
display a Twitter feed on a page.

Any help is appreciated!

Paul Pinkerton
KnowledgeNow Project/ ACLCO
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Xwiki-Entreprise-Web-8.1 WAR File Installation issues

2016-05-25 Thread Sebastien.Boulianne
Hi all,

I tried to install the Xwiki-Entreprise-Web-8.1 WAR File on Tomcat and I get 
these errors...
http://pastebin.com/T0Kfa7MS

http://imgur.com/ejT0zAe

ps aux | grep tomcat
tomcat2152  4.4 15.0 3802340 724216 ?  Ssl  10:45   0:12 
/usr/lib/jvm/jre/bin/java -classpath 
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
 -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
-Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp 
-Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
org.apache.catalina.startup.Bootstrap start
root  2208  0.0  0.0 112636   984 pts/0S+   10:50   0:00 grep 
--color=auto tomcat

If I try with the 8.0 war file, the installation is going perfectly.
I would like to know if someone have ever see this king of error and how you 
fixed it.
I checked the permissions and I am running the java-1.8.
Any help will be appreciated.
Thanks in advance.

Sébastien

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


[xwiki-users] [Blog] Use the Apache HTTP library to interact with the XWiki RESTful API

2016-05-25 Thread Eduard Moraru
Hi,

As promised, I`m sharing with you the addition of a new article on xwiki.org's
blog:

"Use the Apache HTTP library to interact with the XWiki RESTful API"
by Mohamed Boussaa

http://www.xwiki.org/xwiki/bin/view/Blog/Use+the+Apache+HTTP+library+to+interact+with+the+XWiki+RESTful+API

As the title suggests, the article exemplifies how you can use XWiki`s REST
API from Java or Groovy using Apache's HttpComponents library. There have
been some recurring questions over the time on how to do that, so if you
still have doubts, have a look and hopefully Mohamed will also be available
to answer some of your questions.

If you have something XWiki-related that you would like to share on
xwiki.org's blog, please see my previous mail on how you can easily do that:

http://xwiki.markmail.org/thread/r4r4celltmdprqia

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


Re: [xwiki-users] Error upgrading Debian

2016-05-25 Thread Stéphane LASSIRE
Hello Clemens,

I think you are right.
I have a wheezy release.
I make the backport of Tomcat to go from 7.0.28 et 7.0.56 but it is always 
not usable.

I ask my provider to go back to the backup of last night.
The end of the story for me was : plan a longer time for upgrading the 
system and then Xwiki.

Thomas: sorry I don’t read all sources for Xwiki, on my plate form it was 
the stable one, I wall change for the LTS one until I upgrade Debian.

Thanks to all for the help.

Cordialement


-Message d'origine-
De : users [mailto:users-boun...@xwiki.org] De la part de Clemens 
Klein-Robbenhaar
Envoyé : mercredi 25 mai 2016 13:31
À : users@xwiki.org
Objet : Re: [xwiki-users] Error upgrading Debian

I see you are using tomcat 7.0.28 - probably your are still on wheezy?

There are some bug reports for that message; it seems upgrading tomcat 
helps, e.g.:

http://stackoverflow.com/q/23541532
http://stackoverflow.com/q/23484098


However the tomcat with wheezy is just too old:

https://packages.debian.org/wheezy/tomcat7

The tomcat with jessie should work

https://packages.debian.org/stable/tomcat7

Maybe try "wheezy-backports" if you do not want to update to jessie (I have 
never done that myself, so I cannot be of much help here)


Alternatively it might help editing xwiki's web.xml manually by adding a 
metadata-complete="true"
as suggested here:

http://stackoverflow.com/a/12730059

though I have not tried this and do not really understand why it should help


HTH
Clemens

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


Re: [xwiki-users] REST API ignores type parameter

2016-05-25 Thread Mark Sack
You're right - I was missing the wiki name. But, for some reason, I still
can't get the queries to work. Here is what I've found so far.

There is only one wiki - confirmed by the following REST call:
http://10.1.16.192/wiki/rest/wikis/ which returns

http://10.1.16.192:8080/wiki/rest/wikis/query;
rel="http://www.xwiki.org/rel/query"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/spaces;
rel="http://www.xwiki.org/rel/spaces"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/classes;
rel="http://www.xwiki.org/rel/classes"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/modifications;
rel="http://www.xwiki.org/rel/modifications"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/search;
rel="http://www.xwiki.org/rel/search"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/query;
rel="http://www.xwiki.org/rel/query"/>xwikixwiki

I can get some information about the wiki using
http://10.1.16.192/wiki/rest/wikis/xwiki/ which returns

http://10.1.16.192:8080/wiki/rest/wikis/xwiki/spaces;
rel="http://www.xwiki.org/rel/spaces"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/classes;
rel="http://www.xwiki.org/rel/classes"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/modifications;
rel="http://www.xwiki.org/rel/modifications"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/search;
rel="http://www.xwiki.org/rel/search"/>http://10.1.16.192:8080/wiki/rest/wikis/xwiki/query;
rel="http://www.xwiki.org/rel/query"/>xwikixwiki

I can get a list of spaces in the wiki using
http://10.1.16.192/wiki/rest/wikis/xwiki/spaces/
I won't reproduce the results as it is quite long but it looks correct and
includes those that I've added.

But if I try to do a simple query such as 

.../rest/wikis/xwiki/query?q=select+obj.first_name+from+Document+doc%2C+doc.object%28XWiki.XWikiUsers%29+as+obj=xwql

the result is

http://10.1.16.192:8080/wiki/rest/wikis/xwiki/query?q={query}(={type})(={number})(={start})(={fieldname}(={asc|desc}))(=1)(={false|true})(={wikis})(={classname})"/>

whereas the same query executed in velocity (without the URL encoding)
returns the correct result.

This is again probably some simple item I've overlooked. I appreciate your
help in resolving this problem.

Regards
Mark Sack





--
View this message in context: 
http://xwiki.475771.n2.nabble.com/REST-API-ignores-type-parameter-tp7599586p7599636.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 upgrading Debian

2016-05-25 Thread Clemens Klein-Robbenhaar
I see you are using tomcat 7.0.28 - probably your are still on wheezy?

There are some bug reports for that message; it seems upgrading tomcat helps, 
e.g.:

http://stackoverflow.com/q/23541532
http://stackoverflow.com/q/23484098


However the tomcat with wheezy is just too old:

https://packages.debian.org/wheezy/tomcat7

The tomcat with jessie should work

https://packages.debian.org/stable/tomcat7

Maybe try "wheezy-backports" if you do not want to update to jessie
(I have never done that myself, so I cannot be of much help here)


Alternatively it might help editing xwiki's web.xml manually by adding a 
metadata-complete="true"
as suggested here:

http://stackoverflow.com/a/12730059

though I have not tried this and do not really understand why it should help


HTH
Clemens

- Ursprüngliche Nachricht -
Von: Stéphane Lassire
Am:  Wednesday, 25.05.2016, 12:48
An: Xwiki Users
Betreff: Re: [xwiki-users] Error upgrading Debian


> Hello Thomas,
> 
> The answer :
> 
> root@CESAP-WIKI01:/var/log/tomcat7# ps aux | grep tomcat
> tomcat7   6355  7.3  6.7 2182572 275136 ?  Sl   12:34   0:59 
> /usr/lib/jvm/java-8-oracle/bin/java 
> -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties 
>  -Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
>  -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath 
> /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar  
> -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 
> -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp 
> org.apache.catalina.startup.Bootstrap start
> 
> thanks for the help
> 
> Cordialement
> 
> Stéphane Lassire
> -Message d'origine-
> De : users [mailto:users-boun...@xwiki.org] De la part de Thomas Mortagne
> Envoyé : mercredi 25 mai 2016 12:46
> À : XWiki Users
> Objet : Re: [xwiki-users] Error upgrading Debian
> 
> "Invalid byte tag in constant pool: 15" still looks like a Java version 
> issue.
> 
> Could you check what version of Java started with "ps aux | grep tomcat" ?
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 

mit freundlichen Grüßen
Clemens Klein-Robbenhaar

-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com
www.espresto.de

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [ANN] Release of Nested Pages Migrator Application 0.5

2016-05-25 Thread Guillaume Delhumeau
The link is bad. The good one is:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+Application#Hv0.5

2016-05-25 13:13 GMT+02:00 Guillaume Delhumeau <
guillaume.delhum...@xwiki.com>:

> Hello
>
> A new version of the Nested Pages Migrator Application extension is
> available. See
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+Application#Hv0.5
> 
> You can install or upgrade with the Extension Manager.
>
> The application is still a beta version that you should use carefully.
> XWiki crashes might occur during the migration. But this version brings the
> ability to detect bad documents created because of these crashes so you are
> able to finish the migration by restarting XWiki (several times if needed).
> It is still not a friendly process, but at least it is possible and I know
> it will help some peoples.
>
> It also brings an icon in the applications panel :)
>
> Enjoy!
>
> --
> Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
> Research & Development Engineer at XWiki SAS
> Committer on the XWiki.org project
>



-- 
Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] Release of Nested Pages Migrator Application 0.5

2016-05-25 Thread Guillaume Delhumeau
Hello

A new version of the Nested Pages Migrator Application extension is
available. See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+Application#Hv0.5

You can install or upgrade with the Extension Manager.

The application is still a beta version that you should use carefully.
XWiki crashes might occur during the migration. But this version brings the
ability to detect bad documents created because of these crashes so you are
able to finish the migration by restarting XWiki (several times if needed).
It is still not a friendly process, but at least it is possible and I know
it will help some peoples.

It also brings an icon in the applications panel :)

Enjoy!

-- 
Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error upgrading Debian

2016-05-25 Thread Thomas Mortagne
You are definitely using Oracle JDK 8 so I don't understand why you
end up with this kind of error.

I just upgraded to XWiki 8.0 with pretty much the same setup and all seems OK:

* Ubuntu Server 14.04
* Oracle JDK 1.8.0_91 installed trough
http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
* I commented the JAVA_HOME property in /etc/default/tomcat7 and rely
on oracle-java8-set-default package (provided by webupd8 ppa) to set
the proper default version

On Wed, May 25, 2016 at 12:48 PM, Stéphane LASSIRE
 wrote:
> Hello Thomas,
>
> The answer :
>
> root@CESAP-WIKI01:/var/log/tomcat7# ps aux | grep tomcat
> tomcat7   6355  7.3  6.7 2182572 275136 ?  Sl   12:34   0:59
> /usr/lib/jvm/java-8-oracle/bin/java 
> -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties
>  -Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>  -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath
> /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
> -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 
> -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp
> org.apache.catalina.startup.Bootstrap start
>
> thanks for the help
>
> Cordialement
>
> Stéphane Lassire
> -Message d'origine-
> De : users [mailto:users-boun...@xwiki.org] De la part de Thomas Mortagne
> Envoyé : mercredi 25 mai 2016 12:46
> À : XWiki Users
> Objet : Re: [xwiki-users] Error upgrading Debian
>
> "Invalid byte tag in constant pool: 15" still looks like a Java version
> issue.
>
> Could you check what version of Java started with "ps aux | grep tomcat" ?
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


Re: [xwiki-users] Error upgrading Debian

2016-05-25 Thread Thomas Mortagne
On Wed, May 25, 2016 at 12:30 PM, Thomas Mortagne
 wrote:
> On Wed, May 25, 2016 at 11:33 AM, Vincent Massol  wrote:
>> Note: We’re going to have lots of issues like this if the apt doesn’t update 
>> the java version
>
> It's not that simple. The package require Java 8 but then you can
> still have a different version configured in Tomcat and XWiki package
> cannot do much more about that.
>
>>
>> At the very least we need to highlight this in the doc on 
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT

I added 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT#HJavaVersion

>>
>> Can someone do this?
>>
>> Thanks
>> -Vincent
>>
>>
>>> On 25 May 2016, at 11:17, Thomas Mortagne  wrote:
>>>
>>> 8.1 requires Java 8 so you need to make sure you configure Tomcat to use it.
>>>
>>> Note: it's possible the JVM is explicitely set in
>>> /etc/default/tomact7 (in which case Tomcat won't use the default JVM).
>>>
>>> On Wed, May 25, 2016 at 11:03 AM, Stéphane LASSIRE
>>>  wrote:
 Hello all,



 I just start to make an upgrade from my Xwiki 7.1.2 release to the last
 debian version.

 I am running a Debian server, a Postgresql database and Tomcat 7.



 I ran apt commands without problem.



 But in the run of Tomcat I got a bunch of  errors in catalina.out and the
 url show an error page.



 Browser :

 Etat HTTP 404 - /xwiki

  _

 type Rapport d''état

 message /xwiki

 description La ressource demandée (/xwiki) n'est pas disponible.

  _

 Apache Tomcat/7.0.28

 Catalina.out

 INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28

 mai 25, 2016 10:36:34 AM org.apache.catalina.startup.HostConfig
 deployDescriptor

 INFOS: Déploiement du descripteur de configuration
 /etc/tomcat7/Catalina/localhost/xwiki.xml

 mai 25, 2016 10:36:36 AM org.apache.catalina.startup.ContextConfig
 processAnnotationsJar

 GRAVE: Unable to process Jar entry
 [org/infinispan/commons/marshall/MarshallableFunctions$AbstractSetValueIfPresentReturnBoolean.class]
 from Jar
 [jar:file:/usr/lib/xwiki/WEB-INF/lib/infinispan-commons-8.2.1.Final.jar!/]
 for annotations

 org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte 
 tag
 in constant pool: 18

at
 org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

at
 org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

at
 org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)

at
 org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)

at
 org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)

at
 org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)

at
 org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)

at
 org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)

at
 org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)

at
 org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)

at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)

at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5209)

at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)

at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650)

at
 org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582)

at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at 

Re: [xwiki-users] Error upgrading Debian - > Vincent

2016-05-25 Thread Thomas Mortagne
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
give you several repositories and explain what each one is about.

"""
Note that there is several repositories you can choose (as
alternatives to the stable one you have in the previous example):

http://maven.xwiki.org/releases/xwiki-releases.list: all released
versions including milestones and release candidates (beta)
http://maven.xwiki.org/stable/xwiki-stable.list: all released versions
excluding milestones and release candidates (stable)
http://maven.xwiki.org/lts/xwiki-lts.list: all "long term support"
releases as defined in Support page
"""

The example is based on stable branch but you can use LTS repository
to have 7.4.x.

On Wed, May 25, 2016 at 12:44 PM, Stéphane LASSIRE
 wrote:
> Hello Vincent,
>
> Yes I think some explanations was helpful
>
> I saw all problems encountered by Mohamed, so I planned to migrate to
> release 7.4, I follow the links :
> http://www.xwiki.org/xwiki/bin/view/Download/DownloadVersion/?projectVersion=7.4.3.
>
> But this procedure for Debian put the Xwiki release 8.
>
> And now I have some problems to make running the Wiki, may be the Debian
> documentation and installation notes/configuration should be modified.
>
> Cordialement
>
> Stéphane Lassire
>
> -Message d'origine-
> De : users [mailto:users-boun...@xwiki.org] De la part de Vincent Massol
> Envoyé : mercredi 25 mai 2016 11:33
> À : XWiki Users
> Objet : Re: [xwiki-users] Error upgrading Debian
>
> Note: We’re going to have lots of issues like this if the apt doesn’t update
> the java version
>
> At the very least we need to highlight this in the doc on
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
>
> Can someone do this?
>
> 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



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


Re: [xwiki-users] Error upgrading Debian

2016-05-25 Thread Stéphane LASSIRE
Hello Thomas,

The answer :

root@CESAP-WIKI01:/var/log/tomcat7# ps aux | grep tomcat
tomcat7   6355  7.3  6.7 2182572 275136 ?  Sl   12:34   0:59 
/usr/lib/jvm/java-8-oracle/bin/java 
-Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties 
 -Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
 -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath 
/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar  
-Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 
-Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp 
org.apache.catalina.startup.Bootstrap start

thanks for the help

Cordialement

Stéphane Lassire
-Message d'origine-
De : users [mailto:users-boun...@xwiki.org] De la part de Thomas Mortagne
Envoyé : mercredi 25 mai 2016 12:46
À : XWiki Users
Objet : Re: [xwiki-users] Error upgrading Debian

"Invalid byte tag in constant pool: 15" still looks like a Java version 
issue.

Could you check what version of Java started with "ps aux | grep tomcat" ?

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


Re: [xwiki-users] Error upgrading Debian

2016-05-25 Thread Thomas Mortagne
"Invalid byte tag in constant pool: 15" still looks like a Java version issue.

Could you check what version of Java started with "ps aux | grep tomcat" ?

On Wed, May 25, 2016 at 12:41 PM, Stéphane LASSIRE
 wrote:
> Hello Thomas,
>
> So I take a look of all messages between you and Mohamed.
>
> *1* I put Java 8
>
> root@CESAP-WIKI01:/var/log/tomcat7# java -version
> java version "1.8.0_91"
> Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
>
> *2* Put tuning for Java 8
> root@CESAP-WIKI01:/var/log/tomcat7# update-alternatives --config java
> Il existe 3 choix pour l'alternative java (qui fournit /usr/bin/java).
>
>   Sélection   Chemin  Priorité  État
> 
> * 0/usr/lib/jvm/java-8-oracle/jre/bin/java  1062
> mode a
>   1/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061
> mode m
>   2/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051
> mode m
>   3/usr/lib/jvm/java-8-oracle/jre/bin/java  1062
> mode m
>
>
> -> new JDK to the JDK_DIRS variable in /etc/init.d/tomcat7
> JDK_DIRS="/usr/lib/jvm/default-java ${OPENJDKS} /usr/lib/jvm/java-6-openjdk
> /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-7-oracle
> /usr/lib/jvm/java-8-oracle"
>
> -> Modification /etc/default/tomcat7
> JAVA_HOME=/usr/lib/jvm/java-8-oracle
>
> But at this time I git a blank page on browser and ythis kind of error in
> catalina :
>
> mai 25, 2016 12:34:02 PM org.apache.coyote.AbstractProtocol init
> INFOS: Initializing ProtocolHandler ["http-bio-8080"]
> mai 25, 2016 12:34:02 PM org.apache.catalina.startup.Catalina load
> INFOS: Initialization processed in 721 ms
> mai 25, 2016 12:34:02 PM org.apache.catalina.core.StandardService
> startInternal
> INFOS: Démarrage du service Catalina
> mai 25, 2016 12:34:02 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28
> mai 25, 2016 12:34:02 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFOS: Déploiement du descripteur de configuration
> /etc/tomcat7/Catalina/localhost/xwiki.xml
> mai 25, 2016 12:34:07 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> GRAVE: Unable to process Jar entry
> [jdk/nashorn/internal/objects/NativeString.class] from Jar
> [jar:file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar!/] for
> annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag
> in constant pool: 15
>
> Error in localhost.2016...
> mai 25, 2016 12:34:37 PM org.apache.catalina.core.StandardWrapperValve
> invoke
> GRAVE: "Servlet.service()" pour la servlet action a généré une exception
> javax.servlet.UnavailableException: Cannot initialize RequestProcessor of
> class com.xpn.xwiki.web.XWikiRequestProcessor:
> java.lang.NullPointerException
> at
> org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:614)
>
> Not very simple to solve this time
> Sorry
>
> Cordialement
>
> Stéphane Lassire
> Chargé de l'informatique et de la communication
> Tél direct : 01 42 85 81 87
> Courriel : slass...@cesap.asso.fr
>
>
> -Message d'origine-
> De : users [mailto:users-boun...@xwiki.org] De la part de Thomas Mortagne
> Envoyé : mercredi 25 mai 2016 11:17
> À : XWiki Users
> Objet : Re: [xwiki-users] Error upgrading Debian
>
> 8.1 requires Java 8 so you need to make sure you configure Tomcat to use it.
>
> Note: it's possible the JVM is explicitely set in
> /etc/default/tomact7 (in which case Tomcat won't use the default JVM).
>
> On Wed, May 25, 2016 at 11:03 AM, Stéphane LASSIRE 
> wrote:
>> Hello all,
>>
>>
>>
>> I just start to make an upgrade from my Xwiki 7.1.2 release to the
>> last debian version.
>>
>> I am running a Debian server, a Postgresql database and Tomcat 7.
>>
>>
>>
>> I ran apt commands without problem.
>>
>>
>>
>> But in the run of Tomcat I got a bunch of  errors in catalina.out and
>> the url show an error page.
>>
>>
>>
>> Browser :
>>
>> Etat HTTP 404 - /xwiki
>>
>>   _
>>
>> type Rapport d''état
>>
>> message /xwiki
>>
>> description La ressource demandée (/xwiki) n'est pas disponible.
>>
>>   _
>>
>> Apache Tomcat/7.0.28
>>
>> Catalina.out
>>
>> INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28
>>
>> mai 25, 2016 10:36:34 AM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>>
>> INFOS: Déploiement du descripteur de configuration
>> /etc/tomcat7/Catalina/localhost/xwiki.xml
>>
>> mai 25, 2016 10:36:36 AM org.apache.catalina.startup.ContextConfig
>> processAnnotationsJar
>>
>> GRAVE: Unable to process Jar entry
>> [org/infinispan/commons/marshall/MarshallableFunctions$AbstractSetValu
>> eIfPresentReturnBoolean.class]
>> from Jar
>> [jar:file:/usr/lib/xwiki/WEB-INF/lib/infinispan-commons-8.2.1.Final.ja
>> r!/]
>> for annotations

Re: [xwiki-users] Error upgrading Debian - > Vincent

2016-05-25 Thread Stéphane LASSIRE
Hello Vincent,

Yes I think some explanations was helpful

I saw all problems encountered by Mohamed, so I planned to migrate to 
release 7.4, I follow the links :
http://www.xwiki.org/xwiki/bin/view/Download/DownloadVersion/?projectVersion=7.4.3.

But this procedure for Debian put the Xwiki release 8.

And now I have some problems to make running the Wiki, may be the Debian 
documentation and installation notes/configuration should be modified.

Cordialement

Stéphane Lassire

-Message d'origine-
De : users [mailto:users-boun...@xwiki.org] De la part de Vincent Massol
Envoyé : mercredi 25 mai 2016 11:33
À : XWiki Users
Objet : Re: [xwiki-users] Error upgrading Debian

Note: We’re going to have lots of issues like this if the apt doesn’t update 
the java version

At the very least we need to highlight this in the doc on 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT

Can someone do this?

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] Error upgrading Debian

2016-05-25 Thread Stéphane LASSIRE
Hello Thomas,

So I take a look of all messages between you and Mohamed.

*1* I put Java 8

root@CESAP-WIKI01:/var/log/tomcat7# java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

*2* Put tuning for Java 8
root@CESAP-WIKI01:/var/log/tomcat7# update-alternatives --config java
Il existe 3 choix pour l'alternative java (qui fournit /usr/bin/java).

  Sélection   Chemin  Priorité  État

* 0/usr/lib/jvm/java-8-oracle/jre/bin/java  1062 
mode a
  1/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061 
mode m
  2/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051 
mode m
  3/usr/lib/jvm/java-8-oracle/jre/bin/java  1062 
mode m


-> new JDK to the JDK_DIRS variable in /etc/init.d/tomcat7
JDK_DIRS="/usr/lib/jvm/default-java ${OPENJDKS} /usr/lib/jvm/java-6-openjdk 
/usr/lib/jvm/java-6-sun /usr/lib/jvm/java-7-oracle 
/usr/lib/jvm/java-8-oracle"

-> Modification /etc/default/tomcat7
JAVA_HOME=/usr/lib/jvm/java-8-oracle

But at this time I git a blank page on browser and ythis kind of error in 
catalina :

mai 25, 2016 12:34:02 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["http-bio-8080"]
mai 25, 2016 12:34:02 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 721 ms
mai 25, 2016 12:34:02 PM org.apache.catalina.core.StandardService 
startInternal
INFOS: Démarrage du service Catalina
mai 25, 2016 12:34:02 PM org.apache.catalina.core.StandardEngine 
startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28
mai 25, 2016 12:34:02 PM org.apache.catalina.startup.HostConfig 
deployDescriptor
INFOS: Déploiement du descripteur de configuration 
/etc/tomcat7/Catalina/localhost/xwiki.xml
mai 25, 2016 12:34:07 PM org.apache.catalina.startup.ContextConfig 
processAnnotationsJar
GRAVE: Unable to process Jar entry 
[jdk/nashorn/internal/objects/NativeString.class] from Jar 
[jar:file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar!/] for 
annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag 
in constant pool: 15

Error in localhost.2016...
mai 25, 2016 12:34:37 PM org.apache.catalina.core.StandardWrapperValve 
invoke
GRAVE: "Servlet.service()" pour la servlet action a généré une exception
javax.servlet.UnavailableException: Cannot initialize RequestProcessor of 
class com.xpn.xwiki.web.XWikiRequestProcessor: 
java.lang.NullPointerException
at 
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:614)

Not very simple to solve this time
Sorry

Cordialement

Stéphane Lassire
Chargé de l'informatique et de la communication
Tél direct : 01 42 85 81 87
Courriel : slass...@cesap.asso.fr


-Message d'origine-
De : users [mailto:users-boun...@xwiki.org] De la part de Thomas Mortagne
Envoyé : mercredi 25 mai 2016 11:17
À : XWiki Users
Objet : Re: [xwiki-users] Error upgrading Debian

8.1 requires Java 8 so you need to make sure you configure Tomcat to use it.

Note: it's possible the JVM is explicitely set in
/etc/default/tomact7 (in which case Tomcat won't use the default JVM).

On Wed, May 25, 2016 at 11:03 AM, Stéphane LASSIRE  
wrote:
> Hello all,
>
>
>
> I just start to make an upgrade from my Xwiki 7.1.2 release to the
> last debian version.
>
> I am running a Debian server, a Postgresql database and Tomcat 7.
>
>
>
> I ran apt commands without problem.
>
>
>
> But in the run of Tomcat I got a bunch of  errors in catalina.out and
> the url show an error page.
>
>
>
> Browser :
>
> Etat HTTP 404 - /xwiki
>
>   _
>
> type Rapport d''état
>
> message /xwiki
>
> description La ressource demandée (/xwiki) n'est pas disponible.
>
>   _
>
> Apache Tomcat/7.0.28
>
> Catalina.out
>
> INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28
>
> mai 25, 2016 10:36:34 AM org.apache.catalina.startup.HostConfig
> deployDescriptor
>
> INFOS: Déploiement du descripteur de configuration
> /etc/tomcat7/Catalina/localhost/xwiki.xml
>
> mai 25, 2016 10:36:36 AM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
>
> GRAVE: Unable to process Jar entry
> [org/infinispan/commons/marshall/MarshallableFunctions$AbstractSetValu
> eIfPresentReturnBoolean.class]
> from Jar
> [jar:file:/usr/lib/xwiki/WEB-INF/lib/infinispan-commons-8.2.1.Final.ja
> r!/]
> for annotations
>
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid
> byte tag in constant pool: 18
>
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.j
> ava:131)
>
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool
> .java:60)
>
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(Cla
> ssParser.java:209)
>
>  

Re: [xwiki-users] Help configuring Email Sending for User verification

2016-05-25 Thread Vincent Massol
All I can tell you is that XWiki is working fine for sending mail with TLS 
(I’ve tested it plenty of times using the gmail smtp server).

You should also check the status you get in the mail sending status section in 
the admin. That should give you some details if the mail failed to be sent.

Thanks
-Vincent

> On 25 May 2016, at 12:01, superuser  wrote:
> 
> I tried changing port value to every possible value I could find on intenet.
> still no luck 
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Help-configuring-Email-Sending-for-User-verification-tp7599610p7599620.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] Help configuring Email Sending for User verification

2016-05-25 Thread superuser
I tried changing port value to every possible value I could find on intenet.
still no luck 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Help-configuring-Email-Sending-for-User-verification-tp7599610p7599620.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] Help configuring Email Sending for User verification

2016-05-25 Thread superuser
I tried changing it to 143 as shown in image. still no luck



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Help-configuring-Email-Sending-for-User-verification-tp7599610p7599619.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 upgrading Debian

2016-05-25 Thread Vincent Massol
Note: We’re going to have lots of issues like this if the apt doesn’t update 
the java version

At the very least we need to highlight this in the doc on 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT

Can someone do this?

Thanks
-Vincent


> On 25 May 2016, at 11:17, Thomas Mortagne  wrote:
> 
> 8.1 requires Java 8 so you need to make sure you configure Tomcat to use it.
> 
> Note: it's possible the JVM is explicitely set in
> /etc/default/tomact7 (in which case Tomcat won't use the default JVM).
> 
> On Wed, May 25, 2016 at 11:03 AM, Stéphane LASSIRE
>  wrote:
>> Hello all,
>> 
>> 
>> 
>> I just start to make an upgrade from my Xwiki 7.1.2 release to the last
>> debian version.
>> 
>> I am running a Debian server, a Postgresql database and Tomcat 7.
>> 
>> 
>> 
>> I ran apt commands without problem.
>> 
>> 
>> 
>> But in the run of Tomcat I got a bunch of  errors in catalina.out and the
>> url show an error page.
>> 
>> 
>> 
>> Browser :
>> 
>> Etat HTTP 404 - /xwiki
>> 
>>  _
>> 
>> type Rapport d''état
>> 
>> message /xwiki
>> 
>> description La ressource demandée (/xwiki) n'est pas disponible.
>> 
>>  _
>> 
>> Apache Tomcat/7.0.28
>> 
>> Catalina.out
>> 
>> INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28
>> 
>> mai 25, 2016 10:36:34 AM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> 
>> INFOS: Déploiement du descripteur de configuration
>> /etc/tomcat7/Catalina/localhost/xwiki.xml
>> 
>> mai 25, 2016 10:36:36 AM org.apache.catalina.startup.ContextConfig
>> processAnnotationsJar
>> 
>> GRAVE: Unable to process Jar entry
>> [org/infinispan/commons/marshall/MarshallableFunctions$AbstractSetValueIfPresentReturnBoolean.class]
>> from Jar
>> [jar:file:/usr/lib/xwiki/WEB-INF/lib/infinispan-commons-8.2.1.Final.jar!/]
>> for annotations
>> 
>> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag
>> in constant pool: 18
>> 
>>at
>> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
>> 
>>at
>> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
>> 
>>at
>> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
>> 
>>at
>> org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
>> 
>>at
>> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)
>> 
>>at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> 
>>at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> 
>>at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5209)
>> 
>>at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> 
>>at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>> 
>>at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> 
>>at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
>> 
>>at
>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650)
>> 
>>at
>> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582)
>> 
>>at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> 
>>at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 
>>at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> 
>>at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> 
>>at java.lang.Thread.run(Thread.java:745)
>> 
>> 
>> 
>> + all others talking about inifispan
>> 
>> 
>> 
>> Thanks for your help
>> 
>> Stéphane
>> 
>> 
>> 
>> 
>> 
>> Cordialement
>> 
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> 
> 
> -- 
> Thomas Mortagne
> ___
> users mailing 

Re: [xwiki-users] Error upgrading Debian

2016-05-25 Thread Thomas Mortagne
8.1 requires Java 8 so you need to make sure you configure Tomcat to use it.

Note: it's possible the JVM is explicitely set in
/etc/default/tomact7 (in which case Tomcat won't use the default JVM).

On Wed, May 25, 2016 at 11:03 AM, Stéphane LASSIRE
 wrote:
> Hello all,
>
>
>
> I just start to make an upgrade from my Xwiki 7.1.2 release to the last
> debian version.
>
> I am running a Debian server, a Postgresql database and Tomcat 7.
>
>
>
> I ran apt commands without problem.
>
>
>
> But in the run of Tomcat I got a bunch of  errors in catalina.out and the
> url show an error page.
>
>
>
> Browser :
>
> Etat HTTP 404 - /xwiki
>
>   _
>
> type Rapport d''état
>
> message /xwiki
>
> description La ressource demandée (/xwiki) n'est pas disponible.
>
>   _
>
> Apache Tomcat/7.0.28
>
> Catalina.out
>
> INFOS: Starting Servlet Engine: Apache Tomcat/7.0.28
>
> mai 25, 2016 10:36:34 AM org.apache.catalina.startup.HostConfig
> deployDescriptor
>
> INFOS: Déploiement du descripteur de configuration
> /etc/tomcat7/Catalina/localhost/xwiki.xml
>
> mai 25, 2016 10:36:36 AM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
>
> GRAVE: Unable to process Jar entry
> [org/infinispan/commons/marshall/MarshallableFunctions$AbstractSetValueIfPresentReturnBoolean.class]
> from Jar
> [jar:file:/usr/lib/xwiki/WEB-INF/lib/infinispan-commons-8.2.1.Final.jar!/]
> for annotations
>
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag
> in constant pool: 18
>
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
>
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
>
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
>
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)
>
> at
> org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
>
> at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
>
> at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
>
> at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)
>
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5209)
>
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
>
> at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:650)
>
> at
> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1582)
>
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> + all others talking about inifispan
>
>
>
> Thanks for your help
>
> Stéphane
>
>
>
>
>
> Cordialement
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


Re: [xwiki-users] REST API ignores type parameter

2016-05-25 Thread Marius Dumitru Florea
Did you check
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HRootresources
?

/wikis/query
[since 6.4] using a SOLR query (there's no type parameter)

/wikis/{wikiName}/query
Allow to execute HQL, XWQL, Lucene or SOLR queries on the given {wikiName}.
(has a type parameter)

The first is a cross wiki query/search, that cannot be performed with HQL
or XWQL because each wiki is stored in a separate database schema. Solr on
the other hand keeps an external index (outside the database) that is cross
wiki.

The second REST resource targets a specific wiki (database) which allows
you to use XWQL.

Hope this helps,
Marius

On Tue, May 24, 2016 at 3:33 PM, Mark Sack 
wrote:

> I'm trying to use the REST API to retrieve some data but the API seems to
> be
> ignoring the type parameter.
> My environment is XWiki 7.4.2, Debian 8, PostgreSQL, Tomcat 8, Openjdk 8
>
> If I try to fetch some data using the browser and the following URL:
>
> http:// ...
>
> /rest/wikis/query?q=select%20obj.first_name,obj.last_name%20from%20Document%20doc,%20doc.object%28XWiki.XWikiUsers%29%20as%20obj=xwql
>
> the result is as follows (I'm reproducing here only the first few lines -
> there are actually 10 items returned)
>
>  template="
> http://10.1.16.192:8080/wiki/rest?q={solrquery}(={number})(={start})(={fieldname}(={asc|desc}))(=1)(={false|true})(={wikis})(={classname})
> "> href="
> http://10.1.16.192:8080/wiki/rest/wikis/xwiki/spaces/XWiki/pages/DocumentTreeMacros
> "
> rel="http://www.xwiki.org/rel/page
> "/>pagexwiki:XWiki.DocumentTreeMacrosXWiki.DocumentTreeMacrosxwikiXWikiDocumentTreeMacros2016-02-15T12:14:34-03:00xwiki:XWiki.Admin4.10.75986093 href="
> http://10.1.16.192:8080/wiki/rest/wikis/xwiki/spaces/Panels/pages/DocumentInformation
> "
> rel="http://www.xwiki.org/rel/page
> "/>pagexwiki:Panels.DocumentInformationPanels.DocumentInformationxwikiPanelsDocumentInformation2016-01-12T09:56:52-03:00xwiki:XWiki.superadmin1.10.63381535
>
> The result is not related in any way to the user data or their names. From
> the template on the first line, it seems to think that the query is a SOLR
> query not xwql. I've verified that the query is correct xwql syntax and
> gives a valid result by trying it in a velocity script on an actual xwiki
> page. The result is basically the same if I just query for the first name
> instead of both the first name and last name.
>
> How should I be executing xwql queries using the REST API?
>
> Regards
> Mark Sack
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/REST-API-ignores-type-parameter-tp7599586.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] XWiki 8.1 returning error 404

2016-05-25 Thread Thomas Mortagne
Actually AFAIK the right place is supposed to be /etc/default/tomcat7
which is then read by /etc/init.d/tomcat7.

On Tue, May 24, 2016 at 8:25 PM, Mahomed Hussein
 wrote:
> OK! Finally got it!
>
> I had to add the path to my new JDK to the JDK_DIRS variable in 
> /etc/init.d/tomcat7
>
> It now looks like:
>
> JDK_DIRS="/usr/lib/jvm/default-java ${OPENJDKS} /usr/lib/jvm/java-6-openjdk 
> /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-7-oracle 
> /usr/lib/jvm/java-8-openjdk-amd64"
>
> Credit: http://stackoverflow.com/a/27457724
>
>
> Thanks for all your help! xWiki rocks! Java - not so much!
>
>
> Kind regards,
>
>
>
>
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Mahomed Hussein
> Sent: 24 May 2016 18:53
> To: XWiki Users 
> Subject: Re: [xwiki-users] XWiki 8.1 returning error 404
>
> Hmmm
>
> I now have:
>
> root@xWiki:~# java -version
> java version "1.8.0_91"
> Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
>
> And I've run:
>
> root@xWiki:~# update-alternatives --config java
> There are 3 choices for the alternative java (providing /usr/bin/java).
>
>   SelectionPathPriority   
> Status
> 
> * 0/usr/lib/jvm/java-8-oracle/jre/bin/java  1072  
> auto mode
>   1/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071  
> manual mode
>   2/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1069  
> manual mode
>   3/usr/lib/jvm/java-8-oracle/jre/bin/java  1072  
> manual mode
>
>
> root@xWiki:~# update-alternatives --config javac
> There are 3 choices for the alternative javac (providing /usr/bin/javac).
>
>   SelectionPath Priority   Status
> 
> * 0/usr/lib/jvm/java-8-oracle/bin/javac  1072  auto 
> mode
>   1/usr/lib/jvm/java-7-openjdk-amd64/bin/javac   1071  manual 
> mode
>   2/usr/lib/jvm/java-8-openjdk-amd64/bin/javac   1069  manual 
> mode
>   3/usr/lib/jvm/java-8-oracle/bin/javac  1072  manual 
> mode
>
>
>
> But I am still getting the following error. I have already restarted tomcat7 
> and even the whole server.
>
> May 24, 2016 6:51:09 PM org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Error configuring application listener of class 
> org.xwiki.container.servlet.XWikiServletContextListener
> java.lang.UnsupportedClassVersionError: 
> org/xwiki/container/servlet/XWikiServletContextListener : Unsupported 
> major.minor version 52.0 (unable to load class 
> org.xwiki.container.servlet.XWikiServletContextListener)
> at 
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2948)
> at 
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1208)
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
> at 
> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
> at 
> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
> at 
> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
> at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4888)
> at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
> at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
> at 
> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> May 24, 2016 6:51:09 PM org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Error 

[xwiki-users] Filtering boolean values in AppWithinMinutes table

2016-05-25 Thread Ryszard Łach
Hi.

In application created by AppWithinMinutes there is a non-functionality of 
filter on boolean-type columns. Values in such a column are shown as 'Yes/No' 
(with possible translations), but it is not possible to filter them by 'Yes/No' 
- one has to use '0' or '1'. It is very non-intuitive.

Is there a known issue regarding this?

TIA,

Ryszard.

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


Re: [xwiki-users] Help configuring Email Sending for User verification

2016-05-25 Thread Vincent Massol
I haven’t followed this thread but port 25 is likely incorrect for TLS.

Thanks
-Vincent

> On 25 May 2016, at 07:27, superuser  wrote:
> 
> No matter what settings I use in 'mail sending', the email is not sent. Below
> are the details of my email server. Please help me
> -
> My current configuration: (I also tried many variations of configuration)
> 
> EMAIL ADDRESS TO SEND FROM
> The default email address used to send notification emails from
> x...@wikinote.org
> 
> EMAIL SERVER
> smtp.wikinote.org
> 
> EMAIL SERVER PORT
> 25
> 
> ADDITIONAL PROPERTIES
> mail.smtp.starttls.enable=true
> 
> --
> 
> MY SERVICE PROVIDER GAVE ME THIS INFO:
> User ID   x...@wikinote.org
> IMAP Server   imap.wikinote.org.
> POP Serverpop.wikinote.org.
> SMTP Server   smtp.wikinote.org.
> Webmail URL   http://webmail.wikinote.org.
> 
>  
>  
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Help-configuring-Email-Sending-for-User-verification-tp7599610.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