GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — jwt does not run on wildfly · Issue #31 · javaee-samples/javaee8-samples

jwt does not run on wildfly #31

New issue
Copy link
New issue
Copy link
Open
Open
jwt does not run on wildfly#31
Copy link
Assignees
arjantijms

Description

@sekaijin
sekaijin
opened on Oct 24, 2018
Issue body actions

hi!
I'm trying to run jwt on wildfly 14
adding web.xml and beans.xml in the generated war the application starts but
authentication does not work.

no class is initialized when the application starts
when calling /api/login with the parameters
securityContext.getCallerPrincipal () is still null, so we get a 401 and that does not go any further.

it seems that there is no explanation of how it works to make it possible to understand what is meant to be done.

A+JYT

Activity

  1. arjantijms commented on Oct 24, 2018

    @arjantijms
    arjantijms
    on Oct 24, 2018
    Contributor
    More actions

    Thanks for the report. It should of course work on WildFly 14. Whenever I've got some time I'll take a look.

  2. arjantijms
    self-assigned this
    on Oct 24, 2018
  3. lambrosx77 commented on Mar 4, 2019

    @lambrosx77
    lambrosx77
    on Mar 4, 2019
    More actions

    Hi,

    To begin, thank you for the samples and all the work.

    I've got many errors deploying on Payara, to make it run :

    • I added @RequestScoped on Controllers classes otherwise SecurityContext injection seems to fail
    • I added @RequestScoped on TokenProvider class otherwise injection fail
      JWTAuthenticationMechanism
    • Uncomment @RollesAllowed in SampleController to avoid null on securityContext.getCallerPrincipal().getName()
    • I execute "mvn clean package -DskipTests" before running

    I don't know if my modifications are the good way but if it can help waiting official solution...

  4. Pandrex247
    added a commit that references this issue on Oct 22, 2026

    Merge pull request javaee-samples#31 from simonladen/FISH-8086-fix-ht…

    831b810
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @arjantijms
    arjantijms

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.