This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | 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 » Products » Tomcat
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://aspose.com/file-tools
 
subject: BASIC woes?
 
Similar Threads
Removing authorization data from browser.
NT Authorization through a servlet
Security constraints declaratively in web.xml
Different App Servers, Different Authentication
REST security