Re: [xwiki-users] Can't add new group

2017-04-26 Thread eimzdn
Hello, Alexandre,

I don’t have a solution for wildfly. I decided to switch to jetty. There 
everything works properly.

Best Regards,
Eimantas

From: amonge [via XWiki] [mailto:ml+s475771n7603643...@n2.nabble.com]
Sent: Wednesday, April 26, 2017 5:45 PM
To: Eimantas Zdanevičius 
Subject: Re: Can't add new group

Hello,

I have exactly the same problem. When I'm trying to add a new group, this 
message appears : An error occurred while communicating with the server. Please 
check that the server is accessible, and you have the proper rights to perform 
the requested action.

[http://xwiki.475771.n2.nabble.com/file/n7603643/ErrorNewGroup.png]

I tried with XE 8.4.4 and XE 8.4.5 .war on JBoss Wildfly 8 & 10 and an Oracle 
database, but I'm still getting the same error. The logs displayed on the 
server are the same as Eimantas.
eimzdn wrote
Hello,

I find out that system jsr library is different version from that which comes 
with xwiki:
./modules/system/layers/base/javax/jws/api/main/jsr181-api-1.0-MR1.jar
./standalone/deployments/xwiki.war/WEB-INF/lib/jsr311-api-1.1.1.jar

How can I tell wildfly to load xwiki library instead of system?

Best regards,
Eimantas

I have edited the WEB-INF/jboss-deployment-structure.xml file to add the line 
 on excluded dependencies (package of 
jsr181-api-1.0-MR1.jar), but no success.
I tried with javax.ws too.

Nevertheless, the standalone's version of XWiki has no problem, but I have to 
use a .war version.

Does anyone have any solutions ?

Best regards,
Alexandre

If you reply to this email, your message will be added to the discussion below:
http://xwiki.475771.n2.nabble.com/Can-t-add-new-group-tp7603235p7603643.html
To unsubscribe from Can't add new group, click 
here.
NAML




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Can-t-add-new-group-tp7603235p7603653.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Can't add new group

2017-03-27 Thread Eimantas Zdanevičius
Hello,

I find out that system jsr library is different version from that which comes 
with xwiki:
./modules/system/layers/base/javax/jws/api/main/jsr181-api-1.0-MR1.jar
./standalone/deployments/xwiki.war/WEB-INF/lib/jsr311-api-1.1.1.jar

How can I tell wildfly to load xwiki library instead of system?

Best regards,
Eimantas

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
Sent: Friday, March 24, 2017 2:58 PM
To: XWiki Users <users@xwiki.org>
Subject: Re: [xwiki-users] Can't add new group

Hi,

> On 24 Mar 2017, at 13:44, eimzdn <eimantas.zdanevic...@bluebridge.lt> wrote:
> 
> Hello,
> 
> I have installed Xwiki 8.4.4 on Wildfly 10.1. I have installed default 
> wiki pages.
> 
> I'm trying to add new group under "Addministration: Groups -> Add new group"
> when logged with user admin and geting error popup "An error occured 
> while communicating with the server. Please check that the server is 
> accessible, and you have the proper rights to perform requested action."
> 
> In server.log I get the folowing messages:
> 2017-03-24 14:24:19,478 INFO  [org.restlet.Component.LogService]
> (https:///rest/wikis/xwiki/spaces/XWiki/pages/Visi) 2017-03-24   
> 14:24:19***.***.***.***  -   ***.***.***.***   443 GET
> /rest/wikis/xwiki/spaces/XWiki/pages/Visi   -   500 486 0 
>  
> 3   https://   Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36 
> https:///bin/admin/XWiki/XWikiPreferences?editor=globaladm
> in=Groups
> 2017-03-24 14:26:47,617 WARNING
> [org.restlet.Component.XWikiRestletJaxRsApplication]
> (https:///rest/wikis/xwiki/spaces/XWiki/pages/Visi) 
> Exception or error caught in status service: java.lang.AbstractMethodError:
> javax.ws.rs.core.Response.getStatusInfo()Ljavax/ws/rs/core/Response$St
> atusType;

[snip]

> Can somone help to solve this problem?

The issue is likely related to WildFly and that it has its 
classloader/classpath leaking on the xwiki webapp… So there’s probably a 
conflicting library version for the JAR that contains javax/ws/rs/core/Response.

See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationJBoss and 
especially the line that says:

"   • If you have class loader issues read how JBoss AS7 Classloader works”

I don’t have the exact answer but I hope this will lead you to the right track.

Thanks
-Vincent

> 
> Best Regards,
> Eimantas
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Can-t-add-new-group-tp7603235.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



Re: [xwiki-users] Can't add new group

2017-03-24 Thread Vincent Massol
Hi,

> On 24 Mar 2017, at 13:44, eimzdn  wrote:
> 
> Hello,
> 
> I have installed Xwiki 8.4.4 on Wildfly 10.1. I have installed default wiki
> pages.
> 
> I'm trying to add new group under "Addministration: Groups -> Add new group"
> when logged with user admin and geting error popup "An error occured while
> communicating with the server. Please check that the server is accessible,
> and you have the proper rights to perform requested action."
> 
> In server.log I get the folowing messages:
> 2017-03-24 14:24:19,478 INFO  [org.restlet.Component.LogService]
> (https:///rest/wikis/xwiki/spaces/XWiki/pages/Visi) 2017-03-24   
> 14:24:19***.***.***.***  -   ***.***.***.***   443 GET
> /rest/wikis/xwiki/spaces/XWiki/pages/Visi   -   500 486 0 
>  
> 3   https://   Mozilla/5.0 (Windows NT 10.0; Win64; x64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36 
> https:///bin/admin/XWiki/XWikiPreferences?editor=globaladmin=Groups
> 2017-03-24 14:26:47,617 WARNING
> [org.restlet.Component.XWikiRestletJaxRsApplication]
> (https:///rest/wikis/xwiki/spaces/XWiki/pages/Visi) Exception or
> error caught in status service: java.lang.AbstractMethodError:
> javax.ws.rs.core.Response.getStatusInfo()Ljavax/ws/rs/core/Response$StatusType;

[snip]

> Can somone help to solve this problem?

The issue is likely related to WildFly and that it has its 
classloader/classpath leaking on the xwiki webapp… So there’s probably a 
conflicting library version for the JAR that contains javax/ws/rs/core/Response.

See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationJBoss and 
especially the line that says:

"   • If you have class loader issues read how JBoss AS7 Classloader works”

I don’t have the exact answer but I hope this will lead you to the right track.

Thanks
-Vincent

> 
> Best Regards,
> Eimantas
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Can-t-add-new-group-tp7603235.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.