tag library not found in jsp page - mystery

Discussion in 'Java' started by ddog, Jan 10, 2007.

  1. ddog

    ddog Guest

    I'm having a big problem with jsp/tag libraries using oc4j. One
    particular
    tag library is not being 'found' for some mysterious reason. The
    particulars follow:

    kwTags.jar is the jar file containing the tag classes. It definitely
    exists in WEB-INF/lib directory.

    tld def. in web.xml:
    <taglib>
    <taglib-uri>/kw</taglib-uri>
    <taglib-location>/WEB-INF/tlds/kwTagLib.tld</taglib-location>
    </taglib>

    The tld file definitely exists in the /WEB-INF/tlds directory.
    The definition of the tag lib at the top of the kwTagLib.tld follows:
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>kw</short-name>
    <uri>/kw</uri>
    <display-name>kwTagLib</display-name>
    <small-icon></small-icon>
    <large-icon></large-icon>
    <description></description>

    The tag reference in jsp page is:
    <%@ taglib uri="/WEB-INF/tlds/kwTagLib.tld" prefix="kw" %>

    The development environment is Eclipse Workbench 5.1.0 and Eclipse
    v.3.2.1
    JDK is: j2sdk1.4.2_04

    All other tag libs (Struts v.1.3.5) are found and work correctly. This
    is the only tag library that
    a problem.

    Error Message follows:
    java.lang.NullPointerException at
    oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTaglib.java:183)

    at
    oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseTagDirective.java:180)

    at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:921)
    at
    oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java:326)

    at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:705)
    at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184)
    at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154)
    at
    oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:428)

    at
    oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:284)

    at
    oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:483)
    at
    oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542)

    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)

    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)

    at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)

    at
    com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:251)

    at
    org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:99)

    at
    org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:82)

    at
    org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:51)

    at
    org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)

    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    at
    org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)

    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    at
    org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)

    at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)

    at
    org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)

    at
    org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)

    at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)

    at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)

    at
    com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)

    at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)

    at
    com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)

    at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

    at java.lang.Thread.run(Thread.java:534)
     
    ddog, Jan 10, 2007
    #1
    1. Advertising

  2. ddog

    Lew Guest

    ddog wrote:
    > I'm having a big problem with


    multi-posting. People have already answered this question in clj.help under
    the topic "tag library not found in jsp page - mystery". I have set the
    followup to that group.

    - Lew
     
    Lew, Jan 11, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jstack
    Replies:
    1
    Views:
    651
    Tor Iver Wilhelmsen
    Jul 4, 2003
  2. shahbaz
    Replies:
    0
    Views:
    944
    shahbaz
    Oct 27, 2003
  3. Sean Aitken
    Replies:
    3
    Views:
    11,250
    Alex Hunsley
    Oct 21, 2004
  4. Lukasz Indyk
    Replies:
    1
    Views:
    1,517
    Andrew Thompson
    Sep 22, 2004
  5. shruds
    Replies:
    1
    Views:
    965
    John C. Bollinger
    Jan 27, 2006
Loading...

Share This Page