How to use JSTL in a GWT project?

后端 未结 4 932
鱼传尺愫
鱼传尺愫 2020-12-11 06:45

i am building a GWT project, with GWT-2.0.3 and eclipse plugin. well, first i tried, JSTL1.2 and servlet 2.5,

  • i do add jstl-1.2.jar to war/WEB-INF/lib
4条回答
  •  生来不讨喜
    2020-12-11 07:23

    java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
    

    The webapp's runtime classpath is likely cluttered with a different version of EL JAR file (either an older version or the one of a different appserver) which lacks the in the exception mentioned method. I suspect the /WEB-INF/lib. Get rid of it, it's normally already supplied by the appserver in question, you don't need to include it in your webapp. This applies on all appserver libraries like servlet-api.jar and consorts by the way. You should never copy it into the webapp's /WEB-INF/lib. That's asking for portability trouble.

提交回复
热议问题