Re: JSP 2.0 and JSTL EL

"Rashmi Rubdi" <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
Dick,

What Servlet and JSP specification version is JBoss 4.0.5 based on?

The compatibility chart for EL and web.xml I've known from experience is:
---------------------------------------------------------------------------------------------------------------------
JSTL 1.2      works with Servlet 2.5/ JSP 2.1 which is the spec for Tomcat 6.0.x
----------------------------------------------------------------------------------------------------------------------
JSTL 1.1.x   works with Servlet 2.4/ JSP 2.0 which is the spec for Tomcat 5.5.x
----------------------------------------------------------------------------------------------------------------------
JSTL 1.0      works with Servlet 2.3/ JSP 1.2 which is the spec for Tomcat 4.1.x
---------------------------------------------------------------------------------------------------------------------

the web.xml web-app / DTD / Schema are different for each of the above
versions of the Servlet spec.

Tomcat has a useful reference chart
http://tomcat.apache.org/whichversion.html which shows which version
of Tomcat uses which version of the Servlet spec, but I couldn't find
such a chart (after some searching) for JBoss.

-Regards
Rashmi


On 4/30/07, Dick Weisinger <[email protected]> wrote:
> I have a Spring-based Application that was successfully running under Tomcat
> 5.5.
>
> I've attempted to move it to JBoss 4.0.5, but it's having problems using the
> JSP Expression Language (EL).
>
>
>
> I made sure that I have the most recent JSTL 1.1 jstl.jar and standard.jar
> files.
>
>
>
> In the web.xml file I declare:
>
> <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">
>
>
>
> In the JSP page, I have the following:
>
>
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
>
> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
>
>
>
> But it continues to have a problem.  Spring says that it found the JSP 2.0
> ExpressionEvaluator, but it can't find:
>
>    org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager
>
>
>
> I see this method in the JSTL version 1.0 standard.jar file, but not in the
> version 1.1 file.
>
> How can I figure out why and from where it is looking for that?
>
>
>
>
>
> 2007-04-30 16:40:36,511 INFO  [STDOUT] 2007-04-30 16:40:36,511 DEBUG
> [org.springframework.web.servlet.view.InternalResourceViewResolver] - Cached
> view [index]
>
> 2007-04-30 16:40:36,511 INFO  [STDOUT] 2007-04-30 16:40:36,511 DEBUG
> [org.springframework.web.servlet.DispatcherServlet] - Rendering view
> [org.springframework.web.servlet.view.JstlView: name 'index'; URL
> [/WEB-INF/jsp/spring/index.jsp]] in DispatcherServlet with name 'oes'
>
> 2007-04-30 16:40:36,511 INFO  [STDOUT] 2007-04-30 16:40:36,511 DEBUG
> [org.springframework.web.servlet.view.JstlView] - Rendering view with name
> 'index' with model null and static attributes {}
>
> 2007-04-30 16:40:36,761 INFO  [STDOUT] 2007-04-30 16:40:36,761 INFO
> [org.springframework.ui.context.support.ResourceBundleThemeSource] - Theme
> created: name 'theme', basename [theme]
>
> 2007-04-30 16:40:36,761 INFO  [STDOUT] 2007-04-30 16:40:36,761 DEBUG
> [org.springframework.web.util.ExpressionEvaluationUtils] - Found JSP 2.0
> ExpressionEvaluator
>
> 2007-04-30 16:40:36,761 INFO  [STDOUT] 2007-04-30 16:40:36,761 DEBUG
> [org.springframework.util.ClassUtils] - Class
> [org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager] or one
> of its dependencies is not present: java.lang.ClassNotFoundException:
> org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager
>
> 2007-04-30 16:40:36,776 INFO  [STDOUT] 2007-04-30 16:40:36,776 DEBUG
> [org.springframework.context.support.ReloadableResourceBundleMessageSource]
> - Loading properties [oesweb.properties]
>
> 2007-04-30 16:40:36,776 INFO  [STDOUT] 2007-04-30 16:40:36,776 DEBUG
> [org.springframework.context.support.ReloadableResourceBundleMessageSource]
> - No properties file found for [/WEB-INF/strings/oesweb_en] - neither plain
> properties nor XML
>
> 2007-04-30 16:40:36,776 INFO  [STDOUT] 2007-04-30 16:40:36,776 DEBUG
> [org.springframework.context.support.ReloadableResourceBundleMessageSource]
> - Loading properties [oesweb_en_US.properties]
>
> 2007-04-30 16:40:36,854 INFO  [STDOUT] 2007-04-30 16:40:36,854 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] -
> Servlet.service() for servlet jsp threw exception
>
> java.lang.NullPointerException
>
>                 at
> org.apache.jsp.WEB_002dINF.jsp.spring.index_jsp._jspService(index_jsp.java:1
> 31)
>
>                 at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
>                 at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 34)
>
>                 at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>
>                 at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:252)
>
> ..
>
> Thanks and Best Regards,
>
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.