-
May 27th, 2009, 09:36 AM
#1
tc Server and EL
Hi all,
I try to deploy an existing JSF application on tc Server.
This application was built for WebSphere AS 6 on Servlet 2.4 / JSF 1.1 and I update it to be complient with Servlet 2.5 / JSF 1.2 / JSP 2.1 / EL 1.2 / JSTL 1.2... and I hope it's all a need to do...
Now the application works well on JBoss AS, Jetty and Tomcat 6.0.18.
But I have a problem on tc Server, the application is deployed and in running state. But when I navigate on the application, I'm redirected on the error page and I can see in the log file this exception :
[CODE]27-May-2009 15:25:48 SEVERE org.apache.catalina.core.ApplicationDispatcher.inv oke "Servlet.service()" pour la servlet jsp a lancé une exception
org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
Une erreur s'est produite à la ligne: 54 dans le fichier jsp: /all.jsp
The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)
51: <c:if test='${pageBean.properties["toto"]}'>
52: <option value="/pages/toto.jsf">Toto</option>
53: </c:if>
54: <c:if test='{${pageBean.properties["titi"]} or {${pageBean.properties["tata"]}}'>
55: <option value="/pages/titi.jsf">Titi</option>
56: </c:if>
57: </c:when>
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateCla ss(JDTCompiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:312)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:299)
at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:317)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:488)
at org.apache.jasper.runtime.JspRuntimeLibrary.includ e(JspRuntimeLibrary.java:968)
at org.apache.jsp.protected_.pages.common.home.displa yAccountSummary_jsp._jspService(displayAccountSumm ary_jsp.java:481)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:302)
If I understand the error message, my EL expressions are not recognized and it is processed as a simple String (the result of the expression should be a Boolean).
So I would like to know exactly what are the differences between Tomcat 6.0.18 and tc Server (built on top of Tomcat 6.0.19.A) in terms of EL implementation and if I have something special to do to be able to run it on tc Server.
I've compared the jars in the "lib" folder between Tomcat and tc Server, and just see some specific code on tc Server, but the JSP/EL versions are the same...
Best regards,
Rudy
Last edited by rkrol; Mar 2nd, 2010 at 10:29 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules