- This topic has 4 replies, 3 voices, and was last updated 15 years, 9 months ago by gbadavidson.
-
AuthorPosts
-
schanamoluMemberHi,
Iam created a sample JSF project using myeclipse 4.1.1, eclipse 3.1.2 with myeclipse/Add JSF Capablities.
I added Spring & Hibernate capabilites to this project. I deployed in Tomcat 5.5.16 server.
The following Libraries are added to the Web-INF/lib folder.
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
jstl.jarstandard.jar
When I started the tomcatsevrer i got the following exeception.
Any help would be apprciated.
NFO: XML validation disabled
May 26, 2006 3:27:43 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 26, 2006 3:27:43 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
May 26, 2006 3:27:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
May 26, 2006 3:27:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/host-manager] startup failed due to previous errors
May 26, 2006 3:27:44 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Riyad KallaMemberDid you drill down into the jsf-impl.jar file and find the offending class?
schanamoluMemberHi Riyad,
yes I see that ConfigureListener.class do exist on jsf-impl.jar. I didnt this exception when i reinstall tomcat Tomcat 5.5.16 and deployed under WebApp
Let me know if Iam missing any thing as this error will be shown in future during development.
After I got the above exception, I couldnt able to go tomcat default webpage. http://localhost:8080
let me know..
Thanks,
sreedhar
Riyad KallaMemberSreedhar,
If you cannot access the default Tomcat webpage, then either Tomcat isn’t running or your install of Tomcat is corrupted. That exception is probably the result of a screwed up classpath, becuase you said the class is infact in the jsf-impl.jar file. I would suggest redownloading Tomcat 5.5.16 in ZIP format, unzipping it to a new dir, pointing MyEclipse at it, redeploying your app to that new unzipped copy and running it, see if it works.
gbadavidsonMemberI ma something of a newbie to JSF and Facelets. I have created a new project, added JSF capibilities then added Facelets. I built with maven and then just tried to load onto tomcat 6. I have verified that the jsf-impl class is in the lib directory and it does hold the ConfigureListener class. After a stroll through google I found some instructions to add the following to the web.xml file.
<listener>
<listener-class> com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<!– Listener implementation to handle web application lifecycle events –>
<listener>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listenerclass>
</listener>I did add these to the web.xml, yet I still get the error:
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListenerDoes anyone have any suggestions?
Thanks
-
AuthorPosts