• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to load tag handler class "com.midnightcookies.taghandlers.LinksHandler"

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
G'Day from Brisbane,
although not a newbie as such, I have been out of the Java world for eight years or so. Given a new year I thought I'd get back in touch with a few new environments. So NetBeans 6.5, GlassFish V2 and Java SDK of course. And I picked out some beginners tutorials. Got through the first one. It had errors, but they were easy to pick and correct. I am stumped on this error on the second tutorial, as I AM a newbie at this technology!

http://www.netbeans.org/kb/docs/web/tutorial-webapps.html
That is the tutorial
NetBeans IDE Tutorial for Web Applications
Welcome to the NetBeans IDE 6.5 tutorial for web applications.


I foolowed the tutorial step by step and got errors. Figuring I had a case of dyslexic fingers, I did the toot again using cut-n-paste from the example code.
Same errors. Now, I googled the error. 10 items found. No answers. Bugger....

Unable to load tag handler class "com.midnightcookies.taghandlers.LinksHandler" for tag "midnight:links"

<td

>
<midnight:links separator="<br>"/>
</td>

This is the offending block in main.jsp

This stuff is at the top of main.jsp, added automagically by NetBeans IDE (I am missing vi() already! ;-)

<%@page contentType="text/html;charset=UTF-8"%>
<%@page buffer="none"%>
<%-- The <midnight:content/> tag which handles the contents section
is simplistically implemented to use an include. Hence this page
cannot be buffered --%>

<%@taglib prefix="midnight" uri="http://www.midnightcookies.com/midnight"%>

I'd love to debug it myself, but don't really know where to start.
Any hints would be appreciated!

Cheers,
Mark.

Sorry about that. I didn't disable HTML....



 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems you have written the custom tag.
did you write the tld ? please check the uri which you given in the tld file and you have to give fully qualified class name

did you configure the tld in web.xml?

please check all these things
 
Mark Addinall
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

udaykumar maddigatla wrote:Seems you have written the custom tag.

I'm not even sure what that means!

did you write the tld ? please check the uri which you given in the tld file and you have to give fully qualified class name

did you configure the tld in web.xml?

please check all these things




Well, not being a new Java coder (I did Java many moons ago when it was a little bitty language similar to UCSD P-System
with pretty graphics.
http://www.midnightcookies.com/

That website doesn't exist. I figure that may just be the problem. Bloody Sun.
Anyone got any ideas?

Cheers,
Mark.

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have the source code for the tutorial? It should come with some library JAR files, one of which defines the midnightcookies tag library. Including that JAR in your project should work.

If you are working purely from text, then you are out of luck unless you can fine someone who has that JAR file. Even having the web site working would not help because you would stilkl be missing the classes that implement the class library (thet would be the next error you would run into).
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found and downloaded the source for the tutorial. There is a midnight.tld file, you need to include that somewhere (in WEB-INF/classes???) Or perhaps as udaykumar suggested, it needs to be mentioned in web.xml. Sorry for the vague answer, it's been a while since I dealt with custom tag libraries...
 
Mark Addinall
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:I found and downloaded the source for the tutorial. There is a midnight.tld file, you need to include that somewhere (in WEB-INF/classes???) Or perhaps as udaykumar suggested, it needs to be mentioned in web.xml. Sorry for the vague answer, it's been a while since I dealt with custom tag libraries...




No worries. Thanks. I'll keep mucking around with it.

Cheers,
Mark.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic