Ferdinandus, Humphrey wrote:
> I got down to the problem. I am also using Lucene in my webapp. As soon as I
> add the following to the web-app tag in the web.xml the problem occurs:
>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> version="2.4">
>
> instead of <web-app>
>
> If I leave this out. Lucene is not working properly and cloud context
> security is. I get an context "n" error message:
> javax.servlet.ServletException: Context 'n' could not be found.
>
> If I add the statement Lucene is working properly and cloud context security
> is not.
>
> Any suggestions? (Michiel?)
Yes, update to the latest context security jsp's, of 1.7.4.
I suppose that the 2.4 web.xml triggers EL, and that because of that
some vars become empty, causing the infinite recursion.
IIRC most jsps, so also those of cloud context security in 1.7.4 are
fixed to work both when EL is enabled and when it is not.
You can check if this could be the problem by grepping on "${" in the
jsp's. It should not occur. In 1.7.4 the alternative "$[" was provided
to be able to work around this.
If you don't run 1.7.4, you can fix it by adding 'isELIgnored' to the
jsp's where ${ is used.
It's a sad thing that web-app 2.4 is imcompatible with previous
versions, and that we must provide work arounds, but well, that's life.
The real solution will be in 1.8, where the taglib variables will be
fully compatibible with the EL ones. The original jsp's should work then
too, again.
I'm sorry that I didn't realize this earlier, but you said that
everything was equal! Turns out that it wasn't, isn't it ;-)
Michiel
--
Michiel Meeuwissen mihxil'
Peperbus 111 MediaPark H'sum [] ()
+31 (0)35 6772979 nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers