D
ddog
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)
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)