MicroShed / MicroShed/microshed-testing

Sample application for Payara Microshed JWT (microshed-testing-jaxrs-mpjwt) is not working

Open
#274 0 comments 0 reactions 0 assignees View on GitHub
is:bug
Dominant language
Java
Stars
68
Forks
25
Avg merge
1d 21h
Merged PRs (30d)
6

Description

**Describe the bug**
Sample application for Payara Microshed JWT (microshed-testing-jaxrs-mpjwt) is not working

**To Reproduce**
Edit Dockerfile to configure Payara

FROM payara/micro:5.193
CMD ["--deploymentDir", "/opt/payara/deployments", "--noCluster"]
ADD build/libs/myservice.war /opt/payara/deployments

comment out OpenLiberty in Dockerfile

# OpenLiberty
#FROM openliberty/open-liberty:full-java8-openj9-ubi
#COPY src/main/liberty/config /config/
#ADD build/libs/myservice.war /config/dropins/

**Expected behavior**
grade build works; tests are executed successfully

**System information:**
- OS: Mac
- Java Version: Java 11.0.4
- MicroShed Testing Version: [e.g. 0.4.2]

ext.currentVersion = '0.9.2-SNAPSHOT'
ext.lastRelease = '0.9.1'

**Additional context**
First Exception shown is

Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type JsonWebToken with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject org.example.app.SecuredService.callerPrincipal
at org.example.app.SecuredService.callerPrincipal(SecuredService.java:0)
WELD-001408: Unsatisfied dependencies for type JsonWebToken with qualifiers @Default

Contributor guide

Open the contributing guide

Research direction

Start with the Dockerfile for the microshed-testing-jaxrs-mpjwt sample and compare the Payara and OpenLiberty configurations shown in the issue. Inspect the injection point in SecuredService.java and reproduce the Gradle build with Payara. Done means the grade build succeeds and the tests execute successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
backend, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.