• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to read html_basic.tld from jsf-impl-2.1.2.jar

 
Andrew Mike
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deployed my JSF webapp in Tomcat7 and while accessing the page I am getting the




Why I am getting this error? I found this tld present inside the jar. How to resolve this?
 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Andrew!

It looks like your real problem is that you're trying to create a web-inf login page in JSF.

There are certain types of web pages that cannot be done in JSF. That's because they're not requested by a URL, they're served up automatically by the appserver when it needs them and retrieves a resource pathname from web.xml. Because it's the appserver handling the operation and not the webapp, the internally-generated request doesn't have an actual URL and without a URL request to be routed to the FacesServlet, you can't have JSF functionality.

Sounds confusing, I know, but the net effect is that resources defined as file path references in web.xml for use by the appserver cannot be JSF, Or, for that matter, they can't be Struts, either. Only straight HTML or JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic