• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Authentication problems with MySQL and Tomcat 6.0

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
Like this?

 
Nothing up my sleeve ... and ... presto! A tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic