JSF custom component: NullPointerException

G

galpix

Hi folks,

I'm trying to get my very first JSF custom component to work. I'm
running Tomcat 5.5.9 on MacOS X. I followed the instructions on this
website and copy pasted all the code (creates a link to an email
address):

http://jsf.iatp.org.ua/customcomponent/jsf_emailcustomcomponent.html#createComponent


In addition to what I was told to do, I added the "<taglib>" specifying
the location of my tld file in my web.xml.

I get this at run time :

java.lang.NullPointerException
at
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:646)
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:254)
at
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:90)
at
org.apache.jsp.main_jsp._jspx_meth_f_view_0(org.apache.jsp.main_jsp:109)
at
org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:84)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)



What does this mean ? I've been trying to figure it out without
success.

Thanks a lot,

galpi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top