• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

XDB realm  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have oracle 9i installed

if i stop oracle..its giving tns listener error

plz help
 
dhana rangu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnaks a lot for ur help..I will let u know if any problem is there/?
thanks
dhana
 
dhana rangu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deleted my posts because your problem was not what I expected to be.
So my answers were wrong.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!