This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Problem with authentication using JDBC Realm... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with authentication using JDBC Realm..." Watch "Problem with authentication using JDBC Realm..." New topic
Author

Problem with authentication using JDBC Realm...

toukhir mujawar
Ranch Hand

Joined: Oct 11, 2006
Posts: 70
hi,

i have developed a web application...

the authenication is done through the tomcat Server using the JDBC based Realm...

IT is working very well on local server....


the problem is that, it is not working on the web server...

i have created the users table and user roles table and also added the user into it..

i think the problem might be because of the Oracle configuration...

there is something that is preventing me from logging into my application....

it cant find the user name and password...

there is no error message in the Log of tomcat server...

please help me what should i do?



Regards
Toukhir Mujawar
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

Toukhir,

If it doesn't work, but there is no error in the log, it looks like the tomcat configuration on your web server is using the default realm.
Problems connecting to the oracle realm database would show up in tomcat's logs.

Can you verify in the startup log of tomcat if the correct realm is started?

Did you define the jdbc realm on the correct level (if it's defined in one application's context level, it is not available for other applications)?

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

Isaac,
Welcome to JavaRanch!

I'm going to move this to our Tomcat forum for you so you can get more help.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
toukhir mujawar
Ranch Hand

Joined: Oct 11, 2006
Posts: 70
hi...

i have got one problem...

the error message is it cant find the sid name...


the cause is ...

the database name and SID are different....

what should i do?
 
Don't get me started about those stupid light bulbs.
 
subject: Problem with authentication using JDBC Realm...