Hi, can anyone help me? I really can't work this out.
This is a jsp with 2 tags. this jsp works in Win2000 + tomcat321 and gets exceptions in RedHat6.2 + tomcat321.
What is the problem?
 
<%@ taglib uri="../db-taglib.tld" prefix="db" %>
<%@ taglib uri="../ma-taglib.tld" prefix="ma" %>
...
<db:connection id="conn" url="jdbc :oracle:thin:@abc.xxx.net:1521 :orcl">
  <db:userId>user</db:userId>
  <db :password>abcd</db :password>
</db:connection>
 
// so far the tag works fine. however when I add one more tag as // following, it gives the exception.
 
<db:query id="abc" connection="conn">
  select * from table_abc
</db:query>
...
 
exception:
java.lang.NullPointerException
        at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerator.java:196)
        at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:291)
        at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java:360)
...
 

Reply via email to