JDBCRealm is implementation of realm (a collection of usernames and passwords that identify valid users of a web application, plus an enumeration of the list of roles associated with each valid user) that works with JDBC supported databases.
Questions tagged [jdbcrealm]
207 questions
0
votes
1 answer
Glassfish 4 Authentication (JDBCRealm and JPA 2) works with Dery but not with MySQL
I followed this tutorial http://slackspace.de/articles/jdbc-security-with-glassfish-3-1-and-java-ee-6/ for setting up authentication. Using Glassfish 4, MySQL 5.5, Ubuntu 12.04 LTS.
Everything works fine with Derby but I have no success with MySQL.…
![](../../users/profiles/2828026.webp)
Stefan
- 366
- 5
- 16
0
votes
1 answer
Glassfish 4 JBDCRealm NameNotFoundException
This might be very basic, but I stuck in it for couple of hours now, so please hear me out.
I'm trying to do a JDBCRealm-based of authentication in a Java 7 web app on Glassfish 4.0 in Eclipse. This blog post was the reference for cofiguring…
![](../../users/profiles/493615.webp)
Khosrow
- 486
- 1
- 6
- 16
0
votes
1 answer
JDBCRealm correctly configured but no successful connection
I post this question after having searched thoroughly in Internet with no situation alike found. I'm trying to use a JDBCRealm to authenticate users in a simple test web application deployed with Tomat 7.0.42 and MariaDB 5.5 in a development…
![](../../users/profiles/2925957.webp)
user2925957
- 1
- 1
0
votes
1 answer
JDBC Realm does not load any groups for a user [403 Forbidden]
When using JDBCRealm in Glassfish as a means of authentication, you are unable to log in users as no group/role is loaded for the user. This is often only noticeable by a 403 Not Authorised message on your application.
Enabling FINEST logging for…
![](../../users/profiles/1118474.webp)
Tim
- 484
- 6
- 15
0
votes
1 answer
Tomcat can't find dependency of my realm
I'm developing a java web application with Netbeans and maven.
I implemented my own Realm extending class org.apache.catalina.realm.DataSourceRealm.
So, I have a parse error in context.xml caused by java.lang.ClassNotFoundException:…
![](../../users/profiles/2291953.webp)
Gustavo S. Vendramini
- 45
- 1
- 5
0
votes
1 answer
Glassfish JDBCRealm and request.login()
I'm having some problems logging users in using a realm and request.login(), I have found some similar questions but none that solve my problem.
Login.xhtml
…
![](../../users/profiles/889758.webp)
Sergei
- 575
- 4
- 9
- 19
0
votes
2 answers
How to destroy JSF session created after Http status 403
I am using JDBCRealm to do authentication and authorization in my web app. In regard to authentication, I am using FORM with j_security_check service. I have configured everything including a HTTP Status 403 error page where the user is going to be…
![](../../users/profiles/2196888.webp)
DonKariro
- 61
- 6
0
votes
1 answer
Tomcat JDBCRealm authentication does not work after deploy
I have a web application that works via eclipse (locally) but after I deploy it to the server with a war file the authentication does not work, I keep getting the failure page when I'm trying to login.
I see that the username and password exist in…
![](../../users/profiles/1034637.webp)
Itay Gal
- 10,075
- 6
- 30
- 68
0
votes
2 answers
Tomcat 7 - JDBCRealm login
I'm using the JDBCRealm with tomcat 7. I want to build a simple login page.
This is my login form:
Login Form
and my web.xml content is:
FORM
…
![](../../users/profiles/1034637.webp)
Itay Gal
- 10,075
- 6
- 30
- 68
0
votes
1 answer
Setting JDBCLoginTimeoutSeconds on the ServerMBean for Weblogic
How to set up jdbc-login-timeout-seconds before I start the server. On Weblogic server startup, if a database is unreachable for a data source, Weblogic Server threads hang inside the JDBC driver code waiting for a reply from the database…
![](../../users/profiles/2469470.webp)
Anish George
- 155
- 1
- 4
0
votes
1 answer
how to modify the basic login authentification from tomcat with Realm?
I have a webproject with tomcat, java and jsp. I have done an authentication with Realm (Basic Authentication) in my server.xml from the tomcat like this:
![](../../users/profiles/2417378.webp)
java java
- 357
- 1
- 7
- 22
0
votes
1 answer
JDBC Realm error without message
I'm srtuggling at the moment with authentication of JDBC Realm. My situation is follows:
I have created JDBC Realm with GlassFish 3.1.2.2 and setup was done properly or at least I think so. I know how to config it and in fact it works fine but…
![](../../users/profiles/1764676.webp)
Amir Al
- 1,021
- 2
- 17
- 40
0
votes
1 answer
JDBC Security Popup on Glassfish 3.1.2.2
I am running a JSF application on Glassfish 3.1.2.2 with JDBC Realms authentication.
I was wondering if there was anyway that I can disable the login popup that appears whenever someone tries to access a restricted page and is not logged in and…
![](../../users/profiles/1888954.webp)
Phillip Huff
- 515
- 1
- 6
- 16
0
votes
0 answers
Login with custom Java EE Realm
I've created a Java EE Application with glassfish and netbeans.
I installed the custom flexible jdbc Realm from here.
I followed all the instructions and used the properties which are shown below(both to default and server-config)
datasource.jndi =…
![](../../users/profiles/1192179.webp)
BreJohn
- 13
- 3
- 7
0
votes
2 answers
Using JDBCRealm securing REST webservices?
I have read very nice answers here how to secure REST-services, but all of them are just pure theory and didn't help so much. How you implement JDBCRealm-FORM authentication when using REST?
Login form
![](../../users/profiles/1165009.webp)
Sami
- 2,179
- 11
- 43
- 77