This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Failing to retrieve DB data, JACC Policy Provider  RSS feed

Ranch Hand
Posts: 96
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good evening people, I'm in need of your help

First of all, I configured my application using this video. In a nutshell, I configured the JDBC Realm and Connection Pool, created two sections (for admins and users) and I'm trying to mess with basic CRUD operations.

Now, I have a Register page (I guess it's outside of admin or user content) and I can persist new Users to the DB.

If I'm logged in as an Admin, I want to see all of the Users info in a page. This page is in the Admin section and I guess it's restricted from other user groups.

When I try to retrieve entities from the DB and show them on the page, I'm presented with this exception (line 89) which I believe doesn't grant me access to the query that my EJB executes.

Why does that happen? Maybe the admin section doesn't have access to the DB?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!