Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TagLib Compilation Error  RSS feed

 
ted oniger
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, perhaps you can help me figure out why I got error that says: "INTERNAL SERVLET ERROR, Parse error in tag library descriptor, next character must be '>' terminating declaration. I checked every opening and closing tags but still got the same error.
I'm using tomcat3.1 and I have my own directory (ted directory) under webapps directory so the path is c:\tomcat\webapps\ted
I placed my tag handler class in classes folder in ...ted\web-inf\classes and my tag library descriptor in ...ted\web-inf\tlds I placed the jsp file that imports the tag library in ted directory. Actually, I am just copied the example given in the book (Professional Java Server Programming) but it does not work.
I did not package the files into .war or .jar files. Is there someone our there who also had the same experience? Howcome it did not work--I just copied the codes (word for word) from the book.
Also, if I am deploying it without packaging the files, what should I write in "uri=" in my jsp file if I placed my descriptor in ...ted\web-inf\tlds?
<%@ taglib uri="?" prefix="examples" %>
In the book, it is written as <%@ taglib uri="./hello.tld" prefix="examples" %> but still, it did not work. I hope someone can help me run this simple tag.

 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Coul�d you please post the code, or send me at:
mmaia@linkexpress.com.br or mmaia@mrbrasilia.com.br.
rgds.
 
ted oniger
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marcos for replying. I already found the parse error. Apparently, there was a mispelled word inside my < !DOCTYPE tag taht caused the error. I never realized this error until I ran my files in Resin-1.2.5. When I ran my files there, it also gave me an parse error but it identified the specific word that was causing the error. Well, I guess Tomcat is not that user-friendly--but I'm still using it though. It pays to have several runners on your PC.
I appreciate your giving some thoughts to my problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!