This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes BASIC woes? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "BASIC woes?" Watch "BASIC woes?" New topic
Author

BASIC woes?

Jessica Doe
Ranch Hand

Joined: Dec 11, 2003
Posts: 32
Hi!

I can't figure out why my BASIC authorization isn't working for my app. The pages show up as 401 Not Authorized, but no popup authorization window pops up! Further, the manager app is working using my realm. Help appreciated.
[ October 23, 2004: Message edited by: Jessica Doe ]

Jessica Doe<br /> <br />C# Online.NET<br /> <a href="http://wiki.csharp-online.net/" target="_blank" rel="nofollow">http://wiki.csharp-online.net/</a>
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#Configuring%20a%20Realm

Where in server.xml is the realm configured? Is it, for example, in the same Host as your app?

Also, any thoughts on changing your database driver to the much newer 'com.mysql.jdbc.Driver' ? And you put the driver jar file in common/lib ? Can you test the connectivity to the database with an un-protected page (just confirm your username/password works).
[ October 23, 2004: Message edited by: Mike Curwen ]
Jessica Doe
Ranch Hand

Joined: Dec 11, 2003
Posts: 32
Hi Mike,

Sorry, I figured it out. I have a 401 error page defined in web.xml, so it was being routed there instead of to the browser. Thanks for your comments: they helped me work thru it.

Jessy
[ October 23, 2004: Message edited by: Jessica Doe ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: BASIC woes?
 
Similar Threads
Removing authorization data from browser.
Security constraints declaratively in web.xml
NT Authorization through a servlet
Different App Servers, Different Authentication
REST security