voyent
ContextEventRepeater class not found error  XML
Forum Index -> General Help
Author Message
bjenkins01

Joined: 15/May/2007 00:00:00
Messages: 7
Offline


I'm using iceface 1.6 dr4 in a netbeans visual faces test app. that has no components on it and which has been configured to work with icefaces. When I attempt to run the application, I get the following stack trace:

Code:
May 16, 2007 11:45:54 AM org.apache.catalina.core.StandardContext listenerStart
 SEVERE: Error configuring application listener of class com.icesoft.faces.util.event.servlet.ContextEventRepeater
 java.lang.ClassNotFoundException: com.icesoft.faces.util.event.servlet.ContextEventRepeater at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)


The strange thing is that this library doesn't appear to exist in the icefaces component library that was included in the application; even though, the class reference was included in the app's web.xml file when the app was configured for icefaces.

Any insight as to how to fix this would be greatly appreciated.

Brian



philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi Brian,

Did you configure this yourself to work with ICEfaces or did you do it through the IDE by selecting "Enabled ICEfaces" from the project context menu?

Philip

.
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


Actually ContextEventRepeater is located in icefaces.jar.
So, imho, what happened to you is that you didn't deploy the icefaces jar files into your application server.
Please keep in mind that although you reference them in your ide, that doesn't necessarily mean they are also deployed on your web server.
To be sure, you either 1.copy the necessary jar files (listed in icefaces\docs\ICEfacesGettingStartedGuide.pdf) in your WEB-INF/lib, 2.mark them as dependencies (if you use some eclipse based ide), or 3.copy them directly in your JBoss/server/server_name(sometimes default here)/lib.
bjenkins01

Joined: 15/May/2007 00:00:00
Messages: 7
Offline


Philip:

I selected "Enabled ICEfaces" from the application item's context menu.

Edykory:

I believe the process of "enabling" an application puts the necessary dependencies in the contexts lib directory, among other things. In fact, the complib related jars are in my app's /lib directory. That said, the class that tomcat is complaining about (com.icesoft.faces.util.event.servlet.ContextEventRepeater) doesn't appear to be in the app's lib directory as a part of the complibs jar or any other for that matter. So, if I need to add this jar, can you tell me where to find it. FWIW, I followed both the ICEfaces Component Library and Project Integration instructions to the best of my ability.

Many thanks for the prompt responses.

Brian
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


Hi there!
Well, I already told you. The class ContextEventRepeater is located in icefaces.jar.
To put it simple, in case you didn't find the time to read the icefaces\docs\ICEfacesGettingStartedGuide.pdf, for a simple IceFaces application you need the following jars:

Ice Faces Runtime Dependencies
backport-util-concurrent.jar (2.2)
commons-beanutils.jar (1.7.0)
commons-collections.jar (3.1)
commons-digester.jar (1.7)
commons-fileupload.jar (1.2)
commons-logging.jar (1.0.3)
commons-logging-api.jar (1.0.3)
el-api.jar (2.1)
icefaces.jar (1.6.x)
icefaces-comps.jar (1.6.x)
xercesImpl.jar (2.6.2)
xml-apis.jar (1.0.b2) 


If you need facelets support (IceFaces is based on, but not compatible with standard Facelets) add:
el-ri.jar
icefaces-facelets.jar
servlet-api.jar 


And now, you have to choose which faces implementation you prefer: Apache MyFaces or Sun JSF RI (my personal opinion is that MyFaces is better coded than Sun's version):
If you choose MyFaces, you will need:
commons-discovery.jar
commons-el.jar
commons-lang-2.1.jar
myfaces-api.jar
myfaces-impl.jar
If you choose Sun JSF RI
jsf-api.jar
jsf-impl.jar 


All these files and docs, sample, etc you should find in the standard IceFaces package.
http://www.icefaces.org/main/downloads/os-downloads.iface

Good luck and enjoy yourself coding!
Meghiddo

Joined: 29/Apr/2009 00:00:00
Messages: 18
Offline


I'm using this response to try and get my own similar problems resolved.

I have all of those JARs located here and there. I even created my own libraries in eclipse and included those JARs. But still no matter what i do I keep getting that damn 404 error.

SO how would I go about creating a project with those JARs you list. Nothing I have tried worksm 4 days of it and nothing is working. And no one seems to be able to help either.

Any suggestions/
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


Please wait until Monday. My internet connection here sucks. On monday I'll post a blank project to start up your on. It will be based on IceFaces 1.8, JSF 1.2, and all things necessary for JBoss 4.2 (that's what I'm using now).

Eduard Korenschi
Meghiddo

Joined: 29/Apr/2009 00:00:00
Messages: 18
Offline


I think I might have fixed this myself, because i am no longer getting server log exceptions. But now I am getting this stack trace when I view local host and I don't know how to fix it so if you do that would be great:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Can't find stream for /test.jspx.jsp
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:175)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)


root cause

java.lang.Exception: javax.faces.FacesException: Can't find stream for /test.jspx.jsp
com.icesoft.faces.context.View.servePage(View.java:136)
com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)


root cause

javax.faces.FacesException: Can't find stream for /test.jspx.jsp
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:428)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
com.icesoft.faces.context.View$2$1.respond(View.java:47)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
com.icesoft.faces.context.View$2.serve(View.java:72)
com.icesoft.faces.context.View.servePage(View.java:133)
com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)


root cause

java.lang.NullPointerException
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:414)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
com.icesoft.faces.context.View$2$1.respond(View.java:47)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
com.icesoft.faces.context.View$2.serve(View.java:72)
com.icesoft.faces.context.View.servePage(View.java:133)
com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


I think you have a problem in correctly configuring your web.xml.

In case you're using facelets (which I recommend a lot) please make sure you have the
Code:
 	<context-param>
 		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 		<param-value>.xhtml (or .jspx if you use jspx files)</param-value>
 	</context-param>
 

setting
also, make sure you have these servlets registered:
Code:
 	<servlet>
 		<servlet-name>Faces Servlet</servlet-name>
 		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</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>
 

and their mappings:
Code:
 	<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>Blocking Servlet</servlet-name>
 		<url-pattern>/block/*</url-pattern>
 	</servlet-mapping>
 


In this case, when you request a page (written as xxx.xhtml or xxx.jspx) you do it like this http://blabla/xxx.iface

Good luck
dmayne

Joined: 19/Feb/2011 04:14:36
Messages: 6
Offline


After 2 hours searching i have found that the icefaces.jar in version 2 is not the same as the one in 1.8.
The directory structure is different and in version 2 ContextEventRepeater class file is indeed not present in the jar

I have been trying to run the output chart tutorial on the ice faces site and am disappointed that the provided binaries don't actually allow the demo to work.

Is there a different jar i can add to my libraries or should i just use the one from the 1.8 release?
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


Please review the ICEfaces 2 documentation on the compat components
http://wiki.icefaces.org/display/ICE/ICEfaces+2+Documentation

the release notes with each ICEfaces bundle also specifies the location of the documentation.

In the samples/compat folder of each distribution bundle there is also a component-showcase with the ICEface2.0 version of the (1.8.x) components. Although very similar in markup, you can annotate your backing beans with jsf2.0 annotations and modify the configuration files to make existing projects work with ICEfaces2.0 and jsf2.0.

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