voyent
How to use Woodstock and Icefaces Component in Same project  XML
Forum Index -> Woodstock to ICEfaces Migration
Author Message
jsfgeeks

Joined: 03/Apr/2009 00:00:00
Messages: 24
Offline


Hi,
I am trying to migrate my project woodstock to iceface using netbean6.5 and ICEfaces-1.7.2-SP1b-NetBeans-6.5-modules.

Now i want use my woodstock project as it is and add iceface Framework and want to implement ICEfaces component in same project in new Page,
is it possible to use this way, if yes then how.
please give me guide for that becouse my project have 50 pages and one by one component change is time taken so i want easy way.
plz help
Biloo

Joined: 18/Dec/2008 00:00:00
Messages: 10
Offline


Yes, it's possible to have pages woodstock and pages IceFaces in the same project.

To migrate a woodstock project to icefaces, there is a tutorial that explain what to do, at this place : http://facestutorials.icefaces.org/tutorial/woodstock/WoodstockToICEfacesPortingGuide.html

And it's possible to use the last version of Icefaces that is 1.8.1.
jsfgeeks

Joined: 03/Apr/2009 00:00:00
Messages: 24
Offline


hi Biloo
thanks for reply,

Actualy i read link http://facestutorials.icefaces.org/tutorial/woodstock/WoodstockToICEfacesPortingGuide.html
Here i create new project having 4 pages from two are belongds to woodstock and 2 are iceface when i deploy and ran
woodstock pages run well and when i link to icefaces page it will give error.
i here remove Code:
  <listener>
         <listener-class>org.icefaces.netbeans.rave.web.ui.appbase.servlet.LifecycleListener</listener-class>
     </listener> from web.xml
 

and
Code:
  <application>
         <view-handler>org.icefaces.netbeans.rave.web.ui.appbase.faces.ViewHandlerImpl</view-handler>
     </application>
 

from facesconfix.xml

i follow your thread http://www.icefaces.org/JForum/posts/list/12368.page.' target='_new' rel="nofollow"> http://www.icefaces.org/JForum/posts/list/12368.page.

plz solve my problem


my web.xml
Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
     <context-param>
         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
         <param-value>server</param-value>
     </context-param>
     <context-param>
         <param-name>com.sun.faces.validateXml</param-name>
         <param-value>true</param-value>
     </context-param>
     <context-param>
         <param-name>com.sun.faces.verifyObjects</param-name>
         <param-value>false</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.concurrentDOMViews</param-name>
         <param-value>false</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.debugDOMUpdate</param-name>
         <param-value>false</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
         <param-value>4048576</param-value>
     </context-param>
     <context-param>
         <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
         <param-value>true</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.synchronousUpdate</param-name>
         <param-value>false</param-value>
     </context-param>
     <filter>
         <filter-name>UploadFilter</filter-name>
         <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
         <init-param>
             <description>The maximum allowed upload size in bytes.  If this is set to a negative value, there is no maximum.  The default value is 1000000.</description>
             <param-name>maxSize</param-name>
             <param-value>1000000</param-value>
         </init-param>
         <init-param>
             <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory.  Files smaller than or equal to this size will be stored in memory.  The default value is 4096.</description>
             <param-name>sizeThreshold</param-name>
             <param-value>4096</param-value>
         </init-param>
     </filter>
     <filter-mapping>
         <filter-name>UploadFilter</filter-name>
         <servlet-name>Faces Servlet</servlet-name>
     </filter-mapping>
     <!--
     <listener>
         <listener-class>org.icefaces.netbeans.rave.web.ui.appbase.servlet.LifecycleListener</listener-class>
     </listener>
     -->
     <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <init-param>
             <param-name>javax.faces.LIFECYCLE_ID</param-name>
             <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet>
         <servlet-name>ExceptionHandlerServlet</servlet-name>
         <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
         <init-param>
             <param-name>errorHost</param-name>
             <param-value>localhost</param-value>
         </init-param>
         <init-param>
             <param-name>errorPort</param-name>
             <param-value>24444</param-value>
         </init-param>
     </servlet>
     <servlet>
         <servlet-name>ThemeServlet</servlet-name>
         <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
     </servlet>
     <servlet>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet>
         <servlet-name>Blocking Servlet</servlet-name>
         <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet>
         <servlet-name>uploadServlet</servlet-name>
         <servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>/faces/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>ExceptionHandlerServlet</servlet-name>
         <url-pattern>/error/ExceptionHandler</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>ThemeServlet</servlet-name>
         <url-pattern>/theme/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>/xmlhttp/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>*.iface</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>*.jspx</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Blocking Servlet</servlet-name>
         <url-pattern>/block/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>uploadServlet</servlet-name>
         <url-pattern>/uploadHtml</url-pattern>
     </servlet-mapping>
     <session-config>
         <session-timeout>
             30
         </session-timeout>
     </session-config>
     <welcome-file-list>
         <welcome-file>index.html</welcome-file>
         <welcome-file>faces/Page1.jsp</welcome-file>
         </welcome-file-list>
     <error-page>
         <exception-type>javax.servlet.ServletException</exception-type>
         <location>/error/ExceptionHandler</location>
     </error-page>
     <error-page>
         <exception-type>java.io.IOException</exception-type>
         <location>/error/ExceptionHandler</location>
     </error-page>
     <error-page>
         <exception-type>javax.faces.FacesException</exception-type>
         <location>/error/ExceptionHandler</location>
     </error-page>
     <error-page>
         <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
         <location>/error/ExceptionHandler</location>
     </error-page>
     <jsp-config>
         <jsp-property-group>
             <url-pattern>*.jspf</url-pattern>
             <is-xml>true</is-xml>
         </jsp-property-group>
         </jsp-config>
     </web-app>
 
 

and
Faces-config.xml
[list]
<?xml version='1.0' encoding='UTF-8'?>

<!-- =========== FULL CONFIGURATION FILE ================================== -->

<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>SessionBean1</managed-bean-name>
<managed-bean-class>test.SessionBean1</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Page1</managed-bean-name>
<managed-bean-class>test.Page1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>ApplicationBean1</managed-bean-name>
<managed-bean-class>test.ApplicationBean1</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>RequestBean1</managed-bean-name>
<managed-bean-class>test.RequestBean1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>IcePage1</managed-bean-name>
<managed-bean-class>test.IcePage1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<!--
<application>
<view-handler>org.icefaces.netbeans.rave.web.ui.appbase.faces.ViewHandlerImpl</view-handler>
</application>
-->
<managed-bean>
<managed-bean-name>Page2</managed-bean-name>
<managed-bean-class>test.Page2</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Page3</managed-bean-name>
<managed-bean-class>test.Page3</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>

[/list][code]
executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@17bf89d) threw exception
java.lang.IllegalStateException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
at com.icesoft.faces.context.DOMResponseWriter.<init>(DOMResponseWriter.java:126)
at com.icesoft.faces.context.DOMContext.createTemporaryDOMResponseWriter(DOMContext.java:166)
at com.icesoft.faces.context.DOMContext.attachDOMContext(DOMContext.java:107)
at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderUIOutput(TextRenderer.java:89)
at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderEnd(TextRenderer.java:66)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:126)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
at com.icesoft.faces.context.DOMResponseWriter.<init>(DOMResponseWriter.java:126)
at com.icesoft.faces.context.DOMContext.createTemporaryDOMResponseWriter(DOMContext.java:166)
at com.icesoft.faces.context.DOMContext.attachDOMContext(DOMContext.java:107)
at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderUIOutput(TextRenderer.java:89)
at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderEnd(TextRenderer.java:66)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:126)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)








Biloo

Joined: 18/Dec/2008 00:00:00
Messages: 10
Offline


this exception comes when you try to load a icefaces page from a woodstock page ?
In this case, in the faces-config.xml, I keep
Code:
 <application>
          <view-handler>org.icefaces.netbeans.rave.web.ui.appbase.faces.ViewHandlerImpl</view-handler>
      </application>
 

and for the navigation rule, I write :
Code:
 <navigation-rule>
     <from-view-id>/pageWoodstock.jsp</from-view-id>
     <navigation-case>
         <from-outcome>maProperties</from-outcome>
         <to-view-id>/pageIcefaces.iface</to-view-id>
         <redirect />
     </navigation-case>
 </navigation-rule>
 
M.Aaron

Joined: 17/Jun/2010 06:36:15
Messages: 6
Offline


This document will guide you through the process of porting Woodstock applications to ICEfaces. The porting process is devised to be evolutionary in nature, allowing you to maintain a functional Woodstock application, while incrementally porting Woodstock pages to ICEfaces. The ultimate goal of the porting process is to entirely eliminate Woodstock from the application, leaving you with a pure ICEfaces application where you can take full advantage of all the rich features provided in the ICEfaces framework.

The migration support in ICEfaces is based on project-level coexistence with Woodstock, which means ICEfaces and Woodstock pages can coexist in the same web application. The approach is NOT intended to support page-level coexistence of ICEfaces and Woodstock, where components from both frameworks are included in the same page. That being said, subsequent releases of ICEfaces will include selectively ported Woodstock components that will exist as first-class citizens of the ICEfaces framework. The availability of these components will ease the page-level porting effort, but not eliminate it.

Real time chicago Real Estate listings
 
Forum Index -> Woodstock to ICEfaces Migration
Go to:   
Powered by JForum 2.1.7ice © JForum Team