Netbeans 5.5 & IceFaces 1.5.2 - Exception
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Netbeans 5.5 & IceFaces 1.5.2 - Exception  XML
Forum Index -> Tools
Author Message
lars.huber

Joined: 18/01/2007 00:00:00
Messages: 3
Offline


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
 


Code:
 <f:view xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html">
     <html>
         <head><title>ICEfaces: TimeZone Sample Application</title></head>
         <body> 
             <h3>ICEfaces: TimeZone Sample Application</h3> 
             <h:form>
                 <h:panelGrid columns="2">
                     <h:outputText style="font-weight:600" value="Server Time Zone"/>
                     <h:outputText style="font-weight:600" value="Time Zone Selected from Map"/>
                     <h:outputText value="#{timeZoneBean.serverTimeZoneName}"/>
                     <h:outputText value="#{timeZoneBean.selectedTimeZoneName}"/>
                     <h:outputText style="font-weight:800" value="#{timeZoneBean.serverTime}"/>
                     <h:outputText style="font-weight:800" value="#{timeZoneBean.selectedTime}"/>
                 </h:panelGrid>
                 <h:panelGrid columns="6" cellspacing="0" cellpadding="0">
                     <h:commandButton id="GMTminus10" image="images/hawaii.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
                     <h:commandButton id="GMTminus9" image="images/alaska.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
                     <h:commandButton id="GMTminus8" image="images/pacific.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
                     <h:commandButton id="GMTminus7" image="images/mountain.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
                     <h:commandButton id="GMTminus6" image="images/central.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
                     <h:commandButton id="GMTminus5" image="images/eastern.jpg" actionListener="#{timeZoneBean.listen}" style="border: 0px;"/>
                 </h:panelGrid>
             </h:form>        
         </body>
     </html>
 </f:view>
 


frank.ye

Joined: 26/10/2004 00:00:00
Messages: 709
Offline


Could you try the following steps:

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)

Run the Project that you just created.

enjoy
[Email]
lars.huber

Joined: 18/01/2007 00:00:00
Messages: 3
Offline


I tried, but the libraries are still missing

Code:
 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
 


what's wrong???

frank.ye

Joined: 26/10/2004 00:00:00
Messages: 709
Offline


You should not have any class missing Error if Web project is created with JavaServer Faces option selected in Framework window.

Could you try to run the samples war file provided in the bundle on your J2EE container. Are you able to run any samples?

Try some different like the following:

The source code and jar files are provided with sample application.

Netbeans Web Application could also be created by using Free Form Project.

So select Create a new Web Application --> Web Application with Existing sources.

If all the above failed for you, could you post your war file?

[Email]
intisand

Joined: 20/12/2006 00:00:00
Messages: 1
Offline


I have same problem:

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
frank.ye

Joined: 26/10/2004 00:00:00
Messages: 709
Offline


Sun Application Server 9 is not supported at this version.

Could you try Sun Application Server 8.

thanks
[Email]
 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team