• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Authentication problems with MySQL and Tomcat 6.0

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I'm trying to get FORMS authentication with Tomcat 6.0 and MySQL DB, but I can access to a directory that should be protected... There's my configuration files:

tomcat-users.xml


server.xml


And web.xml


The 'user' and 'role' tables are created, and the ODBC driver is set correctly. In the /security directory I have some html pages that I would protect, but I don't know what I'm doing wrong.
Any help will be highly appreciate.
 
Dani Thorp
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've noticed that in the /secure directory the html pages are shown without CSS, so I suppose that FORMS security is working, but somehow I'm not redirected to the login page.
Does anyone knows if it's possible to block html pages with that security? I mean, I only would like to know if it's possible to do it, because googling around I've mainly found information with jsp pages.
Many thanks,

Dani
 
Dani Thorp
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pffff... at last I got it. Just in case someone needs my solution: in the 'server.xml' file I had the the 'context' defined inside the 'engine' tag, when would be inside the 'host'.

Jaja, I know nobody has responded me, but writing here also helps me to put my thoughts in order ^^'
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like this?

 
reply
    Bookmark Topic Watch Topic
  • New Topic