Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with authentication using JDBC Realm...

 
toukhir mujawar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isaac,
Welcome to JavaRanch!

I'm going to move this to our Tomcat forum for you so you can get more help.
 
toukhir mujawar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic