I'm working through the Timezone tutorial. I always get an exception (see below).
For the integration I think there are some libraries missing by enabling IceFaces. I had to add manually following libraries in the order:
-commons-logging
-commons-logging-api
-commons-digester
-commons-collections
-commons-beanutils
What's wrong? Am I doing something wrong?
By the way: I'm not using the integration for VisualWebPack. I'm using the stable one for normal JSF applications in Netbeans.
Please help!
Greets Lars
Code:
javax.servlet.ServletException: javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
root cause
javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
root cause
java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
create a new Project --> Web Application --> click on next button with default setting --> select JavaServer Faces from frameworks.
copy or import source code from tutorial 3 (Managed bean).
copy and paste faces-config.xml
Assume that you already installed netbeans integration. So click on the pop up menu with Enable ICEfaces ... (with ICEfaces 1.5.2 library and modified web.xml)
WebModule[/WebApplication12]Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at com.icesoft.faces.application.D2DViewHandler.<clinit>(D2DViewHandler.java:82)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
I have added the libraries
Code:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
root cause
javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
root cause
java.lang.IllegalArgumentException: Cannot invoke com.sun.faces.taglib.html_basic.PanelGridTag.setColumns - argument type mismatch
ervlet.service() for servlet jsp threw exception
com.sun.enterprise.tools.guiframework.exception.FrameworkError: com.sun.enterprise.tools.guiframework.exception.FrameworkException: java.lang.reflect.InvocationTargetException while attempting to process a 'beginDisplay' event for 'LogDetail'.
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beginChildDisplay(DescriptorViewHelper.java:489)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.beginChildDisplay(DescriptorViewBeanBase.java:168)
at com.iplanet.jato.taglib.TagBase.fireBeginDisplayEvent(TagBase.java:133)
at com.sun.web.ui.taglib.common.CCTagBase.fireBeginDisplayEvent(CCTagBase.java:149)
at com.sun.web.ui.taglib.common.CCTagBase.doEndTag(CCTagBase.java:108)
at org.apache.jsp.jsp.LogDetail_jsp._jspx_meth_cc_propertysheet_0(LogDetail_jsp.java:317)
at org.apache.jsp.jsp.LogDetail_jsp._jspx_meth_cc_pagetitle_0(LogDetail_jsp.java:286)
at org.apache.jsp.jsp.LogDetail_jsp._jspx_meth_jato_form_0(LogDetail_jsp.java:226)
at org.apache.jsp.jsp.LogDetail_jsp._jspx_meth_cc_header_0(LogDetail_jsp.java:158)
at org.apache.jsp.jsp.LogDetail_jsp._jspService(LogDetail_jsp.java:101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:441)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:336)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:849)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
at com.iplanet.jato.view.ViewBeanBase.forward(ViewBeanBase.java:340)
at com.iplanet.jato.view.ViewBeanBase.forwardTo(ViewBeanBase.java:261)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.execute(DescriptorViewHelper.java:338)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.execute(DescriptorViewBeanBase.java:210)
at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:760)
at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
at com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServlet.java:204)
at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:789)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:328)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException: java.lang.reflect.InvocationTargetException while attempting to process a 'beginDisplay' event for 'LogDetail'.
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:852)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beginChildDisplay(DescriptorViewHelper.java:477)
... 61 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:938)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:875)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:841)
... 62 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException: com.sun.enterprise.tools.admingui.handlers.CommonHandlers.longAdd() requires that both 'long1' and 'long2' be supplied as request attributes.
at com.sun.enterprise.tools.admingui.handlers.CommonHandlers.longAdd(CommonHandlers.java:1269)
... 68 more