voyent
First time :)  XML
Forum Index -> General Help
Author Message
kapamarou

Joined: 12/May/2010 05:43:06
Messages: 1
Offline


Hello everybody .I'm new to Icefaces jsf technology and i have problem to run an example from demos.i use netbeans ide 7.0.1 , tomcat 7.0.22 , jsf 2.1 and icefaces netbeans modules from downloaded file ICEfaces-2.1.0.BETA2-Netbeans-7.0.x-modules.zip.So , i get an exception ehile i run my project (IceTest) . I have made a new jspx file (newIce.jspx) whith the code above iside


Code :

<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : newIce
Created on : 13 ??? 2011, 4:58:54 ??
Author : pokerfreak
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component" version="2.0">

<jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/>
<!-- any content can be specified here, e.g.: -->
<jsp:element name="text">
<jsp:attribute name="lang">EN</jsp:attribute>
<jsp:body>Hello World!
<ice:panelGroup>
<ice:panelGroup >
<ice:outputText value="#{msgs['page.textFields.synopsis']}"/>
<ice:outputText value="#{msgs['page.textFields.directions']}"/>
</ice:panelGroup>
<!-- Text Field input -->
<ice:panelGroup >
<ice:panelGrid columns="3" columnClasses="pnlGrdClass, pnlGrdClass, pnlGrdClassLong">
<ice:outputLabel for="TxtName"
value="#{msgs['page.textFields.name']}" style="line-height:200%"/>
<ice:inputText id="TxtName"
size="30"
maxlength="30"
valueChangeListener="#{textFields.effectChangeListener}"
value="#{textFields.name}"
partialSubmit="true"
required="true"
>
</ice:inputText>
<ice:message id="nameMsg" for="TxtName" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
</ice:panelGrid>
<ice:panelGrid columns="3" columnClasses="pnlGrdClass, pnlGrdClass, pnlGrdClassLong">

<ice:outputLabel for="TxtPw"
value="#{msgs['page.textFields.password']}" style="line-height:200%"/>
<ice:inputSecret id="TxtPw"
maxlength="20"
size="20"
valueChangeListener="#{textFields.effectChangeListener}"
value="#{textFields.password}"
partialSubmit="true"
redisplay="true"
required="true">
<f:validateLength minimum="6" maximum="10"/>
</ice:inputSecret>
<ice:message id="pwMsg" for="TxtPw" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
</ice:panelGrid>
<ice:panelGrid columns="3"
columnClasses="pnlGrdClass, pnlGrdClass, pnlGrdClassLong">
<ice:outputLabel for="TxtName"
value="#{msgs['page.textFields.comments']}" style="line-height:200%"/>
<ice:inputTextarea id="TxtCmt"
value="#{textFields.comments}"
cols="20" rows="4"
partialSubmit="true"
valueChangeListener="#{textFields.effectChangeListener}"
style="width:280px;height:80px;overflow: auto;">
</ice:inputTextarea>
</ice:panelGrid>
</ice:panelGroup>

<ice:panelGroup styleClass="clearer" />

<!-- Text Field output text -->
<ice:panelGroup
styleClass="">

<!-- backing bean title box -->
<ice:panelGroup styleClass="">
<ice:outputText value="#{msgs['page.global.serverFeedback']}"/>
</ice:panelGroup>

<!-- actual backing bean values. -->
<ice:panelGroup styleClass=""
effect="#{textFields.valueChangeEffect}">
<ice:panelGroup>
<ice:panelGrid columns="2" styleClass="verticalAlignTop">
<ice:outputLabel for="TxtNameout"
value="#{msgs['page.textFields.name']} "/>
<ice:outputText id="TxtNameout"
value="#{textFields.name}"/>

<ice:outputLabel for="TxtPwout"
value="#{msgs['page.textFields.password']} "/>
<ice:outputText id="TxtPwout"
value="#{textFields.password}"/>

<ice:outputLabel for="TxtCmtout"
value="#{msgs['page.textFields.comments']} "/>
<ice:outputText id="TxtCmtout"
value="#{textFields.comments}"/>
</ice:panelGrid>
</ice:panelGroup>
</ice:panelGroup>
</ice:panelGroup>

</ice:panelGroup>
</jsp:body>
</jsp:element>

</jsp:root>


I get this error from tomcat:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /newIce.jspx at line 17

14: <jsp:element name="text">
15: <jsp:attribute name="lang">EN</jsp:attribute>
16: <jsp:body>Hello World!
17: <ice:panelGroup>
18: <ice:panelGroup >
19: <ice:outputText value="#{msgs['page.textFields.synopsis']}"/>
20: <ice:outputText value="#{msgs['page.textFields.directions']}"/>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:567)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:471)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
root cause

java.lang.NullPointerException
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1858)
org.apache.jsp.newIce_jspx._jspx_meth_ice_005fpanelGroup_005f0(newIce_jspx.java:136)
org.apache.jsp.newIce_jspx._jspService(newIce_jspx.java:112)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

I try 2 days to configure nut with no results

Please help me .

Thanks in advance.

[Thumb - ice.JPG]
 Filename ice.JPG [Disk] Download
 Description A prtsc from netbeans IDE to view the structure for my project.
 Filesize 139 Kbytes
 Downloaded:  222 time(s)

axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


I'd check the icefaces 2 release notes :

JSPs are not supported by ICEfaces 2.0 - use Facelets.
It is required to specify "h:head" and "h:body" tags in your ICEfaces application pages.
 


http://wiki.icefaces.org/display/ICE/ICEfaces+2.1.0+Beta+Release+Notes

You might want to start with a welcome page built by the icefaces/netbeans plugin and then take it from there.

-Lee
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team