users@glassfish.java.net

Re: Ldap Realm in cluster profile

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Oct 2007 06:47:12 PDT

Hi,

I have found the problem.

It seems that, if the web.xml defines the application as being a 2.5 Standard:

<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

and the sun-web.xml as being 2.4 or 2.4.1 (AS 8.0 or 8.1):
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">

The mapping are ignored and the user doesn't have the right to open the requested URL.

Even if it was my mistake (mea cupla, sorry guys), I think a small warning or error at deployment time would make the whole thing a lot less painful to find and debug...

greets
jeremie
[Message sent by forum member 'granat' (granat)]

http://forums.java.net/jive/thread.jspa?messageID=241878