tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: NullPointerException - newbie question
Date Tue, 27 Jan 2004 13:22:35 GMT
If you're going to target Tomcat 5 (Servlet 2.4 & JSP 2.0), you should probably
change to JSTL 1.1 (Standard 1.1.0-B1). In addition, you should use a Servlet
2.4  web.xml:

<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/web-app_2_4.xsd"
         version="2.4">
  ...
</web-app>

In the meantime, what happens if you disable tag pooling? Look in
$CATALINA_HOME/conf/web.xml for the following:

<servlet>
  <servlet-name>jsp</servlet-name>
  <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  ...
</servlet>

and add the following init param:

  <init-param>
    <param-name>enablePooling</param-name>
    <param-value>false</param-value>
  </init-param>

Quoting Lee Peik Feng <pflee@syabas.com>:

> Hi,
>     I'm using tomcat 5.0.18 and jakarta-taglibs-standard-1.0.4 with J2SDK
> 1.4.2, WinXP
> 
>     I encounter the following exception :
> 
> java.lang.NullPointerException
>  at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:153)
> 
> ......
> 
> java.lang.NullPointerException
>  at
> org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:191)
> 
> 
>     I suspect it is something related to taglib because my JSP was running
> fine with tomcat 4 (4.1.29)
>     Could someone give me some hint on : what is the cause of this prob?
> how
> to resolve this problem?
>     Please let me know whether there is any other information that I need
> to
> provide.
> 
>     Hope that someone could help me. Thank you.
> 
> Regards,
> Peik Feng

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message