voyent
help for 1.x compatibility  XML
Forum Index -> General Help
Author Message
paralight

Joined: 20/Jul/2016 01:08:47
Messages: 17
Offline


i make a migration from jsf 1.x to jsf 2.x and icefaces 1.7 to 4.x

i follow instruction guide here: http://www.icesoft.org/wiki/display/ICE/ICEfaces+1.x+Compatibility

it tells me to put this conf :

Code:
<servlet>
     <servlet-name>Resource Servlet</servlet-name>
     <servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
 </servlet>



i'm stuck with a compatibility issue when i put a dependency for icefaces-compat-3.3.0.jar i'm getting an error like this :


Code:
Aug 01, 2016 3:19:17 PM org.apache.catalina.core.StandardContext listenerStart
 SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
 java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.icefaces.facelets.tag.icefaces.core.IceComponentHandler
 	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937)
 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 	at java.lang.Thread.run(Thread.java:745)
 Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.icefaces.facelets.tag.icefaces.core.IceComponentHandler
 	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:453)
 	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)
 	... 9 more
 Caused by: javax.faces.FacesException: org.icefaces.facelets.tag.icefaces.core.IceComponentHandler
 	at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:428)
 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:587)
 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:368)
 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:321)
 	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:270)
 	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:441)
 	... 10 more
 Caused by: java.lang.ClassNotFoundException: org.icefaces.facelets.tag.icefaces.core.IceComponentHandler
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
 	at java.lang.Class.forName0(Native Method)
 	at java.lang.Class.forName(Class.java:348)
 	at com.sun.faces.util.Util.loadClass(Util.java:364)
 	at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:420)
 	... 15 more



so , it's logical, because com.icesoft.faces.webapp.CompatResourceServlet is dependant of IceComponentHandler and there are not any IceComponentHandler class in icefaces-compat-3.0.1.jar


so i tried this version of icefaces-compat : 3.0.1 which contains IceComponentHandler class but i'm stuck on this error :


Code:
SEVERE: Error Rendering View[/html/view/login_bv.xhtml]
 java.lang.IllegalArgumentException: 1irc3ln68:386r_icefaces_compat_config
 	at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:587)
 	at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:413)
 	at com.icesoft.faces.application.ExtrasSetup.processEvent(ExtrasSetup.java:140)
 	at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108)
 	at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118)
 	at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169)
 	at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2142)
 	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:301)
 	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245)
 	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:857)
 	at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:985)
 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
 	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)
 	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)
 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
 	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
 	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 	at java.lang.Thread.run(Thread.java:745)
 
 Aug 01, 2016 3:55:28 PM org.apache.catalina.core.StandardWrapperValve invoke
 SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/bvnet-6.0.0-SNAPSHOT] threw exception [1irc3ln68:386r_icefaces_compat_config] with root cause
 java.lang.IllegalArgumentException: 1irc3ln68:386r_icefaces_compat_config
 	at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:587)
 	at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:413)
 	at com.icesoft.faces.application.ExtrasSetup.processEvent(ExtrasSetup.java:140)
 	at javax.faces.event.SystemEvent.processListener(SystemEvent.java:108)
 	at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:118)
 	at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169)
 	at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2142)
 	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:301)
 	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:245)
 	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:857)
 	at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:985)
 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
 	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)
 	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)
 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
 	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
 	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 	at java.lang.Thread.run(Thread.java:745)




any ideas ? thanks very much :)
arran.mccullough


Joined: 02/Jan/2007 00:00:00
Messages: 426
Offline


Hello,

Are you wanting to migrate to ICEfaces 4 or ICEfaces 3? Depending on this answer there are a few different options.

The link you posted is more related to ICEfaces 1.x Compatibility with ICEfaces 3. But is a good reference for the 1.x to 3.x migration.

The ICEfaces 4 release no longer supports the ICE components. So if you want to use ICEfaces 4 and have a bunch of ICE components (ice:commandButton, ice:outputText, etc) and don't want to change these to the ACE or JSF equivalent then migrating to ICEfaces 3 might be a quicker solution.

If you haven't already, the following documents should be followed/reviewed:
- ICEfaces 1.x to 3.x migration guide: http://www.icesoft.org/wiki/display/ICE/Converting+ICEfaces+1.8+Applications+to+ICEfaces+3

Then if you want to go to ICEfaces 4.x the following documents will be helpful:
- ICEfaces 3 to 4 Migration Guide: http://www.icesoft.org/wiki/display/ICE/ICEfaces+3+to+4+Migration+Guide
- ICE to ACE Component Migration Guide: http://www.icesoft.org/wiki/display/ICE/ICE+to+ACE+Component+Migration+Guide

I also highly recommend using the most recent version of ICEfaces 3 or 4 that you have access to.

Regards,
Arran

Arran McCullough
Technical Support Engineer
ICEsoft Technologies Inc.
paralight

Joined: 20/Jul/2016 01:08:47
Messages: 17
Offline


thank for the links Arran, actually i'm migrate from icefaces 1.7 to icefaces 4.1.1, so , this is a lot of work :P
arran.mccullough


Joined: 02/Jan/2007 00:00:00
Messages: 426
Offline


Yeah that is quite a jump. I would still use the migration guide from 1.8 to 3.x as a reference. This is essentially what is required to go from JSF 1.x to 2.x.

So you won't need to use the CompatResourceServlet or the icefaces-compat.jar file as these are not supported with the ICEfaces 4.1.1 release. You'll need to make sure you have converted any ICE components to their ACE/JSF equivalents.

Regards,
Arran

Arran McCullough
Technical Support Engineer
ICEsoft Technologies Inc.
rishisinghal11

Joined: 19/Apr/2018 01:32:43
Messages: 3
Offline


Hi,

I am trying to migrate the Icefaces 1.8 to 4.2 and JSF 1.2 to 2.1. I have found some of the replacements of the components (i.e. ice to ace) but for following components, I didn't found any solution. Can anyone please tell me where I can find some info on it.

HtmlCommandLink (com.icesoft.faces.component.ext.HtmlCommandLink)
HtmlGraphicImage (com.icesoft.faces.component.ext.HtmlGraphicImage)
HtmlOutputLabel (com.icesoft.faces.component.ext.HtmlOutputLabel)
HtmlOutputLink (com.icesoft.faces.component.ext.HtmlOutputLink)
HtmlOutputText(com.icesoft.faces.component.ext.HtmlOutputText)
HtmlPanelGrid (com.icesoft.faces.component.ext.HtmlPanelGrid)
HtmlPanelGroup (com.icesoft.faces.component.ext.HtmlPanelGroup)
MenuBar (com.icesoft.faces.component.menubar.MenuBar)
com.icesoft.faces.component.IceExtended
com.icesoft.faces.component.paneltabset.TabChangeEvent
com.icesoft.faces.component.ext.taglib.Util
com.icesoft.faces.context.effects.JavascriptContext (includeLib)
com.icesoft.faces.component.DisplayEvent
com.icesoft.faces.component.ext.RowSelectorEvent

Currently I am referring following links :

http://www.icesoft.org/wiki/display/ICE/ICE+to+ACE+Component+Migration+Guide

http://www.icesoft.org/wiki/display/ICE/ICEfaces+3+to+4+Migration+Guide

http://www.icesoft.org/wiki/display/ICE/ICEfaces+1.x+Compatibility+Features+of+ICEfaces+3

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