File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes login config resource  not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "login config resource  not available" Watch "login config resource  not available" New topic

login config resource not available

Peter Warde
Ranch Hand

Joined: Aug 18, 2004
Posts: 71
I'm using tomcat and looking at creating Form Based Authentication as described in the the chanpetr on security in HeadFirst.

I've also looked at the tomcat example as described in the Documentation 6) Realms and AAA. This works fine, but my own version which identically follows theirs doesn't and produces the following error when attempting to login.

type Status report

message /test/j_security_check

description The requested resource (/test/j_security_check) is not available.

I must be missing something.

Can anybody help - it would be nice to get it working,

Thanks - Peter
Nitish Bahadur
Ranch Hand

Joined: Aug 25, 2003
Posts: 118
What is the <login-config> element from your web.xml. Additionally, post your html <form>, which is using FORM based authentication.
Peter Warde
Ranch Hand

Joined: Aug 18, 2004
Posts: 71
Here's the <login-config> in my web.xml

<realm-name>Example Form-Based Authentication Area</realm-name>

Here's the loginPage.html

<b>Please login</b>
<form method="POST" action="j_security_check">
<input type="text" name="j_username">
<input type="password" name="j_password">
<input type="submit" value="Enter"

I've checked it several times, but I still get the message j_security_check not available.


sanath pasumarthy

Joined: Jul 18, 2004
Posts: 4
Do we need <realm-name>Example Form-Based Authentication Area</realm-name> for form based authentication? Isn't it only for BASIC?
I agree. Here's the link:
subject: login config resource not available
It's not a secret anymore!