[ 
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

        

Reply via email to