ClassNotFoundException: com.sun.faces.config.ConfigureListener - Deployment of jars to Tomcat configured under Eclipse
Clash Royale CLAN TAG#URR8PPP
ClassNotFoundException: com.sun.faces.config.ConfigureListener - Deployment of jars to Tomcat configured under Eclipse
I have a problem very similar to these:
I've managed to find a workaround but still not solved the issue.
When I deploy my application to Tomcat 7.0.34 which is configured in Eclipse Juno Service Release 1 (Build id: 20120920-0800) I get:
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
maj 22, 2013 5:10:34 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:ProjNameWorkspacesprojname-eclipse-ws.metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebapps4.0.1WEB-INFlibjavaee-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
maj 22, 2013 5:10:34 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:ProjNameWorkspacesprojname-eclipse-ws.metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebapps4.0.1WEB-INFlibjavax.servlet-3.2-b05.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
maj 22, 2013 5:10:36 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:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
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$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
I've checked my web.xml and I don't have any entries related to ConfigureListener.
I have both javaee-api-6.0.jar and javax.servlet-3.2-b05.jar set to provided. The workaround is that I'm deleting both jars from C:ProjNameWorkspacesprojname-eclipse-ws.metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebapps4.0.1WEB-INFlib after deploying application via Eclipse.
My question is why is Eclipse deploying these jars to Tomcat regardless setting their scope to provided? Is there any other place that controls jars deployment?
1 Answer
1
Did you have jar in your lib - faces-sources-1.2.0.09.jar ?
if not then add it to your project. you can download it from here - http://www.java2s.com/Code/Jar/c/Downloadcomspringsourcecomsunfacessources12009jar.htm
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.