Hi All,
I am facing problem while using FORM user authentication in JBoss App Server. We have done that successfully in Weblogic but are not able to implement the same in JBoss. Any help would be greatly appreciated. If you any of your friends are familiar with this-
can you please check with them if they have any solution for this.
I'll just explain you what I have done.
in web.xml file.
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/LoginForm.html</form-login-page>
<form-error-page>/LoginError.html</form-error-page>
</form-login-config>
</login-config>
is added then LoginForm.html will simply look like:
Username:
Password:
When I give the username and password and submit it,
the container tries to authenticate the user but it
always displays LoginError.html page.I don't see any
error message on the console.
We are using Jboss-3.0.4 version.
I hope the given information is clear.
I'll tell you the whole scenario, we have an
application running successfully in weblogic, we are
trying to port the application to JBoss-3.0.4. But we
are working in jBoss for the first time thus we are
finding it very difficult in the configuration part.
The authentication part is dealt in our application
and we have used the FORM authentication so that the
user is authenticated in the weblogic server as
well(checking against the DB). This is mainly so that
the user principal can be set in the
HttpServletRequest whcih is used to authenticate the
request in the application.
Now what we need is to mimic this portion alone in
JBoss as well so that the user principal will be set.
We need to know how this can be done and what are the
configuration files we need to update/change. Do we
need to create a realm for this? Do we need to
implement any of the classes?
Also how do we check if this is working. What is form
action that we should give for this.
It would be very helpful if you could give us a
detailed description. We are using the default Jetty
container.
I hope this gives a clear picture.
Thanks in advance
Yours
VS3