my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes XDB realm 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "XDB realm" Watch "XDB realm" New topic
Author

XDB realm

dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
hi

I have written a simple servlet which retrieves a string from oracle data base and displays on the browser.

I am using tomcat.

But when i run the servet i am getting a page with a window like this



401 unaurhorized

enter network passwd

please type ur username and passwd

Site :localhost
realm :xdb
USername:
passwd:



I am unable to resolve this..

I request u to help me in getting thru this

THANKS A LOT
dhana
dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
i have oracle 9i installed

if i stop oracle..its giving tns listener error

plz help
dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
thnaks a lot for ur help..I will let u know if any problem is there/?
thanks
dhana
dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
Hi alan

I just tried a simple solution and it worked out...

What i did is I unlocked the anonymous user acccount in oracle like



surprisingly it worked......

BTW i looke for isql service u r talking abt ..but i could not find in my services list..can u plz tell me where it will be???

thanks
dhana
Alan Ford
Ranch Hand

Joined: Oct 26, 2003
Posts: 107
I deleted my posts because your problem was not what I expected to be.
So my answers were wrong.


TNT<br />MCP, SCJP 1.4,
Steve Calkins
Greenhorn

Joined: Mar 28, 2011
Posts: 3
This effect happens when Tomcat and Oracle are set to accept queries from the same port. Unfortunately, both Tomcat and Oracle listen by default to port 8080. Change the Tomcat port number in server.xml (in the $Catalina_Home/conf folder) to another value and the effect disappears.
 
 
subject: XDB realm
 
Similar Threads
tomct realm xdb login
jboss jmx console problem
Console class
Problem in accessing Tomcat
tomcat not starting if installed in the machine having oracle9i db