- This topic has 3 replies, 2 voices, and was last updated 15 years, 7 months ago by support-joy.
-
AuthorPosts
-
iferMemberHi,
I am totally new in MyEclipse. I have tried to implement the ICEfaces tutorial (which I guess that is based on a previous version of myEclipse) and I ‘ve met two problems.1. I couldn’t find the menu item “JSF -> Add ManagedBean” which is supposed to appear after right-clicking on the faces-config.xml file (source tab). Instead, I have created a simple Class in which I have put all the code mentioned in the tutorial. But I don’t know if this was OK or the generated code (of the ManagedBean) would have included some additional imports, for example.
2. More important, when I tried to build and run the project, the compilation failed with the messages found below.
Any help would be appeciated.
Thanks in advance
ifer
rg.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:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
13 Μαϊ 2009 4:25:09 μμ org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
support-joyMemberifer,
To create a managed bean go to design view of faces-config.xml. There you can see “Managed Beans” listed in the left pane. Right click on it and select new > managed bean. If you are doing this manually, you will have to update the faces-config.xml accordingly.
Can you make the above changes and try to run the application. Let me know if it works for you.
iferMemberThanks for your response, Joy.
Actually, I had already found by myself, rather accidentally, how to create managedbeans. Additionally, I realized that in order to be able to run the project you have to select “Build Path” -> “Configure Build Path” from the project’s context menu, and to manually check all the needed libraries in the “Order and Export” tab (at least this is how I managed to run an example project – please correct me if I’m wrong).
However I haven’t yet managed to go through with the “IcefacesTutorialExample”, perhaps there is something wrong with it – or maybe something I am doing wrong… Anyway I’ m working on it.
Thanks again for your response
ifer
support-joyMemberifer,
Good to hear you have everything under control.
-
AuthorPosts