The Tomcat Form Authenticator uses the Login Page location configured during its configuration in the web.xml. Thats why it looks like Tomcat is complaining.
If you want to integrate/swap different LoginModule implementations, you should be able to do it in the jboss-portal.sar/conf/login-config.xml
I'm very new to JbossPortal. I've deployed jboss-portal.sar and installed MySQL database named "jbossportal". Now i can run the homepage of the Portal but i couldn't login. It reported "Invalid user login". I checked there's no user in table "jbp_users".
Could u tell me where to check the user existed? The default user "admin" was not accepted.
Sorry for my late response.
But I don't want to inject a different LoginModule.
I want to use the default LoginModule.
My deployment may not be portal specific.
So I want to call the /portal/j_security_check from within my own portlet.
I want to call the /portal/j_security_check from within my own portlet.
You can't. "j_security_check" is not a real URL, but a magic bullet which only the underlying web app server (e.g. Tomcat) is allowed to fire or catch, part of the J2EE form-login spec. As far as I know the only way to initiate a forms-based login is to force a redirect to a protected URL, triggering the app server's login protocol implicitly. I'd settle for a proprietary hook into tomcat just to do it manually, but I've not found such a call.
Originally I was using MySQL5 mis confugred ie was not in strict mode however my data soruce was not correct and thus got could not create tables first time..
So I than corrrect the datasource and restarted with could not log in as user or admin..
SO I than stopped server and deleted default/tmp, default,data, default/log, and default work with the same results of not being able to log in with user/user or admin/admin..
I did a Mysqladmin check and yes the user table is at zero..
My solution is to create a new db and pint my JBossPortal bundled install to that db and thus problem solved..
Thus I guess the answer to org thread should be if originally deployed wrong using MYSQL5 ie the my.ini or the datasource was incorrect than you need to create a new db or re-create org db and than restart server to fix admin/admin user/user login problems.
I have the same problem as jkoek and I have one question!?
Is it possible to make own login portlet on the same way as originally login.jsp?
I try this http://wiki.jboss.org/wiki/Wiki.jsp?page=PortletLogin , but POST
method doesn't work. No username and password are POSTED to originally login.jsp .Why?
Can somebody help me please, how to do own login portlet.
Can somebody help me please?
hello damchy I have the same problem as you in jboss portal 2.6. It seems that session is erased before arriving at login.jsp.
You could solve the problem?