You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Fabrice Daugan (JIRA)" <ji...@codehaus.org> on 2008/08/10 20:08:27 UTC

[jira] Created: (MRM-905) EL Expression failed with empty/not functions

EL Expression failed with empty/not functions
---------------------------------------------

                 Key: MRM-905
                 URL: http://jira.codehaus.org/browse/MRM-905
             Project: Archiva
          Issue Type: Bug
          Components: web application
    Affects Versions: 1.1
         Environment: Windows XP SP3 FR
java (JDK) "1.6.0_07"
apache tomcat "6.0.18"
activation-1.1.jar
mail-1.4.jar
derby-10.1.3.1.jar
            Reporter: Fabrice Daugan
            Priority: Blocker
         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log

After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.

Some examples :

org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found

I've added logs as attachments.

The workaround is very simple : 
replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.

This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.

I'll check the professionnal/personnal system differences.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145000#action_145000 ] 

Maria Odea Ching commented on MRM-905:
--------------------------------------

I couldn't replicate this on trunk, with the following environment:
- ubuntu linux
- java version "1.5.0_11"
- tomcat 6.0.14
- activation-1.1.jar, derby-10.1.3.1.jar and mail-1.4.jar

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145110#action_145110 ] 

Maria Odea Ching commented on MRM-905:
--------------------------------------

Ok, thanks a lot for both of your help on this! Would either of you would like to submit a patch for the fix? :) 

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145000#action_145000 ] 

oching edited comment on MRM-905 at 8/14/08 1:08 AM:
---------------------------------------------------------------

I couldn't replicate this on trunk (-r685734), with the following environment:
- ubuntu linux
- java version "1.5.0_11"
- tomcat 6.0.14
- activation-1.1.jar, derby-10.1.3.1.jar and mail-1.4.jar

      was (Author: oching):
    I couldn't replicate this on trunk, with the following environment:
- ubuntu linux
- java version "1.5.0_11"
- tomcat 6.0.14
- activation-1.1.jar, derby-10.1.3.1.jar and mail-1.4.jar
  
> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-905) EL Expression failed with empty/not functions

Posted by "Fabrice Daugan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabrice Daugan updated MRM-905:
-------------------------------

    Attachment: MRM-905.patch

The patch did from the revision 686186.
The root path of this patch is http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp


> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log, MRM-905.patch
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-905) EL Expression failed with empty/not functions

Posted by "Fabrice Daugan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145067#action_145067 ] 

Fabrice Daugan commented on MRM-905:
------------------------------------

Also, i think there are som common code with Contunuum, since the same error (but non blocker) occurs in the header.

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRM-905) EL Expression failed with empty/not functions

Posted by "Hans Wurst (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145050#action_145050 ] 

rocko edited comment on MRM-905 at 8/14/08 10:56 AM:
----------------------------------------------------------

Same here.
My configuration:
Ubuntu Server 8.04
java 1.6.0_06
tomcat 6.0.18
Archiva 1.1.1 deployed as a  .war

Stacktrace starts with: 
org.apache.jasper.JasperException: /WEB-INF/jsp/admin/repositories.jsp(53,0) "${empty(managedRepositories)}" contains invalid expression(s): javax.el.ELException: Function ':empty' not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

The suggested fix works for me. Fabrice, you made my day!
I ran 
sudo sed -i.BAK -e "s/empty(/empty (/g" \*.jsp\*
sudo sed -i.BAK -e "s/not(/not (/g" \*.jsp\*
over the jsp folder and it works like a charm.

So the question is, is "empty(" invalid or not. There have been quite some changes in jasper between
6.0.14 and 6.0.18 (http://tomcat.apache.org/tomcat-6.0-doc/changelog.html), but i'm really not into the jsp stuff, so I couldn't tell...

      was (Author: rocko):
    Same here.
My configuration:
Ubuntu Server 8.04
java 1.6.0_06
tomcat 6.0.18
Archiva 1.1.1 deployed as a  .war

Stacktrace starts with: 
org.apache.jasper.JasperException: /WEB-INF/jsp/admin/repositories.jsp(53,0) "${empty(managedRepositories)}" contains invalid expression(s): javax.el.ELException: Function ':empty' not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

The suggested fix works for me. Fabrice, you made my day!
I ran 
sudo sed -i.BAK -e "s/empty(/empty (/g" *.jsp*
sudo sed -i.BAK -e "s/not(/not (/g" *.jsp*
over the jsp folder and it works like a charm.

So the question is, is "empty(" invalid or not. There have been quite some changes in jasper between
6.0.14 and 6.0.18 (http://tomcat.apache.org/tomcat-6.0-doc/changelog.html), but i'm really not into the jsp stuff, so I couldn't tell...
  
> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-905) EL Expression failed with empty/not functions

Posted by "Hans Wurst (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145050#action_145050 ] 

Hans Wurst commented on MRM-905:
--------------------------------

Same here.
My configuration:
Ubuntu Server 8.04
java 1.6.0_06
tomcat 6.0.18
Archiva 1.1.1 deployed as a  .war

Stacktrace starts with: 
org.apache.jasper.JasperException: /WEB-INF/jsp/admin/repositories.jsp(53,0) "${empty(managedRepositories)}" contains invalid expression(s): javax.el.ELException: Function ':empty' not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

The suggested fix works for me.

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching reassigned MRM-905:
------------------------------------

    Assignee: Maria Odea Ching

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRM-905) EL Expression failed with empty/not functions

Posted by "Fabrice Daugan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145067#action_145067 ] 

fabdouglas edited comment on MRM-905 at 8/14/08 3:54 PM:
-------------------------------------------------------------

Also, i think there are some common code with Continuum, since the same error (but non blocker) occurs in the header.

As said in the EL specification  (simplified version)
{code:title=http://java.sun.com/products/jsp/syntax/2.0/syntaxref207.html|borderStyle=solid}
${ Expression }
Expression = {(UnaryOp Expression) | Value }
UnaryOp = {'-' | ! | not | empty }
Value = {ValuePrefix | (Value ValueSuffix) }
ValuePrefix = {Literal | '('Expression')' | ImplicitObject | Java language identifier}
ValueSuffix = { . Identifier | '['Expression']'}
Literal = {StringLiteral | null}
StringLiteral = {'[^(' | \) | \' | \\]+' | "[^(" | \) | \" | \\]+"}
{code}

If we read well the Tomcat error is right : since the grammar does not validate :
{{*empty("hello")*}}
but validate :
{{*empty ("hello")*}}

      was (Author: fabdouglas):
    Also, i think there are som common code with Contunuum, since the same error (but non blocker) occurs in the header.
  
> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145011#action_145011 ] 

Maria Odea Ching commented on MRM-905:
--------------------------------------

I was now able to replicate this issue when I deployed Archiva to Tomcat 6.0.18. I don't see the error in 5.5.17 and 6.0.14 though.. there must be a conflict with the EL lib included in 6.0.18. I'll try your suggestion above to fix this, thanks! :)

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145110#action_145110 ] 

oching edited comment on MRM-905 at 8/14/08 8:21 PM:
---------------------------------------------------------------

Ok, thanks a lot for both of your help on this! Would either of you like or is interested to submit a patch for the fix? :) 

      was (Author: oching):
    Ok, thanks a lot for both of your help on this! Would either of you would like to submit a patch for the fix? :) 
  
> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRM-905) EL Expression failed with empty/not functions

Posted by "Hans Wurst (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145050#action_145050 ] 

rocko edited comment on MRM-905 at 8/14/08 10:51 AM:
----------------------------------------------------------

Same here.
My configuration:
Ubuntu Server 8.04
java 1.6.0_06
tomcat 6.0.18
Archiva 1.1.1 deployed as a  .war

Stacktrace starts with: 
org.apache.jasper.JasperException: /WEB-INF/jsp/admin/repositories.jsp(53,0) "${empty(managedRepositories)}" contains invalid expression(s): javax.el.ELException: Function ':empty' not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

The suggested fix works for me. Fabrice, you made my day!
I ran 
sudo sed -i.BAK -e "s/empty(/empty (/g" *.jsp*
sudo sed -i.BAK -e "s/not(/not (/g" *.jsp*
over the jsp folder and it works like a charm.

So the question is, is "empty(" invalid or not. There have been quite some changes in jasper between
6.0.14 and 6.0.18 (http://tomcat.apache.org/tomcat-6.0-doc/changelog.html), but i'm really not into the jsp stuff, so I couldn't tell...

      was (Author: rocko):
    Same here.
My configuration:
Ubuntu Server 8.04
java 1.6.0_06
tomcat 6.0.18
Archiva 1.1.1 deployed as a  .war

Stacktrace starts with: 
org.apache.jasper.JasperException: /WEB-INF/jsp/admin/repositories.jsp(53,0) "${empty(managedRepositories)}" contains invalid expression(s): javax.el.ELException: Function ':empty' not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

The suggested fix works for me.
  
> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching closed MRM-905.
--------------------------------

    Resolution: Fixed

Thanks for the patch Fabrice! I already applied it in trunk -r686665 and tested it with Tomcat versions 5.5.17, 6.0.14 and 6.0.18. It works nicely :)

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log, MRM-905.patch
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-905) EL Expression failed with empty/not functions

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Odea Ching updated MRM-905:
---------------------------------

    Fix Version/s: 1.1.2

> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-905) EL Expression failed with empty/not functions

Posted by "Fabrice Daugan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145024#action_145024 ] 

Fabrice Daugan commented on MRM-905:
------------------------------------

Yes! 
that's what i just found during the professionnal/personnal system differences.
Same JDK, but 6.0.14 Tomcat version.


> EL Expression failed with empty/not functions
> ---------------------------------------------
>
>                 Key: MRM-905
>                 URL: http://jira.codehaus.org/browse/MRM-905
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.1
>         Environment: Windows XP SP3 FR
> java (JDK) "1.6.0_07"
> apache tomcat "6.0.18"
> activation-1.1.jar
> mail-1.4.jar
> derby-10.1.3.1.jar
>            Reporter: Fabrice Daugan
>            Assignee: Maria Odea Ching
>            Priority: Blocker
>             Fix For: 1.1.2
>
>         Attachments: catalina.2008-08-10.log, localhost.2008-08-10.log
>
>
> After installing as Wiki said, as a tomcat WAR, i get parsing error in some JSP/TAG code.
> Some examples :
> org.apache.jasper.JasperException: /WEB-INF/jsp/components/companyLogo.jsp(22,0) "${!empty(organisationLogo)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> org.apache.jasper.JasperException: /WEB-INF/tags/currentWWUrl.tag(29,0) "${!empty(action) && !empty(namespace)}" contient d'incorrecte(s) expression(s): javax.el.ELException: Function ':empty' not found
> I've added logs as attachments.
> The workaround is very simple : 
> replace EL exepressions containing "empty(" with "empty (", and  "not(" with "not (" as EL expression requires.
> This is a VERY strange error since i've successufully setup Archiva on my profesionnal server, and i got these error on two distinct personnal systems.
> I'll check the professionnal/personnal system differences.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira