File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes weblogic 9- authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic 9- authentication" Watch "weblogic 9- authentication" New topic
Author

weblogic 9- authentication

mahitha
Greenhorn

Joined: Feb 07, 2006
Posts: 1
I am trying to set up basic Authentication on WebLogic9.
I have created a user and his role from the console. the same was ampped in web.xml
From my jsp, when i click a link, i get a pop-up to enter username and password.
The Problem:
even If the user provides correct userid/password, he gets a 403 Forbidden page, instead of being forwarded to a new page.

descriptors:

<!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>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>

<load-on-startup>1</load-on-startup>

<!--<security-role-ref>
<role-name>admin</role-name>
<role-link>HomePageAdmin</role-link>
</security-role-ref>-->

</servlet>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>

<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<security-constraint>
<web-resource-collection>
<web-resource-name>adminJsp</web-resource-name>
<url-pattern>/a_admin_user_homepage.jsp</url-pattern>

</web-resource-collection>
<auth-constraint>
<role-name>HomePageAdmin</role-name>
<role-name>Admin</role-name>
</auth-constraint>
</security-constraint>

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/fail.jsp</form-error-page>
</form-login-config>
</login-config>

<security-role>
<role-name>HomePageAdmin</role-name>
</security-role>
<security-role>
<role-name>Admin</role-name>
</security-role>
</web-app>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

"mahitha",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weblogic 9- authentication
 
Similar Threads
tomcat formAutheticator problem
Problem with jboss login
What Is Wrong With My web.xml File (Struts)
authentication in jboss
Struts 1.1 - Tomcat 4.1.30 deployment problem