This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes Security in Websphere 5.1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Security in Websphere 5.1.2" Watch "Security in Websphere 5.1.2" New topic
Author

Security in Websphere 5.1.2

Prasad Yarehalli
Greenhorn

Joined: Dec 08, 2005
Posts: 12
I am not able to get Security working in Websphere 5.1.2. Please help.

When I try to add <login-config></login-config> to DD. I get the following error

The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,
welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".

My DD Doc type is as below.

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

[EDIT - broke long line]
[ December 11, 2005: Message edited by: David O'Meara ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Security in Websphere is a bit Websphere-specific so I am moving this to the IBM/Websphere forum.

Dave
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That error message tells you two things:

1. You can only have at most one login-config element.

2. It has to be in the correct order with respect to the other elements.
The message tells you exactly what that order is.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security in Websphere 5.1.2
 
Similar Threads
SRV.13.4.2 security-role
Deployment Descriptor Order
is sibling elements in web.xml ordered?
Order significant in deployment descriptor
the order of XML tags in web.xml