This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP Tag" Watch "JSP Tag" New topic


Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a problem compiling a JSP upon its first run. I got
org.apache.jasper.compiler.CompileException: C:\tomcat\webapps\wroxPJSPch12\hello.jsp(0,0) Unable to open taglibrary hello : C:\tomcat\webapps\wroxPJSPch12\hello (???)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(
at org.apache.jasper.compiler.DelegatingListener.handleDirective(
at org.apache.jasper.compiler.Parser$Directive.accept(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.servlet.JspServlet.doLoadJSP(
at org.apache.jasper.servlet.JasperLoader12.loadJSP(
at org.apache.jasper.servlet.JspServlet.loadJSP(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServletWrapper.doService(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ServletWrapper.service(
at org.apache.tomcat.core.ContextManager.internalService(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
at org.apache.tomcat.service.TcpWorkerThread.runIt(
at org.apache.tomcat.util.ThreadPool$

Everything is in the respective right places. web.xml describing the tag in Web-Inf; hello.jsp in Web-inf/classes/; hello.tld linking the tag to the class in Web-inf/tlds/, and the tag class tagext.HelloTag.class in Web-inf/classes/tagext/.The only thing not implemented is MANIFEST.MF which should go under Meta-Inf/ because it's not mentioned in the example and I inuitively think it is not essential.
Can anyone please help?
I agree. Here's the link:
subject: JSP Tag
Similar Threads
JSP error 500
Custom Tag In Tomcat3.2.1 says "Access Denied"
Java Bean in JSP
Parse Error in the tag library descriptor: External entity not found:
Struts application with JBoss-2.4.4_Tomcat-3.2.3