Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InstantiationException when deploying ear with custom tag lib on Jboss

Hunter Stern
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my custom component:

Here is my faces-config.xml:

Here is the relevant portion of my web.xml:

Here is my tag descriptor:

Here is my call to the tag in xhtml:

The reason for extending the HTMLInputText class is so I can dynamically set the id of the form field based on my own logic. Otherwise I cannot display a dynamic list of form fields (HTMLInputTexts) by iterating through a list of data. I believe the problem is the com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer class is not visible to my application. It lives in jsf-impl.jar under a different app (jboss-web.deployer). This must be a classloader issue. I dont' see how to get around it.

The stack trace is below:

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic