eclipse-ee4j / eclipse-ee4j/exousia

Exousia 3 on Tomcat 11

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
14
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi

I'm upgrading from Tomcat 10.1 to Tomcat 11 but o got an NPE during startup:

```
Caused by: java.lang.NullPointerException: Cannot invoke "jakarta.security.auth.message.config.AuthConfigFactory.registerServerAuthModule(jakarta.security.auth.message.module.ServerAuthModule, Object)" because the return value of "jakarta.security.auth.message.config.AuthConfigFactory.getFactory()" is null
at org.glassfish.soteria.servlet.SamRegistrationInstaller.onStartup(SamRegistrationInstaller.java:100)
```

I've found that I have to add the following conf to catalina opts, is it correct?

```
-Djakarta.security.jacc.PolicyConfigurationFactory.provider=org.glassfish.exousia.modules.def.DefaultPolicyConfigurationFactory -Djakarta.security.jacc.policy.provider=org.glassfish.exousia.modules.def.DefaultPolicy
```

this is the relevant part of my `pom.xml`:

```

jakarta.security.enterprise
jakarta.security.enterprise-api
4.0.0

jakarta.authorization
jakarta.authorization-api
3.0.0
provided

org.glassfish.soteria
soteria
4.0.2

com.nimbusds
nimbus-jose-jwt
10.4.2

jakarta.authentication
jakarta.authentication-api
3.1.0
provided

org.glassfish.exousia
exousia
3.0.1

org.glassfish.exousia
exousia.spi.tomcat
3.0.1

```

I've downloaded and placed the following API jars inside `tomcat/lib`:
- jakarta.authorization-api
- jakarta.authentication-api

as a side note:
the Soteria project definition is missing the nimbus-jose-jwt dependecy...
I had to understand which was and include it in my pom
It is an expected behaviour or it's better to open an issure to Soteria?

thanks!!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.