views:

27

answers:

0

Hello everybody,

I'm trying to get the Tag Libraries Tutorial http://java.sun.com/products/jsp/tutorial/TagLibraries15.html from sun working.

If deploying the .war File in Tomcat 6.0.20, I'm just getting two kind of errors on each launch:

org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the jsp file: /main.jsp
DefinitionTag cannot be resolved to a type

after some Page-Reloads:

org.apache.jasper.JasperException: org.apache.jasper.JasperException:
  Unable to load class for JSP
  org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

Same stuff occurs also by manually running out of eclipse.

Facts:

  • class DefinitionTag is within the ttl.jar file in /WEB-INF/lib
  • All classes belonging to the TagLib are within the default package (could this be a problem)
  • All other dependencies should be correct (e.g web.xml taglib.tld)

Any suggestions how to solve this issue ?

Greetings Quirin