It's not a secret anymore!
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
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
It's not a secret anymore!