...surprised !!!.......no reply yet for such a simple question...?
can anyone send me a .war file with just one helloworld.html which will have basic authentication feature..... which i can run on jboss3.2.2+Tomcat
i can get the basic authentication dialog box but it doesnot authenticate me....what could be the reason ?
is it a bug ...?
Try to put jboss-web.xml file in WEB-INF directory of your war file.
This solved the problem for me.
........thanks for your reply....., but........my jboss-web.xml file is already in the web-inf folder of the .war file....
I have the same problem for the same configuration. I cannot authenticate (& authorize) myself even if I use Digest or Form based authentication mechanism for my realm.
Instead, if I perform a simple authentication (same realm):
UsernamePasswordHandler handler = new UsernamePasswordHandler("username", "password".toCharArray());
LoginContext lc = new LoginContext("myrealm", handler);
... I'll successfully authenticate. Other problem is I can't authorize myself to my realm in this way.
The same problems, even worse for JBoss 3.2.1.
I hope someone loves us !
Did you look at the log to see if the users.properties and roles.properties files were found? I had the same problem, but when I moved the users.properties and roles.properties files to the main directory of my war file, it worked.
You have the jmx-console app bundled with JBoss3.2. Then you can secure it as mention in doco (or even if you look inside the web app files).
It's a good simple example. And it works.
I did all of those mentioned in the jmx-console web.xml and jboss-web.xml but it doesnt work still and
i am using DatabaseServerLoginModule and not file based login.
Was the problem solved. yet