Hello,
I'm planning to develop some test applications with myfaces, so I tought
to put all the jars in the tomcat common/lib directory but that does not
work. The error I get is:
javax.servlet.ServletException: Undefined component type
org.apache.myfaces.HtmlPanelLayout
javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:119)
root cause
javax.faces.FacesException: Undefined component type
org.apache.myfaces.HtmlPanelLayout
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:410)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:244)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:290)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:119)
I tried different combinations and I found that I can put in the shared folders
everything except myfaces*.jar files: they must be in the WEB-INF/lib directory.
Of course I find it would be better to share them among different
applications/contexts
to ease deployment and management.
Any suggestions?
Thanks,
Alex