Can't add new group

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Can't add new group

eimzdn
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§ion=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;
        at javax.ws.rs.WebApplicationException.computeExceptionMessage(WebApplicationException.java:205)
        at javax.ws.rs.WebApplicationException.<init>(WebApplicationException.java:179)
        at javax.ws.rs.WebApplicationException.<init>(WebApplicationException.java:244)
        at javax.ws.rs.WebApplicationException.<init>(WebApplicationException.java:133)
        at org.xwiki.rest.XWikiResource.getDocumentInfo(XWikiResource.java:271)
        at org.xwiki.rest.XWikiResource.getDocumentInfo(XWikiResource.java:215)
        at org.xwiki.rest.internal.resources.pages.PageResourceImpl.getPage(PageResourceImpl.java:47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper.internalInvoke(AbstractMethodWrapper.java:171)
        at org.restlet.ext.jaxrs.internal.wrappers.ResourceMethod.invoke(ResourceMethod.java:291)
        at org.restlet.ext.jaxrs.JaxRsRestlet.invokeMethod(JaxRsRestlet.java:1043)
        at org.restlet.ext.jaxrs.JaxRsRestlet.handle(JaxRsRestlet.java:792)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Router.doHandle(Router.java:500)
        at org.restlet.routing.Router.handle(Router.java:740)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:154)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.engine.ChainHelper.handle(ChainHelper.java:114)
        at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:75)
        at org.restlet.Application.handle(Application.java:391)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Router.doHandle(Router.java:500)
        at org.restlet.routing.Router.handle(Router.java:740)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.routing.Router.doHandle(Router.java:500)
        at org.restlet.routing.Router.handle(Router.java:740)
        at org.restlet.routing.Filter.doHandle(Filter.java:159)
        at org.restlet.routing.Filter.handle(Filter.java:206)
        at org.restlet.engine.ChainHelper.handle(ChainHelper.java:114)
        at org.restlet.Component.handle(Component.java:391)
        at org.restlet.Server.handle(Server.java:491)
        at org.restlet.engine.ServerHelper.handle(ServerHelper.java:74)
        at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:153)
        at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1031)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
        at org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:85)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:136)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
        at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
        at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
        at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)
        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)

2017-03-24 14:26:47,619 INFO  [org.restlet.Component.LogService] (https://************/rest/wikis/xwiki/spaces/XWiki/pages/Visi) 2017-03-24    14:26:47        ***.***.***.***  -       ***.***.***.***       443     GET     /rest/wikis/xwiki/spaces/XWiki/pages/Visi       -       500     486     0       4       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§ion=Groups


Can somone help to solve this problem?

Best Regards,
Eimantas
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't add new group

vmassol
Administrator
Hi,

> On 24 Mar 2017, at 13:44, eimzdn <[hidden email]> 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&section=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.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't add new group

eimzdn
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:[hidden email]] On Behalf Of Vincent Massol
Sent: Friday, March 24, 2017 2:58 PM
To: XWiki Users <[hidden email]>
Subject: Re: [xwiki-users] Can't add new group

Hi,

> On 24 Mar 2017, at 13:44, eimzdn <[hidden email]> 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&section=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.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't add new group

amonge
This post has NOT been accepted by the mailing list yet.
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.



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 <module name="javax.jws" /> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Can't add new group

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+[hidden email]]
Sent: Wednesday, April 26, 2017 5:45 PM
To: Eimantas Zdanevičius <[hidden email]>
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.



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 <module name="javax.jws" /> 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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Can't add new group

amonge
This post has NOT been accepted by the mailing list yet.
Hello,

I have found a solution with XWiki 8.4.5 and Wildfly 10 (and an Oracle database) :

1. Edit the file xwiki.war/WEB-INF/jboss-deployment-structure.xml
2. You need to exclude jaxrs and webservices from the subsystems deployment. Here's my file, and the lines to add are in bold.

________________________________________________
<jboss-deployment-structure>
  <deployment>
    <exclusions>
      <module name="org.apache.log4j" />
      <module name="org.apache.commons.logging" />
      <module name="org.slf4j" />
      <module name="org.slf4j.impl" />
    </exclusions>
       
    <exclude-subsystems> 
      <subsystem name="jaxrs" /> 
      <subsystem name="webservices" /> 
    </exclude-subsystems> 

  </deployment>
</jboss-deployment-structure>

________________________________________________

3. Restart the server



I don't know if it's a good solution, but it works for me and I haven't noticed another problem yet.

Best regards,
Alexandre
Loading...