-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webapp with Form-Based Authentication shows empty page instead of login page #84
Comments
Anything interesting logged? |
These are the only parts logged that caught my eye.
|
If anyone has a minimal project to reproduce this, please share. |
This is also happening in Gretty v3.04. In my case, I'm using Tomcat 9 and need to set up a DataSourceRealm so that the users are read from a DB. I came up with a working configuration that runs as expected when I deploy the WAR file in an external Tomcat instance but running the app with Gretty gives me the Tomcat's 503 error page instead of the configured login page when I try to access a secured page. I looked at the docs and found that there's a section about Tomcat security realms. Here is described how to set up a MemoryRealm, which is backed by a What I did next was to uncomment my DataSourceRealm in my local context file and removed the Last thing I tried was to remove Hope this helps @alamakih @javabrett |
@arcesino - thanks for the detailed report. I see that In any case, a PR for updating the documentation and/or fixing the issue will be appreciated. :) |
I have a webapp with Form-Based Authentication configured in web.xml and gretty configured to use tomcat9 with a
serverConfigFile
whereRealm
is configured.The the app works fine when run from war on normal tomcat install, but when started with gretty's tomcat, trying to load a secured page shows only a blank page (or browser's own 403 page on chrome). Non-secured pages work as intended.
Gretty version is 2.2.0
The text was updated successfully, but these errors were encountered: