ClassNotFoundException: com.sun.faces.config.ConfigureListener - Deployment of jars to Tomcat configured...











up vote
1
down vote

favorite












I have a problem very similar to these:




  1. java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

  2. java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener

  3. Error with Jboss while deploying a jsp/servlet web app "com.sun.faces.config.ConfigureListener" Error


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?










share|improve this question




























    up vote
    1
    down vote

    favorite












    I have a problem very similar to these:




    1. java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

    2. java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener

    3. Error with Jboss while deploying a jsp/servlet web app "com.sun.faces.config.ConfigureListener" Error


    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?










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have a problem very similar to these:




      1. java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

      2. java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener

      3. Error with Jboss while deploying a jsp/servlet web app "com.sun.faces.config.ConfigureListener" Error


      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?










      share|improve this question















      I have a problem very similar to these:




      1. java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

      2. java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener

      3. Error with Jboss while deploying a jsp/servlet web app "com.sun.faces.config.ConfigureListener" Error


      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?







      java eclipse tomcat deployment classnotfoundexception






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 23 '17 at 12:26









      Community

      11




      11










      asked May 23 '13 at 5:57









      Adrian A.

      614




      614
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          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






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16706535%2fclassnotfoundexception-com-sun-faces-config-configurelistener-deployment-of-j%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            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






            share|improve this answer

























              up vote
              0
              down vote













              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






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                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






                share|improve this answer












                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







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 23 '13 at 6:19









                Tej Kiran

                1,54521330




                1,54521330






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16706535%2fclassnotfoundexception-com-sun-faces-config-configurelistener-deployment-of-j%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Florida Star v. B. J. F.

                    Danny Elfman

                    Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues