It's not a secret anymore!
The moose likes Websphere and the fly likes error with j_security_check Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "error with j_security_check " Watch "error with j_security_check " New topic

error with j_security_check

Binh Nguyen

Joined: Feb 28, 2002
Posts: 16
From: (xenoux)
Subject: j_security_check
Message-ID: <>
I have a strange problem, can someone tell me what is wrong?
I use form based authentication with Websphere using custom registry,
setup in web.xml is as below.
when I tried to access a protected resource URL,, since everything
under dir "/main" is defined to be protected in the web.xml, I was
brought to the login page as expected, after submit the form with the
j_username and j_password, I got a 404 file not found, as below,
but in fact the user had been authenticated because if I resubmit the
same URL link, I was able to access that URL link.
Can someon tell me what is wrong with it or my setup?
404 Error Message:

The page cannot be found
The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable.
Please try the following:
If you typed the page address in the Address bar, make sure that it is
spelled correctly.
Open the home page, and then look for links to the
information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.
HTTP 404 - File not found
Internet Explorer
< !--<br /> web.xml file:<br /> <security-constraint id="SecurityConstraint_1"><br /> <web-resource-collection id="WebResourceCollection_1"><br /> <web-resource-name>fn access</web-resource-name><br /> <url-pattern>/main/*</url-pattern><br /> <br /> <http-method>POST</http-method><br /> <http-method>GET</http-method><br /> </web-resource-collection><br /> <auth-constraint id="AuthConstraint_1"><br /> <description>fn access:+:</description><br /> <role-name>fnUser</role-name><br /> </auth-constraint><br /> <user-data-constraint id="UserDataConstraint_1"><br /> <transport-guarantee>NONE</transport-guarantee><br /> </user-data-constraint><br /> </security-constraint><br /> <login-config id="LoginConfig_1"><br /> <auth-method>FORM</auth-method><br /> <realm-name>dbRealm</realm-name><br /> <form-login-config id="FormLoginConfig_1"><br /> <form-login-page>/logon.html</form-login-page><br /> <form-error-page>/error.jsp</form-error-page><br /> </form-login-config><br /> </login-config><br /> <security-role id="SecurityRole_1"><br /> <role-name>fnUser</role-name><br /> </security-role><br /> -->
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319

How did you solve this issue? I have this problem now. What is even more weirder is that I have this problem only with IE and not with Firefox/Opera

Joy is a radiation
I agree. Here's the link:
subject: error with j_security_check
It's not a secret anymore!