My configuration:
JBoss 4.0.3SP1
JBossPortal2.2
I've created my own portal instance and I included in it the web.xml
configuration file. I set the login-config and security-constraint
configurations as I need but, when I log-in in my portal, these configurations
are ignored and JBossPortal uses his default configurations (I see this because
I created a new login jsp that is ignored).
Here is my web.xml file:
?xml version=1.0?
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
!-- The portal servlet is the main entrance point --
servlet-namePortalServletWithPathMapping/servlet-name
servlet-classorg.jboss.portal.server.servlet.PortalServlet/servlet-class
init-param
param-nameasDefaultServlet/param-name
param-valuefalse/param-value
The servlet needs to know wether it is set as a default servlet or not
/init-param
load-on-startup0/load-on-startup
security-role-ref
role-nameAuthenticated/role-name
role-linkAuthenticated/role-link
/security-role-ref
!-- The portal servlet is the main entrance point --
servlet-namePortalServletWithDefaultServletMapping/servlet-name
servlet-classorg.jboss.portal.server.servlet.PortalServlet/servlet-class
init-param
param-nameasDefaultServlet/param-name
param-valuetrue/param-value
The servlet needs to know wether it is set as a default servlet or not
/init-param
load-on-startup0/load-on-startup
security-role-ref
role-nameAuthenticated/role-name
role-linkAuthenticated/role-link
/security-role-ref
servlet-mapping
servlet-namejsp/servlet-name
url-pattern/GFMyPortal2.2/gflogin.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-namejsp/servlet-name
url-pattern/GFMyPortal2.2/gferror.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-name/auth/portal/GFPortal/*/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping
session-config
session-timeout15/session-timeout
/session-config
security-constraint
web-resource-collection
web-resource-nameGFAuthenticated resources/web-resource-name
url-pattern/auth/portal/GFPortal/*/url-pattern
/web-resource-collection
auth-constraint
role-nameAuthenticated/role-name
/auth-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
realm-nameJBoss Portal/realm-name
form-login-config
form-login-page/GFMyPortal2.2/gflogin.jsp/form-login-page
form-error-page/GFMyPortal2.2/gferror.jsp/form-error-page
/form-login-config
/login-config
security-role
role-nameAuthenticated/role-name
/security-role
/web-app
anyone can help me?
Thanks, Paolo.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918087#3918087
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918087
---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user