tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang,Chun" <ya...@omrsystems.com>
Subject RE: unable to open tablibrary
Date Thu, 18 Jan 2001 21:47:28 GMT
OK, send me the  "instrumented" class.  I'll give it a try and report
whatever message I get to this mailing list.

Thanks very much! It is going somewhere finally. :-)

> -----Original Message-----
> From:	Pierre Delisle [SMTP:pierre.delisle@sun.com]
> Sent:	Thursday, January 18, 2001 4:36 PM
> To:	taglibs-user@jakarta.apache.org
> Subject:	Re: unable to open tablibrary
> 
> Hummm...
> 
> The exception message that you are getting has the following signature
> in Jasper (tomcat's JSP engine):
> 
>    jsp.error.badtaglib=Unable to open taglibrary {0} : {1}
> 
> And it is called with the following arguments:
>    - the uri of the taglib directive 
>        in your case this is ->  http://www.yangc.com/taglib/testtags
>    - the message of the exception
>        in your case this is -> null
> 
> What's weird is that you get 'null' for the value of ex.getMessage(),
> which would probably mean a NullPointerException occurring somewhere.
> 
> Is it possible for you to build tomcat 3.2.1?
> If so, I could tell you exactly where to instrument the code
> to get a stack trace of that NPE.
> 
> If not, I could send you that "instrumented" class, but you'd have to 
> insert it in tomcat's classpath before it hits the class it 
> replaces in tomcat (and you'd have to trust me that nothing bad
> is in that class...).
> 
>     -- Pierre
> 
> 
> "Yang,Chun" wrote:
> > 
> > Hi, I have encountered the following error message when I try to run a
> jsp
> > page with a simple empty bodycontent tag.
> > The error message reads:
> > org.apache.jasper.compiler.CompileException:
> > D:\chun\testarea\taglib\helloworldtag.jsp(0,0) Unable to open taglibrary
> > http://www.yangc.com/taglib/testtags : null
> > The entries for the afore-mentioned taglib in web.xml is:
> >     <taglib>
> >         <taglib-uri>
> >            http://www.yangc.com/taglib/testtags
> >         </taglib-uri>
> >         <taglib-location>
> >            /WEB-INF/taglib/test-taglib.tld
> >         </taglib-location>
> >     </taglib>
> > And the test-taglib.tld which is located in <CONTEXT_ROO>/WEB-INF/taglib
> has
> > the following entry:
> >   <tag>
> >       <name>hw</name>
> >       <tagclass>HelloWorldTag</tagclass>
> >       <bodycontent>empty</bodycontent>
> >       <info>
> >       </info>
> >   </tag>
> > And the jsp page is as simple as
> > <%@ taglib uri="http://www.yangc.com/taglib/testtags" prefix="foo" %>
> > <html>
> > <body>
> > 
> > <foo:hw/>
> > 
> > <hr>
> > 
> > </body>
> > </html>
> > 
> > What could poooossibly be wrong ? I read the documentation several times
> and
> > simply couldn't figure this out !
> > 
> > btw, the environment I am working in is Apache1.3.14(win32) and
> TomCat3.2.1
> > 
> > Your help is greatly appreciated!

Mime
View raw message