Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF MyFaces issue  RSS feed

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using MyFaces : both myfaces-api.jar and myfaces-impl.jar , version 1.2.3

My JSF is as below:


When I try to run the above in Tomcat, I am getting below error.

java.lang.NoClassDefFoundError: com/sun/faces/taglib/jsf_core/ViewTag
org.apache.jsp.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:89)
org.apache.jsp.jsp.test_jsp._jspService(test_jsp.java:65)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


Why is it looking for com/sun/faces/taglib/jsf_core/ViewTag whereas I am using MyFaces and in its tld the view is defined as
which is present in my classpath.



is the offending line in the generated servlet, again I still dont have any idea of why f:view is referring to com.sun.faces.taglib.jsf_core.ViewTag and not to org.apache.myfaces.taglib.core.ViewTag

Regards,
Joshua
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!