| Author |
Issue in JSF2.0 with NetBeans6.9
|
Jaik Singh
Greenhorn
Joined: Sep 22, 2010
Posts: 20
|
|
Hi,
I am trying to build one jsf component using the JSF2.0 with NetBeans 6.9. I am trying to follow the steps mentioned at below link
http://www.exadel.com/tutorial/jsf/HowToWriteYourOwnJSFComponents.pdf
I am facing following exceptions while running my application on tomcat server.
1) First Issue :-
==============================================================================
error trance :-
org.apache.jasper.JasperException: An exception occurred processing JSP page
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
java.lang.UnsupportedOperationException: Not supported yet.
com.home.jsf.components.TickerTag.getComponentType(TickerTag.java:26)
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:205)
javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660)
javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1126)
org.apache.jsp.welcomeJSF_jsp._jspx_meth_j_005fticker_005f0(welcomeJSF_jsp.java:155)
org.apache.jsp.welcomeJSF_jsp._jspx_meth_f_005fview_005f0(welcomeJSF_jsp.java:123)
org.apache.jsp.welcomeJSF_jsp._jspService(welcomeJSF_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
===============================================================================
Every things are in place but its not behaving as expected.
2) Second issue :-
After doing some more google, I added one jsf file and modified my web.xml
from <welcome-file>faces/welcomeJSF.jsp</welcome-file> to <welcome-file>faces/welcome.xhtml</welcome-file>
then it started showing me below error.
========================================
XML Parsing Error: no element found
Location: http://localhost:8080/HelloWorldJSF/
Line Number 1, Column 1
========================================
Could any one please help me on this.
Thanks in advance
Jaikrat Singh Tariyal
|
 |
Jaik Singh
Greenhorn
Joined: Sep 22, 2010
Posts: 20
|
|
HI All,
Fortunately some how I could resolve the issue. I deleted the below line from my jsp.
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> and some tag using this f prefix.
Since I know this is just a temporary solution. Application was not able to find the uri of this thatswhy tags were not getting compiled.
But could anyone please tell me that in which jar, which tld contains this URI declaration. I might be missing that jar.
Thanks and Regards
Jaikrat Singh
|
 |
 |
|
|
subject: Issue in JSF2.0 with NetBeans6.9
|
|
|