voyent
problem with <jsp:root xmlns...............  XML
Forum Index -> Components
Author Message
Admin

Joined: 27/May/2004 00:00:00
Messages: 219
Offline


Hello sir,

I am working on a web application, using JSC 2.0 as IDE. I have tried to implement your component along with my application, but I am facing few problems,

I have added a namespace to jsp:root tag like below, and copied icefaces.jar and z-icefaces-components.jar to WEB-INF/lib directory.

<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui" xmlns:t="http://myfaces.apache.org/tomahawk" *xmlns:ice="http://www.icesoft.com/icefaces/component"*>
...........
...........
.............
..........
</jsp:root>

I have added reletive jar files to WEB-INF/lib directory.

when I run this code JSC play with my code and changed it according to itself, so that i am facing big problems,
modified code is like below:

<jsp:root *xmlns:icefaces="http://www.icesoft.com/icefaces" xmlns:jsp="jsp" * version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui" xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:ice="http://www.icesoft.com/icefaces/component">

Cause of modification more than one namespace generates for both jsp and icefaces, so it gives me exception like:

[#|2006-04-17T11:57:00.171+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise. system.container.web|_ThreadID=14;|WebModule[/ACM]Can't parse stream for /testPage.jsp
javax.faces.FacesException: Can't parse stream for /testPage.jsp
at com.icesoft.faces.application.D2DViewHandler.a(Unknown Source)
at com.icesoft.faces.application.D2DViewHandler.renderView(Unknown Source)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:311)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:210)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.ja va:362)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:210)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Caused by: org.xml.sax.SAXParseException: Attribute "jsp" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "jsp:root".
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXP arser.java:1269)
at org.apache.commons.digester.Digester.parse(Digester.java:1586)
at com.icesoft.faces.webapp.parser.Parser.parse(Unknown Source)
... 48 more
|#]


can you please let me know, what is wrong and where can i get solution, i serched on web but couldnt get solution for it, i think its problem with icefaces component, please help me out from this problem. i am sending my jsp page code along with this mail.

thanks in advance
Abhishek


***************************************************
//jsp page code


<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui"
xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{testPage.page1}" id="page1">
<ui:html binding="#{testPage.html1}" id="html1">
<ui:head binding="#{testPage.head1}" id="head1">
<ui:link binding="#{testPage.link1}" id="link1" url="/resources/css/stylesheet.css"/>
<ui:link binding="#{testPage.link2}" id="link2" url="/resources/css/style.css"/>
</ui:head>
<ui:body binding="#{testPage.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{testPage.form1}" id="form1">
<f:verbatim>
<h3>Simple dataTable test with expandable children nodes</h3>
</f:verbatim>
<ice:dataTable cellpadding="0" columnClasses="expandColumn, descriptionColumn, dateColumn, quantityColumn, priceColumn, totalColumn"
value="#{salesRecordsManager.salesGroupRecordBeans}" var="salesRecord" width="550px">
<!-- contract/expand column -->
<ice:column>
<ice:panelGroup styleClass="#{salesRecord.indentStyleClass">
<!-- Render the expand/contract if there is an image -->
<ice:commandLink actionListener="#{salesRecord.toggleSubGroupAction}">
<ice:graphicImage style="border: 0px solid;" value="#{salesRecord.expandContractImage}"/>
</ice:commandLink>
</ice:panelGroup>
</ice:column>
<!-- Description -->
<ice:column>
<f:facet name="header">
<ice:outputText value="Description"/>
</f:facet>
<ice:panelGroup styleClass="#{salesRecord.rowStyleClass}">
<ice:outputText value="#{salesRecord.description}"/>
</ice:panelGroup>
</ice:column>
<!-- Date -->
<ice:column>
<f:facet name="header">
<ice:outputText value="Date"/>
</f:facet>
<ice:panelGroup styleClass="#{salesRecord.rowStyleClass}">
<ice:outputText value="#{salesRecord.dateString}"/>
</ice:panelGroup>
</ice:column>
<!-- qty. -->
<ice:column>
<f:facet name="header">
<ice:outputText value="Qty"/>
</f:facet>
<ice:panelGroup styleClass="#{salesRecord.rowStyleClass}">
<ice:outputText value="#{salesRecord.quantity}"/>
</ice:panelGroup>
</ice:column>
<!-- price -->
<ice:column>
<f:facet name="header">
<ice:outputText value="Price"/>
</f:facet>
<ice:panelGroup styleClass="#{salesRecord.rowStyleClass}">
<ice:outputText value="#{salesRecord.price}"/>
</ice:panelGroup>
</ice:column>
<!-- total -->
<ice:column>
<f:facet name="header">
<ice:outputText value="Total"/>
</f:facet>
<ice:panelGroup styleClass="#{salesRecord.rowStyleClass}">
<ice:outputText value="#{salesRecord.total}"/>
</ice:panelGroup>
</ice:column>
</ice:dataTable>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
steve.maryka

Joined: 26/Oct/2004 00:00:00
Messages: 93
Offline


I think we covered this in another thread, but for completeness I will reiterate here.

You cannot currently mix ICEfaces and other 3rd party components (Tomahawk, Sun Rave, ADF Faces)in the same page. This is most likely the root of your problem.

For more information of using JSC2 to build ICEfaces applications see my posting in the following thread.

http://support.icesoft.com/jive/thread.jspa?threadID=1061&tstart=0

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