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:
- java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo
- java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener
- 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
add a comment |
up vote
1
down vote
favorite
I have a problem very similar to these:
- java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo
- java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener
- 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
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a problem very similar to these:
- java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo
- java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener
- 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
I have a problem very similar to these:
- java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo
- java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener
- 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
java eclipse tomcat deployment classnotfoundexception
edited May 23 '17 at 12:26
Community♦
11
11
asked May 23 '13 at 5:57
Adrian A.
614
614
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered May 23 '13 at 6:19
Tej Kiran
1,54521330
1,54521330
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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