Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BASIC woes?

 
Jessica Doe
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic