# Class not found : PeopleService / SSO with Google Apps Integration (Pro)

**URL:** <https://forum.xwiki.org/t/class-not-found-peopleservice-sso-with-google-apps-integration-pro/14453>\
**Category:** Help / Discuss\
**Tags:** sso, google\
**Created:** [April 18, 2024, 6:10am UTC](https://forum.xwiki.org/t/class-not-found-peopleservice-sso-with-google-apps-integration-pro/14453 "2024-04-18T06:10:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toothspaces](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/t/9f8e36/32.png) [@toothspaces](https://forum.xwiki.org/u/toothspaces)\
**Post date:** [April 18, 2024, 6:10am UTC](https://forum.xwiki.org/t/class-not-found-peopleservice-sso-with-google-apps-integration-pro/14453/1 "2024-04-18T06:10:01Z")

</div>

Hello,

The Google Apps Integration (Pro), version 2.6.1 is not working on our wiki.

When connecting, it processes the login and password of the google account, but when redirecting to XWiki, there is the page :  
“Authentification Google Apps”

with this message :

```auto
Erreur dans l'exécution de la macro [velocity]. Cause : [Could not initialize class com.google.api.services.people.v1.PeopleService]. Cliquer sur ce message pour voir plus de détails.

```

The class : com.google.api.services.people.v1.PeopleService  
is not found.

And the details (extract of the whole java exception) :

```auto
java.lang.NoClassDefFoundError: Could not initialize class com.google.api.services.people.v1.PeopleService
 at com.google.api.services.people.v1.PeopleService$Builder.build(PeopleService.java:2496)
 at com.google.api.services.people.v1.PeopleService$Builder$build$0.call(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
 at GoogleAppsGroovy.updateUser(Script_765581af138cbaea069885f002925edc.groovy:348)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
 at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
 at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
 at org.apache.velocity.Template.merge(Template.java:358)
 at org.apache.velocity.Template.merge(Template.java:262)
 at org.xwiki.velocity.internal.InternalVelocityEngine.evaluate(InternalVelocityEngine.java:225)

```

It seems it does not find one lib,…  
Suprising ! ???

I have checked the installation of the extension,  
and deleted it, and reinstalled it.  
Same error.

The dependencies tab shows :

> Cette extension dépend de:
> 
> - [Licensor API](https://wiki.tucania.com/xwiki/bin/admin/XWiki/XWikiPreferences?section=XWiki.Extensions&search=google&repo=&recommended=on&recommended=false&indexed=on&indexed=false&compatible=on&compatible=false&extensionId=com.xwiki.licensing%3Aapplication-licensing-licensor-api&extensionVersion=1.25&extensionNamespace=wiki%3Axwiki)1.25 (dans le wiki [Home](https://wiki.tucania.com/xwiki/bin/view/Main/)) Installé en tant que dépendance
> 
> - [Google APIs Client Library for Java](https://wiki.tucania.com/xwiki/bin/admin/XWiki/XWikiPreferences?section=XWiki.Extensions&search=google&repo=&recommended=on&recommended=false&indexed=on&indexed=false&compatible=on&compatible=false&extensionId=com.google.api-client%3Agoogle-api-client&extensionVersion=1.23.0&extensionNamespace=wiki%3Axwiki)1.23.0 (dans le wiki [Home](https://wiki.tucania.com/xwiki/bin/view/Main/)) Installé
> 
> - [People API v1-rev443-1.23.0](https://wiki.tucania.com/xwiki/bin/admin/XWiki/XWikiPreferences?section=XWiki.Extensions&search=google&repo=&recommended=on&recommended=false&indexed=on&indexed=false&compatible=on&compatible=false&extensionId=com.google.apis%3Agoogle-api-services-people&extensionVersion=v1-rev443-1.23.0&extensionNamespace=wiki%3Axwiki)v1-rev443-1.23.0 (dans le wiki [Home](https://wiki.tucania.com/xwiki/bin/view/Main/)) Installé en tant que dépendance
> 
> - [Drive API v2-rev358-1.23.0](https://wiki.tucania.com/xwiki/bin/admin/XWiki/XWikiPreferences?section=XWiki.Extensions&search=google&repo=&recommended=on&recommended=false&indexed=on&indexed=false&compatible=on&compatible=false&extensionId=com.google.apis%3Agoogle-api-services-drive&extensionVersion=v2-rev358-1.23.0&extensionNamespace=wiki%3Axwiki)v2-rev358-1.23.0 (dans le wiki [Home](https://wiki.tucania.com/xwiki/bin/view/Main/)) Installé en tant que dépendance

XWiki 15.10.7  
Tomcat 8.5 (last version 8.5.99)  
Java 11 (we’ll move up for XWiki 16…)

Is there a extension dependance missing ?

Where does this error come from ?  
How to investigate, or solve this ?

Please, any help…

---

<div class="post-metadata">

**Author:** ![yves2](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/y/9d8465/32.png) [@yves2](https://forum.xwiki.org/u/yves2)\
**Post date:** [April 20, 2024, 2:21pm UTC](https://forum.xwiki.org/t/class-not-found-peopleservice-sso-with-google-apps-integration-pro/14453/2 "2024-04-20T14:21:31Z")

</div>

Could it be that :

> [Google APIs Client Library for Java](https://wiki.tucania.com/xwiki/bin/admin/XWiki/XWikiPreferences?section=XWiki.Extensions&search=google&repo=&recommended=on&recommended=false&indexed=on&indexed=false&compatible=on&compatible=false&extensionId=com.google.api-client%3Agoogle-api-client&extensionVersion=1.23.0&extensionNamespace=wiki%3Axwiki)1.23.0 (dans le wiki [Home](https://wiki.tucania.com/xwiki/bin/view/Main/)) Installé

It is “installed”, and not installed as dependency.  
may be the classloader cannot access to it ???
