File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Realm, Eclipse and MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Realm, Eclipse and MySQL" Watch "Realm, Eclipse and MySQL" New topic

Realm, Eclipse and MySQL

Lenny Peter
Ranch Hand

Joined: Apr 22, 2008
Posts: 52
Can anyone see what is wrong here ...




Server XML

MySql DB ida

Table1: roles: rolename (student)
Table2: user: username (alen), password(esbjerg)
Table3: userrole: username(alen), rolename(student)


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60800

Can anyone see what is wrong here

Yes, you didn't tell us what the problem is.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lenny Peter
Ranch Hand

Joined: Apr 22, 2008
Posts: 52
I cannot log in...something is wrong...username or password or codes?

What can I add to my codes to get print out errors in Console?

It should be hidden or not?
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"

I agree. Here's the link:
subject: Realm, Eclipse and MySQL
Similar Threads
configuration webapp with authentication
HTTP Status 403 Access to the requested resource has been denied
Unable to access the servlet even on entering username/password set in tomcat-users.xml
Having problem when using web.xml to provide login system to user.
Problem with enforcing security in web-app